summaryrefslogtreecommitdiff
path: root/Makefile.linux
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-11-21 22:27:40 +0100
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-11-21 22:29:39 +0100
commitdc9b0f067bd0b2bd5637841253e0b115c6aa8646 (patch)
tree8d6869427ab1a9cd2835797ef60d7d8a94819b13 /Makefile.linux
downloadalex-dc9b0f067bd0b2bd5637841253e0b115c6aa8646.tar.gz
alex-dc9b0f067bd0b2bd5637841253e0b115c6aa8646.zip
Initial commit
Diffstat (limited to 'Makefile.linux')
-rw-r--r--Makefile.linux14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile.linux b/Makefile.linux
new file mode 100644
index 0000000..55f68b4
--- /dev/null
+++ b/Makefile.linux
@@ -0,0 +1,14 @@
+linux: kernel.gz
+ @echo Linux: build is completed.
+
+linux-${KERNEL_VERSION}/arch/x86/boot/bzImage: linux-${KERNEL_VERSION}
+ @cd linux-${KERNEL_VERSION} && make HOSTCC=gcc-11 CC=gcc-11 mrproper defconfig bzImage
+
+kernel.gz: linux-${KERNEL_VERSION}/arch/x86/boot/bzImage
+ @cp linux-${KERNEL_VERSION}/arch/x86/boot/bzImage $@
+
+linux-${KERNEL_VERSION}: kernel.tar.xz
+ tar xvf kernel.tar.xz
+
+kernel.tar.xz:
+ wget -O kernel.tar.xz http://kernel.org/pub/linux/kernel/v5.x/linux-${KERNEL_VERSION}.tar.xz