[yocto] FILESPATH Search Order Changed?

Leo Schwab lschwab at sensity.com
Fri Nov 15 14:52:27 PST 2013


I'm working on transitioning from 'dylan' to the 'dora' branch for our
Freescale-based project, and suddenly my kernel is building with the
wrong config.  I've isolated it to a change in (what I presume is) the
FILESPATH search order, and shows up very plainly when looking at the
log.do_unpack file.

My defconfig is located in
/..paths../sources/meta-belis3/recipes-kernel/linux/files/defconfig.
Under 'dylan', it does this, and gets picked up correctly:

----
DEBUG: Searching for defconfig in paths:
/..paths../sources/meta-belis3/recipes-kernel/linux/files/arm
/..paths../sources/meta-belis3/recipes-kernel/linux/files/armv7a
/..paths../sources/meta-belis3/recipes-kernel/linux/files/mx6
/..paths../sources/meta-belis3/recipes-kernel/linux/files/mx6dl
/..paths../sources/meta-belis3/recipes-kernel/linux/files/medianode
/..paths../sources/meta-belis3/recipes-kernel/linux/files/poky
/..paths../sources/meta-belis3/recipes-kernel/linux/files/
/..paths../sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-imx-3.0.35/arm
/..paths../sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-imx-3.0.35/armv7a
/..paths../sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-imx-3.0.35/mx6
/..paths../sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-imx-3.0.35/mx6dl
/..paths../sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-imx-3.0.35/medianode
/..paths../sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-imx-3.0.35/poky
/..paths../sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-imx-3.0.35/
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx-3.0.35/arm
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx-3.0.35/armv7a
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx-3.0.35/mx6
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx-3.0.35/mx6dl
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx-3.0.35/medianode
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx-3.0.35/poky
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx-3.0.35/
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx/arm
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx/armv7a
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx/mx6
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx/mx6dl
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx/medianode
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx/poky
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx/
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/files/arm
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/files/armv7a
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/files/mx6
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/files/mx6dl
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/files/medianode
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/files/poky
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/files/
NOTE: Unpacking
/..paths../sources/meta-belis3/recipes-kernel/linux/files/defconfig to
/..paths../build/tmp/work/medianode-poky-linux-gnueabi/linux-imx/3.0.35-r39.14/
----

But under 'dora', it does this:

----
DEBUG: Searching for defconfig in paths:
/..paths../sources/meta-belis3/recipes-kernel/linux/files/poky
/..paths../sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-imx-3.0.35/poky
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx-3.0.35/poky
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx/poky
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/files/poky
/..paths../sources/meta-belis3/recipes-kernel/linux/files/medianode
/..paths../sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-imx-3.0.35/medianode
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx-3.0.35/medianode
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx/medianode
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/files/medianode
/..paths../sources/meta-belis3/recipes-kernel/linux/files/mx6dl
/..paths../sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-imx-3.0.35/mx6dl
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx-3.0.35/mx6dl
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx/mx6dl
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/files/mx6dl
/..paths../sources/meta-belis3/recipes-kernel/linux/files/mx6
/..paths../sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-imx-3.0.35/mx6
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx-3.0.35/mx6
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx/mx6
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/files/mx6
/..paths../sources/meta-belis3/recipes-kernel/linux/files/armv7a
/..paths../sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-imx-3.0.35/armv7a
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx-3.0.35/armv7a
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx/armv7a
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/files/armv7a
/..paths../sources/meta-belis3/recipes-kernel/linux/files/arm
/..paths../sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-imx-3.0.35/arm
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx-3.0.35/arm
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx/arm
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/files/arm
/..paths../sources/meta-belis3/recipes-kernel/linux/files/
/..paths../sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-imx-3.0.35/
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx-3.0.35/
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx/
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/files/
NOTE: Unpacking
/..paths../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx-3.0.35/mx6dl/defconfig
to /..paths../build/tmp/work/medianode-poky-linux-gnueabi/linux-imx/3.0.35-r39.14/
----

As a consequence, it picks up a default Freescale-supplied 'defconfig'
rather than mine.

The "obvious" solution is to move my 'defconfig' under a directory
named 'medianode' or 'poky'.  What's less clear is what I should have
been doing in the first place and why, so that I can avoid getting
bitten by this kind of thing again.

Schwab



More information about the yocto mailing list