mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
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>
This commit is contained in:
parent
9adb6d2407
commit
0732b2f96b
1 changed files with 15 additions and 0 deletions
|
@ -297,9 +297,24 @@ do_others () {
|
||||||
else
|
else
|
||||||
objdir=${1%/*}
|
objdir=${1%/*}
|
||||||
check_enabled_subimage $1 $objdir
|
check_enabled_subimage $1 $objdir
|
||||||
|
|
||||||
|
if [ -f "$objdir/$KCONFIG_CONFIG" ]; then
|
||||||
|
timestamp_before=$(stat --printf="%Y" \
|
||||||
|
$objdir/$KCONFIG_CONFIG)
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
run_make_config $target $objdir
|
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)
|
progname=$(basename $0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue