aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2024-01-18 18:21:00 +0100
committerHelge Deller <deller@gmx.de>2024-01-18 18:21:00 +0100
commit03c2e200ace06bc7fdcc3f21112ed56d77cd99c3 (patch)
treedc3527bfdbc85ffbf20f5b978a0f880fe56408c8
parent25750612451261f740756456c7e775296a21c2ef (diff)
downloadseabios-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--Makefile2
-rw-r--r--Makefile.parisc7
2 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index dd7c059..ecea65e 100644
--- a/Makefile
+++ b/Makefile
@@ -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 := ,