forked from aquasecurity/btfhub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (41 loc) · 974 Bytes
/
Makefile
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
.PHONY: gather update test
gather:
rm -rf archive
mkdir archive
rsync -av ./btfhub-archive-repo/ archive/ --exclude=.git
#
# The following distributions (and versions):
#
# fedora32
# fedora33
# fedora34
# centos8
# bionic
# focal
# debian11
#
# are, now, releasing kernels with BTF support. This means that BTFHUB does not
# need to keep generating BTF files for them, as it won't be needed by eBPF
# CO-RE objects (as they can rely in /sys/kernel/btf/vmlinux file).
#
# (https://github.com/aquasecurity/btfhub/issues/29)
#
# Note: this means that, more and more, BTFHUB will be used for legacy kernels:
# the kernels that were already released, part of older (but, yet, current)
# distributions versions.
#
update:
for distro in \
fedora29 \
fedora30 \
fedora31 \
centos7 \
stretch \
buster \
amazon2 \
ol7; \
do \
./tools/update.sh $$distro; \
done
./tools/update.sh bionic 4.15.0
rsync -av ./archive/ btfhub-archive-repo --exclude=.gitignore