]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/sparc/config.mk
Merge branch 'u-boot-ti/master' into 'u-boot-arm/master'
[karo-tx-uboot.git] / arch / sparc / config.mk
index e2327ecfac387826c7a2bbc15714201dc610246e..be59f5819009f7a87a25d948e0f3c2bf5a4516de 100644 (file)
@@ -9,7 +9,9 @@ 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__