2003-12-08 01:34:36 +00:00
|
|
|
#
|
2004-02-12 00:47:09 +00:00
|
|
|
# (C) Copyright 2003 Josef Baumgartner <josef.baumgartner@telex.de>
|
|
|
|
#
|
|
|
|
# (C) Copyright 2000-2004
|
2003-12-08 01:34:36 +00:00
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
2013-07-08 07:37:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2003-12-08 01:34:36 +00:00
|
|
|
#
|
|
|
|
|
kconfig: switch to Kconfig
This commit enables Kconfig.
Going forward, we use Kconfig for the board configuration.
mkconfig will never be used. Nor will include/config.mk be generated.
Kconfig must be adjusted for U-Boot because our situation is
a little more complicated than Linux Kernel.
We have to generate multiple boot images (Normal, SPL, TPL)
from one source tree.
Each image needs its own configuration input.
Usage:
Run "make <board>_defconfig" to do the board configuration.
It will create the .config file and additionally spl/.config, tpl/.config
if SPL, TPL is enabled, respectively.
You can use "make config", "make menuconfig" etc. to create
a new .config or modify the existing one.
Use "make spl/config", "make spl/menuconfig" etc. for spl/.config
and do likewise for tpl/.config file.
The generic syntax of configuration targets for SPL, TPL is:
<target_image>/<config_command>
Here, <target_image> is either 'spl' or 'tpl'
<config_command> is 'config', 'menuconfig', 'xconfig', etc.
When the configuration is done, run "make".
(Or "make <board>_defconfig all" will do the configuration and build
in one time.)
For futher information of how Kconfig works in U-Boot,
please read the comment block of scripts/multiconfig.py.
By the way, there is another item worth remarking here:
coexistence of Kconfig and board herder files.
Prior to Kconfig, we used C headers to define a set of configs.
We expect a very long term to migrate from C headers to Kconfig.
Two different infractructure must coexist in the interim.
In our former configuration scheme, include/autoconf.mk was generated
for use in makefiles.
It is still generated under include/, spl/include/, tpl/include/ directory
for the Normal, SPL, TPL image, respectively.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Acked-by: Simon Glass <sjg@chromium.org>
2014-07-30 05:08:17 +00:00
|
|
|
cfg=$(srctree)/include/configs/$(CONFIG_SYS_CONFIG_NAME:"%"=%).h
|
|
|
|
is5208:=$(shell grep CONFIG_M5208 $(cfg))
|
|
|
|
is5249:=$(shell grep CONFIG_M5249 $(cfg))
|
|
|
|
is5253:=$(shell grep CONFIG_M5253 $(cfg))
|
|
|
|
is5271:=$(shell grep CONFIG_M5271 $(cfg))
|
|
|
|
is5272:=$(shell grep CONFIG_M5272 $(cfg))
|
|
|
|
is5275:=$(shell grep CONFIG_M5275 $(cfg))
|
|
|
|
is5282:=$(shell grep CONFIG_M5282 $(cfg))
|
2007-11-07 23:51:00 +00:00
|
|
|
|
2009-06-12 11:29:00 +00:00
|
|
|
ifneq (,$(findstring CONFIG_M5208,$(is5208)))
|
|
|
|
PLATFORM_CPPFLAGS += -mcpu=5208
|
|
|
|
endif
|
2007-11-07 23:51:00 +00:00
|
|
|
ifneq (,$(findstring CONFIG_M5249,$(is5249)))
|
|
|
|
PLATFORM_CPPFLAGS += -mcpu=5249
|
|
|
|
endif
|
|
|
|
ifneq (,$(findstring CONFIG_M5253,$(is5253)))
|
|
|
|
PLATFORM_CPPFLAGS += -mcpu=5253
|
|
|
|
endif
|
|
|
|
ifneq (,$(findstring CONFIG_M5271,$(is5271)))
|
|
|
|
PLATFORM_CPPFLAGS += -mcpu=5271
|
|
|
|
endif
|
|
|
|
ifneq (,$(findstring CONFIG_M5272,$(is5272)))
|
|
|
|
PLATFORM_CPPFLAGS += -mcpu=5272
|
|
|
|
endif
|
2008-02-04 21:38:20 +00:00
|
|
|
ifneq (,$(findstring CONFIG_M5275,$(is5275)))
|
|
|
|
PLATFORM_CPPFLAGS += -mcpu=5275
|
|
|
|
endif
|
2007-11-07 23:51:00 +00:00
|
|
|
ifneq (,$(findstring CONFIG_M5282,$(is5282)))
|
|
|
|
PLATFORM_CPPFLAGS += -mcpu=5282
|
|
|
|
endif
|