summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYing-Chun Liu (PaulLiu) <paulliu@debian.org>2021-06-09 20:58:05 +0800
committerYing-Chun Liu (PaulLiu) <paulliu@debian.org>2021-06-09 20:58:05 +0800
commite67dd35ae95ea3b344ac8358f90be5087db5a4ed (patch)
treef4cbe305e60446d09aa0d3a04e2950702012d9c8
parenta5e13e939908604732689c72dbc2e1174fb3abff (diff)
add script to build Linux debian package.
Signed-off-by: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
-rwxr-xr-xbuild_linux_deb.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/build_linux_deb.sh b/build_linux_deb.sh
new file mode 100755
index 0000000..b07bdc1
--- /dev/null
+++ b/build_linux_deb.sh
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+SELFPID=$$
+renice 10 -p "$SELFPID"
+ionice -c 3 -p "$SELFPID"
+
+S=`pwd`
+
+B="/tmp/linux-deb-rsb3720"
+rm -rf "$B"
+mkdir -p "$B"
+cd "$B"
+
+git clone --reference "$S" "$S" linux
+
+cd linux
+
+export ARCH=arm64
+export CROSS_COMPILE=aarch64-linux-gnu-
+
+nice -10 ionice -c 3 make imx_v8_adv_defconfig
+#nice -10 ionice -c 3 make defconfig
+nice -10 ionice -c 3 make LOCALVERSION=.pl-m-1-arm64 KDEB_PKGVERSION=$(make kernelversion)-1 deb-pkg