]> git.baikalelectronics.ru Git - uboot.git/commit
Makefile: Provide an option to select SPL or TPL
authorSimon Glass <sjg@chromium.org>
Sun, 2 Apr 2017 15:50:30 +0000 (09:50 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 5 Apr 2017 20:36:58 +0000 (16:36 -0400)
commita2d240082e9a0b0bfeeb815d89b7613ec0c19dff
treedfb79699883072508fde67014eda9595761acff2
parentc06764eb0b0487e66411d7639668c69c2a64f7fb
Makefile: Provide an option to select SPL or TPL

At present we have SPL_ which can be used in Makefiles to select between
normal and SPL CONFIGs like this:

    obj-$(CONFIG_$(SPL_)DM) += core/

When TPL is being built, SPL_ has the value 'SPL' which is generally a
good idea since they tend to follow each other. But in extreme situations
we may want to distinugish between SPL and TPL. For example we may not
want to enable CONFIG_DM with TPL.

Add a new SPL_TPL_ variable which is set to either empty (for U-Boot
proper), 'SPL' or 'TPL'. This may prove useful with TPL-specific options.

Signed-off-by: Simon Glass <sjg@chromium.org>
scripts/Kbuild.include
scripts/Makefile.spl