From: sunghan Date: Tue, 19 Sep 2017 06:30:29 +0000 (+0900) Subject: apps/tools: fix update_config.sh for issue on update entry point X-Git-Tag: 1.1_Public_Release~179^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ff00491ad97ab865cc844c2ca2d44d47353ebcaf;p=rtos%2Ftinyara.git apps/tools: fix update_config.sh for issue on update entry point When user entry point is changed through make applist/appupdate, CONFIG_ENTRY_XX is not updated, only CONFIG_USER_ENTRYPOINT is. So, it looks not changed on menuconfig. Let's change it to manaul when entry is changed. --- diff --git a/apps/tools/update_config.sh b/apps/tools/update_config.sh index 33df40f..92a1d2d 100755 --- a/apps/tools/update_config.sh +++ b/apps/tools/update_config.sh @@ -29,7 +29,13 @@ function write_config(){ UPDATED_ENTRYPOINT=`sed -n '/USER_ENTRYPOINT/p' $file_path | sed -n 's/.*=//p'` sed -i "s/CONFIG_USER_ENTRYPOINT.*/CONFIG_USER_ENTRYPOINT=$UPDATED_ENTRYPOINT/" $config_path - # update .config' use config from metafile; + CONFIG_ENTRY_LIST=`sed -n '/^CONFIG_ENTRY_/p' $config_path` + if [ "$CONFIG_ENTRY_LIST" != "CONFIG_ENTRY_MANUAL" ]; then + sed -i '/^CONFIG_ENTRY_/{ s/CONFIG/# CONFIG/g; s/=y/ is not set/g }' $config_path + sed -i '/CONFIG_ENTRY_MANUAL/{ s/# //g ; s/ is not set/=y/g }' $config_path + fi + + # update .config use config from metafile; # if OLD_CONFIG_USE is not updated => maintain origin CONFIG_USE; # else OLD_CONFIG and NEW_CONFIG are not equal => change CONFIG_USE;