summaryrefslogtreecommitdiff
path: root/arch/sparc/config.mk
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/config.mk')
-rw-r--r--arch/sparc/config.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/sparc/config.mk b/arch/sparc/config.mk
index 9bb37241d2..be59f58190 100644
--- a/arch/sparc/config.mk
+++ b/arch/sparc/config.mk
@@ -5,9 +5,13 @@
# SPDX-License-Identifier: GPL-2.0+
#
-CROSS_COMPILE ?= sparc-elf-
+ifeq ($(CROSS_COMPILE),)
+CROSS_COMPILE := sparc-elf-
+endif
+
+gcclibdir := $(shell dirname `$(CC) -print-libgcc-file-name`)
CONFIG_STANDALONE_LOAD_ADDR ?= 0x00000000 -L $(gcclibdir) \
- -T $(srctree)/$(src)/sparc.lds
+ -T $(srctree)/examples/standalone/sparc.lds
PLATFORM_CPPFLAGS += -DCONFIG_SPARC -D__sparc__