u-boot: set B directory for imx5's

Submitted by Trevor Woerner on Feb. 10, 2020, 11:13 p.m. | Patch ID: 169925

Details

Message ID 20200210231350.2121-1-twoerner@gmail.com
State New
Headers show

Commit Message

Trevor Woerner Feb. 10, 2020, 11:13 p.m.
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@gmail.com>
---
 recipes-bsp/u-boot/u-boot-fslc-common_2019.07.inc | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

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 = "2019.07+fslc"
 PV = "v2019.07+git${SRCPV}"
 
 S = "${WORKDIR}/git"
+B_mx5 = "${WORKDIR}/build"

Comments

Otavio Salvador Feb. 11, 2020, 1:47 p.m.
On Mon, Feb 10, 2020 at 8:14 PM Trevor Woerner <twoerner@gmail.com> 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@gmail.com>

Which branch did you use?
Trevor Woerner Feb. 11, 2020, 3:12 p.m.
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@gmail.com> 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@gmail.com>
> 
> 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"
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#24257): https://lists.yoctoproject.org/g/meta-freescale/message/24257
Mute This Topic: https://lists.yoctoproject.org/mt/71152467/3617530
Group Owner: meta-freescale+owner@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/meta-freescale/unsub  [oe-patchwork@oe-patch.openembedded.org]
-=-=-=-=-=-=-=-=-=-=-=-
Otavio Salvador Feb. 11, 2020, 5:17 p.m.
On Tue, Feb 11, 2020 at 12:12 PM Trevor Woerner <twoerner@gmail.com> 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@gmail.com> 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@gmail.com>
> >
> > 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.
Trevor Woerner Feb. 11, 2020, 6:06 p.m.
On Tue 2020-02-11 @ 02:17:03 PM, Otavio Salvador wrote:
> On Tue, Feb 11, 2020 at 12:12 PM Trevor Woerner <twoerner@gmail.com> 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@gmail.com> 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@gmail.com>
>
> 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"
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#24259): https://lists.yoctoproject.org/g/meta-freescale/message/24259
Mute This Topic: https://lists.yoctoproject.org/mt/71152467/3617530
Group Owner: meta-freescale+owner@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/meta-freescale/unsub  [oe-patchwork@oe-patch.openembedded.org]
-=-=-=-=-=-=-=-=-=-=-=-