kernel: Remove 4.20.x

It has been EOLed

Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
This commit is contained in:
Rolf Neugebauer 2019-03-25 09:07:29 +00:00
parent edb8c29e8e
commit e1b94133f1
12 changed files with 0 additions and 12506 deletions

View File

@ -252,7 +252,6 @@ endef
#
ifeq ($(ARCH),x86_64)
$(eval $(call kernel,5.0.3,5.0.x,$(EXTRA),$(DEBUG)))
$(eval $(call kernel,4.20.17,4.20.x,$(EXTRA),$(DEBUG)))
$(eval $(call kernel,4.19.30,4.19.x,$(EXTRA),$(DEBUG)))
$(eval $(call kernel,4.19.30,4.19.x,,-dbg))
$(eval $(call kernel,4.19.25,4.19.x,-rt,))
@ -261,13 +260,11 @@ $(eval $(call kernel,4.9.165,4.9.x,$(EXTRA),$(DEBUG)))
else ifeq ($(ARCH),aarch64)
$(eval $(call kernel,5.0.3,5.0.x,$(EXTRA),$(DEBUG)))
$(eval $(call kernel,4.20.17,4.20.x,$(EXTRA),$(DEBUG)))
$(eval $(call kernel,4.19.30,4.19.x,$(EXTRA),$(DEBUG)))
$(eval $(call kernel,4.19.25,4.19.x,-rt,))
else ifeq ($(ARCH),s390x)
$(eval $(call kernel,5.0.3,5.0.x,$(EXTRA),$(DEBUG)))
$(eval $(call kernel,4.20.17,4.20.x,$(EXTRA),$(DEBUG)))
$(eval $(call kernel,4.19.30,4.19.x,$(EXTRA),$(DEBUG)))
endif

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,24 +0,0 @@
#!/bin/sh
# SUMMARY: Sanity check on the kernel config file
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=kconfig
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
# Test code goes here
linuxkit build -format kernel+initrd -name "${NAME}" test.yml
RESULT="$(linuxkit run ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -1,15 +0,0 @@
kernel:
image: linuxkit/kernel:4.20.15
cmdline: "console=ttyS0 console=ttyAMA0"
init:
- linuxkit/init:629fdad56e62ae72bf8becf0c8a668241480d3ff
- linuxkit/runc:606971451ea29b4238029804ca638f9f85caf5af
onboot:
- name: check-kernel-config
image: linuxkit/test-kernel-config:e17f234c439535d1a297b020774301709adc5832
- name: poweroff
image: linuxkit/poweroff:9f4e04f09bbb4a028f0a1f57d430e1ad3095ace1
command: ["/bin/sh", "/poweroff.sh", "3"]
trust:
org:
- linuxkit

View File

@ -1,23 +0,0 @@
# This Dockerfile extracts the kernel headers from the kernel image
# and then compiles a simple hello world kernel module against them.
# In the last stage, it creates a package, which can be used for
# testing.
FROM linuxkit/kernel:4.20.15 AS ksrc
# Extract headers and compile module
FROM linuxkit/alpine:5ce235f4fb55772e7f78871a70bfe26f774fe2b0 AS build
RUN apk add build-base libelf-dev
COPY --from=ksrc /kernel-dev.tar /
RUN tar xf kernel-dev.tar
WORKDIR /kmod
COPY ./src/* ./
RUN make all
# Package
FROM alpine:3.9
COPY --from=build /kmod/hello_world.ko /
COPY check.sh /check.sh
ENTRYPOINT ["/bin/sh", "/check.sh"]

View File

@ -1,15 +0,0 @@
#!/bin/sh
function failed {
printf "Kernel module test suite FAILED\n"
/sbin/poweroff -f
}
uname -a
modinfo hello_world.ko || failed
insmod hello_world.ko || failed
[ -n "$(dmesg | grep -o 'Hello LinuxKit')" ] || failed
rmmod hello_world || failed
printf "Kernel module test suite PASSED\n"
/sbin/poweroff -f

View File

@ -1,6 +0,0 @@
obj-m += hello_world.o
KVER=$(shell basename /usr/src/linux-headers-*)
all:
make -C /usr/src/$(KVER) M=$(PWD) modules
clean:
make -C /usr/src/$(KVER) M=$(PWD) clean

View File

@ -1,22 +0,0 @@
/*
* A simple Hello World kernel module
*/
#include <linux/module.h>
#include <linux/kernel.h>
int init_hello(void)
{
printk(KERN_INFO "Hello LinuxKit\n");
return 0;
}
void exit_hello(void)
{
printk(KERN_INFO "Goodbye LinuxKit.\n");
}
module_init(init_hello);
module_exit(exit_hello);
MODULE_AUTHOR("Rolf Neugebauer <rolf.neugebauer@docker.com>");
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("A simple Hello World kernel module for testing");

View File

@ -1,31 +0,0 @@
#!/bin/sh
# SUMMARY: Test build and insertion of kernel modules
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=kmod
IMAGE_NAME=kmod-test
clean_up() {
docker rmi ${IMAGE_NAME} || true
rm -rf ${NAME}-*
}
trap clean_up EXIT
# Make sure we have the latest kernel image
docker pull linuxkit/kernel:4.20.15
# Build a package
docker build -t ${IMAGE_NAME} .
# Build and run a LinuxKit image with kernel module (and test script)
linuxkit build -format kernel+initrd -name "${NAME}" test.yml
RESULT="$(linuxkit run ${NAME})"
echo "${RESULT}" | grep -q "Hello LinuxKit"
exit 0

View File

@ -1,20 +0,0 @@
kernel:
image: linuxkit/kernel:4.20.15
cmdline: "console=ttyS0 console=ttyAMA0"
init:
- linuxkit/init:629fdad56e62ae72bf8becf0c8a668241480d3ff
- linuxkit/runc:606971451ea29b4238029804ca638f9f85caf5af
onboot:
- name: check
image: kmod-test
binds:
- /dev:/dev
- /lib/modules:/lib/modules
capabilities:
- all
- name: poweroff
image: linuxkit/poweroff:9f4e04f09bbb4a028f0a1f57d430e1ad3095ace1
command: ["/bin/sh", "/poweroff.sh", "3"]
trust:
org:
- linuxkit