mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-06 21:03:11 +00:00
This means that multiple builds will not conflict, so we can remove the lock from the CI. Also quieter when no errors. Some still left to do, only done the ones used in build and CI initially. Some of the others will be cleaned up anyway later. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
19 lines
698 B
Makefile
19 lines
698 B
Makefile
DEBUG ?= 0
|
|
|
|
all: x86_64/vmlinuz64
|
|
|
|
x86_64/vmlinuz64: Dockerfile kernel_config
|
|
mkdir -p x86_64 etc
|
|
BUILD=$$( docker build --build-arg DEBUG=$(DEBUG) -q . ) && [ -n "$$BUILD" ] && \
|
|
docker run --rm --net=none --log-driver=none $$BUILD cat /kernel-modules.tar | tar xf - && \
|
|
docker run --rm --net=none --log-driver=none $$BUILD cat /aufs-utils.tar | tar xf - && \
|
|
docker run --rm --net=none --log-driver=none $$BUILD cat /kernel-source-info > etc/kernel-source-info && \
|
|
docker run --rm --net=none --log-driver=none $$BUILD cat /linux/arch/x86_64/boot/bzImage > $@ && \
|
|
docker rmi --no-prune $$BUILD
|
|
cp -a patches etc/kernel-patches
|
|
|
|
clean:
|
|
rm -rf x86_64 lib etc usr sbin
|
|
|
|
.DELETE_ON_ERROR:
|