xiaobo gu | e6c4686 | 2018-01-10 18:58:09 +0800 | [diff] [blame] | 1 | |
xiaobo gu | 0c2598b | 2019-06-28 11:22:17 +0800 | [diff] [blame] | 2 | declare UBOOT_FOLDER="bl33" |
xiaobo gu | e6c4686 | 2018-01-10 18:58:09 +0800 | [diff] [blame] | 3 | declare MAIN_FOLDER="" |
xiaobo gu | 0c2598b | 2019-06-28 11:22:17 +0800 | [diff] [blame] | 4 | export UBOOT_FOLDER MAIN_FOLDER |
| 5 | |
| 6 | declare UBOOT_VERSION1="v2015" |
| 7 | declare UBOOT_VERSION2="v2019" |
Bo Lv | 26b2167 | 2023-01-16 01:50:15 +0000 | [diff] [blame] | 8 | declare UBOOT_VERSION3="v2023" |
| 9 | export UBOOT_VERSION1 UBOOT_VERSION2 UBOOT_VERSION3 |
xiaobo gu | e6c4686 | 2018-01-10 18:58:09 +0800 | [diff] [blame] | 10 | |
| 11 | # build environment |
| 12 | BUILD_FOLDER="build/" |
| 13 | FIP_FOLDER="fip/" |
| 14 | MANIFEST=".repo/manifest.xml" |
xiaobo gu | 6368ebe | 2018-03-29 21:49:25 +0800 | [diff] [blame] | 15 | FIP_BUILD_FOLDER="fip/_tmp/" |
Honglin Zhang | 637c38b | 2020-06-28 02:16:39 -0400 | [diff] [blame] | 16 | declare -a BLX_NAME_GLB=("bl2" "bl30" "bl31" "bl32" "bl40" "bl2e" "bl2x") |
xiaobo gu | e6c4686 | 2018-01-10 18:58:09 +0800 | [diff] [blame] | 17 | |
| 18 | # include uboot pre-build defines |
xiaobo gu | 0c2598b | 2019-06-28 11:22:17 +0800 | [diff] [blame] | 19 | #BL33_BUILD_FOLDER=("bl33/build/") |
| 20 | #SOURCE_FILE=("${BL33_BUILD_FOLDER}.config") |
| 21 | #CONFIG_FILE=("${BL33_BUILD_FOLDER}include/autoconf.mk") |
xiaobo gu | e6c4686 | 2018-01-10 18:58:09 +0800 | [diff] [blame] | 22 | |
| 23 | # variables |
| 24 | declare BOARD_DIR="" |
| 25 | declare CUR_SOC="" |
Honglin Zhang | 143efbf | 2020-08-20 04:16:49 -0400 | [diff] [blame] | 26 | declare BLX_BIN_SUB_FOLDER="" |
xiaobo gu | e6c4686 | 2018-01-10 18:58:09 +0800 | [diff] [blame] | 27 | |
Honglin Zhang | e358be4 | 2020-08-12 02:16:02 -0400 | [diff] [blame] | 28 | declare -x BL30_SELECT="" |
Zhongfu Luo | 3a6e534 | 2020-12-27 13:11:54 +0800 | [diff] [blame] | 29 | declare ADVANCED_BOOTLOADER="" |
Honglin Zhang | e358be4 | 2020-08-12 02:16:02 -0400 | [diff] [blame] | 30 | |
xiaobo gu | 0c2598b | 2019-06-28 11:22:17 +0800 | [diff] [blame] | 31 | declare DEFCFG_FOLDER="board/amlogic/defconfigs" |
Bo Lv | 26b2167 | 2023-01-16 01:50:15 +0000 | [diff] [blame] | 32 | declare DEFCFG_FOLDER3="configs/amlogic" |
xiaobo gu | 0c2598b | 2019-06-28 11:22:17 +0800 | [diff] [blame] | 33 | |
| 34 | # for make clean |
| 35 | declare BL33_PATH1="bl33/v2015" |
| 36 | declare BL33_PATH2="bl33/v2019" |
Bo Lv | 26b2167 | 2023-01-16 01:50:15 +0000 | [diff] [blame] | 37 | declare BL33_PATH3="bl33/v2023" |
xiaobo gu | 0c2598b | 2019-06-28 11:22:17 +0800 | [diff] [blame] | 38 | |
xiaobo gu | 0c2598b | 2019-06-28 11:22:17 +0800 | [diff] [blame] | 39 | declare BL33_DEFCFG1="${UBOOT_FOLDER}/${UBOOT_VERSION1}/${DEFCFG_FOLDER}" |
| 40 | declare BL33_DEFCFG2="${UBOOT_FOLDER}/${UBOOT_VERSION2}/${DEFCFG_FOLDER}" |
Bo Lv | 26b2167 | 2023-01-16 01:50:15 +0000 | [diff] [blame] | 41 | declare BL33_DEFCFG3="${UBOOT_FOLDER}/${UBOOT_VERSION3}/${DEFCFG_FOLDER3}" |
xiaobo gu | 0c2598b | 2019-06-28 11:22:17 +0800 | [diff] [blame] | 42 | |
Honglin Zhang | 694f534 | 2019-12-09 14:54:40 +0800 | [diff] [blame] | 43 | declare FIP_DDR_PARSE="${FIP_FOLDER}/tools/ddr_parse/" |
xiaobo gu | e6c4686 | 2018-01-10 18:58:09 +0800 | [diff] [blame] | 44 | # current branch/path/rev/name/remote in xml |
| 45 | declare -a GIT_INFO=("branch", "path", "rev", "name", "remote") |
| 46 | |
| 47 | function export_variables() { |
| 48 | export BUILD_FOLDER |
| 49 | export FIP_FOLDER |
| 50 | export MANIFEST |
| 51 | export CUR_SOC |
| 52 | export BOARD_DIR |
Honglin Zhang | 694f534 | 2019-12-09 14:54:40 +0800 | [diff] [blame] | 53 | } |
Bo Lv | 9edb699 | 2021-09-06 11:31:00 +0800 | [diff] [blame] | 54 | |
Bo Lv | 26b2167 | 2023-01-16 01:50:15 +0000 | [diff] [blame] | 55 | declare serverAddr="https://10.68.11.138" |
Meng yu | 99dbc83 | 2023-12-22 15:52:06 +0800 | [diff] [blame] | 56 | declare -a COMPILE_PARA_LIST=("--h" "--help" "--config" "--chip-varient" "--check-compile" \ |
| 57 | "--cov" "--cov-high" "--enable-ramdump" "--uasan" "--enable-bl33z" \ |
| 58 | "--disable-bl33z" "--compress-bl2e" "--chipid" "--build-version" \ |
Tao Zeng | 05f7586 | 2024-02-02 10:12:03 +0800 | [diff] [blame] | 59 | "--ab-update" "--hdmitx-only" "--clean" "--noverbose" \ |
caihua.zhao | fc017de | 2024-05-14 19:57:39 +0800 | [diff] [blame] | 60 | "--distclean" "--bl2" "--bl2e" "--bl2f" "--bl2e-size" "--bl2x" "--bl30" "--bl31" \ |
Meng yu | 99dbc83 | 2023-12-22 15:52:06 +0800 | [diff] [blame] | 61 | "--bl32" "--bl40" "--ddr-fip" "--sign-bl40" "--update-bl2" \ |
| 62 | "--update-bl2e" "--update-bl2x" "--update-ddr-fip" "--update-bl30" \ |
| 63 | "--update-bl31" "--update-bl32" "--bl2-branch" "--ddrfw" \ |
| 64 | "--jenkins-sign" "--former-sign" "--build-unsign" "--build-nogit" \ |
| 65 | "--nasc_nagra_tier_1" "--cas" "--systemroot" "--avb2" "--vab" \ |
| 66 | "--fastboot-write" "--signpipe" "--avb2-recovery" "--patch" "--gpt" \ |
Meng yu | ec57d86 | 2024-04-30 11:23:02 +0800 | [diff] [blame] | 67 | "--display-pipeline" "--testkey" "--ipc-type" "--ipc-ddr-size" \ |
| 68 | "--ipc-tee-type" \ |
Meng yu | 99dbc83 | 2023-12-22 15:52:06 +0800 | [diff] [blame] | 69 | ) |