From 77186ca4b7ffd1662387e65c79fc97f2d7ed141f Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Mon, 23 Jun 2014 09:53:12 -0700 Subject: [PATCH] boot-format: obey LDFLAGS Quiets a GNU_HASH warning. JIRA: SB-3120 Signed-off-by: Christopher Larson --- .../boot-format/boot-format/flags.patch | 21 +++++++++++++++++++ .../boot-format/boot-format_git.bbappend | 3 +++ 2 files changed, 24 insertions(+) create mode 100644 fsl-ppc/recipes-tools/boot-format/boot-format/flags.patch create mode 100644 fsl-ppc/recipes-tools/boot-format/boot-format_git.bbappend diff --git a/fsl-ppc/recipes-tools/boot-format/boot-format/flags.patch b/fsl-ppc/recipes-tools/boot-format/boot-format/flags.patch new file mode 100644 index 0000000..cddb34c --- /dev/null +++ b/fsl-ppc/recipes-tools/boot-format/boot-format/flags.patch @@ -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 diff --git a/fsl-ppc/recipes-tools/boot-format/boot-format_git.bbappend b/fsl-ppc/recipes-tools/boot-format/boot-format_git.bbappend new file mode 100644 index 0000000..63fc5d0 --- /dev/null +++ b/fsl-ppc/recipes-tools/boot-format/boot-format_git.bbappend @@ -0,0 +1,3 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/boot-format:" +SRC_URI += "file://flags.patch" +EXTRA_OEMAKE += "'CFLAGS=${CFLAGS}' 'LDFLAGS=${LDFLAGS}'"