summaryrefslogtreecommitdiff
path: root/arch/m68k/config.mk
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m68k/config.mk')
-rw-r--r--arch/m68k/config.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/m68k/config.mk b/arch/m68k/config.mk
index 9c3e24f..33b3d51 100644
--- a/arch/m68k/config.mk
+++ b/arch/m68k/config.mk
@@ -5,11 +5,14 @@
# SPDX-License-Identifier: GPL-2.0+
#
-CROSS_COMPILE ?= m68k-elf-
+ifeq ($(CROSS_COMPILE),)
+CROSS_COMPILE := m68k-elf-
+endif
CONFIG_STANDALONE_LOAD_ADDR ?= 0x20000
PLATFORM_CPPFLAGS += -DCONFIG_M68K -D__M68K__
PLATFORM_LDFLAGS += -n
-PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
+PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
+PLATFORM_RELFLAGS += -ffixed-d7 -msep-data
LDFLAGS_FINAL += --gc-sections