diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-10-07 19:00:15 +0200 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-10-12 18:01:33 +0200 |
commit | 763fd515bcd5a3cf3d8f8542d83754cec9cc1362 (patch) | |
tree | c108b0cfe1d7010daaf3516f15be5e486eec8de3 | |
parent | c00639e2bf4ab9f3523cd7d71c58182e91f2c7d0 (diff) | |
download | kernel_replicant_linux-763fd515bcd5a3cf3d8f8542d83754cec9cc1362.tar.gz kernel_replicant_linux-763fd515bcd5a3cf3d8f8542d83754cec9cc1362.tar.bz2 kernel_replicant_linux-763fd515bcd5a3cf3d8f8542d83754cec9cc1362.zip |
Add Makefile to automatically generate a Replicant kernel tree
While the make language is more complicated than shell
scripts, it supports parallelism natively. So while the
linux-libre deblob scripts takes most of the time, it
probably still gains a bit of time.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r-- | Makefile.deblob | 80 | ||||
-rw-r--r-- | deblob/.gitignore | 3 | ||||
-rw-r--r-- | deblob/647F28654894E3BD457199BE38DBBDC86092693E.gpg | bin | 0 -> 3527 bytes | |||
-rw-r--r-- | deblob/COPYING.deblob (renamed from COPYING) | 0 | ||||
-rwxr-xr-x | deblob/deblob-5.10 (renamed from deblob-5.10) | 0 | ||||
-rwxr-xr-x | deblob/deblob-check (renamed from deblob-check) | 0 |
6 files changed, 83 insertions, 0 deletions
diff --git a/Makefile.deblob b/Makefile.deblob new file mode 100644 index 000000000000..bd172144b388 --- /dev/null +++ b/Makefile.deblob @@ -0,0 +1,80 @@ +# 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 deblob-check delete-linux-tree verify-linux-signature + +all: deblob-5.10 + ./deblob-5.10 + +delete-linux-tree: + # Delete current linux-libre source code to make sure that all the files + # that are there were processed by the deblob scripts. + rm -f \ + COPYING \ + CREDITS \ + Kbuild \ + Kconfig \ + MAINTAINERS \ + Makefile \ + README + rm -rf \ + arch/ \ + block/ \ + certs/ \ + crypto/ \ + Documentation/ \ + drivers/ \ + fs/ \ + include/ \ + init/ \ + ipc/ \ + kernel/ \ + lib/ \ + LICENSES/ \ + mm/ \ + net/ \ + samples/ \ + scripts/ \ + security/ \ + sound/ \ + tools/ \ + usr/ \ + virt/ + +verify-linux-signature: deblob/linux-5.10.72.tar deblob/linux-5.10.72.tar.sign + # Greg Kroah-Hartman + gpg --list-keys 647F28654894E3BD457199BE38DBBDC86092693E || \ + gpg --import deblob/647F28654894E3BD457199BE38DBBDC86092693E.gpg + gpg --verify $<.sign $< + +deblob-check: + ln -sf deblob/$@ $@ + +deblob-5.10: deblob/linux-5.10.72.tar deblob-check delete-linux-tree verify-linux-signature + tar x -f $< --strip=1 + ln -sf deblob/$@ ./ + +deblob/%.tar.sign: + $(CURL) $(CURLOPTS) $(MIRROR)/$(notdir $@) -o $@ + +deblob/%.tar.xz: + $(CURL) $(CURLOPTS) $(MIRROR)/$(notdir $@) -o $@ + +deblob/%.tar: deblob/%.tar.xz + unxz --verbose $< diff --git a/deblob/.gitignore b/deblob/.gitignore new file mode 100644 index 000000000000..1e2bd4fb9e5d --- /dev/null +++ b/deblob/.gitignore @@ -0,0 +1,3 @@ +linux-5.10.72.tar +linux-5.10.72.tar.xz +linux-5.10.72.tar.sign diff --git a/deblob/647F28654894E3BD457199BE38DBBDC86092693E.gpg b/deblob/647F28654894E3BD457199BE38DBBDC86092693E.gpg Binary files differnew file mode 100644 index 000000000000..e79dbc9b767a --- /dev/null +++ b/deblob/647F28654894E3BD457199BE38DBBDC86092693E.gpg 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 37fdc05d99a0..37fdc05d99a0 100755 --- a/deblob-check +++ b/deblob/deblob-check |