diff options
author | Helge Deller <deller@gmx.de> | 2024-01-18 18:21:00 +0100 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2024-01-18 18:21:00 +0100 |
commit | 03c2e200ace06bc7fdcc3f21112ed56d77cd99c3 (patch) | |
tree | dc3527bfdbc85ffbf20f5b978a0f880fe56408c8 | |
parent | 25750612451261f740756456c7e775296a21c2ef (diff) | |
download | seabios-hppa-03c2e200ace06bc7fdcc3f21112ed56d77cd99c3.zip seabios-hppa-03c2e200ace06bc7fdcc3f21112ed56d77cd99c3.tar.gz seabios-hppa-03c2e200ace06bc7fdcc3f21112ed56d77cd99c3.tar.bz2 |
parisc: Enable build of 64-bit firmware code to out-64/hppa-firmware64.img
Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | Makefile.parisc | 7 |
2 files changed, 5 insertions, 4 deletions
@@ -108,7 +108,7 @@ ifneq "$(CONFIG_PARISC)" "y" @echo "ERROR: run 'make config' and select PA-RISC before building the parisc target." endif DIRS="" OUT=out/ BITS=32 BIT_SUFFIX="" CROSS_PREFIX=hppa-linux-gnu- $(MAKE) -f Makefile.parisc all - # DIRS="" OUT=out-64/ BITS=64 BIT_SUFFIX="64" CROSS_PREFIX=hppa64-linux-gnu- $(MAKE) -f Makefile.parisc all + DIRS="" OUT=out-64/ BITS=64 BIT_SUFFIX="64" CROSS_PREFIX=hppa64-linux-gnu- $(MAKE) -f Makefile.parisc all # Make definitions .PHONY : all clean distclean parisc FORCE diff --git a/Makefile.parisc b/Makefile.parisc index 36edc0c..5c34eb3 100644 --- a/Makefile.parisc +++ b/Makefile.parisc @@ -73,15 +73,16 @@ COMMONCFLAGS := -I$(OUT) -Isrc -Ivgasrc -Os -MD -g \ -freg-struct-return -ffreestanding -fno-delete-null-pointer-checks \ -fdata-sections -fno-common -fno-merge-constants -mdisable-fpregs \ -fno-builtin-printf -fno-ipa-sra +COMMONCFLAGS-64 = +COMMONCFLAGS-32 = COMMONCFLAGS += $(call cc-option,$(CC),-nopie,) COMMONCFLAGS += $(call cc-option,$(CC),-fno-pie,) COMMONCFLAGS += $(call cc-option,$(CC),-fno-stack-protector,) COMMONCFLAGS += $(call cc-option,$(CC),-fno-stack-protector-all,) COMMONCFLAGS += $(call cc-option,$(CC),-fstack-check=no,) -COMMONCFLAGS += $(call cc-option,$(CC),-mfast-indirect-calls,) +COMMONCFLAGS-32 += $(call cc-option,$(CC),-mfast-indirect-calls,) -COMMONCFLAGS-64 = -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast -COMMONCFLAGS-32 = +COMMONCFLAGS-64 += -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast COMMONCFLAGS += $(COMMONCFLAGS-$(BITS)) COMMA := , |