blob: bd172144b3887ecc5c98a8539bdd20b5e5621a8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
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 $<
|