* Problems fetching branch for linux-yocto-custom
@ 2013-06-12 19:10 Bryan Evenson
2013-06-12 19:14 ` Bruce Ashfield
0 siblings, 1 reply; 10+ messages in thread
From: Bryan Evenson @ 2013-06-12 19:10 UTC (permalink / raw)
To: yocto@yoctoproject.org
All,
I have a custom linux recipe that I would like to fetch the head of a specific branch on a Git repository. During the build it always fetches the master branch, not the branch I am specifying. I've tried adding every relavant flag to the SRC_URI that I can think of and it still fetches and builds the master branch. Any ideas on what I am doing wrong?
Here is my build environment details:
Build Configuration:
BB_VERSION = "1.16.0"
TARGET_ARCH = "arm"
TARGET_OS = "linux-gnueabi"
MACHINE = "at91sam9x5ek"
DISTRO = "poky"
DISTRO_VERSION = "1.3.2"
TUNE_FEATURES = "armv5 dsp thumb arm926ejs"
TARGET_FPU = "soft"
meta-atmel = "master:a3b649c46c6f48cea4c95d35028e950d8d5b3a13"
meta
meta-yocto
meta-yocto-bsp = "danny:c3505828f267ca68aaf454355466f54772545a22"
-----------------------------------------
Here is my kernel recipe (Removed the boilerplate comments at top of linux-yocto-custom recipe to reduce clutter):
inherit kernel
require recipes-kernel/linux/linux-yocto.inc
# Override SRC_URI in a bbappend file to point at a different source
# tree if you do not want to build from Linus' tree.
SRC_URI = "git://github.com/linux4sam/linux-at91.git;branch=linux-3.9-at91;tag=dcdf169e24c0cb6d7dc69e0a09d2395934e95075;protocol=git;nocheckout=1"
SRC_URI += "file://${MACHINE}/defconfig"
LINUX_VERSION ?= "3.9.0"
LINUX_VERSION_EXTENSION ?= "-custom"
# Override SRCREV to point to a different commit in a bbappend file to
# build a different release of the Linux kernel.
# tag: v3.4 76e10d158efb6d4516018846f60c2ab5501900bc
# tag: linux-3.9-at91 as of 2013-06-12, dcdf169e24c0cb6d7dc69e0a09d2395934e95075
SRCREV="dcdf169e24c0cb6d7dc69e0a09d2395934e95075"
PV = "${LINUX_VERSION}+${SRCREV}"
PR = "r1"
# Override COMPATIBLE_MACHINE to include your machine in a bbappend
# file. Leaving it empty here ensures an early explicit build failure.
COMPATIBLE_MACHINE = "(sama5d3xek|at91sam9x5ek)"
---------------------------------------------
And here is my bbappend:
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
COMPATIBLE_MACHINE_sama5d3xek = "at91sama5d3xek"
COMPATIBLE_MACHINE_at91sam9x5ek = "at91sam9x5ek"
Any insight would be appreciated.
Thanks,
Bryan
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: Problems fetching branch for linux-yocto-custom 2013-06-12 19:10 Problems fetching branch for linux-yocto-custom Bryan Evenson @ 2013-06-12 19:14 ` Bruce Ashfield 2013-06-12 19:37 ` Bryan Evenson 0 siblings, 1 reply; 10+ messages in thread From: Bruce Ashfield @ 2013-06-12 19:14 UTC (permalink / raw) To: Bryan Evenson; +Cc: yocto@yoctoproject.org On Wed, Jun 12, 2013 at 3:10 PM, Bryan Evenson <bevenson@melinkcorp.com> wrote: > All, > > I have a custom linux recipe that I would like to fetch the head of a specific branch on a Git repository. During the build it always fetches the master branch, not the branch I am specifying. I've tried adding every relavant flag to the SRC_URI that I can think of and it still fetches and builds the master branch. Any ideas on what I am doing wrong? > What release are you using ? Have you tried setting KBRANCH ? Cheers, Bruce > Here is my build environment details: > > Build Configuration: > BB_VERSION = "1.16.0" > TARGET_ARCH = "arm" > TARGET_OS = "linux-gnueabi" > MACHINE = "at91sam9x5ek" > DISTRO = "poky" > DISTRO_VERSION = "1.3.2" > TUNE_FEATURES = "armv5 dsp thumb arm926ejs" > TARGET_FPU = "soft" > meta-atmel = "master:a3b649c46c6f48cea4c95d35028e950d8d5b3a13" > meta > meta-yocto > meta-yocto-bsp = "danny:c3505828f267ca68aaf454355466f54772545a22" > > ----------------------------------------- > > Here is my kernel recipe (Removed the boilerplate comments at top of linux-yocto-custom recipe to reduce clutter): > > inherit kernel > require recipes-kernel/linux/linux-yocto.inc > > # Override SRC_URI in a bbappend file to point at a different source > # tree if you do not want to build from Linus' tree. > SRC_URI = "git://github.com/linux4sam/linux-at91.git;branch=linux-3.9-at91;tag=dcdf169e24c0cb6d7dc69e0a09d2395934e95075;protocol=git;nocheckout=1" > SRC_URI += "file://${MACHINE}/defconfig" > > LINUX_VERSION ?= "3.9.0" > LINUX_VERSION_EXTENSION ?= "-custom" > > # Override SRCREV to point to a different commit in a bbappend file to > # build a different release of the Linux kernel. > # tag: v3.4 76e10d158efb6d4516018846f60c2ab5501900bc > # tag: linux-3.9-at91 as of 2013-06-12, dcdf169e24c0cb6d7dc69e0a09d2395934e95075 > SRCREV="dcdf169e24c0cb6d7dc69e0a09d2395934e95075" > PV = "${LINUX_VERSION}+${SRCREV}" > > PR = "r1" > > # Override COMPATIBLE_MACHINE to include your machine in a bbappend > # file. Leaving it empty here ensures an early explicit build failure. > COMPATIBLE_MACHINE = "(sama5d3xek|at91sam9x5ek)" > > --------------------------------------------- > > And here is my bbappend: > FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" > COMPATIBLE_MACHINE_sama5d3xek = "at91sama5d3xek" > COMPATIBLE_MACHINE_at91sam9x5ek = "at91sam9x5ek" > > Any insight would be appreciated. > > Thanks, > Bryan > > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto -- "Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end" ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problems fetching branch for linux-yocto-custom 2013-06-12 19:14 ` Bruce Ashfield @ 2013-06-12 19:37 ` Bryan Evenson 2013-06-12 19:44 ` Bruce Ashfield 2013-06-12 20:41 ` Trevor Woerner 0 siblings, 2 replies; 10+ messages in thread From: Bryan Evenson @ 2013-06-12 19:37 UTC (permalink / raw) To: Bruce Ashfield; +Cc: yocto@yoctoproject.org > -----Original Message----- > From: Bruce Ashfield [mailto:bruce.ashfield@gmail.com] > Sent: Wednesday, June 12, 2013 3:15 PM > To: Bryan Evenson > Cc: yocto@yoctoproject.org > Subject: Re: [yocto] Problems fetching branch for linux-yocto-custom > > On Wed, Jun 12, 2013 at 3:10 PM, Bryan Evenson > <bevenson@melinkcorp.com> wrote: > > All, > > > > I have a custom linux recipe that I would like to fetch the head of a > specific branch on a Git repository. During the build it always > fetches the master branch, not the branch I am specifying. I've tried > adding every relavant flag to the SRC_URI that I can think of and it > still fetches and builds the master branch. Any ideas on what I am > doing wrong? > > > > What release are you using ? > > Have you tried setting KBRANCH ? I didn't know about the KBRANCH variable. That sure helped. I changed my recipe as shown below, and it is switching branches and checking out the specified commit. Thanks! Bryan > > Cheers, > > Bruce > > > Here is my build environment details: > > > > Build Configuration: > > BB_VERSION = "1.16.0" > > TARGET_ARCH = "arm" > > TARGET_OS = "linux-gnueabi" > > MACHINE = "at91sam9x5ek" > > DISTRO = "poky" > > DISTRO_VERSION = "1.3.2" > > TUNE_FEATURES = "armv5 dsp thumb arm926ejs" > > TARGET_FPU = "soft" > > meta-atmel = "master:a3b649c46c6f48cea4c95d35028e950d8d5b3a13" > > meta > > meta-yocto > > meta-yocto-bsp = "danny:c3505828f267ca68aaf454355466f54772545a22" > > > > ----------------------------------------- > > > > Here is my kernel recipe (Removed the boilerplate comments at top of > linux-yocto-custom recipe to reduce clutter): > > > > inherit kernel > > require recipes-kernel/linux/linux-yocto.inc > > # Added KBRANCH spec KBRANCH = "linux-3.9-at91" > > # Override SRC_URI in a bbappend file to point at a different source > # > > tree if you do not want to build from Linus' tree. > > SRC_URI = "git://github.com/linux4sam/linux-at91.git;branch=linux- > 3.9- > at91;tag=dcdf169e24c0cb6d7dc69e0a09d2395934e95075;protocol=git;nochecko > ut=1" # Changed SRC_URI to following SRC_URI = "git://github.com/linux4sam/linux-at91.git;branch=${KBRANCH};protocol=git;nocheckout=1" > > SRC_URI += "file://${MACHINE}/defconfig" > > > > LINUX_VERSION ?= "3.9.0" > > LINUX_VERSION_EXTENSION ?= "-custom" > > > > # Override SRCREV to point to a different commit in a bbappend file > to > > # build a different release of the Linux kernel. > > # tag: v3.4 76e10d158efb6d4516018846f60c2ab5501900bc > > # tag: linux-3.9-at91 as of 2013-06-12, > > dcdf169e24c0cb6d7dc69e0a09d2395934e95075 > > SRCREV="dcdf169e24c0cb6d7dc69e0a09d2395934e95075" > > PV = "${LINUX_VERSION}+${SRCREV}" > > > > PR = "r1" > > > > # Override COMPATIBLE_MACHINE to include your machine in a bbappend # > > file. Leaving it empty here ensures an early explicit build failure. > > COMPATIBLE_MACHINE = "(sama5d3xek|at91sam9x5ek)" > > > > --------------------------------------------- > > > > And here is my bbappend: > > FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" > > COMPATIBLE_MACHINE_sama5d3xek = "at91sama5d3xek" > > COMPATIBLE_MACHINE_at91sam9x5ek = "at91sam9x5ek" > > > > Any insight would be appreciated. > > > > Thanks, > > Bryan > > > > _______________________________________________ > > yocto mailing list > > yocto@yoctoproject.org > > https://lists.yoctoproject.org/listinfo/yocto > > > > -- > "Thou shalt not follow the NULL pointer, for chaos and madness await > thee at its end" ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problems fetching branch for linux-yocto-custom 2013-06-12 19:37 ` Bryan Evenson @ 2013-06-12 19:44 ` Bruce Ashfield 2013-06-12 19:47 ` Bryan Evenson 2013-06-12 20:41 ` Trevor Woerner 1 sibling, 1 reply; 10+ messages in thread From: Bruce Ashfield @ 2013-06-12 19:44 UTC (permalink / raw) To: Bryan Evenson; +Cc: yocto@yoctoproject.org On 13-06-12 03:37 PM, Bryan Evenson wrote: > > >> -----Original Message----- >> From: Bruce Ashfield [mailto:bruce.ashfield@gmail.com] >> Sent: Wednesday, June 12, 2013 3:15 PM >> To: Bryan Evenson >> Cc: yocto@yoctoproject.org >> Subject: Re: [yocto] Problems fetching branch for linux-yocto-custom >> >> On Wed, Jun 12, 2013 at 3:10 PM, Bryan Evenson >> <bevenson@melinkcorp.com> wrote: >>> All, >>> >>> I have a custom linux recipe that I would like to fetch the head of a >> specific branch on a Git repository. During the build it always >> fetches the master branch, not the branch I am specifying. I've tried >> adding every relavant flag to the SRC_URI that I can think of and it >> still fetches and builds the master branch. Any ideas on what I am >> doing wrong? >>> >> >> What release are you using ? >> >> Have you tried setting KBRANCH ? > > I didn't know about the KBRANCH variable. That sure helped. I changed my recipe as shown below, and it is switching branches and checking out the specified commit. > Hmmm. I swear it had been documented, that's a gap. I'll double check and get things updated if it is missing. Bruce > Thanks! > Bryan > >> >> Cheers, >> >> Bruce >> >>> Here is my build environment details: >>> >>> Build Configuration: >>> BB_VERSION = "1.16.0" >>> TARGET_ARCH = "arm" >>> TARGET_OS = "linux-gnueabi" >>> MACHINE = "at91sam9x5ek" >>> DISTRO = "poky" >>> DISTRO_VERSION = "1.3.2" >>> TUNE_FEATURES = "armv5 dsp thumb arm926ejs" >>> TARGET_FPU = "soft" >>> meta-atmel = "master:a3b649c46c6f48cea4c95d35028e950d8d5b3a13" >>> meta >>> meta-yocto >>> meta-yocto-bsp = "danny:c3505828f267ca68aaf454355466f54772545a22" >>> >>> ----------------------------------------- >>> >>> Here is my kernel recipe (Removed the boilerplate comments at top of >> linux-yocto-custom recipe to reduce clutter): >>> >>> inherit kernel >>> require recipes-kernel/linux/linux-yocto.inc >>> > # Added KBRANCH spec > KBRANCH = "linux-3.9-at91" >>> # Override SRC_URI in a bbappend file to point at a different source >> # >>> tree if you do not want to build from Linus' tree. >>> SRC_URI = "git://github.com/linux4sam/linux-at91.git;branch=linux- >> 3.9- >> at91;tag=dcdf169e24c0cb6d7dc69e0a09d2395934e95075;protocol=git;nochecko >> ut=1" > > # Changed SRC_URI to following > SRC_URI = "git://github.com/linux4sam/linux-at91.git;branch=${KBRANCH};protocol=git;nocheckout=1" > >>> SRC_URI += "file://${MACHINE}/defconfig" >>> >>> LINUX_VERSION ?= "3.9.0" >>> LINUX_VERSION_EXTENSION ?= "-custom" >>> >>> # Override SRCREV to point to a different commit in a bbappend file >> to >>> # build a different release of the Linux kernel. >>> # tag: v3.4 76e10d158efb6d4516018846f60c2ab5501900bc >>> # tag: linux-3.9-at91 as of 2013-06-12, >>> dcdf169e24c0cb6d7dc69e0a09d2395934e95075 >>> SRCREV="dcdf169e24c0cb6d7dc69e0a09d2395934e95075" >>> PV = "${LINUX_VERSION}+${SRCREV}" >>> >>> PR = "r1" >>> >>> # Override COMPATIBLE_MACHINE to include your machine in a bbappend # >>> file. Leaving it empty here ensures an early explicit build failure. >>> COMPATIBLE_MACHINE = "(sama5d3xek|at91sam9x5ek)" >>> >>> --------------------------------------------- >>> >>> And here is my bbappend: >>> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" >>> COMPATIBLE_MACHINE_sama5d3xek = "at91sama5d3xek" >>> COMPATIBLE_MACHINE_at91sam9x5ek = "at91sam9x5ek" >>> >>> Any insight would be appreciated. >>> >>> Thanks, >>> Bryan >>> >>> _______________________________________________ >>> yocto mailing list >>> yocto@yoctoproject.org >>> https://lists.yoctoproject.org/listinfo/yocto >> >> >> >> -- >> "Thou shalt not follow the NULL pointer, for chaos and madness await >> thee at its end" > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problems fetching branch for linux-yocto-custom 2013-06-12 19:44 ` Bruce Ashfield @ 2013-06-12 19:47 ` Bryan Evenson 2013-06-12 19:52 ` Bruce Ashfield 0 siblings, 1 reply; 10+ messages in thread From: Bryan Evenson @ 2013-06-12 19:47 UTC (permalink / raw) To: Bruce Ashfield; +Cc: yocto@yoctoproject.org > -----Original Message----- > From: Bruce Ashfield [mailto:bruce.ashfield@windriver.com] > Sent: Wednesday, June 12, 2013 3:44 PM > To: Bryan Evenson > Cc: Bruce Ashfield; yocto@yoctoproject.org > Subject: Re: [yocto] Problems fetching branch for linux-yocto-custom > > On 13-06-12 03:37 PM, Bryan Evenson wrote: > > > > > >> -----Original Message----- > >> From: Bruce Ashfield [mailto:bruce.ashfield@gmail.com] > >> Sent: Wednesday, June 12, 2013 3:15 PM > >> To: Bryan Evenson > >> Cc: yocto@yoctoproject.org > >> Subject: Re: [yocto] Problems fetching branch for linux-yocto-custom > >> > >> On Wed, Jun 12, 2013 at 3:10 PM, Bryan Evenson > >> <bevenson@melinkcorp.com> wrote: > >>> All, > >>> > >>> I have a custom linux recipe that I would like to fetch the head of > >>> a > >> specific branch on a Git repository. During the build it always > >> fetches the master branch, not the branch I am specifying. I've > >> tried adding every relavant flag to the SRC_URI that I can think of > >> and it still fetches and builds the master branch. Any ideas on > what > >> I am doing wrong? > >>> > >> > >> What release are you using ? > >> > >> Have you tried setting KBRANCH ? > > > > I didn't know about the KBRANCH variable. That sure helped. I > changed my recipe as shown below, and it is switching branches and > checking out the specified commit. > > > > Hmmm. I swear it had been documented, that's a gap. I'll double check > and get things updated if it is missing. No, KBRANCH is documented; I found it in the mega-manual after the fact. It's just a variable I hadn't used yet so I didn't know to look for it. No amount of documentation can fix that problem. -Bryan > > Bruce > > > Thanks! > > Bryan > > > >> > >> Cheers, > >> > >> Bruce > >> > >>> Here is my build environment details: > >>> > >>> Build Configuration: > >>> BB_VERSION = "1.16.0" > >>> TARGET_ARCH = "arm" > >>> TARGET_OS = "linux-gnueabi" > >>> MACHINE = "at91sam9x5ek" > >>> DISTRO = "poky" > >>> DISTRO_VERSION = "1.3.2" > >>> TUNE_FEATURES = "armv5 dsp thumb arm926ejs" > >>> TARGET_FPU = "soft" > >>> meta-atmel = > "master:a3b649c46c6f48cea4c95d35028e950d8d5b3a13" > >>> meta > >>> meta-yocto > >>> meta-yocto-bsp = > "danny:c3505828f267ca68aaf454355466f54772545a22" > >>> > >>> ----------------------------------------- > >>> > >>> Here is my kernel recipe (Removed the boilerplate comments at top > of > >> linux-yocto-custom recipe to reduce clutter): > >>> > >>> inherit kernel > >>> require recipes-kernel/linux/linux-yocto.inc > >>> > > # Added KBRANCH spec > > KBRANCH = "linux-3.9-at91" > >>> # Override SRC_URI in a bbappend file to point at a different > source > >> # > >>> tree if you do not want to build from Linus' tree. > >>> SRC_URI = "git://github.com/linux4sam/linux-at91.git;branch=linux- > >> 3.9- > >> > at91;tag=dcdf169e24c0cb6d7dc69e0a09d2395934e95075;protocol=git;nochec > >> ko > >> ut=1" > > > > # Changed SRC_URI to following > > SRC_URI = "git://github.com/linux4sam/linux- > at91.git;branch=${KBRANCH};protocol=git;nocheckout=1" > > > >>> SRC_URI += "file://${MACHINE}/defconfig" > >>> > >>> LINUX_VERSION ?= "3.9.0" > >>> LINUX_VERSION_EXTENSION ?= "-custom" > >>> > >>> # Override SRCREV to point to a different commit in a bbappend file > >> to > >>> # build a different release of the Linux kernel. > >>> # tag: v3.4 76e10d158efb6d4516018846f60c2ab5501900bc > >>> # tag: linux-3.9-at91 as of 2013-06-12, > >>> dcdf169e24c0cb6d7dc69e0a09d2395934e95075 > >>> SRCREV="dcdf169e24c0cb6d7dc69e0a09d2395934e95075" > >>> PV = "${LINUX_VERSION}+${SRCREV}" > >>> > >>> PR = "r1" > >>> > >>> # Override COMPATIBLE_MACHINE to include your machine in a bbappend > >>> # file. Leaving it empty here ensures an early explicit build > failure. > >>> COMPATIBLE_MACHINE = "(sama5d3xek|at91sam9x5ek)" > >>> > >>> --------------------------------------------- > >>> > >>> And here is my bbappend: > >>> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" > >>> COMPATIBLE_MACHINE_sama5d3xek = "at91sama5d3xek" > >>> COMPATIBLE_MACHINE_at91sam9x5ek = "at91sam9x5ek" > >>> > >>> Any insight would be appreciated. > >>> > >>> Thanks, > >>> Bryan > >>> > >>> _______________________________________________ > >>> yocto mailing list > >>> yocto@yoctoproject.org > >>> https://lists.yoctoproject.org/listinfo/yocto > >> > >> > >> > >> -- > >> "Thou shalt not follow the NULL pointer, for chaos and madness await > >> thee at its end" > > _______________________________________________ > > yocto mailing list > > yocto@yoctoproject.org > > https://lists.yoctoproject.org/listinfo/yocto > > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problems fetching branch for linux-yocto-custom 2013-06-12 19:47 ` Bryan Evenson @ 2013-06-12 19:52 ` Bruce Ashfield 0 siblings, 0 replies; 10+ messages in thread From: Bruce Ashfield @ 2013-06-12 19:52 UTC (permalink / raw) To: Bryan Evenson; +Cc: yocto@yoctoproject.org On 13-06-12 03:47 PM, Bryan Evenson wrote: > > >> -----Original Message----- >> From: Bruce Ashfield [mailto:bruce.ashfield@windriver.com] >> Sent: Wednesday, June 12, 2013 3:44 PM >> To: Bryan Evenson >> Cc: Bruce Ashfield; yocto@yoctoproject.org >> Subject: Re: [yocto] Problems fetching branch for linux-yocto-custom >> >> On 13-06-12 03:37 PM, Bryan Evenson wrote: >>> >>> >>>> -----Original Message----- >>>> From: Bruce Ashfield [mailto:bruce.ashfield@gmail.com] >>>> Sent: Wednesday, June 12, 2013 3:15 PM >>>> To: Bryan Evenson >>>> Cc: yocto@yoctoproject.org >>>> Subject: Re: [yocto] Problems fetching branch for linux-yocto-custom >>>> >>>> On Wed, Jun 12, 2013 at 3:10 PM, Bryan Evenson >>>> <bevenson@melinkcorp.com> wrote: >>>>> All, >>>>> >>>>> I have a custom linux recipe that I would like to fetch the head of >>>>> a >>>> specific branch on a Git repository. During the build it always >>>> fetches the master branch, not the branch I am specifying. I've >>>> tried adding every relavant flag to the SRC_URI that I can think of >>>> and it still fetches and builds the master branch. Any ideas on >> what >>>> I am doing wrong? >>>>> >>>> >>>> What release are you using ? >>>> >>>> Have you tried setting KBRANCH ? >>> >>> I didn't know about the KBRANCH variable. That sure helped. I >> changed my recipe as shown below, and it is switching branches and >> checking out the specified commit. >>> >> >> Hmmm. I swear it had been documented, that's a gap. I'll double check >> and get things updated if it is missing. > > No, KBRANCH is documented; I found it in the mega-manual after the fact. It's just a variable I hadn't used yet so I didn't know to look for it. No amount of documentation can fix that problem. > Aha. Thanks for following up. I'm just glad you are up and running, it was a good question and something I'd like to make completely transparent in the upcoming 1.5 release. Cheers, Bruce > -Bryan > >> >> Bruce >> >>> Thanks! >>> Bryan >>> >>>> >>>> Cheers, >>>> >>>> Bruce >>>> >>>>> Here is my build environment details: >>>>> >>>>> Build Configuration: >>>>> BB_VERSION = "1.16.0" >>>>> TARGET_ARCH = "arm" >>>>> TARGET_OS = "linux-gnueabi" >>>>> MACHINE = "at91sam9x5ek" >>>>> DISTRO = "poky" >>>>> DISTRO_VERSION = "1.3.2" >>>>> TUNE_FEATURES = "armv5 dsp thumb arm926ejs" >>>>> TARGET_FPU = "soft" >>>>> meta-atmel = >> "master:a3b649c46c6f48cea4c95d35028e950d8d5b3a13" >>>>> meta >>>>> meta-yocto >>>>> meta-yocto-bsp = >> "danny:c3505828f267ca68aaf454355466f54772545a22" >>>>> >>>>> ----------------------------------------- >>>>> >>>>> Here is my kernel recipe (Removed the boilerplate comments at top >> of >>>> linux-yocto-custom recipe to reduce clutter): >>>>> >>>>> inherit kernel >>>>> require recipes-kernel/linux/linux-yocto.inc >>>>> >>> # Added KBRANCH spec >>> KBRANCH = "linux-3.9-at91" >>>>> # Override SRC_URI in a bbappend file to point at a different >> source >>>> # >>>>> tree if you do not want to build from Linus' tree. >>>>> SRC_URI = "git://github.com/linux4sam/linux-at91.git;branch=linux- >>>> 3.9- >>>> >> at91;tag=dcdf169e24c0cb6d7dc69e0a09d2395934e95075;protocol=git;nochec >>>> ko >>>> ut=1" >>> >>> # Changed SRC_URI to following >>> SRC_URI = "git://github.com/linux4sam/linux- >> at91.git;branch=${KBRANCH};protocol=git;nocheckout=1" >>> >>>>> SRC_URI += "file://${MACHINE}/defconfig" >>>>> >>>>> LINUX_VERSION ?= "3.9.0" >>>>> LINUX_VERSION_EXTENSION ?= "-custom" >>>>> >>>>> # Override SRCREV to point to a different commit in a bbappend file >>>> to >>>>> # build a different release of the Linux kernel. >>>>> # tag: v3.4 76e10d158efb6d4516018846f60c2ab5501900bc >>>>> # tag: linux-3.9-at91 as of 2013-06-12, >>>>> dcdf169e24c0cb6d7dc69e0a09d2395934e95075 >>>>> SRCREV="dcdf169e24c0cb6d7dc69e0a09d2395934e95075" >>>>> PV = "${LINUX_VERSION}+${SRCREV}" >>>>> >>>>> PR = "r1" >>>>> >>>>> # Override COMPATIBLE_MACHINE to include your machine in a bbappend >>>>> # file. Leaving it empty here ensures an early explicit build >> failure. >>>>> COMPATIBLE_MACHINE = "(sama5d3xek|at91sam9x5ek)" >>>>> >>>>> --------------------------------------------- >>>>> >>>>> And here is my bbappend: >>>>> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" >>>>> COMPATIBLE_MACHINE_sama5d3xek = "at91sama5d3xek" >>>>> COMPATIBLE_MACHINE_at91sam9x5ek = "at91sam9x5ek" >>>>> >>>>> Any insight would be appreciated. >>>>> >>>>> Thanks, >>>>> Bryan >>>>> >>>>> _______________________________________________ >>>>> yocto mailing list >>>>> yocto@yoctoproject.org >>>>> https://lists.yoctoproject.org/listinfo/yocto >>>> >>>> >>>> >>>> -- >>>> "Thou shalt not follow the NULL pointer, for chaos and madness await >>>> thee at its end" >>> _______________________________________________ >>> yocto mailing list >>> yocto@yoctoproject.org >>> https://lists.yoctoproject.org/listinfo/yocto >>> > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problems fetching branch for linux-yocto-custom 2013-06-12 19:37 ` Bryan Evenson 2013-06-12 19:44 ` Bruce Ashfield @ 2013-06-12 20:41 ` Trevor Woerner 2013-06-12 20:54 ` Bryan Evenson 2013-06-12 21:14 ` Bruce Ashfield 1 sibling, 2 replies; 10+ messages in thread From: Trevor Woerner @ 2013-06-12 20:41 UTC (permalink / raw) To: Bryan Evenson; +Cc: yocto@yoctoproject.org On Wed, Jun 12, 2013 at 3:37 PM, Bryan Evenson <bevenson@melinkcorp.com> wrote: > # Added KBRANCH spec > KBRANCH = "linux-3.9-at91" >> > # Override SRC_URI in a bbappend file to point at a different source >> # >> > tree if you do not want to build from Linus' tree. >> > SRC_URI = "git://github.com/linux4sam/linux-at91.git;branch=linux- >> 3.9- >> at91;tag=dcdf169e24c0cb6d7dc69e0a09d2395934e95075;protocol=git;nochecko >> ut=1" > > # Changed SRC_URI to following > SRC_URI = "git://github.com/linux4sam/linux-at91.git;branch=${KBRANCH};protocol=git;nocheckout=1" It looks like all you did was to define the string "linux-3.9-at91" in its own variable, put that in your SRC_URI string, and remove the "tag=..." field. Would your original recipe have worked if all you did was remove the "tag=..." field? Is KBRANCH being used somewhere else? Doesn't bitbake's "git" fetcher already have a generic way of specifying a branch? Why would a kernel recipe need to also define a branch variable? Do non-kernel recipes also need to define some kind of branch variable too? ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problems fetching branch for linux-yocto-custom 2013-06-12 20:41 ` Trevor Woerner @ 2013-06-12 20:54 ` Bryan Evenson 2013-06-12 21:16 ` Bruce Ashfield 2013-06-12 21:14 ` Bruce Ashfield 1 sibling, 1 reply; 10+ messages in thread From: Bryan Evenson @ 2013-06-12 20:54 UTC (permalink / raw) To: Trevor Woerner; +Cc: yocto@yoctoproject.org > -----Original Message----- > From: Trevor Woerner [mailto:twoerner@gmail.com] > Sent: Wednesday, June 12, 2013 4:42 PM > To: Bryan Evenson > Cc: Bruce Ashfield; yocto@yoctoproject.org > Subject: Re: [yocto] Problems fetching branch for linux-yocto-custom > > On Wed, Jun 12, 2013 at 3:37 PM, Bryan Evenson > <bevenson@melinkcorp.com> wrote: > > # Added KBRANCH spec > > KBRANCH = "linux-3.9-at91" > >> > # Override SRC_URI in a bbappend file to point at a different > >> > source > >> # > >> > tree if you do not want to build from Linus' tree. > >> > SRC_URI = "git://github.com/linux4sam/linux-at91.git;branch=linux- > >> 3.9- > >> > at91;tag=dcdf169e24c0cb6d7dc69e0a09d2395934e95075;protocol=git;nochec > >> ko > >> ut=1" > > > > # Changed SRC_URI to following > > SRC_URI = "git://github.com/linux4sam/linux- > at91.git;branch=${KBRANCH};protocol=git;nocheckout=1" > > It looks like all you did was to define the string "linux-3.9-at91" in > its own variable, put that in your SRC_URI string, and remove the > "tag=..." field. Would your original recipe have worked if all you did > was remove the "tag=..." field? > > Is KBRANCH being used somewhere else? Doesn't bitbake's "git" fetcher > already have a generic way of specifying a branch? Why would a kernel > recipe need to also define a branch variable? Do non-kernel recipes > also need to define some kind of branch variable too? From looking through meta/classes/kernel-yocto.bbclass, I see KBRANCH being used a lot in reference to the specific branch to be checked out. KBRANCH_DEFAULT defines the default branch (which defaults to "master") so if you don't specify KBRANCH, then it'll checkout the KBRANCH_DEFAULT branch. With that said, I'm wondering what would happen if I specified KBRANCH but didn't put the "branch=${KBRANCH}" in the SRC_URI. Is this branch= variable from the SRC_URI being used for the kernel? -Bryan ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problems fetching branch for linux-yocto-custom 2013-06-12 20:54 ` Bryan Evenson @ 2013-06-12 21:16 ` Bruce Ashfield 0 siblings, 0 replies; 10+ messages in thread From: Bruce Ashfield @ 2013-06-12 21:16 UTC (permalink / raw) To: Bryan Evenson; +Cc: yocto@yoctoproject.org On 13-06-12 4:54 PM, Bryan Evenson wrote: > > >> -----Original Message----- >> From: Trevor Woerner [mailto:twoerner@gmail.com] >> Sent: Wednesday, June 12, 2013 4:42 PM >> To: Bryan Evenson >> Cc: Bruce Ashfield; yocto@yoctoproject.org >> Subject: Re: [yocto] Problems fetching branch for linux-yocto-custom >> >> On Wed, Jun 12, 2013 at 3:37 PM, Bryan Evenson >> <bevenson@melinkcorp.com> wrote: >>> # Added KBRANCH spec >>> KBRANCH = "linux-3.9-at91" >>>>> # Override SRC_URI in a bbappend file to point at a different >>>>> source >>>> # >>>>> tree if you do not want to build from Linus' tree. >>>>> SRC_URI = "git://github.com/linux4sam/linux-at91.git;branch=linux- >>>> 3.9- >>>> >> at91;tag=dcdf169e24c0cb6d7dc69e0a09d2395934e95075;protocol=git;nochec >>>> ko >>>> ut=1" >>> >>> # Changed SRC_URI to following >>> SRC_URI = "git://github.com/linux4sam/linux- >> at91.git;branch=${KBRANCH};protocol=git;nocheckout=1" >> >> It looks like all you did was to define the string "linux-3.9-at91" in >> its own variable, put that in your SRC_URI string, and remove the >> "tag=..." field. Would your original recipe have worked if all you did >> was remove the "tag=..." field? >> >> Is KBRANCH being used somewhere else? Doesn't bitbake's "git" fetcher >> already have a generic way of specifying a branch? Why would a kernel >> recipe need to also define a branch variable? Do non-kernel recipes >> also need to define some kind of branch variable too? > > From looking through meta/classes/kernel-yocto.bbclass, I see KBRANCH being used a lot in reference to the specific branch to be checked out. KBRANCH_DEFAULT defines the default branch (which defaults to "master") so if you don't specify KBRANCH, then it'll checkout the KBRANCH_DEFAULT branch. > > With that said, I'm wondering what would happen if I specified KBRANCH but didn't put the "branch=${KBRANCH}" in the SRC_URI. Is this branch= variable from the SRC_URI being used for the kernel? > There are compatibility checks that will pick up branch, and set KBRANCH on your behalf if you only use branch= in the SRC_URI, but there are limitations since clobbering a KBRANCH variable isn't always possible due to when they are expanded (i.e. recipe parse time). Cheers, Bruce > -Bryan > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problems fetching branch for linux-yocto-custom 2013-06-12 20:41 ` Trevor Woerner 2013-06-12 20:54 ` Bryan Evenson @ 2013-06-12 21:14 ` Bruce Ashfield 1 sibling, 0 replies; 10+ messages in thread From: Bruce Ashfield @ 2013-06-12 21:14 UTC (permalink / raw) To: Trevor Woerner; +Cc: yocto@yoctoproject.org On 13-06-12 4:41 PM, Trevor Woerner wrote: > On Wed, Jun 12, 2013 at 3:37 PM, Bryan Evenson <bevenson@melinkcorp.com> wrote: >> # Added KBRANCH spec >> KBRANCH = "linux-3.9-at91" >>>> # Override SRC_URI in a bbappend file to point at a different source >>> # >>>> tree if you do not want to build from Linus' tree. >>>> SRC_URI = "git://github.com/linux4sam/linux-at91.git;branch=linux- >>> 3.9- >>> at91;tag=dcdf169e24c0cb6d7dc69e0a09d2395934e95075;protocol=git;nochecko >>> ut=1" >> >> # Changed SRC_URI to following >> SRC_URI = "git://github.com/linux4sam/linux-at91.git;branch=${KBRANCH};protocol=git;nocheckout=1" > > It looks like all you did was to define the string "linux-3.9-at91" in > its own variable, put that in your SRC_URI string, and remove the > "tag=..." field. Would your original recipe have worked if all you did > was remove the "tag=..." field? > > Is KBRANCH being used somewhere else? Doesn't bitbake's "git" fetcher > already have a generic way of specifying a branch? Why would a kernel > recipe need to also define a branch variable? Do non-kernel recipes > also need to define some kind of branch variable too? This is specific to the linux-yocto branch management. It is passed to the configuration subsystem (and others) to properly prepare and process the kernel. It doesn't have anything to do with the fetcher. Remember. linux-yocto is a set of standalone tools, mapped to bitbake and yocto, so we are passing in what the tools need to work. Cheers, Bruce > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto > ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2013-06-12 21:16 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-06-12 19:10 Problems fetching branch for linux-yocto-custom Bryan Evenson 2013-06-12 19:14 ` Bruce Ashfield 2013-06-12 19:37 ` Bryan Evenson 2013-06-12 19:44 ` Bruce Ashfield 2013-06-12 19:47 ` Bryan Evenson 2013-06-12 19:52 ` Bruce Ashfield 2013-06-12 20:41 ` Trevor Woerner 2013-06-12 20:54 ` Bryan Evenson 2013-06-12 21:16 ` Bruce Ashfield 2013-06-12 21:14 ` 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.