]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/powerpc/cpu/ppc4xx/config.mk
Add GPL-2.0+ SPDX-License-Identifier to source files
[karo-tx-uboot.git] / arch / powerpc / cpu / ppc4xx / config.mk
1 #
2 # (C) Copyright 2000-2010
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 #
5 # SPDX-License-Identifier:      GPL-2.0+
6 #
7
8 PLATFORM_RELFLAGS += -meabi
9 PLATFORM_CPPFLAGS += -DCONFIG_4xx -ffixed-r2 -mstring -msoft-float
10
11 cfg=$(shell grep configs $(OBJTREE)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
12 is440:=$(shell grep CONFIG_440 $(TOPDIR)/include/$(cfg))
13
14 ifneq (,$(findstring CONFIG_440,$(is440)))
15 PLATFORM_CPPFLAGS += -Wa,-m440 -mcpu=440
16 else
17 PLATFORM_CPPFLAGS += -Wa,-m405 -mcpu=405
18 endif