Skip to contentSkip to conversation

crash: Fix build for mips target

PATCH New Khem Raj 1 participant 1 message Apr 25, 2022

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 crash: Fix build for mips target

The patch to remove these options is removed therefore instrument them via sed operations

---
 meta-oe/recipes-kernel/crash/crash_8.0.0.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-kernel/crash/crash_8.0.0.bb +1 -0
index 4ea5b67de1..55de6a604b 100644
@@ -72,6 +72,7 @@ do_compile:prepend() {
 
     sed -i s/FORCE_DEFINE_ARCH/"${ARCH}"/g ${S}/configure.c
     sed -i -e 's/#define TARGET_CFLAGS_ARM_ON_X86_64.*/#define TARGET_CFLAGS_ARM_ON_X86_64\t\"TARGET_CFLAGS=-D_FILE_OFFSET_BITS=64\"/g' ${S}/configure.c
+    sed -i -e 's/#define TARGET_CFLAGS_MIPS_ON_X86_64.*/#define TARGET_CFLAGS_MIPS_ON_X86_64\t\"TARGET_CFLAGS=-D_FILE_OFFSET_BITS=64\"/g' ${S}/configure.c
     sed -i 's/>/>/g' ${S}/Makefile
 }
 
Signature · 1 line
2.36.0