* Hmm, possible bug in poky?
@ 2014-06-06 11:16 Neuer User
2014-06-06 14:40 ` Bruce Ashfield
0 siblings, 1 reply; 7+ messages in thread
From: Neuer User @ 2014-06-06 11:16 UTC (permalink / raw)
To: yocto
I get the following error:
WARNING: Failed to fetch URL file://defconfig, attempting MIRRORS if
available
ERROR: Fetcher failure: Unable to find file file://defconfig anywhere.
The paths that were searched were:
/home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i-3.10.30/poky
...
/home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/files/arm
/home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i-3.10.30/
/home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i-3.10.30-linux4kix/
/home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i/
/home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/files/
/home/ubuntu/yocto/downloads/
ERROR: Function failed: Fetcher failure for URL: 'file://defconfig'.
Unable to fetch URL from any source.
Now, the directory:
/home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i-3.10.30/
which is listed above, contains the "missing" file ("defconfig").
Hmm, strange...
Here are my recipes:
linux-cubox-i_3.10.30.inc:
------------------------------------
inherit kernel
require recipes-kernel/linux/linux-yocto.inc
SUMMARY = "Linaro Kernel 3.10.30 with additional machine specific patches"
SRCBRANCH ?= "linux-linaro-lsk-mx6"
FILESEXTRAPATHS_prepend += "${THISDIR}/${PN}-3.10.30:"
SRC_URI = "file://defconfig \
file://videoin.cfg \
file://networking.cfg \
file://wlan.cfg \
file://dm-crypt.cfg \
file://no-caam.cfg \
file://leds.cfg \
file://mod-to-builtin.cfg \
file://brcmfmac4330-sdio.bin \
file://brcmfmac4330-sdio.txt \
"
do_configure_append () {
cd ${S}
mkdir firmware/brcm
cp ../brcmfmac4330-sdio.bin ./firmware/brcm/
cp ../brcmfmac4330-sdio.txt ./firmware/brcm/
}
COMPATIBLE_MACHINE = "(cubox-i)"
KERNEL_IMAGETYPE_cubox-i = "zImage"
KERNEL_DEVICETREE_cubox-i = "imx6dl-cubox-i.dtb imx6q-cubox-i.dtb"
SRCREV_machine = "${SRCREV}"
------------------------------------
linux-cubox-i_3.10.30.bb:
------------------------------------
include linux-cubox-i_3.10.30.inc
SRCREV = "592b2d941dc3ecb6335d6820757340ffb5a192c8"
#SRCREV = "860304ab6e749777523f3714d18c4c7d39b728fa"
LOCALVERSION = "-cubox-i+SolidRun+${SRCPV}"
SRC_URI +=
"git://github.com/SolidRun/linux-linaro-stable-mx6;branch=${SRCBRANCH}"
-------------------------------
linux-cubox-i_3.10.30-linux4kix.bb:
------------------------------------
include linux-cubox-i_3.10.30.inc
SRCREV = "a4ed70040f9dfdcdd6546a85c0477ecd1030e065"
LOCALVERSION = "-cubox-i+linux4kix+${SRCPV}"
SRC_URI +=
"git://github.com/linux4kix/linux-linaro-stable-mx6.git;branch=${SRCBRANCH}"
------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Hmm, possible bug in poky? 2014-06-06 11:16 Hmm, possible bug in poky? Neuer User @ 2014-06-06 14:40 ` Bruce Ashfield 2014-06-06 14:56 ` Neuer User 0 siblings, 1 reply; 7+ messages in thread From: Bruce Ashfield @ 2014-06-06 14:40 UTC (permalink / raw) To: Neuer User, yocto On 14-06-06 07:16 AM, Neuer User wrote: > I get the following error: > > WARNING: Failed to fetch URL file://defconfig, attempting MIRRORS if > available > ERROR: Fetcher failure: Unable to find file file://defconfig anywhere. > The paths that were searched were: > > /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i-3.10.30/poky > ... > /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/files/arm > > /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i-3.10.30/ > > /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i-3.10.30-linux4kix/ > > /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i/ > /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/files/ > /home/ubuntu/yocto/downloads/ > ERROR: Function failed: Fetcher failure for URL: 'file://defconfig'. > Unable to fetch URL from any source. > > > Now, the directory: > > > /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i-3.10.30/ > > which is listed above, contains the "missing" file ("defconfig"). > > Hmm, strange... > > > > Here are my recipes: > > linux-cubox-i_3.10.30.inc: > ------------------------------------ > inherit kernel > require recipes-kernel/linux/linux-yocto.inc > > SUMMARY = "Linaro Kernel 3.10.30 with additional machine specific patches" > > SRCBRANCH ?= "linux-linaro-lsk-mx6" > > FILESEXTRAPATHS_prepend += "${THISDIR}/${PN}-3.10.30:" Have you tried this variant ? FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-3.10.30:" You need the := in the assignment to have it evaluate immediately and pick up the directory of your bbappend (who's subdir is the one that contains the defconfig). Bruce > > SRC_URI = "file://defconfig \ > file://videoin.cfg \ > file://networking.cfg \ > file://wlan.cfg \ > file://dm-crypt.cfg \ > file://no-caam.cfg \ > file://leds.cfg \ > file://mod-to-builtin.cfg \ > file://brcmfmac4330-sdio.bin \ > file://brcmfmac4330-sdio.txt \ > " > > do_configure_append () { > cd ${S} > mkdir firmware/brcm > cp ../brcmfmac4330-sdio.bin ./firmware/brcm/ > cp ../brcmfmac4330-sdio.txt ./firmware/brcm/ > } > > COMPATIBLE_MACHINE = "(cubox-i)" > > KERNEL_IMAGETYPE_cubox-i = "zImage" > KERNEL_DEVICETREE_cubox-i = "imx6dl-cubox-i.dtb imx6q-cubox-i.dtb" > > SRCREV_machine = "${SRCREV}" > ------------------------------------ > > > linux-cubox-i_3.10.30.bb: > ------------------------------------ > include linux-cubox-i_3.10.30.inc > > SRCREV = "592b2d941dc3ecb6335d6820757340ffb5a192c8" > #SRCREV = "860304ab6e749777523f3714d18c4c7d39b728fa" > LOCALVERSION = "-cubox-i+SolidRun+${SRCPV}" > > SRC_URI += > "git://github.com/SolidRun/linux-linaro-stable-mx6;branch=${SRCBRANCH}" > ------------------------------- > > > linux-cubox-i_3.10.30-linux4kix.bb: > ------------------------------------ > include linux-cubox-i_3.10.30.inc > > SRCREV = "a4ed70040f9dfdcdd6546a85c0477ecd1030e065" > LOCALVERSION = "-cubox-i+linux4kix+${SRCPV}" > > SRC_URI += > "git://github.com/linux4kix/linux-linaro-stable-mx6.git;branch=${SRCBRANCH}" > ------------------------------------ > > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Hmm, possible bug in poky? 2014-06-06 14:40 ` Bruce Ashfield @ 2014-06-06 14:56 ` Neuer User 2014-06-06 15:12 ` Gary Thomas 2014-06-06 15:16 ` Bruce Ashfield 0 siblings, 2 replies; 7+ messages in thread From: Neuer User @ 2014-06-06 14:56 UTC (permalink / raw) To: yocto Hi Bruce Thanks for the hint. I changed it, but the result is the same. Strange is really that it shows the directory as being searched through but does not find the file that's contained?! Also, there are two "main" recipes, which both include the inc file. This one throws warnings, but works: linux-cubox-i_3.10.30.bb This one throws warnings and then the error shown: linux-cubox-i_3.10.30-linux4kix.bb Am I doing it right (now with the :=), or is there something fundamentally wrong with the two recipes and the include file? Michael Am 06.06.2014 16:40, schrieb Bruce Ashfield: > On 14-06-06 07:16 AM, Neuer User wrote: >> I get the following error: >> >> WARNING: Failed to fetch URL file://defconfig, attempting MIRRORS if >> available >> ERROR: Fetcher failure: Unable to find file file://defconfig anywhere. >> The paths that were searched were: >> >> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i-3.10.30/poky >> >> ... >> >> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/files/arm >> >> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i-3.10.30/ >> >> >> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i-3.10.30-linux4kix/ >> >> >> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i/ >> >> >> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/files/ >> /home/ubuntu/yocto/downloads/ >> ERROR: Function failed: Fetcher failure for URL: 'file://defconfig'. >> Unable to fetch URL from any source. >> >> >> Now, the directory: >> >> >> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i-3.10.30/ >> >> >> which is listed above, contains the "missing" file ("defconfig"). >> >> Hmm, strange... >> >> >> >> Here are my recipes: >> >> linux-cubox-i_3.10.30.inc: >> ------------------------------------ >> inherit kernel >> require recipes-kernel/linux/linux-yocto.inc >> >> SUMMARY = "Linaro Kernel 3.10.30 with additional machine specific >> patches" >> >> SRCBRANCH ?= "linux-linaro-lsk-mx6" >> >> FILESEXTRAPATHS_prepend += "${THISDIR}/${PN}-3.10.30:" > > Have you tried this variant ? > > FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-3.10.30:" > > You need the := in the assignment to have it evaluate immediately and > pick up the directory of your bbappend (who's subdir is the one that > contains the defconfig). > > Bruce > > >> >> SRC_URI = "file://defconfig \ >> file://videoin.cfg \ >> file://networking.cfg \ >> file://wlan.cfg \ >> file://dm-crypt.cfg \ >> file://no-caam.cfg \ >> file://leds.cfg \ >> file://mod-to-builtin.cfg \ >> file://brcmfmac4330-sdio.bin \ >> file://brcmfmac4330-sdio.txt \ >> " >> >> do_configure_append () { >> cd ${S} >> mkdir firmware/brcm >> cp ../brcmfmac4330-sdio.bin ./firmware/brcm/ >> cp ../brcmfmac4330-sdio.txt ./firmware/brcm/ >> } >> >> COMPATIBLE_MACHINE = "(cubox-i)" >> >> KERNEL_IMAGETYPE_cubox-i = "zImage" >> KERNEL_DEVICETREE_cubox-i = "imx6dl-cubox-i.dtb imx6q-cubox-i.dtb" >> >> SRCREV_machine = "${SRCREV}" >> ------------------------------------ >> >> >> linux-cubox-i_3.10.30.bb: >> ------------------------------------ >> include linux-cubox-i_3.10.30.inc >> >> SRCREV = "592b2d941dc3ecb6335d6820757340ffb5a192c8" >> #SRCREV = "860304ab6e749777523f3714d18c4c7d39b728fa" >> LOCALVERSION = "-cubox-i+SolidRun+${SRCPV}" >> >> SRC_URI += >> "git://github.com/SolidRun/linux-linaro-stable-mx6;branch=${SRCBRANCH}" >> ------------------------------- >> >> >> linux-cubox-i_3.10.30-linux4kix.bb: >> ------------------------------------ >> include linux-cubox-i_3.10.30.inc >> >> SRCREV = "a4ed70040f9dfdcdd6546a85c0477ecd1030e065" >> LOCALVERSION = "-cubox-i+linux4kix+${SRCPV}" >> >> SRC_URI += >> "git://github.com/linux4kix/linux-linaro-stable-mx6.git;branch=${SRCBRANCH}" >> >> ------------------------------------ >> >> > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Hmm, possible bug in poky? 2014-06-06 14:56 ` Neuer User @ 2014-06-06 15:12 ` Gary Thomas 2014-06-06 15:36 ` Neuer User 2014-06-06 15:16 ` Bruce Ashfield 1 sibling, 1 reply; 7+ messages in thread From: Gary Thomas @ 2014-06-06 15:12 UTC (permalink / raw) To: yocto On 2014-06-06 08:56, Neuer User wrote: > Hi Bruce > > Thanks for the hint. I changed it, but the result is the same. > > Strange is really that it shows the directory as being searched through > but does not find the file that's contained?! > > Also, there are two "main" recipes, which both include the inc file. > This one throws warnings, but works: > > linux-cubox-i_3.10.30.bb > > This one throws warnings and then the error shown: > > linux-cubox-i_3.10.30-linux4kix.bb It's a bit hard to see what files you have where. Perhaps you could send a listing, e.g. for the standard Yocto kernel: $ tree meta/recipes-kernel/linux meta/recipes-kernel/linux ├── linux-dtb.inc ├── linux-dummy │ └── COPYING.GPL ├── linux-dummy.bb ├── linux-yocto_3.10.bb ├── linux-yocto_3.14.bb ├── linux-yocto_3.4.bb ├── linux-yocto-dev.bb ├── linux-yocto.inc ├── linux-yocto-rt_3.10.bb ├── linux-yocto-rt_3.14.bb ├── linux-yocto-rt_3.4.bb ├── linux-yocto-tiny_3.10.bb ├── linux-yocto-tiny_3.14.bb └── linux-yocto-tiny_3.4.bb Do this for each of the kernel recipes you are trying to use. > > Am I doing it right (now with the :=), or is there something > fundamentally wrong with the two recipes and the include file? > > Michael > > Am 06.06.2014 16:40, schrieb Bruce Ashfield: >> On 14-06-06 07:16 AM, Neuer User wrote: >>> I get the following error: >>> >>> WARNING: Failed to fetch URL file://defconfig, attempting MIRRORS if >>> available >>> ERROR: Fetcher failure: Unable to find file file://defconfig anywhere. >>> The paths that were searched were: >>> >>> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i-3.10.30/poky >>> >>> ... >>> >>> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/files/arm >>> >>> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i-3.10.30/ >>> >>> >>> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i-3.10.30-linux4kix/ >>> >>> >>> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i/ >>> >>> >>> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/files/ >>> /home/ubuntu/yocto/downloads/ >>> ERROR: Function failed: Fetcher failure for URL: 'file://defconfig'. >>> Unable to fetch URL from any source. >>> >>> >>> Now, the directory: >>> >>> >>> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i-3.10.30/ >>> >>> >>> which is listed above, contains the "missing" file ("defconfig"). >>> >>> Hmm, strange... >>> >>> >>> >>> Here are my recipes: >>> >>> linux-cubox-i_3.10.30.inc: >>> ------------------------------------ >>> inherit kernel >>> require recipes-kernel/linux/linux-yocto.inc >>> >>> SUMMARY = "Linaro Kernel 3.10.30 with additional machine specific >>> patches" >>> >>> SRCBRANCH ?= "linux-linaro-lsk-mx6" >>> >>> FILESEXTRAPATHS_prepend += "${THISDIR}/${PN}-3.10.30:" >> >> Have you tried this variant ? >> >> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-3.10.30:" >> >> You need the := in the assignment to have it evaluate immediately and >> pick up the directory of your bbappend (who's subdir is the one that >> contains the defconfig). >> >> Bruce >> >> >>> >>> SRC_URI = "file://defconfig \ >>> file://videoin.cfg \ >>> file://networking.cfg \ >>> file://wlan.cfg \ >>> file://dm-crypt.cfg \ >>> file://no-caam.cfg \ >>> file://leds.cfg \ >>> file://mod-to-builtin.cfg \ >>> file://brcmfmac4330-sdio.bin \ >>> file://brcmfmac4330-sdio.txt \ >>> " >>> >>> do_configure_append () { >>> cd ${S} >>> mkdir firmware/brcm >>> cp ../brcmfmac4330-sdio.bin ./firmware/brcm/ >>> cp ../brcmfmac4330-sdio.txt ./firmware/brcm/ >>> } >>> >>> COMPATIBLE_MACHINE = "(cubox-i)" >>> >>> KERNEL_IMAGETYPE_cubox-i = "zImage" >>> KERNEL_DEVICETREE_cubox-i = "imx6dl-cubox-i.dtb imx6q-cubox-i.dtb" >>> >>> SRCREV_machine = "${SRCREV}" >>> ------------------------------------ >>> >>> >>> linux-cubox-i_3.10.30.bb: >>> ------------------------------------ >>> include linux-cubox-i_3.10.30.inc >>> >>> SRCREV = "592b2d941dc3ecb6335d6820757340ffb5a192c8" >>> #SRCREV = "860304ab6e749777523f3714d18c4c7d39b728fa" >>> LOCALVERSION = "-cubox-i+SolidRun+${SRCPV}" >>> >>> SRC_URI += >>> "git://github.com/SolidRun/linux-linaro-stable-mx6;branch=${SRCBRANCH}" >>> ------------------------------- >>> >>> >>> linux-cubox-i_3.10.30-linux4kix.bb: >>> ------------------------------------ >>> include linux-cubox-i_3.10.30.inc >>> >>> SRCREV = "a4ed70040f9dfdcdd6546a85c0477ecd1030e065" >>> LOCALVERSION = "-cubox-i+linux4kix+${SRCPV}" >>> >>> SRC_URI += >>> "git://github.com/linux4kix/linux-linaro-stable-mx6.git;branch=${SRCBRANCH}" >>> >>> ------------------------------------ >>> >>> >> > > -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Hmm, possible bug in poky? 2014-06-06 15:12 ` Gary Thomas @ 2014-06-06 15:36 ` Neuer User 2014-06-06 20:59 ` Bruce Ashfield 0 siblings, 1 reply; 7+ messages in thread From: Neuer User @ 2014-06-06 15:36 UTC (permalink / raw) To: yocto Hi Gary, Hi Bruce This is the directory layout: Both recipes are extremely similar, only differ by a different git repo and SRCREV. I might need to later have different patches for both recipes, but currently everthing is identical. That's why I made an include file. . ├── linux-cubox-i-3.10.30 │ ├── brcmfmac4330-sdio.bin │ ├── brcmfmac4330-sdio.txt │ ├── defconfig │ ├── dm-crypt.cfg │ ├── leds.cfg │ ├── mod-to-builtin.cfg │ ├── networking.cfg │ ├── no-caam.cfg │ ├── touchscreen.cfg │ ├── videoin.cfg │ └── wlan.cfg ├── linux-cubox-i_3.10.30.bb ├── linux-cubox-i_3.10.30.inc └── linux-cubox-i_3.10.30-linux4kix.bb Am 06.06.2014 17:12, schrieb Gary Thomas: > On 2014-06-06 08:56, Neuer User wrote: >> Hi Bruce >> >> Thanks for the hint. I changed it, but the result is the same. >> >> Strange is really that it shows the directory as being searched through >> but does not find the file that's contained?! >> >> Also, there are two "main" recipes, which both include the inc file. >> This one throws warnings, but works: >> >> linux-cubox-i_3.10.30.bb >> >> This one throws warnings and then the error shown: >> >> linux-cubox-i_3.10.30-linux4kix.bb > > It's a bit hard to see what files you have where. Perhaps you > could send a listing, e.g. for the standard Yocto kernel: > $ tree meta/recipes-kernel/linux > meta/recipes-kernel/linux > ├── linux-dtb.inc > ├── linux-dummy > │ └── COPYING.GPL > ├── linux-dummy.bb > ├── linux-yocto_3.10.bb > ├── linux-yocto_3.14.bb > ├── linux-yocto_3.4.bb > ├── linux-yocto-dev.bb > ├── linux-yocto.inc > ├── linux-yocto-rt_3.10.bb > ├── linux-yocto-rt_3.14.bb > ├── linux-yocto-rt_3.4.bb > ├── linux-yocto-tiny_3.10.bb > ├── linux-yocto-tiny_3.14.bb > └── linux-yocto-tiny_3.4.bb > > Do this for each of the kernel recipes you are trying to use. > >> >> Am I doing it right (now with the :=), or is there something >> fundamentally wrong with the two recipes and the include file? >> >> Michael >> >> Am 06.06.2014 16:40, schrieb Bruce Ashfield: >>> On 14-06-06 07:16 AM, Neuer User wrote: >>>> I get the following error: >>>> >>>> WARNING: Failed to fetch URL file://defconfig, attempting MIRRORS if >>>> available >>>> ERROR: Fetcher failure: Unable to find file file://defconfig anywhere. >>>> The paths that were searched were: >>>> >>>> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i-3.10.30/poky >>>> >>>> >>>> ... >>>> >>>> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/files/arm >>>> >>>> >>>> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i-3.10.30/ >>>> >>>> >>>> >>>> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i-3.10.30-linux4kix/ >>>> >>>> >>>> >>>> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i/ >>>> >>>> >>>> >>>> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/files/ >>>> /home/ubuntu/yocto/downloads/ >>>> ERROR: Function failed: Fetcher failure for URL: 'file://defconfig'. >>>> Unable to fetch URL from any source. >>>> >>>> >>>> Now, the directory: >>>> >>>> >>>> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i-3.10.30/ >>>> >>>> >>>> >>>> which is listed above, contains the "missing" file ("defconfig"). >>>> >>>> Hmm, strange... >>>> >>>> >>>> >>>> Here are my recipes: >>>> >>>> linux-cubox-i_3.10.30.inc: >>>> ------------------------------------ >>>> inherit kernel >>>> require recipes-kernel/linux/linux-yocto.inc >>>> >>>> SUMMARY = "Linaro Kernel 3.10.30 with additional machine specific >>>> patches" >>>> >>>> SRCBRANCH ?= "linux-linaro-lsk-mx6" >>>> >>>> FILESEXTRAPATHS_prepend += "${THISDIR}/${PN}-3.10.30:" >>> >>> Have you tried this variant ? >>> >>> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-3.10.30:" >>> >>> You need the := in the assignment to have it evaluate immediately and >>> pick up the directory of your bbappend (who's subdir is the one that >>> contains the defconfig). >>> >>> Bruce >>> >>> >>>> >>>> SRC_URI = "file://defconfig \ >>>> file://videoin.cfg \ >>>> file://networking.cfg \ >>>> file://wlan.cfg \ >>>> file://dm-crypt.cfg \ >>>> file://no-caam.cfg \ >>>> file://leds.cfg \ >>>> file://mod-to-builtin.cfg \ >>>> file://brcmfmac4330-sdio.bin \ >>>> file://brcmfmac4330-sdio.txt \ >>>> " >>>> >>>> do_configure_append () { >>>> cd ${S} >>>> mkdir firmware/brcm >>>> cp ../brcmfmac4330-sdio.bin ./firmware/brcm/ >>>> cp ../brcmfmac4330-sdio.txt ./firmware/brcm/ >>>> } >>>> >>>> COMPATIBLE_MACHINE = "(cubox-i)" >>>> >>>> KERNEL_IMAGETYPE_cubox-i = "zImage" >>>> KERNEL_DEVICETREE_cubox-i = "imx6dl-cubox-i.dtb imx6q-cubox-i.dtb" >>>> >>>> SRCREV_machine = "${SRCREV}" >>>> ------------------------------------ >>>> >>>> >>>> linux-cubox-i_3.10.30.bb: >>>> ------------------------------------ >>>> include linux-cubox-i_3.10.30.inc >>>> >>>> SRCREV = "592b2d941dc3ecb6335d6820757340ffb5a192c8" >>>> #SRCREV = "860304ab6e749777523f3714d18c4c7d39b728fa" >>>> LOCALVERSION = "-cubox-i+SolidRun+${SRCPV}" >>>> >>>> SRC_URI += >>>> "git://github.com/SolidRun/linux-linaro-stable-mx6;branch=${SRCBRANCH}" >>>> ------------------------------- >>>> >>>> >>>> linux-cubox-i_3.10.30-linux4kix.bb: >>>> ------------------------------------ >>>> include linux-cubox-i_3.10.30.inc >>>> >>>> SRCREV = "a4ed70040f9dfdcdd6546a85c0477ecd1030e065" >>>> LOCALVERSION = "-cubox-i+linux4kix+${SRCPV}" >>>> >>>> SRC_URI += >>>> "git://github.com/linux4kix/linux-linaro-stable-mx6.git;branch=${SRCBRANCH}" >>>> >>>> >>>> ------------------------------------ >>>> >>>> >>> >> >> > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Hmm, possible bug in poky? 2014-06-06 15:36 ` Neuer User @ 2014-06-06 20:59 ` Bruce Ashfield 0 siblings, 0 replies; 7+ messages in thread From: Bruce Ashfield @ 2014-06-06 20:59 UTC (permalink / raw) To: Neuer User, yocto On 14-06-06 11:36 AM, Neuer User wrote: > Hi Gary, Hi Bruce > > This is the directory layout: > > Both recipes are extremely similar, only differ by a different git repo > and SRCREV. I might need to later have different patches for both > recipes, but currently everthing is identical. That's why I made an > include file. > > . > ├── linux-cubox-i-3.10.30 > │ ├── brcmfmac4330-sdio.bin > │ ├── brcmfmac4330-sdio.txt > │ ├── defconfig > │ ├── dm-crypt.cfg > │ ├── leds.cfg > │ ├── mod-to-builtin.cfg > │ ├── networking.cfg > │ ├── no-caam.cfg > │ ├── touchscreen.cfg > │ ├── videoin.cfg > │ └── wlan.cfg > ├── linux-cubox-i_3.10.30.bb > ├── linux-cubox-i_3.10.30.inc > └── linux-cubox-i_3.10.30-linux4kix.bb I looks to be what I mentioned in my other reply. If you are using ${PN} to add the directories for searching, then the two recipes shouldn't result in the same ${PN} value, even if they are using a common .inc. Check the output of bitbake -e when you build the non-working recipe, what does it have for PN ? Bruce > > > > > > > Am 06.06.2014 17:12, schrieb Gary Thomas: >> On 2014-06-06 08:56, Neuer User wrote: >>> Hi Bruce >>> >>> Thanks for the hint. I changed it, but the result is the same. >>> >>> Strange is really that it shows the directory as being searched through >>> but does not find the file that's contained?! >>> >>> Also, there are two "main" recipes, which both include the inc file. >>> This one throws warnings, but works: >>> >>> linux-cubox-i_3.10.30.bb >>> >>> This one throws warnings and then the error shown: >>> >>> linux-cubox-i_3.10.30-linux4kix.bb >> >> It's a bit hard to see what files you have where. Perhaps you >> could send a listing, e.g. for the standard Yocto kernel: >> $ tree meta/recipes-kernel/linux >> meta/recipes-kernel/linux >> ├── linux-dtb.inc >> ├── linux-dummy >> │ └── COPYING.GPL >> ├── linux-dummy.bb >> ├── linux-yocto_3.10.bb >> ├── linux-yocto_3.14.bb >> ├── linux-yocto_3.4.bb >> ├── linux-yocto-dev.bb >> ├── linux-yocto.inc >> ├── linux-yocto-rt_3.10.bb >> ├── linux-yocto-rt_3.14.bb >> ├── linux-yocto-rt_3.4.bb >> ├── linux-yocto-tiny_3.10.bb >> ├── linux-yocto-tiny_3.14.bb >> └── linux-yocto-tiny_3.4.bb >> >> Do this for each of the kernel recipes you are trying to use. >> >>> >>> Am I doing it right (now with the :=), or is there something >>> fundamentally wrong with the two recipes and the include file? >>> >>> Michael >>> >>> Am 06.06.2014 16:40, schrieb Bruce Ashfield: >>>> On 14-06-06 07:16 AM, Neuer User wrote: >>>>> I get the following error: >>>>> >>>>> WARNING: Failed to fetch URL file://defconfig, attempting MIRRORS if >>>>> available >>>>> ERROR: Fetcher failure: Unable to find file file://defconfig anywhere. >>>>> The paths that were searched were: >>>>> >>>>> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i-3.10.30/poky >>>>> >>>>> >>>>> ... >>>>> >>>>> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/files/arm >>>>> >>>>> >>>>> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i-3.10.30/ >>>>> >>>>> >>>>> >>>>> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i-3.10.30-linux4kix/ >>>>> >>>>> >>>>> >>>>> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i/ >>>>> >>>>> >>>>> >>>>> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/files/ >>>>> /home/ubuntu/yocto/downloads/ >>>>> ERROR: Function failed: Fetcher failure for URL: 'file://defconfig'. >>>>> Unable to fetch URL from any source. >>>>> >>>>> >>>>> Now, the directory: >>>>> >>>>> >>>>> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i-3.10.30/ >>>>> >>>>> >>>>> >>>>> which is listed above, contains the "missing" file ("defconfig"). >>>>> >>>>> Hmm, strange... >>>>> >>>>> >>>>> >>>>> Here are my recipes: >>>>> >>>>> linux-cubox-i_3.10.30.inc: >>>>> ------------------------------------ >>>>> inherit kernel >>>>> require recipes-kernel/linux/linux-yocto.inc >>>>> >>>>> SUMMARY = "Linaro Kernel 3.10.30 with additional machine specific >>>>> patches" >>>>> >>>>> SRCBRANCH ?= "linux-linaro-lsk-mx6" >>>>> >>>>> FILESEXTRAPATHS_prepend += "${THISDIR}/${PN}-3.10.30:" >>>> >>>> Have you tried this variant ? >>>> >>>> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-3.10.30:" >>>> >>>> You need the := in the assignment to have it evaluate immediately and >>>> pick up the directory of your bbappend (who's subdir is the one that >>>> contains the defconfig). >>>> >>>> Bruce >>>> >>>> >>>>> >>>>> SRC_URI = "file://defconfig \ >>>>> file://videoin.cfg \ >>>>> file://networking.cfg \ >>>>> file://wlan.cfg \ >>>>> file://dm-crypt.cfg \ >>>>> file://no-caam.cfg \ >>>>> file://leds.cfg \ >>>>> file://mod-to-builtin.cfg \ >>>>> file://brcmfmac4330-sdio.bin \ >>>>> file://brcmfmac4330-sdio.txt \ >>>>> " >>>>> >>>>> do_configure_append () { >>>>> cd ${S} >>>>> mkdir firmware/brcm >>>>> cp ../brcmfmac4330-sdio.bin ./firmware/brcm/ >>>>> cp ../brcmfmac4330-sdio.txt ./firmware/brcm/ >>>>> } >>>>> >>>>> COMPATIBLE_MACHINE = "(cubox-i)" >>>>> >>>>> KERNEL_IMAGETYPE_cubox-i = "zImage" >>>>> KERNEL_DEVICETREE_cubox-i = "imx6dl-cubox-i.dtb imx6q-cubox-i.dtb" >>>>> >>>>> SRCREV_machine = "${SRCREV}" >>>>> ------------------------------------ >>>>> >>>>> >>>>> linux-cubox-i_3.10.30.bb: >>>>> ------------------------------------ >>>>> include linux-cubox-i_3.10.30.inc >>>>> >>>>> SRCREV = "592b2d941dc3ecb6335d6820757340ffb5a192c8" >>>>> #SRCREV = "860304ab6e749777523f3714d18c4c7d39b728fa" >>>>> LOCALVERSION = "-cubox-i+SolidRun+${SRCPV}" >>>>> >>>>> SRC_URI += >>>>> "git://github.com/SolidRun/linux-linaro-stable-mx6;branch=${SRCBRANCH}" >>>>> ------------------------------- >>>>> >>>>> >>>>> linux-cubox-i_3.10.30-linux4kix.bb: >>>>> ------------------------------------ >>>>> include linux-cubox-i_3.10.30.inc >>>>> >>>>> SRCREV = "a4ed70040f9dfdcdd6546a85c0477ecd1030e065" >>>>> LOCALVERSION = "-cubox-i+linux4kix+${SRCPV}" >>>>> >>>>> SRC_URI += >>>>> "git://github.com/linux4kix/linux-linaro-stable-mx6.git;branch=${SRCBRANCH}" >>>>> >>>>> >>>>> ------------------------------------ >>>>> >>>>> >>>> >>> >>> >> > > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Hmm, possible bug in poky? 2014-06-06 14:56 ` Neuer User 2014-06-06 15:12 ` Gary Thomas @ 2014-06-06 15:16 ` Bruce Ashfield 1 sibling, 0 replies; 7+ messages in thread From: Bruce Ashfield @ 2014-06-06 15:16 UTC (permalink / raw) To: Neuer User, yocto On 14-06-06 10:56 AM, Neuer User wrote: > Hi Bruce > > Thanks for the hint. I changed it, but the result is the same. > > Strange is really that it shows the directory as being searched through > but does not find the file that's contained?! > > Also, there are two "main" recipes, which both include the inc file. > This one throws warnings, but works: > > linux-cubox-i_3.10.30.bb > > This one throws warnings and then the error shown: > > linux-cubox-i_3.10.30-linux4kix.bb ${PN} is going to change between those two recipes, so the defconfig will need to be in a different directory for each recipe. But as Gary just suggested, getting a full directory listing in tree format would help clarify they layout you are using. Bruce > > Am I doing it right (now with the :=), or is there something > fundamentally wrong with the two recipes and the include file? > > Michael > > Am 06.06.2014 16:40, schrieb Bruce Ashfield: >> On 14-06-06 07:16 AM, Neuer User wrote: >>> I get the following error: >>> >>> WARNING: Failed to fetch URL file://defconfig, attempting MIRRORS if >>> available >>> ERROR: Fetcher failure: Unable to find file file://defconfig anywhere. >>> The paths that were searched were: >>> >>> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i-3.10.30/poky >>> >>> ... >>> >>> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/files/arm >>> >>> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i-3.10.30/ >>> >>> >>> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i-3.10.30-linux4kix/ >>> >>> >>> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i/ >>> >>> >>> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/files/ >>> /home/ubuntu/yocto/downloads/ >>> ERROR: Function failed: Fetcher failure for URL: 'file://defconfig'. >>> Unable to fetch URL from any source. >>> >>> >>> Now, the directory: >>> >>> >>> /home/ubuntu/yocto/sources/meta-omnisonix/recipes-kernel/linux/linux-cubox-i-3.10.30/ >>> >>> >>> which is listed above, contains the "missing" file ("defconfig"). >>> >>> Hmm, strange... >>> >>> >>> >>> Here are my recipes: >>> >>> linux-cubox-i_3.10.30.inc: >>> ------------------------------------ >>> inherit kernel >>> require recipes-kernel/linux/linux-yocto.inc >>> >>> SUMMARY = "Linaro Kernel 3.10.30 with additional machine specific >>> patches" >>> >>> SRCBRANCH ?= "linux-linaro-lsk-mx6" >>> >>> FILESEXTRAPATHS_prepend += "${THISDIR}/${PN}-3.10.30:" >> >> Have you tried this variant ? >> >> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-3.10.30:" >> >> You need the := in the assignment to have it evaluate immediately and >> pick up the directory of your bbappend (who's subdir is the one that >> contains the defconfig). >> >> Bruce >> >> >>> >>> SRC_URI = "file://defconfig \ >>> file://videoin.cfg \ >>> file://networking.cfg \ >>> file://wlan.cfg \ >>> file://dm-crypt.cfg \ >>> file://no-caam.cfg \ >>> file://leds.cfg \ >>> file://mod-to-builtin.cfg \ >>> file://brcmfmac4330-sdio.bin \ >>> file://brcmfmac4330-sdio.txt \ >>> " >>> >>> do_configure_append () { >>> cd ${S} >>> mkdir firmware/brcm >>> cp ../brcmfmac4330-sdio.bin ./firmware/brcm/ >>> cp ../brcmfmac4330-sdio.txt ./firmware/brcm/ >>> } >>> >>> COMPATIBLE_MACHINE = "(cubox-i)" >>> >>> KERNEL_IMAGETYPE_cubox-i = "zImage" >>> KERNEL_DEVICETREE_cubox-i = "imx6dl-cubox-i.dtb imx6q-cubox-i.dtb" >>> >>> SRCREV_machine = "${SRCREV}" >>> ------------------------------------ >>> >>> >>> linux-cubox-i_3.10.30.bb: >>> ------------------------------------ >>> include linux-cubox-i_3.10.30.inc >>> >>> SRCREV = "592b2d941dc3ecb6335d6820757340ffb5a192c8" >>> #SRCREV = "860304ab6e749777523f3714d18c4c7d39b728fa" >>> LOCALVERSION = "-cubox-i+SolidRun+${SRCPV}" >>> >>> SRC_URI += >>> "git://github.com/SolidRun/linux-linaro-stable-mx6;branch=${SRCBRANCH}" >>> ------------------------------- >>> >>> >>> linux-cubox-i_3.10.30-linux4kix.bb: >>> ------------------------------------ >>> include linux-cubox-i_3.10.30.inc >>> >>> SRCREV = "a4ed70040f9dfdcdd6546a85c0477ecd1030e065" >>> LOCALVERSION = "-cubox-i+linux4kix+${SRCPV}" >>> >>> SRC_URI += >>> "git://github.com/linux4kix/linux-linaro-stable-mx6.git;branch=${SRCBRANCH}" >>> >>> ------------------------------------ >>> >>> >> > > ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-06-06 21:00 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-06-06 11:16 Hmm, possible bug in poky? Neuer User 2014-06-06 14:40 ` Bruce Ashfield 2014-06-06 14:56 ` Neuer User 2014-06-06 15:12 ` Gary Thomas 2014-06-06 15:36 ` Neuer User 2014-06-06 20:59 ` Bruce Ashfield 2014-06-06 15:16 ` Bruce Ashfield
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.