kernel: EOL 4.15.x

See http://lkml.iu.edu/hypermail/linux/kernel/1804.2/03399.html

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
Rolf Neugebauer 2018-04-27 14:58:23 +01:00
parent 7b0b7dff84
commit c255821674
12 changed files with 0 additions and 8834 deletions

View File

@ -219,7 +219,6 @@ endef
#
ifeq ($(ARCH),x86_64)
$(eval $(call kernel,4.16.3,4.16.x,$(EXTRA),$(DEBUG)))
$(eval $(call kernel,4.15.18,4.15.x,$(EXTRA),$(DEBUG)))
$(eval $(call kernel,4.14.35,4.14.x,$(EXTRA),$(DEBUG)))
$(eval $(call kernel,4.14.35,4.14.x,,-dbg))
$(eval $(call kernel,4.14.34,4.14.x,-rt,))
@ -228,7 +227,6 @@ $(eval $(call kernel,4.4.128,4.4.x,$(EXTRA),$(DEBUG)))
else ifeq ($(ARCH),aarch64)
$(eval $(call kernel,4.16.3,4.16.x,$(EXTRA),$(DEBUG)))
$(eval $(call kernel,4.15.18,4.15.x,$(EXTRA),$(DEBUG)))
$(eval $(call kernel,4.14.35,4.14.x,$(EXTRA),$(DEBUG)))
$(eval $(call kernel,4.14.34,4.14.x,-rt,))

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,35 +0,0 @@
From 87be7710dd6cf564b9c8d39cd06065ae6cd57c93 Mon Sep 17 00:00:00 2001
From: Christian Borntraeger <borntraeger@de.ibm.com>
Date: Tue, 12 Dec 2017 09:08:35 +0100
Subject: [PATCH] serial: forbid 8250 on s390
Using "make kvmconfig" results in a potentially unusable linux image
on s390. The reason is that both the (default on s390) sclp consoles
as well as the 8250 console register a ttyS<x> as console. Since there
will be no 8250 on s390 let's fence 8250. This will ensure that there
is always a working sclp console.
Reported-by: Alice Frosi <alice@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 1598e38c0770b08c4d6371b670f9ee61a42ec68b)
---
drivers/tty/serial/8250/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/tty/serial/8250/Kconfig b/drivers/tty/serial/8250/Kconfig
index a5c0ef1e7695..16b1496e6105 100644
--- a/drivers/tty/serial/8250/Kconfig
+++ b/drivers/tty/serial/8250/Kconfig
@@ -5,6 +5,7 @@
config SERIAL_8250
tristate "8250/16550 and compatible serial support"
+ depends on !S390
select SERIAL_CORE
---help---
This selects whether you want to include the driver for the standard
--
2.16.0

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.15.18
cmdline: "console=ttyS0 console=ttyAMA0"
init:
- linuxkit/init:11929b0007b87384f7372e9265067479c4616586
- linuxkit/runc:acba8886e4b1318457c711700f695a02fef9493d
onboot:
- name: check-kernel-config
image: linuxkit/test-kernel-config:12d9e1153ea4eec2ddb155ab2a782faca5f503e0
- name: poweroff
image: linuxkit/poweroff:5740687bf0a6a0480922c0f59b3a4ca77c866cae
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.15.18 AS ksrc
# Extract headers and compile module
FROM linuxkit/alpine:f3cd219615428b2bd943411723eb28875275fae7 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.7
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.15.18
# 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.15.18
cmdline: "console=ttyS0 console=ttyAMA0"
init:
- linuxkit/init:11929b0007b87384f7372e9265067479c4616586
- linuxkit/runc:acba8886e4b1318457c711700f695a02fef9493d
onboot:
- name: check
image: kmod-test
binds:
- /dev:/dev
- /lib/modules:/lib/modules
capabilities:
- all
- name: poweroff
image: linuxkit/poweroff:5740687bf0a6a0480922c0f59b3a4ca77c866cae
command: ["/bin/sh", "/poweroff.sh", "3"]
trust:
org:
- linuxkit