[PATCH] u-boot: set B directory for imx5's


Trevor Woerner
 

The imx5* machines need separate S and B directories to build u-boot-fslc
otherwise the build fails with:

| make[1]: *** No rule to make target '/z/build-master/meta-freescale/bu=
ild/tmp-glibc/work/imx53qsb-oe-linux-gnueabi/u-boot-fslc/v2019.07+gitAUTO=
INC+ca0ab15271-r0/git/arch//cpu/u-boot.lds', needed by 'u-boot.lds'. Sto=
p.

Build-tested with imx51evk, imx53ard, and imx53qsb.

Signed-off-by: Trevor Woerner <twoerner@...>
---
recipes-bsp/u-boot/u-boot-fslc-common_2019.07.inc | 1 +
1 file changed, 1 insertion(+)

diff --git a/recipes-bsp/u-boot/u-boot-fslc-common_2019.07.inc b/recipes-=
bsp/u-boot/u-boot-fslc-common_2019.07.inc
index 575f76f8..44dd5125 100644
--- a/recipes-bsp/u-boot/u-boot-fslc-common_2019.07.inc
+++ b/recipes-bsp/u-boot/u-boot-fslc-common_2019.07.inc
@@ -16,3 +16,4 @@ SRCBRANCH =3D "2019.07+fslc"
PV =3D "v2019.07+git${SRCPV}"
=20
S =3D "${WORKDIR}/git"
+B_mx5 =3D "${WORKDIR}/build"
--=20
2.25.0.114.g5b0ca878e0


Otavio Salvador
 

On Mon, Feb 10, 2020 at 8:14 PM Trevor Woerner <twoerner@...> wrote:
The imx5* machines need separate S and B directories to build u-boot-fslc
otherwise the build fails with:

| make[1]: *** No rule to make target '/z/build-master/meta-freescale/build/tmp-glibc/work/imx53qsb-oe-linux-gnueabi/u-boot-fslc/v2019.07+gitAUTOINC+ca0ab15271-r0/git/arch//cpu/u-boot.lds', needed by 'u-boot.lds'. Stop.

Build-tested with imx51evk, imx53ard, and imx53qsb.

Signed-off-by: Trevor Woerner <twoerner@...>
Which branch did you use?

--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750


Trevor Woerner
 

Hi Otavio,

On Tue 2020-02-11 @ 10:47:46 AM, Otavio Salvador wrote:
On Mon, Feb 10, 2020 at 8:14 PM Trevor Woerner <twoerner@...> wrote:
The imx5* machines need separate S and B directories to build u-boot-fslc
otherwise the build fails with:

| make[1]: *** No rule to make target '/z/build-master/meta-freescale/build/tmp-glibc/work/imx53qsb-oe-linux-gnueabi/u-boot-fslc/v2019.07+gitAUTOINC+ca0ab15271-r0/git/arch//cpu/u-boot.lds', needed by 'u-boot.lds'. Stop.

Build-tested with imx51evk, imx53ard, and imx53qsb.

Signed-off-by: Trevor Woerner <twoerner@...>
Which branch did you use?
Master on everything:

Build Configuration:
BB_VERSION = "1.44.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "opensuseleap-15.1"
TARGET_SYS = "arm-oe-linux-gnueabi"
MACHINE = "imx53qsb"
DISTRO = "nodistro"
DISTRO_VERSION = "nodistro.0"
TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU = "hard"
meta-freescale = "master:9227f4c9e6d77d3fa15f67d178ba9da02c5550fe"
meta = "master:44a4ac2294da0f53cbbfabc7ece836fe97f4d3f7"

https://git.yoctoproject.org/git/meta-freescale
git://git.openembedded.org/openembedded-core.git

conf/bblayers.conf:

# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
LCONF_VERSION = "7"

BBPATH = "${TOPDIR}"
BBFILES ?= ""

BBLAYERS ?= " \
/opt/oe/configs/z/build-master/meta-freescale/layers/meta-freescale \
/opt/oe/configs/z/build-master/meta-freescale/layers/openembedded-core/meta \
"

conf/local.conf:

ACCEPT_FSL_EULA = "1"
MACHINE = "imx53qsb"
DISTRO = "nodistro"
DL_DIR = "/opt/Downloads"

PACKAGE_CLASSES ?= "package_ipk"
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE ?= "noop"
BB_DISKMON_DIRS = "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
STOPTASKS,/tmp,100M,100K \
ABORT,${TMPDIR},100M,1K \
ABORT,${DL_DIR},100M,1K \
ABORT,${SSTATE_DIR},100M,1K \
ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-system-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
ASSUME_PROVIDED += "libsdl2-native"
CONF_VERSION = "1"


