]> code.ossystems Code Review - meta-freescale.git/commitdiff
boot-format: obey CFLAGS, LDFLAGS
authorChristopher Larson <chris_larson@mentor.com>
Wed, 3 Sep 2014 17:50:31 +0000 (10:50 -0700)
committerZhenhua Luo <zhenhua.luo@freescale.com>
Tue, 9 Sep 2014 09:17:19 +0000 (17:17 +0800)
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
meta-fsl-ppc/recipes-bsp/boot-format/boot-format/flags.patch [new file with mode: 0644]
meta-fsl-ppc/recipes-bsp/boot-format/boot-format_git.bb

diff --git a/meta-fsl-ppc/recipes-bsp/boot-format/boot-format/flags.patch b/meta-fsl-ppc/recipes-bsp/boot-format/boot-format/flags.patch
new file mode 100644 (file)
index 0000000..cddb34c
--- /dev/null
@@ -0,0 +1,21 @@
+Index: git/Makefile
+===================================================================
+--- git.orig/Makefile
++++ git/Makefile
+@@ -3,14 +3,14 @@
+ INSTALL=install
+ PREFIX=/usr
+-CFLAGS=-Wall
++override CFLAGS+=-Wall
+ all: boot_format
+ boot_format.o: boot_format.c boot_format.h
+ boot_format: boot_format.o
+-      $(CC) $< -o $@
++      $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
+ install: boot_format
+       $(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
index eb7c6de8c8740a61cb4e68e1d5502374e6958dff..2d9f9b1dbcfbf1cd066fe9bd2a55f382adde475f 100644 (file)
@@ -3,11 +3,12 @@ LICENSE = "GPLv2"
 PR = "r6"
 LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 
-SRC_URI = "git://git.freescale.com/ppc/sdk/boot-format.git;nobranch=1"
+SRC_URI = "git://git.freescale.com/ppc/sdk/boot-format.git;nobranch=1 \
+           file://flags.patch"
 SRCREV = "4eb81a6797ef4e58bf7d9b2d58afb37a21c1f550"
 
 S = "${WORKDIR}/git"
-EXTRA_OEMAKE = 'CC="${CC}"'
+EXTRA_OEMAKE = 'CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"'
 
 do_install(){
        oe_runmake DESTDIR=${D} PREFIX=${prefix} install