From 46e94578765d3d2f03b83421d752e5dfc3e56d34 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Mon, 2 Mar 2015 21:37:09 -0500 Subject: initrd support, not used yet --- tools/mkinitrd.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 tools/mkinitrd.c (limited to 'tools') diff --git a/tools/mkinitrd.c b/tools/mkinitrd.c new file mode 100644 index 0000000..d61bbba --- /dev/null +++ b/tools/mkinitrd.c @@ -0,0 +1,34 @@ +#include +#include +#include +#include +#include + +void write_le32(int fd, uint32_t n) +{ + write(fd, &n, 4); +} + +#define MIN(x,y) (x