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 |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/device/rockchip/common/build.sh b/device/rockchip/common/build.sh
index 9e44a8c..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
 
@@ -1277,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