Re: [meta-ti] Can't build for BeagleBone
On 2016-10-18 19:17, Denys Dmytriyenko wrote: On Tue, Oct 18, 2016 at 12:31:38PM -0400, Denys Dmytriyenko wrote: On Sun, Oct 16, 2016 at 12:46:19PM +0200, Gary Thomas wrote: On 2016-10-11 12:47, Denys Dmytriyenko wrote: Yeah, I'm also getting this in master. Works fine in krogoth. Haven't yet looked close at it though... There seem to be two things wrong here. *) Yocto has moved most recipes to use a split source/build tree, thus ${S} != ${B} Well, that actually happened quite a long time ago for most of recipes. U-boot was in the unconverted minority for a while, until couple months ago: http://cgit.openembedded.org/openembedded-core/commit/?id=36f110594506fbee5dc18de3a04981f019f2024d As of UBOOT_LOCALVERSION - not sure if generating it fails or rather consumption of it fails inside U-boot Makefiles... Ok, trying to fix things while attending ELCE last week proved to be futile! The issue was Python3 related and I already had the same exact one fixed for the kernel, d'oh! The patch is out now. Yes, that fixed it, thanks -- Gary Thomas | Consulting for the MLB Associates |Embedded world -- ___ meta-ti mailing list meta-ti@yoctoproject.org https://lists.yoctoproject.org/listinfo/meta-ti
Re: [meta-ti] Can't build for BeagleBone
On Tue, Oct 18, 2016 at 12:31:38PM -0400, Denys Dmytriyenko wrote: > On Sun, Oct 16, 2016 at 12:46:19PM +0200, Gary Thomas wrote: > > On 2016-10-11 12:47, Denys Dmytriyenko wrote: > > >Yeah, I'm also getting this in master. Works fine in krogoth. Haven't yet > > >looked close at it though... > > > > There seem to be two things wrong here. > > > > *) Yocto has moved most recipes to use a split source/build tree, > >thus ${S} != ${B} > > Well, that actually happened quite a long time ago for most of recipes. > U-boot > was in the unconverted minority for a while, until couple months ago: > > http://cgit.openembedded.org/openembedded-core/commit/?id=36f110594506fbee5dc18de3a04981f019f2024d > > > As of UBOOT_LOCALVERSION - not sure if generating it fails or rather > consumption of it fails inside U-boot Makefiles... Ok, trying to fix things while attending ELCE last week proved to be futile! The issue was Python3 related and I already had the same exact one fixed for the kernel, d'oh! The patch is out now. -- Denys > > *) There is some issue with generating the UBOOT_LOCALVERSION that > >causes problems. > > > > This patch [sort of] addresses both. At least it lets me build a > > working U-Boot for the BeagleBone from master. I know it's not > > perfect, but I couldn't figure out the why the UBOOT_LOCALVERSION > > stuff wasn't working. > > > > -- > > > > Gary Thomas | Consulting for the > > MLB Associates |Embedded world > > > > > diff --git a/recipes-bsp/u-boot/u-boot-ti.inc > > b/recipes-bsp/u-boot/u-boot-ti.inc > > index b0054c9..a854243 100644 > > --- a/recipes-bsp/u-boot/u-boot-ti.inc > > +++ b/recipes-bsp/u-boot/u-boot-ti.inc > > @@ -8,7 +8,7 @@ def get_git_revision(p): > > except OSError: > > return None > > > > -UBOOT_LOCALVERSION = "-g${@get_git_revision('${S}').__str__()[:10]}" > > +#UBOOT_LOCALVERSION = "-g${@get_git_revision('${S}').__str__()[:10]}" > > > > UBOOT_SUFFIX ?= "img" > > > > @@ -36,7 +36,7 @@ SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}" > > do_install_append () { > > if [ "x${SPL_UART_BINARY}" != "x" ] > > then > > -install ${S}/spl/${SPL_UART_BINARY} ${D}/boot/${SPL_UART_IMAGE} > > +install ${B}/spl/${SPL_UART_BINARY} ${D}/boot/${SPL_UART_IMAGE} > > ln -sf ${SPL_UART_IMAGE} ${D}/boot/${SPL_UART_BINARY} > > fi > > } > > @@ -45,7 +45,7 @@ do_deploy_append () { > > cd ${DEPLOYDIR} > > if [ "x${SPL_UART_BINARY}" != "x" ] > > then > > -install ${S}/spl/${SPL_UART_BINARY} ${DEPLOYDIR}/${SPL_UART_IMAGE} > > +install ${B}/spl/${SPL_UART_BINARY} ${DEPLOYDIR}/${SPL_UART_IMAGE} > > rm -f ${DEPLOYDIR}/${SPL_UART_BINARY} > > ${DEPLOYDIR}/${SPL_UART_SYMLINK} > > ln -sf ${SPL_UART_IMAGE} ${DEPLOYDIR}/${SPL_UART_BINARY} > > ln -sf ${SPL_UART_IMAGE} ${DEPLOYDIR}/${SPL_UART_SYMLINK} > > > -- > > ___ > > meta-ti mailing list > > meta-ti@yoctoproject.org > > https://lists.yoctoproject.org/listinfo/meta-ti > > -- > ___ > meta-ti mailing list > meta-ti@yoctoproject.org > https://lists.yoctoproject.org/listinfo/meta-ti > -- ___ meta-ti mailing list meta-ti@yoctoproject.org https://lists.yoctoproject.org/listinfo/meta-ti
Re: [meta-ti] Can't build for BeagleBone
On Sun, Oct 16, 2016 at 12:46:19PM +0200, Gary Thomas wrote: > On 2016-10-11 12:47, Denys Dmytriyenko wrote: > >Yeah, I'm also getting this in master. Works fine in krogoth. Haven't yet > >looked close at it though... > > There seem to be two things wrong here. > > *) Yocto has moved most recipes to use a split source/build tree, >thus ${S} != ${B} Well, that actually happened quite a long time ago for most of recipes. U-boot was in the unconverted minority for a while, until couple months ago: http://cgit.openembedded.org/openembedded-core/commit/?id=36f110594506fbee5dc18de3a04981f019f2024d As of UBOOT_LOCALVERSION - not sure if generating it fails or rather consumption of it fails inside U-boot Makefiles... -- Denys > *) There is some issue with generating the UBOOT_LOCALVERSION that >causes problems. > > This patch [sort of] addresses both. At least it lets me build a > working U-Boot for the BeagleBone from master. I know it's not > perfect, but I couldn't figure out the why the UBOOT_LOCALVERSION > stuff wasn't working. > > -- > > Gary Thomas | Consulting for the > MLB Associates |Embedded world > > diff --git a/recipes-bsp/u-boot/u-boot-ti.inc > b/recipes-bsp/u-boot/u-boot-ti.inc > index b0054c9..a854243 100644 > --- a/recipes-bsp/u-boot/u-boot-ti.inc > +++ b/recipes-bsp/u-boot/u-boot-ti.inc > @@ -8,7 +8,7 @@ def get_git_revision(p): > except OSError: > return None > > -UBOOT_LOCALVERSION = "-g${@get_git_revision('${S}').__str__()[:10]}" > +#UBOOT_LOCALVERSION = "-g${@get_git_revision('${S}').__str__()[:10]}" > > UBOOT_SUFFIX ?= "img" > > @@ -36,7 +36,7 @@ SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}" > do_install_append () { > if [ "x${SPL_UART_BINARY}" != "x" ] > then > -install ${S}/spl/${SPL_UART_BINARY} ${D}/boot/${SPL_UART_IMAGE} > +install ${B}/spl/${SPL_UART_BINARY} ${D}/boot/${SPL_UART_IMAGE} > ln -sf ${SPL_UART_IMAGE} ${D}/boot/${SPL_UART_BINARY} > fi > } > @@ -45,7 +45,7 @@ do_deploy_append () { > cd ${DEPLOYDIR} > if [ "x${SPL_UART_BINARY}" != "x" ] > then > -install ${S}/spl/${SPL_UART_BINARY} ${DEPLOYDIR}/${SPL_UART_IMAGE} > +install ${B}/spl/${SPL_UART_BINARY} ${DEPLOYDIR}/${SPL_UART_IMAGE} > rm -f ${DEPLOYDIR}/${SPL_UART_BINARY} > ${DEPLOYDIR}/${SPL_UART_SYMLINK} > ln -sf ${SPL_UART_IMAGE} ${DEPLOYDIR}/${SPL_UART_BINARY} > ln -sf ${SPL_UART_IMAGE} ${DEPLOYDIR}/${SPL_UART_SYMLINK} > -- > ___ > meta-ti mailing list > meta-ti@yoctoproject.org > https://lists.yoctoproject.org/listinfo/meta-ti -- ___ meta-ti mailing list meta-ti@yoctoproject.org https://lists.yoctoproject.org/listinfo/meta-ti
Re: [meta-ti] Can't build for BeagleBone
On 2016-10-11 12:47, Denys Dmytriyenko wrote: Yeah, I'm also getting this in master. Works fine in krogoth. Haven't yet looked close at it though... There seem to be two things wrong here. *) Yocto has moved most recipes to use a split source/build tree, thus ${S} != ${B} *) There is some issue with generating the UBOOT_LOCALVERSION that causes problems. This patch [sort of] addresses both. At least it lets me build a working U-Boot for the BeagleBone from master. I know it's not perfect, but I couldn't figure out the why the UBOOT_LOCALVERSION stuff wasn't working. -- Gary Thomas | Consulting for the MLB Associates |Embedded world diff --git a/recipes-bsp/u-boot/u-boot-ti.inc b/recipes-bsp/u-boot/u-boot-ti.inc index b0054c9..a854243 100644 --- a/recipes-bsp/u-boot/u-boot-ti.inc +++ b/recipes-bsp/u-boot/u-boot-ti.inc @@ -8,7 +8,7 @@ def get_git_revision(p): except OSError: return None -UBOOT_LOCALVERSION = "-g${@get_git_revision('${S}').__str__()[:10]}" +#UBOOT_LOCALVERSION = "-g${@get_git_revision('${S}').__str__()[:10]}" UBOOT_SUFFIX ?= "img" @@ -36,7 +36,7 @@ SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}" do_install_append () { if [ "x${SPL_UART_BINARY}" != "x" ] then -install ${S}/spl/${SPL_UART_BINARY} ${D}/boot/${SPL_UART_IMAGE} +install ${B}/spl/${SPL_UART_BINARY} ${D}/boot/${SPL_UART_IMAGE} ln -sf ${SPL_UART_IMAGE} ${D}/boot/${SPL_UART_BINARY} fi } @@ -45,7 +45,7 @@ do_deploy_append () { cd ${DEPLOYDIR} if [ "x${SPL_UART_BINARY}" != "x" ] then -install ${S}/spl/${SPL_UART_BINARY} ${DEPLOYDIR}/${SPL_UART_IMAGE} +install ${B}/spl/${SPL_UART_BINARY} ${DEPLOYDIR}/${SPL_UART_IMAGE} rm -f ${DEPLOYDIR}/${SPL_UART_BINARY} ${DEPLOYDIR}/${SPL_UART_SYMLINK} ln -sf ${SPL_UART_IMAGE} ${DEPLOYDIR}/${SPL_UART_BINARY} ln -sf ${SPL_UART_IMAGE} ${DEPLOYDIR}/${SPL_UART_SYMLINK} -- ___ meta-ti mailing list meta-ti@yoctoproject.org https://lists.yoctoproject.org/listinfo/meta-ti
Re: [meta-ti] Can't build for BeagleBone
On 2016-10-12 10:05, Gary Thomas wrote: On 2016-10-11 12:47, Denys Dmytriyenko wrote: Yeah, I'm also getting this in master. Works fine in krogoth. Haven't yet looked close at it though... I've tracked it down to this function in the main Makefile not working correctly (line 1230): define filechk_uboot.release echo "$(UBOOTVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))" endef In the Poky/Yocto build, the $(CONFIG_SHELL) is not expanding correctly. If I short-circuit this function, e.g. define filechk_uboot.release echo "MY VERSION" endef then the build completes correctly. I can't see what has changed in this area recently, so I'm a bit baffled. I spoke too soon. Even with my work-around for the compile step, the install step failed: ERROR: u-boot-ti-staging-2016.05+gitAUTOINC+bbfdf926a1-r21 do_install: Function failed: do_install (log file is located at /local/bbb_2016-10-11/tmp/work/beaglebone-poky-linux-gnueabi/u-boot-ti-staging/2016.05+gitAUTOINC+bbfdf926a1-r21/temp/log.do_install.24630) ERROR: Logfile of failure stored in: /local/bbb_2016-10-11/tmp/work/beaglebone-poky-linux-gnueabi/u-boot-ti-staging/2016.05+gitAUTOINC+bbfdf926a1-r21/temp/log.do_install.24630 Log data follows: | DEBUG: Executing python function create_extlinux_config | DEBUG: Python function create_extlinux_config finished | DEBUG: Executing shell function do_install | install: cannot stat ‘/local/bbb_2016-10-11/tmp/work/beaglebone-poky-linux-gnueabi/u-boot-ti-staging/2016.05+gitAUTOINC+bbfdf926a1-r21/git/spl/u-boot-spl.bin’: No such file or directory | WARNING: exit code 1 from a shell command. | ERROR: Function failed: do_install (log file is located at /local/bbb_2016-10-11/tmp/work/beaglebone-poky-linux-gnueabi/u-boot-ti-staging/2016.05+gitAUTOINC+bbfdf926a1-r21/temp/log.do_install.24630) ERROR: Task (/local/poky-cutting-edge/meta-ti/recipes-bsp/u-boot/u-boot-ti-staging_2016.05.bb:do_install) failed with exit code '1' -- Gary Thomas | Consulting for the MLB Associates |Embedded world -- ___ meta-ti mailing list meta-ti@yoctoproject.org https://lists.yoctoproject.org/listinfo/meta-ti
Re: [meta-ti] Can't build for BeagleBone
On 2016-10-11 12:47, Denys Dmytriyenko wrote: Yeah, I'm also getting this in master. Works fine in krogoth. Haven't yet looked close at it though... I've tracked it down to this function in the main Makefile not working correctly (line 1230): define filechk_uboot.release echo "$(UBOOTVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))" endef In the Poky/Yocto build, the $(CONFIG_SHELL) is not expanding correctly. If I short-circuit this function, e.g. define filechk_uboot.release echo "MY VERSION" endef then the build completes correctly. I can't see what has changed in this area recently, so I'm a bit baffled. -- Gary Thomas | Consulting for the MLB Associates |Embedded world -- ___ meta-ti mailing list meta-ti@yoctoproject.org https://lists.yoctoproject.org/listinfo/meta-ti
Re: [meta-ti] Can't build for BeagleBone
Yeah, I'm also getting this in master. Works fine in krogoth. Haven't yet looked close at it though... -- ___ meta-ti mailing list meta-ti@yoctoproject.org https://lists.yoctoproject.org/listinfo/meta-ti
[meta-ti] Can't build for BeagleBone
Using (Poky/Yocto): Build Configuration: BB_VERSION= "1.31.2" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "universal" TARGET_SYS= "arm-poky-linux-gnueabi" MACHINE = "beaglebone" DISTRO= "poky" DISTRO_VERSION= "2.1+snapshot-20161011" TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard" TARGET_FPU= "hard" meta = "master:b9d6a7cc234f44e44e5421191924b7463e9c0a9d" meta-ti = "master:48ffe2b2da9b44cdb0ce055c008ab21843ec98b3" meta-poky = "master:b9d6a7cc234f44e44e5421191924b7463e9c0a9d" I get this error: | /local/bbb_2016-10-11/tmp/work/beaglebone-poky-linux-gnueabi/u-boot-ti-staging/2016.05+gitAUTOINC+bbfdf926a1-r21/git/tools/mkenvimage.c: In function 'main': | /local/bbb_2016-10-11/tmp/work/beaglebone-poky-linux-gnueabi/u-boot-ti-staging/2016.05+gitAUTOINC+bbfdf926a1-r21/git/tools/mkenvimage.c:120:35: error: 'PLAIN_VERSION' undeclared (first use in this function) | printf("%s version %s\n", prg, PLAIN_VERSION); |^ | /local/bbb_2016-10-11/tmp/work/beaglebone-poky-linux-gnueabi/u-boot-ti-staging/2016.05+gitAUTOINC+bbfdf926a1-r21/git/tools/mkenvimage.c:120:35: note: each undeclared identifier is reported only once for each function it appears in | scripts/Makefile.host:111: recipe for target 'tools/mkenvimage.o' failed I was able to build with this configuration in late September, so the changes in early October to .../meta-ti/recipes-bsp/u-boot must be involved. I'll look into the details, but in the meantime does anyone have suggestions? -- Gary Thomas | Consulting for the MLB Associates |Embedded world -- ___ meta-ti mailing list meta-ti@yoctoproject.org https://lists.yoctoproject.org/listinfo/meta-ti