[yocto] Unpack hierarchy - jethro vs. krogoth

Colin Helliwell colin.helliwell at ln-systems.com
Tue Mar 28 07:59:45 PDT 2017


> On 28 March 2017 at 11:33 colin.helliwell at ln-systems.com wrote:
> 
> Is there a change to recipe parsing and/or variables between jethro and
> krogoth?
> I'm migrating from the former to the latter and have hit a patch failure.
> Looking at the unpacked source, jethro has the relevant file at
>  build/tmp/work/XXX-poky-linux-gnueabi/linmux/3.0.2-r0/driver/
> whereas krogoth has it at
>  build/tmp/work/XXX-poky-linux-gnueabi/linmux/3.0.2-r0/driver/driver/
> 
> Indeed, all the sources have been unpacked under an additional 'driver'
> directory level .e.g.
>  src/driver/* -> 3.0.2-r0/driver/driver/
>  src/config/* -> 3.0.2-r0/driver/config/
> instead of
>  src/driver/* -> 3.0.2-r0/driver/
>  src/config/* -> 3.0.2-r0/config/
> 
> The recipe includes
> SRC_URI = "file://driver/*.c \
>  file://driver/*.h \
>  file://Makefile \
>  file://COPYING \
>  "
> FILESEXTRAPATHS_prepend := "${BSPDIR}/../Apps/MyDriver/src:"
> S = "${WORKDIR}"
> 
> As I say, it works on jethro...!
> 

Can't spot a reason, even in the bbclass's, why it's unpacking differently. 
log.do_unpack reports:
DEBUG: Searching for driver/*.c in paths:
....
DEBUG: Searching for driver/*.c in path: /home/colin/100051-krogoth/fsl-community-bsp/../Apps/MyDriver/src/.
NOTE: Unpacking /home/colin/100051-krogoth/fsl-community-bsp/../Apps/MyDriver/src/. to /home/colin/100051-krogoth/fsl-community-bsp/build/tmp/work/wg2xx_tx6s-poky-linux-gnueabi/linmux/3.0.2-r0/

which suggests it should've ended up in the 'right' place?



More information about the yocto mailing list