From: Simon Glass Date: Sun, 13 Nov 2016 14:25:50 -0700 Subject: [U-Boot] [PATCH v2 1/4] Makefile: Add a target to create the .cfg files In-Reply-To: <1479072353-19074-1-git-send-email-sjg@chromium.org> References: <1479072353-19074-1-git-send-email-sjg@chromium.org> Message-ID: <1479072353-19074-2-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- Changes in v2: - Rebase to mainline with Masahiro's changes Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 37cbcb2..6729c1b 100644 --- a/Makefile +++ b/Makefile @@ -812,6 +812,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 ======================" @@ -1518,6 +1520,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' -- 2.8.0.rc3.226.g39d4020