diff --git a/recipes-bsp/mqxboot/mqxboot/0001-Makefile-use-OE-ldflags.patch b/recipes-bsp/mqxboot/mqxboot/0001-Makefile-use-OE-ldflags.patch new file mode 100644 index 0000000..58bd372 --- /dev/null +++ b/recipes-bsp/mqxboot/mqxboot/0001-Makefile-use-OE-ldflags.patch @@ -0,0 +1,29 @@ +From 368ee177806f15194acf352c83f64ba697a613ac Mon Sep 17 00:00:00 2001 +From: Max Krummenacher +Date: Thu, 23 Jun 2022 08:46:14 +0000 +Subject: [PATCH] Makefile: use OE ldflags + +Prevents QA error about missing GNU_HASH in the binary. + +Upstream-Status: Pending +Signed-off-by: Max Krummenacher +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 37da46f..74cf280 100644 +--- a/Makefile ++++ b/Makefile +@@ -4,7 +4,7 @@ all: build/mqxboot + + build/mqxboot: src/mqxboot.c + mkdir -p build/ +- $(CC) $< -o $@ $(CFLAGS) ++ $(CC) $< -o $@ $(CFLAGS) $(LDFLAGS) + + install: + mkdir -p $(INSTALL_PATH) +-- +2.20.1 + diff --git a/recipes-bsp/mqxboot/mqxboot_1.0.1.bb b/recipes-bsp/mqxboot/mqxboot_1.0.1.bb index cf6954e..0303bcc 100644 --- a/recipes-bsp/mqxboot/mqxboot_1.0.1.bb +++ b/recipes-bsp/mqxboot/mqxboot_1.0.1.bb @@ -6,7 +6,10 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=c49712341497d0b5f2e40c30dff2af9d \ DEPENDS = "virtual/kernel-module-mcc" -SRC_URI = "http://repository.timesys.com/buildsources/m/mqxboot/mqxboot-${PV}/mqxboot-${PV}.tar.bz2" +SRC_URI = " \ + http://repository.timesys.com/buildsources/m/mqxboot/mqxboot-${PV}/mqxboot-${PV}.tar.bz2 \ + file://0001-Makefile-use-OE-ldflags.patch \ +" SRC_URI[md5sum] = "f74755548041d50ca178448ee3e478d4" SRC_URI[sha256sum] = "32444409de5e809b9347e275a3bf78623a89e9ecce3188ebac79318b2b7c39b3"