From 7d5fa90c035fbc03ad14ed61c225cb6767e75b6d Mon Sep 17 00:00:00 2001 From: "dong.yang" Date: Wed, 27 Nov 2024 20:57:08 +0800 Subject: [PATCH] scripts: revert build_rv_pcie_zsbl for BM1690. Now we use PCIe zsbl config for BM1690 in sg2260-pld branch, so keep this cmd until BM1690 switch to zsbl master branch. Signed-off-by: dong.yang --- scripts/envsetup.sh | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/scripts/envsetup.sh b/scripts/envsetup.sh index 97890461..ca6f9f18 100755 --- a/scripts/envsetup.sh +++ b/scripts/envsetup.sh @@ -313,14 +313,36 @@ function clean_rv_bootrom() function build_rv_pcie_zsbl() { - build_rv_zsbl + local err + + pushd $RV_ZSBL_SRC_DIR + make CROSS_COMPILE=$RISCV64_LINUX_CROSS_COMPILE O=$RV_ZSBL_BUILD_DIR ARCH=riscv bm1690_pcie_defconfig + err=$? + popd + + if [ $err -ne 0 ]; then + echo "making pcie zsbl config failed" + return $err + fi + + pushd $RV_ZSBL_BUILD_DIR + make -j$(nproc) CROSS_COMPILE=$RISCV64_LINUX_CROSS_COMPILE ARCH=riscv + err=$? + popd + + if [ $err -ne 0 ]; then + echo "making zsbl failed" + return $err + fi + + mkdir -p $RV_FIRMWARE_INSTALL_DIR cp $RV_ZSBL_BUILD_DIR/zsbl.bin $RV_FIRMWARE_INSTALL_DIR/pcie_zsbl.bin } function clean_rv_pcie_zsbl() { - clean_rv_zsbl rm -rf $RV_FIRMWARE_INSTALL_DIR/pcie_zsbl.bin + rm -rf $RV_ZSBL_BUILD_DIR } function build_rv_tp_zsbl()