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 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