Modify create_appspec.sh to read USER_ENTRYPOINT
Previous, create_appspec read FUNCNAME in Make.defs.
Now it reads USER_ENTRYPOINT
@@ -40,7 +40,7 @@ echo -e "USER_ENTRYPOINT=$USER_ENTRYPOINT\n" >> $OSDIR$METAFILE
for FILE in $TARGET_DIR_LIST
do
APPNAME=`sed -n '/^APPNAME/p' $APPDIR$FILE$MAKEFILE | sed -n 's/APPNAME = //p'`
- FUNCTION=`sed -n '/^FUNCNAME/p' $APPDIR$FILE$MAKEFILE | sed -n 's/FUNCNAME = //p'`
+ FUNCTION=`grep -A 3 'config USER_ENTRYPOINT' $APPDIR$FILE$KCONFIG | sed -n 's/\tdefault "\(\w*\)".*/\1/p'`
CONFIG_NAME=`sed -n '/depends/p' $APPDIR$FILE$KCONFIG_ENTRY | sed -n 's/.*depends on //p'`
if [ "$CONFIG_NAME" = "" ]; then
continue
