From 80d98ad93aaf8b02bce80dbbac81b2beed518d3a Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Mon, 13 Jul 2020 23:43:42 -0400 Subject: add basic module support --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e408200..f36ca69 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ all: initramfs.img -initramfs.img: gen_init_cpio dropbear_ed25519_host_key +initramfs.img: gen_init_cpio dropbear_ed25519_host_key modules.sh ./make gen_init_cpio: gen_init_cpio.c @@ -9,6 +9,10 @@ gen_init_cpio: gen_init_cpio.c dropbear_ed25519_host_key: dropbearkey -t ed25519 -f $@ +modules.sh: modules + printf '%s\n' '#!/bin/sh' 'set -e' > $@ + xargs -a $< -L1 -r modprobe --show-depends >> $@ + install: initramfs.img rm -f /boot/initramfs.img.old /boot/initramfs.img.new cp initramfs.img /boot/initramfs.img.new || rm -f /boot/initramfs.img.new -- cgit v1.2.3-70-g09d2