All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3] u-boot-fw-utils: Fix cross and target builds
@ 2017-09-19 13:19 Otavio Salvador
  2017-09-19 13:26 ` Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Otavio Salvador @ 2017-09-19 13:19 UTC (permalink / raw)
  To: OpenEmbedded Core Mailing List; +Cc: trini, Otavio Salvador, marek.vasut

 - The environment tools target has change to envtools;
 - The HOSTCC variable must be used to set CC for cross;
 - Drop ARCH variable as it is set on config;

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---

Changes in v3:
- drop ARCH (trini)

Changes in v2:
- pass V=1 for cross - sorry

 meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.09.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.09.bb b/meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.09.bb
index c2e8f0fb84..02887a138a 100644
--- a/meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.09.bb
+++ b/meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.09.bb
@@ -5,13 +5,13 @@ DEPENDS = "mtd-utils"
 
 INSANE_SKIP_${PN} = "already-stripped"
 EXTRA_OEMAKE_class-target = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" V=1'
-EXTRA_OEMAKE_class-cross = 'ARCH=${TARGET_ARCH} CC="${CC} ${CFLAGS} ${LDFLAGS}" V=1'
+EXTRA_OEMAKE_class-cross = 'HOSTCC="${CC} ${CFLAGS} ${LDFLAGS}" V=1'
 
 inherit uboot-config
 
 do_compile () {
 	oe_runmake ${UBOOT_MACHINE}
-	oe_runmake env
+	oe_runmake envtools
 }
 
 do_install () {
-- 
2.14.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v3] u-boot-fw-utils: Fix cross and target builds
  2017-09-19 13:19 [PATCH v3] u-boot-fw-utils: Fix cross and target builds Otavio Salvador
@ 2017-09-19 13:26 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2017-09-19 13:26 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: marek.vasut, OpenEmbedded Core Mailing List

[-- Attachment #1: Type: text/plain, Size: 358 bytes --]

On Tue, Sep 19, 2017 at 10:19:41AM -0300, Otavio Salvador wrote:

>  - The environment tools target has change to envtools;
>  - The HOSTCC variable must be used to set CC for cross;
>  - Drop ARCH variable as it is set on config;
> 
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>

Reviewed-by: Tom Rini <trini@konsulko.com>

-- 
Tom

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-19 13:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-19 13:19 [PATCH v3] u-boot-fw-utils: Fix cross and target builds Otavio Salvador
2017-09-19 13:26 ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.