| |
| declare UBOOT_FOLDER="bl33" |
| declare MAIN_FOLDER="" |
| export UBOOT_FOLDER MAIN_FOLDER |
| |
| declare UBOOT_VERSION1="v2015" |
| declare UBOOT_VERSION2="v2019" |
| declare UBOOT_VERSION3="v2023" |
| declare UBOOT_VERSION4="v2025" |
| export UBOOT_VERSION1 UBOOT_VERSION2 UBOOT_VERSION3 UBOOT_VERSION4 |
| |
| # build environment |
| BUILD_FOLDER="build/" |
| FIP_FOLDER="fip/" |
| MANIFEST=".repo/manifest.xml" |
| FIP_BUILD_FOLDER="fip/_tmp/" |
| declare -a BLX_NAME_GLB=("bl2" "bl30" "bl31" "bl32" "bl40" "bl2e" "bl2x") |
| |
| # include uboot pre-build defines |
| #BL33_BUILD_FOLDER=("bl33/build/") |
| #SOURCE_FILE=("${BL33_BUILD_FOLDER}.config") |
| #CONFIG_FILE=("${BL33_BUILD_FOLDER}include/autoconf.mk") |
| |
| # variables |
| declare BOARD_DIR="" |
| declare CUR_SOC="" |
| declare BLX_BIN_SUB_FOLDER="" |
| |
| declare -x BL30_SELECT="" |
| declare ADVANCED_BOOTLOADER="" |
| |
| declare DEFCFG_FOLDER="board/amlogic/defconfigs" |
| declare DEFCFG_FOLDER3="configs/amlogic" |
| |
| # for make clean |
| declare BL33_PATH1="bl33/v2015" |
| declare BL33_PATH2="bl33/v2019" |
| declare BL33_PATH3="bl33/v2023" |
| declare BL33_PATH4="bl33/v2025" |
| |
| declare BL33_DEFCFG1="${UBOOT_FOLDER}/${UBOOT_VERSION1}/${DEFCFG_FOLDER}" |
| declare BL33_DEFCFG2="${UBOOT_FOLDER}/${UBOOT_VERSION2}/${DEFCFG_FOLDER}" |
| declare BL33_DEFCFG3="${UBOOT_FOLDER}/${UBOOT_VERSION3}/${DEFCFG_FOLDER3}" |
| declare BL33_DEFCFG4="${UBOOT_FOLDER}/${UBOOT_VERSION4}/${DEFCFG_FOLDER3}" |
| |
| declare FIP_DDR_PARSE="${FIP_FOLDER}/tools/ddr_parse/" |
| # current branch/path/rev/name/remote in xml |
| declare -a GIT_INFO=("branch", "path", "rev", "name", "remote") |
| |
| function export_variables() { |
| export BUILD_FOLDER |
| export FIP_FOLDER |
| export MANIFEST |
| export CUR_SOC |
| export BOARD_DIR |
| } |
| |
| declare serverAddr="https://10.68.11.138" |
| declare -a COMPILE_PARA_LIST=("--h" "--help" "--config" "--chip-varient" "--check-compile" \ |
| "--cov" "--cov-high" "--enable-ramdump" "--uasan" "--enable-bl33z" \ |
| "--disable-bl33z" "--compress-bl2e" "--chipid" "--build-version" \ |
| "--ab-update" "--hdmitx-only" "--clean" "--noverbose" \ |
| "--distclean" "--bl2" "--bl2e" "--bl2e-usb" "--bl2f" "--bl2e-size" "--bl2x" "--bl30" "--bl31" \ |
| "--bl32" "--bl40" "--ddr-fip" "--sign-bl40" "--update-bl2" \ |
| "--update-bl2e" "--update-bl2x" "--update-ddr-fip" "--update-bl30" \ |
| "--update-bl31" "--update-bl32" "--bl2-branch" "--ddrfw" \ |
| "--jenkins-sign" "--former-sign" "--build-unsign" "--build-nogit" \ |
| "--nasc_nagra_tier_1" "--cas" "--systemroot" "--avb2" "--vab" \ |
| "--fastboot-write" "--signpipe" "--avb2-recovery" "--patch" "--gpt" \ |
| "--display-pipeline" "--testkey" "--ipc-type" "--ipc-ddr-size" \ |
| "--ipc-tee-type" "--ddrfip-indep" \ |
| ) |