Adding external source for u-boot

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Adding external source for u-boot

1,266 Views
anjojohn
Contributor IV

Hi all,

i tried to add external source code for u-boot for imx6. created a recipe with u-boot-<custom> name with following parameters appended

inherit externalsrc

SRC_URI = "file://${TOPDIR}/../externalsrc/u-boot"

EXTERNALSRC = "${TOPDIR}/../externalsrc/u-boot"
EXTERNALSRC_BUILD = "${TOPDIR}/../externalsrc/u-boot"

but whenever i do the bitbake u-boot-<custom> i get error for "do_unpack". is any parameters missing ? If i gave

do_unpack(){

}

then it builds correctly. But my source is already unpacked.

Also when i do cleansstate, cleanall and clean it only cleans the u-boot binaries in tmp/ directory. the .o and .cmd are not deleted. How to remove these files from external source

0 Kudos
2 Replies

929 Views
jimmychan
NXP TechSupport
NXP TechSupport

According to the Yocto Project Development Manual , here are the statements to put in your local.conf file:

INHERIT += "externalsrc"      
EXTERNALSRC_pn-myrecipe = "path-to-your-source-tree"

please try.

0 Kudos

929 Views
anjojohn
Contributor IV

i tried the parameters in my build/conf/local.conf file and also in the .bb file. still bitbake shows error for do_unpack()

0 Kudos