Convert CONFIG_SH_GPIO_PFC et al to Kconfig
[platform/kernel/u-boot.git] / arch / microblaze / config.mk
1 # SPDX-License-Identifier: GPL-2.0+
2 #
3 # (C) Copyright 2007-2008 Michal Simek
4 # Michal SIMEK <monstr@monstr.eu>
5 #
6 # (C) Copyright 2004 Atmark Techno, Inc.
7 # Yasushi SHOJI <yashi@atmark-techno.com>
8
9 CONFIG_STANDALONE_LOAD_ADDR ?= 0x80F00000
10
11 PLATFORM_CPPFLAGS += -ffixed-r31 -D__microblaze__
12 PLATFORM_CPPFLAGS += -fdata-sections -ffunction-sections
13
14 LDFLAGS_FINAL += --gc-sections
15
16 ifeq ($(CONFIG_SPL_BUILD),)
17 PLATFORM_CPPFLAGS += -fPIC
18 endif
19
20 ifeq ($(CONFIG_STATIC_RELA),y)
21 PLATFORM_CPPFLAGS += -fPIC
22 LDFLAGS_u-boot += -pic
23 endif
24
25 ifeq ($(CONFIG_SYS_LITTLE_ENDIAN),y)
26 PLATFORM_ELFFLAGS += -B microblaze $(OBJCOPYFLAGS) -O elf32-microblazeel
27 else
28 PLATFORM_ELFFLAGS += -B microblaze $(OBJCOPYFLAGS) -O elf32-microblaze
29 endif