summaryrefslogtreecommitdiff
path: root/linux/Makefile
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2022-02-11 15:18:39 +0100
committerMarc Vertes <mvertes@free.fr>2022-02-11 15:18:39 +0100
commita70f04dec341ea17772bdebf03867e590126aa5e (patch)
tree0ca9215195902d3686a0780a5a30aa0ac3ca82d4 /linux/Makefile
parentd6a67e794841f6b219b7d65dc964f745b63be6a0 (diff)
Add linux source build. Detect inflate command.
Diffstat (limited to 'linux/Makefile')
-rw-r--r--linux/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/linux/Makefile b/linux/Makefile
new file mode 100644
index 0000000..8b63346
--- /dev/null
+++ b/linux/Makefile
@@ -0,0 +1,9 @@
+version ?= 5.16.9
+host ?= $(shell hostname)
+
+url = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-$(version).tar.xz
+configure_cmd = cp ../config-$(host) .config
+build_cmd = make -j4 Image modules
+install_cmd = sudo make modules_install && scp arch/arm64/boot/Image m1:.vm/$(host)
+
+include ../build.mk