Skip to content

Commit

Permalink
script: modify for build kernel
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaoguang Xing <[email protected]>
  • Loading branch information
xingxg2022 committed Sep 18, 2023
1 parent ecf0bec commit bf03d8f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/envsetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,14 @@ function build_rv_kernel()
local RV_KERNEL_CONFIG=${VENDOR}_${CHIP}_${KERNEL_VARIANT}_defconfig
local err

if [ "$CHIP" = "sg2260" ];then
if [ "$1" = "" ];then
echo "build sg2260 kernel, eg: build_rv_kernel ap|rp|tp"
return -1
fi
RV_KERNEL_CONFIG=${VENDOR}_${CHIP}_$1_${KERNEL_VARIANT}_defconfig
fi

pushd $RV_KERNEL_SRC_DIR
make O=$RV_KERNEL_BUILD_DIR ARCH=riscv CROSS_COMPILE=$RISCV64_LINUX_CROSS_COMPILE $RV_KERNEL_CONFIG
err=$?
Expand Down

0 comments on commit bf03d8f

Please sign in to comment.