From 629d66146c85dd818cd97187de580e041c6b7671 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Wed, 25 Oct 2023 07:17:50 +0000
Subject: [PATCH] add build kerneldeb
---
device/rockchip/common/build.sh | 24 +++++++++++++++++++++++-
1 files changed, 23 insertions(+), 1 deletions(-)
diff --git a/device/rockchip/common/build.sh b/device/rockchip/common/build.sh
index 5d29e12..1f60029 100755
--- a/device/rockchip/common/build.sh
+++ b/device/rockchip/common/build.sh
@@ -674,6 +674,22 @@
finish_build
}
+function build_kerneldeb(){
+ check_config RK_KERNEL_DTS RK_KERNEL_DEFCONFIG || return 0
+
+ echo "============Start building kernel============"
+ echo "TARGET_ARCH =$RK_ARCH"
+ echo "TARGET_KERNEL_CONFIG =$RK_KERNEL_DEFCONFIG"
+ echo "TARGET_KERNEL_DTS =$RK_KERNEL_DTS"
+ echo "TARGET_KERNEL_CONFIG_FRAGMENT =$RK_KERNEL_DEFCONFIG_FRAGMENT"
+ echo "=========================================="
+
+ build_check_cross_compile
+
+ cd kernel
+ make ARCH=$RK_ARCH $RK_KERNEL_DEFCONFIG $RK_KERNEL_DEFCONFIG_FRAGMENT
+ make ARCH=$RK_ARCH bindeb-pkg RK_KERNEL_DTS=NK-R36S0 -j$RK_JOBS
+}
function build_modules(){
check_config RK_KERNEL_DEFCONFIG || return 0
@@ -1083,7 +1099,12 @@
else
./mkupdate.sh
fi
- mv update.img $IMAGE_PATH
+ md5sum update.img >update.img.md5
+ zip update.zip update.img update.img.md5
+ md5sum update.zip > update.zip.md5
+ mv update.img $IMAGE_PATH
+ mv update.zip $IMAGE_PATH
+ mv update.zip.md5 $IMAGE_PATH
fi
finish_build
@@ -1272,6 +1293,7 @@
uefi) build_uefi ;;
loader) build_loader ;;
kernel) build_kernel ;;
+ kerneldeb) build_kerneldeb ;;
modules) build_modules ;;
rootfs|buildroot|debian|yocto) build_rootfs $option ;;
pcba) build_pcba ;;
--
Gitblit v1.6.2