]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/powerpc/cpu/ppc4xx/config.mk
71c2a6c729f5762321746d50c2df87c0783bea44
[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_CPPFLAGS += -DCONFIG_4xx -mstring -msoft-float
9
10 cfg=$(shell grep configs $(OBJTREE)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
11 is440:=$(shell grep CONFIG_440 $(TOPDIR)/include/$(cfg))
12
13 ifneq (,$(findstring CONFIG_440,$(is440)))
14 PLATFORM_CPPFLAGS += -Wa,-m440 -mcpu=440
15 else
16 PLATFORM_CPPFLAGS += -Wa,-m405 -mcpu=405
17 endif