diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2014-10-24 01:30:45 +0900 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-10-23 13:19:13 -0400 |
commit | 0732b2f96bc17e8f16dd78a304c8570d06f67b2d (patch) | |
tree | 20297425e632cd3e7d24ade290cb895da6b74a4f | |
parent | 9adb6d2407d10d30a138a94b200fa0aaff4d73dc (diff) | |
download | u-boot-0732b2f96bc17e8f16dd78a304c8570d06f67b2d.tar.gz u-boot-0732b2f96bc17e8f16dd78a304c8570d06f67b2d.tar.bz2 u-boot-0732b2f96bc17e8f16dd78a304c8570d06f67b2d.zip |
kconfig: invoke silentoldconfig if spl, tpl/.config is updated
When spl/.config is updated by "make spl/menuconfig" or friends,
spl/include/config/auto.conf, spl/include/generated/autoconf.h
and some other files must be updated by "make silentoldconfig".
There is no hook for SPL in the top Makefile, so this commit
touches .config when spl/.config is updated to invoke silentoldconfig.
Likewise for TPL.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
-rw-r--r-- | scripts/multiconfig.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/multiconfig.sh b/scripts/multiconfig.sh index 3a963c7973..3e3040b2e2 100644 --- a/scripts/multiconfig.sh +++ b/scripts/multiconfig.sh @@ -297,9 +297,24 @@ do_others () { else objdir=${1%/*} check_enabled_subimage $1 $objdir + + if [ -f "$objdir/$KCONFIG_CONFIG" ]; then + timestamp_before=$(stat --printf="%Y" \ + $objdir/$KCONFIG_CONFIG) + fi fi run_make_config $target $objdir + + if [ "$timestamp_before" -a -f "$objdir/$KCONFIG_CONFIG" ]; then + timestamp_after=$(stat --printf="%Y" $objdir/$KCONFIG_CONFIG) + + if [ "$timestamp_after" -gt "$timestamp_before" ]; then + # $objdir/.config has been updated. + # touch .config to invoke "make silentoldconfig" + touch $KCONFIG_CONFIG + fi + fi } progname=$(basename $0) |