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}'"