aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-10-07 19:00:15 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-10-11 18:29:27 +0200
commit446f396449485f8f114d37def7e0e1b20a3637d7 (patch)
tree37784e69b18fdba06717cd47a45341bbd6d887ab
parentbf7f5aa53829902a69ca8aa2cc83d0b66d09c302 (diff)
downloadkernel_replicant_linux-446f396449485f8f114d37def7e0e1b20a3637d7.tar.gz
kernel_replicant_linux-446f396449485f8f114d37def7e0e1b20a3637d7.tar.bz2
kernel_replicant_linux-446f396449485f8f114d37def7e0e1b20a3637d7.zip
Add Makefile to automatically generate a Replicant kernel tree
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--Makefile.deblob40
-rw-r--r--deblob/.gitignore3
-rw-r--r--deblob/647F28654894E3BD457199BE38DBBDC86092693E.gpgbin0 -> 3527 bytes
-rw-r--r--deblob/COPYING.deblob (renamed from COPYING)0
-rwxr-xr-xdeblob/deblob-5.10 (renamed from deblob-5.10)0
-rwxr-xr-xdeblob/deblob-check (renamed from deblob-check)0
6 files changed, 43 insertions, 0 deletions
diff --git a/Makefile.deblob b/Makefile.deblob
new file mode 100644
index 000000000000..e95b120bd724
--- /dev/null
+++ b/Makefile.deblob
@@ -0,0 +1,40 @@
+# Copyright (C) 2021 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+CURL ?= curl
+CURLOPTS ?= -L
+MIRROR ?= https://cdn.kernel.org/pub/linux/kernel/v5.x
+
+.PHONY: all
+all: deblob-5.10
+ ./deblob-5.10
+
+deblob-check:
+ ln -sf deblob/$@ $@
+
+deblob-5.10: deblob/linux-5.10.71.tar deblob/linux-5.10.71.tar.sign deblob-check
+ # Greg Kroah-Hartman
+ gpg --list-keys 647F28654894E3BD457199BE38DBBDC86092693E || \
+ gpg --import deblob/647F28654894E3BD457199BE38DBBDC86092693E.gpg
+ gpg --verify $<.sign $<
+ tar x -f $< --strip=1 -C ../
+ ln -sf deblob/deblob-5.10 ./
+
+deblob/%.tar.sign:
+ $(CURL) $(CURLOPTS) $(MIRROR)/$@ -o $@
+deblob/%.tar.xz:
+ $(CURL) $(CURLOPTS) $(MIRROR)/$@ -o $@
+deblob/%.tar: deblob/deblob/%.tar.xz
+ unxz --verbose $<
diff --git a/deblob/.gitignore b/deblob/.gitignore
new file mode 100644
index 000000000000..0897b62b4702
--- /dev/null
+++ b/deblob/.gitignore
@@ -0,0 +1,3 @@
+linux-5.10.71.tar
+linux-5.10.71.tar.xz
+linux-5.10.71.tar.sign
diff --git a/deblob/647F28654894E3BD457199BE38DBBDC86092693E.gpg b/deblob/647F28654894E3BD457199BE38DBBDC86092693E.gpg
new file mode 100644
index 000000000000..e79dbc9b767a
--- /dev/null
+++ b/deblob/647F28654894E3BD457199BE38DBBDC86092693E.gpg
Binary files differ
diff --git a/COPYING b/deblob/COPYING.deblob
index 623b6258a134..623b6258a134 100644
--- a/COPYING
+++ b/deblob/COPYING.deblob
diff --git a/deblob-5.10 b/deblob/deblob-5.10
index 48dc99acf62b..48dc99acf62b 100755
--- a/deblob-5.10
+++ b/deblob/deblob-5.10
diff --git a/deblob-check b/deblob/deblob-check
index 96549b3901d9..96549b3901d9 100755
--- a/deblob-check
+++ b/deblob/deblob-check