blob: c94a21b59ca695ee59613e652d08c9f5b259db1b [file] [log] [blame]
xiaobo gue6c46862018-01-10 18:58:09 +08001
xiaobo gu0c2598b2019-06-28 11:22:17 +08002declare UBOOT_FOLDER="bl33"
xiaobo gue6c46862018-01-10 18:58:09 +08003declare MAIN_FOLDER=""
xiaobo gu0c2598b2019-06-28 11:22:17 +08004export UBOOT_FOLDER MAIN_FOLDER
5
6declare UBOOT_VERSION1="v2015"
7declare UBOOT_VERSION2="v2019"
Bo Lv26b21672023-01-16 01:50:15 +00008declare UBOOT_VERSION3="v2023"
Bo Lv9a448972024-11-29 17:10:12 +08009declare UBOOT_VERSION4="v2025"
10export UBOOT_VERSION1 UBOOT_VERSION2 UBOOT_VERSION3 UBOOT_VERSION4
xiaobo gue6c46862018-01-10 18:58:09 +080011
12# build environment
13BUILD_FOLDER="build/"
14FIP_FOLDER="fip/"
15MANIFEST=".repo/manifest.xml"
xiaobo gu6368ebe2018-03-29 21:49:25 +080016FIP_BUILD_FOLDER="fip/_tmp/"
Honglin Zhang637c38b2020-06-28 02:16:39 -040017declare -a BLX_NAME_GLB=("bl2" "bl30" "bl31" "bl32" "bl40" "bl2e" "bl2x")
xiaobo gue6c46862018-01-10 18:58:09 +080018
19# include uboot pre-build defines
xiaobo gu0c2598b2019-06-28 11:22:17 +080020#BL33_BUILD_FOLDER=("bl33/build/")
21#SOURCE_FILE=("${BL33_BUILD_FOLDER}.config")
22#CONFIG_FILE=("${BL33_BUILD_FOLDER}include/autoconf.mk")
xiaobo gue6c46862018-01-10 18:58:09 +080023
24# variables
25declare BOARD_DIR=""
26declare CUR_SOC=""
Honglin Zhang143efbf2020-08-20 04:16:49 -040027declare BLX_BIN_SUB_FOLDER=""
xiaobo gue6c46862018-01-10 18:58:09 +080028
Honglin Zhange358be42020-08-12 02:16:02 -040029declare -x BL30_SELECT=""
Zhongfu Luo3a6e5342020-12-27 13:11:54 +080030declare ADVANCED_BOOTLOADER=""
Honglin Zhange358be42020-08-12 02:16:02 -040031
xiaobo gu0c2598b2019-06-28 11:22:17 +080032declare DEFCFG_FOLDER="board/amlogic/defconfigs"
Bo Lv26b21672023-01-16 01:50:15 +000033declare DEFCFG_FOLDER3="configs/amlogic"
xiaobo gu0c2598b2019-06-28 11:22:17 +080034
35# for make clean
36declare BL33_PATH1="bl33/v2015"
37declare BL33_PATH2="bl33/v2019"
Bo Lv26b21672023-01-16 01:50:15 +000038declare BL33_PATH3="bl33/v2023"
Bo Lv9a448972024-11-29 17:10:12 +080039declare BL33_PATH4="bl33/v2025"
xiaobo gu0c2598b2019-06-28 11:22:17 +080040
xiaobo gu0c2598b2019-06-28 11:22:17 +080041declare BL33_DEFCFG1="${UBOOT_FOLDER}/${UBOOT_VERSION1}/${DEFCFG_FOLDER}"
42declare BL33_DEFCFG2="${UBOOT_FOLDER}/${UBOOT_VERSION2}/${DEFCFG_FOLDER}"
Bo Lv26b21672023-01-16 01:50:15 +000043declare BL33_DEFCFG3="${UBOOT_FOLDER}/${UBOOT_VERSION3}/${DEFCFG_FOLDER3}"
Bo Lv9a448972024-11-29 17:10:12 +080044declare BL33_DEFCFG4="${UBOOT_FOLDER}/${UBOOT_VERSION4}/${DEFCFG_FOLDER3}"
xiaobo gu0c2598b2019-06-28 11:22:17 +080045
Honglin Zhang694f5342019-12-09 14:54:40 +080046declare FIP_DDR_PARSE="${FIP_FOLDER}/tools/ddr_parse/"
xiaobo gue6c46862018-01-10 18:58:09 +080047# current branch/path/rev/name/remote in xml
48declare -a GIT_INFO=("branch", "path", "rev", "name", "remote")
49
50function export_variables() {
51 export BUILD_FOLDER
52 export FIP_FOLDER
53 export MANIFEST
54 export CUR_SOC
55 export BOARD_DIR
Honglin Zhang694f5342019-12-09 14:54:40 +080056}
Bo Lv9edb6992021-09-06 11:31:00 +080057
Bo Lv26b21672023-01-16 01:50:15 +000058declare serverAddr="https://10.68.11.138"
Meng yu99dbc832023-12-22 15:52:06 +080059declare -a COMPILE_PARA_LIST=("--h" "--help" "--config" "--chip-varient" "--check-compile" \
60 "--cov" "--cov-high" "--enable-ramdump" "--uasan" "--enable-bl33z" \
61 "--disable-bl33z" "--compress-bl2e" "--chipid" "--build-version" \
Tao Zeng05f75862024-02-02 10:12:03 +080062 "--ab-update" "--hdmitx-only" "--clean" "--noverbose" \
ziting.xianaa178cb2024-11-26 20:40:02 +080063 "--distclean" "--bl2" "--bl2e" "--bl2e-usb" "--bl2f" "--bl2e-size" "--bl2x" "--bl30" "--bl31" \
Meng yu99dbc832023-12-22 15:52:06 +080064 "--bl32" "--bl40" "--ddr-fip" "--sign-bl40" "--update-bl2" \
65 "--update-bl2e" "--update-bl2x" "--update-ddr-fip" "--update-bl30" \
66 "--update-bl31" "--update-bl32" "--bl2-branch" "--ddrfw" \
67 "--jenkins-sign" "--former-sign" "--build-unsign" "--build-nogit" \
68 "--nasc_nagra_tier_1" "--cas" "--systemroot" "--avb2" "--vab" \
69 "--fastboot-write" "--signpipe" "--avb2-recovery" "--patch" "--gpt" \
Meng yuec57d862024-04-30 11:23:02 +080070 "--display-pipeline" "--testkey" "--ipc-type" "--ipc-ddr-size" \
Meng yub5356cb2024-10-17 14:43:10 +080071 "--ipc-tee-type" "--ddrfip-indep" \
Meng yu99dbc832023-12-22 15:52:06 +080072 )