OSDN Git Service

[update] : Added kernel check for each chennel
authorhayao <shun819.mail@gmail.com>
Sun, 12 Jul 2020 05:39:06 +0000 (14:39 +0900)
committerhayao <shun819.mail@gmail.com>
Sun, 12 Jul 2020 05:39:06 +0000 (14:39 +0900)
build.sh
channels/releng/kernel_list-i686 [new file with mode: 0644]

index 9d30f1c..da5850c 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -1569,6 +1569,13 @@ if [[ ! "${channel_name}" = "rebuild" ]] && [[ ! "${channel_name}" = "clean" ]]
     if [[ -z $(cat "${script_path}/channels/${channel_name}/architecture" | grep -h -v ^'#' | grep -x "${arch}") ]]; then
         _msg_error "${channel_name} channel does not support current architecture (${arch})." "1"
     fi
+
+    # kernel
+    if [[ -f "${script_path}/channels/${channel_name}/kernel_list-${arch}" ]]; then
+        if [[ -z $(cat "${script_path}/channels/${channel_name}/kernel_list-${arch}" | grep -h -v ^'#' | grep -x "${kernel}") ]]; then
+            _msg_error "This kernel is currently not supported on this channel." "1"
+        fi
+    fi
 fi
 
 # Run clean
diff --git a/channels/releng/kernel_list-i686 b/channels/releng/kernel_list-i686
new file mode 100644 (file)
index 0000000..d976aa4
--- /dev/null
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+#
+# Yamada Hayao
+# Twitter: @Hayao0819
+# Email  : hayao@fascode.net
+#
+# (c) 2019-2020 Fascode Network.
+#
+# List of kernels available on this channel
+# If you want to limit the available kernels, put the kernel name of the kernel configuration file of the available kernels in this file.
+
+core