mirror of
https://github.com/thead-yocto-mirror/meta-external-toolchain
synced 2026-09-04 06:54:36 +02:00
boot-format: obey LDFLAGS
Quiets a GNU_HASH warning. JIRA: SB-3120 Signed-off-by: Christopher Larson <kergoth@gmail.com>
This commit is contained in:
21
fsl-ppc/recipes-tools/boot-format/boot-format/flags.patch
Normal file
21
fsl-ppc/recipes-tools/boot-format/boot-format/flags.patch
Normal file
@@ -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
|
||||
@@ -0,0 +1,3 @@
|
||||
FILESEXTRAPATHS_prepend := "${THISDIR}/boot-format:"
|
||||
SRC_URI += "file://flags.patch"
|
||||
EXTRA_OEMAKE += "'CFLAGS=${CFLAGS}' 'LDFLAGS=${LDFLAGS}'"
|
||||
Reference in New Issue
Block a user