mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-09 06:13:21 +09:00
![Masahiro Yamada](/assets/img/avatar_default.png)
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>
18 lines
410 B
Makefile
18 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
|