Files
linuxkit/alpine/kernel/Makefile
Justin Cormack 652d5eddf3 Use build container id rather than tagging builds
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>
2016-09-29 20:21:17 +01:00

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: