aboutsummaryrefslogtreecommitdiffhomepage
path: root/content/20191027-kernel-debugging-qemu/Makefile
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2021-07-15 21:16:42 +0200
committerjohannst <johannes.stoelp@gmail.com>2021-07-15 21:16:42 +0200
commit617d73fc9eff5b08a80b873fd97f66caa7e80fc9 (patch)
tree170fe178500cbc7815f5a9fbb4751bb9b14c2cc0 /content/20191027-kernel-debugging-qemu/Makefile
parent1a088951089023d4ee18f01a0b83b71287c4d847 (diff)
downloadblog-617d73fc9eff5b08a80b873fd97f66caa7e80fc9.tar.gz
blog-617d73fc9eff5b08a80b873fd97f66caa7e80fc9.zip
added dockerfile for kernel dev
Diffstat (limited to 'content/20191027-kernel-debugging-qemu/Makefile')
-rw-r--r--content/20191027-kernel-debugging-qemu/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/content/20191027-kernel-debugging-qemu/Makefile b/content/20191027-kernel-debugging-qemu/Makefile
new file mode 100644
index 0000000..11e7c7b
--- /dev/null
+++ b/content/20191027-kernel-debugging-qemu/Makefile
@@ -0,0 +1,12 @@
+build:
+ scripts/build_kernel.sh
+ scripts/build_initrd.sh
+
+clean:
+ $(RM) -r linux-*
+ $(RM) -r busybox-*
+ $(RM) initramfs.cpio.gz
+
+docker:
+ DOCKER_BUILDKIT=1 docker build -t kernel-dev .
+ docker run -it --rm -v $(PWD):/develop/scripts -v $(PWD)/Makefile:/develop/Makefile kernel-dev