Commit 1bd876301b1b6a2046cd1415fff71f5e8a30e6b4
1 parent
0317724e6c
Exists in
v2017.01-smarct4x
and in
25 other branches
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>
Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff
Makefile
... | ... | @@ -821,6 +821,8 @@ |
821 | 821 | quiet_cmd_pad_cat = CAT $@ |
822 | 822 | cmd_pad_cat = $(cmd_objcopy) && $(append) || rm -f $@ |
823 | 823 | |
824 | +cfg: u-boot.cfg | |
825 | + | |
824 | 826 | all: $(ALL-y) |
825 | 827 | ifeq ($(CONFIG_DM_I2C_COMPAT)$(CONFIG_SANDBOX),y) |
826 | 828 | @echo "===================== WARNING ======================" |
... | ... | @@ -1527,6 +1529,7 @@ |
1527 | 1529 | @echo ' cscope - Generate cscope index' |
1528 | 1530 | @echo ' ubootrelease - Output the release version string (use with make -s)' |
1529 | 1531 | @echo ' ubootversion - Output the version stored in Makefile (use with make -s)' |
1532 | + @echo " cfg - Don't build, just create the .cfg files" | |
1530 | 1533 | @echo '' |
1531 | 1534 | @echo 'Static analysers' |
1532 | 1535 | @echo ' checkstack - Generate a list of stack hogs' |