mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-01-12 21:28:58 +00:00
c6d12624ae
CONFIG_${CPU} is defined by Kconfig. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by: Simon Glass <sjg@chromium.org> Acked-by: Stefan Roese <sr@denx.de>
17 lines
410 B
Makefile
17 lines
410 B
Makefile
#
|
|
# (C) Copyright 2000-2010
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
|
|
PLATFORM_CPPFLAGS += -mstring -msoft-float
|
|
|
|
cfg=$(srctree)/include/configs/$(CONFIG_SYS_CONFIG_NAME:"%"=%).h
|
|
is440:=$(shell grep CONFIG_440 $(cfg))
|
|
|
|
ifneq (,$(findstring CONFIG_440,$(is440)))
|
|
PLATFORM_CPPFLAGS += -Wa,-m440 -mcpu=440
|
|
else
|
|
PLATFORM_CPPFLAGS += -Wa,-m405 -mcpu=405
|
|
endif
|