]> Git Repo - u-boot.git/blobdiff - arch/microblaze/config.mk
microblaze: Fix stack protection behavior
[u-boot.git] / arch / microblaze / config.mk
index fc545a9ee6fbd89495ac7d23765be831ffd5d471..de5b97e719cc834d2df914b9ac212fef19357ff2 100644 (file)
@@ -1,17 +1,18 @@
+# SPDX-License-Identifier: GPL-2.0+
 #
 # (C) Copyright 2007-2008 Michal Simek
 # Michal SIMEK <[email protected]>
 #
 # (C) Copyright 2004 Atmark Techno, Inc.
 # Yasushi SHOJI <[email protected]>
-#
-# SPDX-License-Identifier:     GPL-2.0+
-#
-
-CROSS_COMPILE ?= mb-
 
 CONFIG_STANDALONE_LOAD_ADDR ?= 0x80F00000
 
 PLATFORM_CPPFLAGS += -ffixed-r31 -D__microblaze__
+PLATFORM_CPPFLAGS += -fdata-sections -ffunction-sections
+
+LDFLAGS_FINAL += --gc-sections
 
-LDSCRIPT ?= $(SRCTREE)/$(CPUDIR)/u-boot.lds
+ifeq ($(CONFIG_SPL_BUILD),)
+PLATFORM_CPPFLAGS += -fPIC
+endif
This page took 0.029725 seconds and 4 git commands to generate.