summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-11-13 14:25:50 -0700
committerSimon Glass <sjg@chromium.org>2016-12-02 10:37:47 -0700
commit1bd876301b1b6a2046cd1415fff71f5e8a30e6b4 (patch)
tree3644b382599024884a9c8be713b24e1f47f5779e /Makefile
parent0317724e6c5db6229dbdc03dd9c9b68a559973fe (diff)
downloadu-boot-imx-1bd876301b1b6a2046cd1415fff71f5e8a30e6b4.zip
u-boot-imx-1bd876301b1b6a2046cd1415fff71f5e8a30e6b4.tar.gz
u-boot-imx-1bd876301b1b6a2046cd1415fff71f5e8a30e6b4.tar.bz2
Makefile: Add a target to create the .cfg files
A common requirement when converting CONFIG options to Kconfig is to check that the effective configuration has not changed due to the conversion. Add a target which creates this configuration (in the form of u-boot.cfg) but does not build U-Boot. This speeds up the checking. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 96ddc59..153e076 100644
--- a/Makefile
+++ b/Makefile
@@ -821,6 +821,8 @@ append = cat $(filter-out $< $(PHONY), $^) >> $@
quiet_cmd_pad_cat = CAT $@
cmd_pad_cat = $(cmd_objcopy) && $(append) || rm -f $@
+cfg: u-boot.cfg
+
all: $(ALL-y)
ifeq ($(CONFIG_DM_I2C_COMPAT)$(CONFIG_SANDBOX),y)
@echo "===================== WARNING ======================"
@@ -1527,6 +1529,7 @@ help:
@echo ' cscope - Generate cscope index'
@echo ' ubootrelease - Output the release version string (use with make -s)'
@echo ' ubootversion - Output the version stored in Makefile (use with make -s)'
+ @echo " cfg - Don't build, just create the .cfg files"
@echo ''
@echo 'Static analysers'
@echo ' checkstack - Generate a list of stack hogs'