From c2fd1173c86ac40925793ab2135416ace5325a9b Mon Sep 17 00:00:00 2001 From: Andrew Fasano Date: Mon, 5 Feb 2024 12:55:52 -0500 Subject: [PATCH] add march flag for mips (mips32r2) to support hypercall instruction --- package.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.sh b/package.sh index ef786e8..100a6f6 100755 --- a/package.sh +++ b/package.sh @@ -13,11 +13,11 @@ CC=arm-linux-musleabi-gcc make CFLAGS="-DCONFIG_ARM=1" libnvram.so -C /app mv libnvram.so $SCRATCH/libnvram.so.armel make clean -CC=mipsel-linux-musl-gcc make CFLAGS="-DCONFIG_MIPS=1" libnvram.so -C /app +CC=mipsel-linux-musl-gcc make CFLAGS="-DCONFIG_MIPS=1 -march=mips32r2" libnvram.so -C /app mv libnvram.so $SCRATCH/libnvram.so.mipsel make clean -CC=mipseb-linux-musl-gcc make CFLAGS="-DCONFIG_MIPS=1" libnvram.so -C /app +CC=mipseb-linux-musl-gcc make CFLAGS="-DCONFIG_MIPS=1 -march=mips32r2" libnvram.so -C /app mv libnvram.so $SCRATCH/libnvram.so.mipseb make clean