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' failedI 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?
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
Yeah, I'm also getting this in master. Works fine in krogoth. Haven't yet looked close at it though...
Quoted 1 line · Denys Dmytriyenko
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.
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
Quoted 9 lines · Gary Thomas
Quoted 1 line · Denys Dmytriyenko
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
Makefilenot working correctly (line 1230):
define filechk_uboot.releaseecho "$(UBOOTVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))"endef
Quoted 9 lines
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'
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
Quoted 1 line · Denys Dmytriyenko
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.
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
recipes-bsp/u-boot/u-boot-ti.inc +3 -3
@@ -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}
Quoted 7 lines · Gary Thomas
Quoted 1 line · Denys Dmytriyenko
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...
Signature · 1 line
Denys
Quoted 51 lines
*) There is some issue with generating the
UBOOT_LOCALVERSIONthat
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_LOCALVERSIONstuff wasn't working.Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------recipes-bsp/u-boot/u-boot-ti.inc +3
-3@@ -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}Signature · 5 lines
-- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti
Quoted 9 lines · Denys Dmytriyenko
Quoted 7 lines · Gary Thomas
Quoted 1 line · Denys Dmytriyenko
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}
Quoted 8 lines
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.
Signature · 1 line
Denys
Quoted 58 lines
Quoted 51 lines
*) There is some issue with generating the
UBOOT_LOCALVERSIONthat
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_LOCALVERSIONstuff wasn't working.Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------recipes-bsp/u-boot/u-boot-ti.inc +3
-3@@ -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}Signature · 5 lines
-- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-tiSignature · 4 lines
_______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti
Quoted 16 lines · Denys Dmytriyenko
Quoted 15 lines · Denys Dmytriyenko
Quoted 7 lines · Gary Thomas
Quoted 1 line · Denys Dmytriyenko
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
Quoted 7 lines
Quoted 2 lines
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
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------