mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-25 09:52:30 +00:00
These are WIP taken from git@github.com:stefanha/linux.git#vsock (==4c9d2a6be1c6, using "cherry-pick -x") and correspond to RFC v5 of the frontend patches posted in http://thread.gmane.org/gmane.linux.kernel.virtualization/27455 There is no corresponding spec proposal update yet, but this set of patches correspond (roughly) to addressing the feedback on v4 of the spec proposal http://thread.gmane.org/gmane.comp.emulators.virtio.devel/1062. kernel_config.arm modifications copied from x86, not tested. Added /etc/kernel-patches/ directory to the image to be consumed by the licensing. Signed-off-by: Ian Campbell <ian.campbell@docker.com>
23 lines
1011 B
Makefile
23 lines
1011 B
Makefile
all: vmlinuz64
|
|
|
|
vmlinuz64: kernel_config Dockerfile
|
|
docker build -t mobykernel:build .
|
|
docker run --rm mobykernel:build cat /linux/arch/x86_64/boot/bzImage > $@
|
|
docker run --rm mobykernel:build cat /aufs-utils.tar > aufs-utils.tar
|
|
docker run --rm mobykernel:build cat /kernel-source-info > kernel-source-info
|
|
docker run --rm mobykernel:build cat /kernel-patches.tar > kernel-patches.tar
|
|
|
|
arm: zImage
|
|
|
|
zImage: kernel_config.arm Dockerfile
|
|
docker build --build-arg ARCH=arm -t mobyarmkernel:build .
|
|
docker run --rm mobyarmkernel:build cat /linux/arch/arm/boot/zImage > $@
|
|
docker run --rm mobyarmkernel:build cat /aufs-utils.tar > aufs-utils.tar
|
|
docker run --rm mobykernel:build cat /kernel-source-info > kernel-source-info
|
|
docker run --rm mobykernel:build cat /kernel-patches.tar > kernel-patches.tar
|
|
|
|
clean:
|
|
rm -f zImage vmlinuz64 aufs-utils.tar kernel-source-info kernel-patches.tar
|
|
docker images -q mobykernel:build | xargs docker rmi -f
|
|
docker images -q mobyarmkernel:build | xargs docker rmi -f
|