SOC OV788开发:4.autobuild_r2mp.sh 编译脚本参数传递
SOC OV788开发:4.autobuild_r2mp.sh 编译脚本参数传递
autobuild_r2mp.sh menuconfig sample_app sample_hello_world 编译脚本参数传递
linux@ubuntu:~/sdk_ov788/OV788_SDK_52786_1396/Firmware/OV788_SDK_src.52791.1396$ cat autobuild_r2mp.sh
#!/bin/bash
echo $0
echo $1
echo $2
chip=r2 RAMEFS=1 make/build.sh $*
#chip=r2 R2_ROMEFS=1 make/build.sh $*
linux@ubuntu:~/sdk_ov788/OV788_SDK_52786_1396/Firmware/OV788_SDK_src.52791.1396$ vi make/build.sh
#!/bin/bash
echo “0=”$0
echo “1=”$1
echo “2=”$2
echo “3=”$3
echo “chip=”$chip
echo “prj=”$prj
linux@ubuntu:~/sdk_ov788/OV788_SDK_52786_1396/Firmware/OV788_SDK_src.52791.1396$ ./autobuild_r2mp.sh sample_app sample_hello_world
./autobuild_r2mp.sh
sample_app
sample_hello_world
0=make/build.sh
1=sample_app
2=sample_hello_world
3=
chip=r2
prj=
linux@ubuntu:~/sdk_ov788/OV788_SDK_52786_1396/Firmware/OV788_SDK_src.52791.1396$ ./autobuild_r2mp.sh menuconfig sample_app sample_hello_world
./autobuild_r2mp.sh
menuconfig
sample_app
0=make/build.sh
1=menuconfig
2=sample_app
3=sample_hello_world
start menuconfig
share/libwlan_chip/Kconfig:39⚠️ defaults for choice values not supported
Your configuration changes were NOT saved.
Generate prj/r2/sample_app/.sample_hello_world.prj …Done
Generate prj/r2/sample_app/.sample_hello_world.autoconf.h …Done
linux@ubuntu:~/sdk_ov788/OV788_SDK_52786_1396/Firmware/OV788_SDK_src.52791.1396$ ls -l prj/r2/sample_app/.sample_hello_world.prj
-rw-rw-r-- 1 linux linux 735 Apr 15 14:15 prj/r2/sample_app/.sample_hello_world.prj
linux@ubuntu:~/sdk_ov788/OV788_SDK_52786_1396/Firmware/OV788_SDK_src.52791.1396$ vi prj/r2/sample_app/.sample_hello_world.prj
linux@ubuntu:~/sdk_ov788/OV788_SDK_52786_1396/Firmware/OV788_SDK_src.52791.1396$ vi prj/r2/sample_app/.sample_hello_world.autoconf.h
linux@ubuntu:~/sdk_ov788/OV788_SDK_52786_1396/Firmware/OV788_SDK_src.52791.1396$ cat prj/r2/sample_app/.sample_hello_world.autoconf.h
#define CONFIG_SYSCLK_PADCLK 1
#define CONFIG_NOOS_EN 1
#define CONFIG_NO_LIBPRJSHARE 1
#define CONFIG_CLEAR_SHARE_DATA 1
#define CONFIG_UART_PRINT 1
#define CONFIG_BOARD_EXTRA_HEADER “board_V2.h”
linux@ubuntu:~/sdk_ov788/OV788_SDK_52786_1396/Firmware/OV788_SDK_src.52791.1396$ cat prj/r2/sample_app/.sample_hello_world.prj
###################################################
# This file is Auto-generated from prj/ ( C H I P ) / (CHIP)/ (CHIP)/(PRJ)/$(APP).config, DON’T EDIT !!!
#
# If you want to change options, edit prj/ ( C H I P ) / (CHIP)/ (CHIP)/(PRJ)/$(APP).config
# or, use “autobuild.sh menuconfig PRJ APP” to generate $(APP).config
###################################################
######## old style configs ########
PADCLK := PAD24M
SYSCLK := PADCLK
NOOS_EN := 1
NO_LIBPRJSHARE := 1
CLEAR_SHARE_DATA := 1
UART_PRINT := 1
BOARD_EXTRA_HEADER := board_V2.h
######## new style configs ########
CONFIG_PADCLK := PAD24M
CONFIG_SYSCLK := PADCLK
CONFIG_NOOS_EN := 1
CONFIG_NO_LIBPRJSHARE := 1
CONFIG_CLEAR_SHARE_DATA := 1
CONFIG_UART_PRINT := 1
CONFIG_BOARD_EXTRA_HEADER := board_V2.h
文章来源: blog.csdn.net,作者:悟空胆好小,版权归原作者所有,如需转载,请联系作者。
原文链接:blog.csdn.net/xushx_bigbear/article/details/123079099
- 点赞
- 收藏
- 关注作者
评论(0)