]> code.ossystems Code Review - meta-freescale.git/commitdiff
u-boot-fslc-fw-utils: set correctly make source build dir
authorNicola Lunghi <nick83ola@gmail.com>
Wed, 1 Apr 2020 06:54:17 +0000 (07:54 +0100)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 1 Apr 2020 11:48:15 +0000 (08:48 -0300)
This partially revert commit 4e5c7e0d4959b027698e15565df7d3286e6860fa:
   u-boot-fslc: Set build dir only for u-boot recipe

Not setting the build dir in u-boot-fslc-common is breaking the build of
u-boot-fslc-mxsboot.

Instead of unsetting ${B}, set correctly the output and source dir in make

Signed-off-by: Nicola Lunghi <nick83ola@gmail.com>
recipes-bsp/u-boot/u-boot-fslc-common_2020.01.inc
recipes-bsp/u-boot/u-boot-fslc-fw-utils_2020.01.bb

index 6e5e59863445b5be37b8eab3962cb3b4435ce885..aa5c5d73f87517fc851b2dd4f4daa85a81acd31f 100644 (file)
@@ -16,3 +16,4 @@ SRCBRANCH = "2020.01+fslc"
 PV = "v2020.01+git${SRCPV}"
 
 S = "${WORKDIR}/git"
+B = "${WORKDIR}/build"
index a809a3f6694f1f54f894a76b6a2f2a700eddb668..82763eb968e7b183a900effd03da00701d323558 100644 (file)
@@ -10,8 +10,8 @@ EXTRA_OEMAKE_class-cross = 'ARCH=${TARGET_ARCH} CC="${CC} ${CFLAGS} ${LDFLAGS}"
 inherit uboot-config
 
 do_compile () {
-    oe_runmake ${UBOOT_MACHINE}
-    oe_runmake envtools
+    oe_runmake -C ${S} O=${B} ${UBOOT_MACHINE}
+    oe_runmake -C ${S} O=${B} envtools
 }
 
 do_install () {