From 70569c8f15040229e0461b87ebafc1fb334364b1 Mon Sep 17 00:00:00 2001 From: Alvaro Gamez Machado Date: Fri, 21 Sep 2018 08:59:16 +0200 Subject: [PATCH 1/2] Include , as it's needed to find major() and minor() functions --- devices.c | 1 + 1 file changed, 1 insertion(+) diff --git a/devices.c b/devices.c index 78bff1d..fa2f68f 100644 --- a/devices.c +++ b/devices.c @@ -36,6 +36,7 @@ #include #include #include +#include /* Not all libcs define these things, unfortunately... */ #ifndef DT_UNKNOWN From 4a29648133d84b5c5bbf509c70fe3ed1ac5aee09 Mon Sep 17 00:00:00 2001 From: Alvaro Gamez Machado Date: Fri, 21 Sep 2018 09:21:15 +0200 Subject: [PATCH 2/2] Add documented but missing initrd.img target --- Makefile.am | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile.am b/Makefile.am index 5b416e8..d0864ac 100644 --- a/Makefile.am +++ b/Makefile.am @@ -20,3 +20,9 @@ install-exec-hook: cd $(DESTDIR)$(pkglibexecdir) && \ mv -f tiny_initramfs init endif + +initrd.img: tiny_initramfs + mkdir -p initramfs/dev initramfs/proc initramfs/target || true + cp tiny_initramfs initramfs/init + strip initramfs/init + cd initramfs && find . | cpio -o --quiet -R 0:0 -H newc | gzip > ../initrd.img