处理了一下 env
```shell
#!/bin/bash
# path setup
export PATH_SCRIPTS=$(dirname -- "$( readlink -f -- "$0"; )";)
export PATH_xxx_BSP_ROOT=$(readlink -f -- "$PATH_SCRIPTS/..";)
export PATH_RK_SDK=$PATH_xxx_BSP_ROOT/rk_sdk
export PATH_BOOTLOADER=$PATH_RK_SDK/u-boot
export PATH_KERNEL=$PATH_RK_SDK/kernel
export PATH_BUILDROOT=$PATH_xxx_BSP_ROOT/buildroot-2022.11
export PATH_ROOTFS_OVERLAY=$PATH_xxx_BSP_ROOT/rootfs_overlay
export PATH_SCRIPTS=$PATH_xxx_BSP_ROOT/scripts
export PATH_OUTPUT=$PATH_xxx_BSP_ROOT/output
# magic string for check if this file is sourced
export xxx_BSP="114514"
# build env setup
export HOST_CORE_COUNT=$(nproc)
export ARCH=arm64
# kernel 4.19 is too old to be built with latest GCC, use prebuilt old ones
export CROSS_COMPILE=$PATH_RK_SDK/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
# BSP env setup
export BSP_TARGET_PRODUCT=rk356x
## bootloader
export BSP_BOOTLOADER_USER_CONFIG=/home/localuser/Downloads/ROC-RK3566-PC/rk3566_xxx_bsp/___xxxconfig/rk/bootloader/.config
export BSP_BOOTLOADER_DECONFIG=firefly-rk3568_defconfig
export BSP_BOOTLOADER_DEFCONFIG_FRAGMENT=firefly-rk3566.config
# export BSP_BOOTLOADER_LOADER_FINAL_OUTPUT_FILE=*_loader_*.bin
export BSP_BOOTLOADER_LOADER_INSTALL_NAME=MiniLoaderAll.bin
export BSP_BOOTLOADER_UBOOT_FINAL_OUTPUT_FILE=uboot.img
export BSP_BOOTLOADER_UBOOT_INSTALL_NAME=uboot.img
## kernel
export BSP_KERNEL_USER_CONFIG=/home/localuser/Downloads/ROC-RK3566-PC/rk3566_xxx_bsp/___xxxconfig/rk/kernel/.config
export BSP_KERNEL_DECONFIG=firefly_linux_defconfig
export BSP_KERNEL_DEFCONFIG_FRAGMENT=rk356x_linux.config
export BSP_KERNEL_DTS=rk3566-firefly-roc-pc-mipi101_M101014_BE45_A1
export BSP_KERNEL_ORG_KIMAGE_FILE=arch/$ARCH/boot/Image
# export BSP_KERNEL_BOOT_IMG=extboot.img
export BSP_KERNEL_FIT_ITS=bootramdisk.its
# export BSP_KERNEL_FINAL_OUTPUT_FILE=boot.img.fit
export BSP_KERNEL_FINAL_OUTPUT_FILE=extboot.img
export BSP_KERNEL_INSTALL_NAME=boot.img
### extboot
export BSP_KERNEL_EXTBOOT_SIZE=64M
### BSP_KERNEL_USER_CONFIG must be a vaild path, not just file name
## buildroot
export BSP_BUILDROOT_USER_CONFIG=/home/localuser/Downloads/ROC-RK3566-PC/rk3566_xxx_bsp/___xxxconfig/buildroot/.config
export BSP_BUILDROOT_FINAL_OUTPUT_FILE=rootfs.ext2
export BSP_BUILDROOT_INSTALL_NAME=rootfs.img
## pack image
export BSP_PACKIMG_TOOL_PATH=$PATH_RK_SDK/tools/linux/Linux_Pack_Firmware/rockdev
export BSP_PACKIMG_SCRIPT_FILE=$BSP_PACKIMG_TOOL_PATH/
rk356x-mkupdate.shexport BSP_PACKIMG_AFPTOOL_FILE=$BSP_PACKIMG_TOOL_PATH/afptool
export BSP_PACKIMG_RKIMAGEMAKER_FILE=$BSP_PACKIMG_TOOL_PATH/rkImageMaker
# export BSP_PACKIMG_PACKAGE_FILE=$BSP_PACKIMG_TOOL_PATH/rk356x-package-file
# export BSP_PACKIMG_PARAMETER_FILE=/home/localuser/Downloads/ROC-RK3566-PC/rk3566_xxx_bsp/rk_sdk/device/rockchip/rk356x/parameter-buildroot-fit.txt
export BSP_PACKIMG_PACKAGE_FILE=/home/localuser/Downloads/ROC-RK3566-PC/rk3566_xxx_bsp/___xxxconfig/packimg/rk356x/rk356x-package-file
export BSP_PACKIMG_PARAMETER_FILE=/home/localuser/Downloads/ROC-RK3566-PC/rk3566_xxx_bsp/___xxxconfig/packimg/rk356x/parameter-buildroot-fit.txt
export BSP_PACKIMG_FINAL_OUTPUT_FILE=update.img
export BSP_PACKIMG_INSTALL_NAME=update.img
## flash
export BSP_FLASH_TOOL_PATH=$PATH_RK_SDK/tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool
export BSP_FLASH_TOOL_FILE=$BSP_FLASH_TOOL_PATH/upgrade_tool
```