Otavio Salvador
 

On Tue, Feb 11, 2020 at 12:12 PM Trevor Woerner <twoerner@...> wrote:
On Tue 2020-02-11 @ 10:47:46 AM, Otavio Salvador wrote:
On Mon, Feb 10, 2020 at 8:14 PM Trevor Woerner <twoerner@...> wrote:
The imx5* machines need separate S and B directories to build u-boot-fslc
otherwise the build fails with:

| make[1]: *** No rule to make target '/z/build-master/meta-freescale/build/tmp-glibc/work/imx53qsb-oe-linux-gnueabi/u-boot-fslc/v2019.07+gitAUTOINC+ca0ab15271-r0/git/arch//cpu/u-boot.lds', needed by 'u-boot.lds'. Stop.

Build-tested with imx51evk, imx53ard, and imx53qsb.

Signed-off-by: Trevor Woerner <twoerner@...>
Which branch did you use?
Master on everything:

Build Configuration:
BB_VERSION = "1.44.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "opensuseleap-15.1"
TARGET_SYS = "arm-oe-linux-gnueabi"
MACHINE = "imx53qsb"
DISTRO = "nodistro"
DISTRO_VERSION = "nodistro.0"
TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU = "hard"
meta-freescale = "master:9227f4c9e6d77d3fa15f67d178ba9da02c5550fe"
meta = "master:44a4ac2294da0f53cbbfabc7ece836fe97f4d3f7"

https://git.yoctoproject.org/git/meta-freescale
git://git.openembedded.org/openembedded-core.git

conf/bblayers.conf:

# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
LCONF_VERSION = "7"

BBPATH = "${TOPDIR}"
BBFILES ?= ""

BBLAYERS ?= " \
/opt/oe/configs/z/build-master/meta-freescale/layers/meta-freescale \
/opt/oe/configs/z/build-master/meta-freescale/layers/openembedded-core/meta \
"

conf/local.conf:

ACCEPT_FSL_EULA = "1"
MACHINE = "imx53qsb"
DISTRO = "nodistro"
DL_DIR = "/opt/Downloads"

PACKAGE_CLASSES ?= "package_ipk"
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE ?= "noop"
BB_DISKMON_DIRS = "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
STOPTASKS,/tmp,100M,100K \
ABORT,${TMPDIR},100M,1K \
ABORT,${DL_DIR},100M,1K \
ABORT,${SSTATE_DIR},100M,1K \
ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-system-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
ASSUME_PROVIDED += "libsdl2-native"
CONF_VERSION = "1"
Please open an issue on github?

IIRC, we are using different build directories for S and B so I am
wondering why it is failing.


--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750


Trevor Woerner
 

On Tue 2020-02-11 @ 02:17:03 PM, Otavio Salvador wrote:
On Tue, Feb 11, 2020 at 12:12 PM Trevor Woerner <twoerner@...> wrote:
On Tue 2020-02-11 @ 10:47:46 AM, Otavio Salvador wrote:
On Mon, Feb 10, 2020 at 8:14 PM Trevor Woerner <twoerner@...> wrote:
The imx5* machines need separate S and B directories to build u-boot-fslc
otherwise the build fails with:

| make[1]: *** No rule to make target '/z/build-master/meta-freescale/build/tmp-glibc/work/imx53qsb-oe-linux-gnueabi/u-boot-fslc/v2019.07+gitAUTOINC+ca0ab15271-r0/git/arch//cpu/u-boot.lds', needed by 'u-boot.lds'. Stop.

Build-tested with imx51evk, imx53ard, and imx53qsb.

Signed-off-by: Trevor Woerner <twoerner@...>
Please open an issue on github?
Okay.

IIRC, we are using different build directories for S and B so I am
wondering why it is failing.
This is what I'm getting:

$ bitbake virtual/bootloader -e | grep "^B="
B="/z/build-master/meta-freescale/build/tmp-glibc/work/imx53qsb-oe-linux-gnueabi/u-boot-fslc/v2019.07+gitAUTOINC+ca0ab15271-r0/git"
$ bitbake virtual/bootloader -e | grep "^S="
S="/z/build-master/meta-freescale/build/tmp-glibc/work/imx53qsb-oe-linux-gnueabi/u-boot-fslc/v2019.07+gitAUTOINC+ca0ab15271-r0/git"