diff --git a/sysutils/opensbi/files/patch-Makefile b/sysutils/opensbi/files/patch-Makefile new file mode 100644 index 000000000000..e98a465c25da --- /dev/null +++ b/sysutils/opensbi/files/patch-Makefile @@ -0,0 +1,20 @@ +--- Makefile.orig 2023-07-19 06:21:59 UTC ++++ Makefile +@@ -337,7 +337,7 @@ endif + else + CFLAGS += -O2 + endif +-CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls -mstrict-align ++CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls + # enable -m(no-)save-restore option by CC_SUPPORT_SAVE_RESTORE + ifeq ($(CC_SUPPORT_SAVE_RESTORE),y) + CFLAGS += -mno-save-restore +@@ -355,7 +355,7 @@ ASFLAGS = -g -Wall -nostdlib + CPPFLAGS += $(firmware-cppflags-y) + + ASFLAGS = -g -Wall -nostdlib +-ASFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls -mstrict-align ++ASFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls + # enable -m(no-)save-restore option by CC_SUPPORT_SAVE_RESTORE + ifeq ($(CC_SUPPORT_SAVE_RESTORE),y) + ASFLAGS += -mno-save-restore