summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-11-21 20:13:30 -0500
committerIan Moffett <ian@osmora.org>2025-11-21 20:27:16 -0500
commitcf25483e154ae1d5e9685a6087ba51642e4326c5 (patch)
tree5482e7758f16de9d8720ba93ab58fd9aaa4c3273 /Makefile.in
parent19dd8c0a288d25d78a43f0bfbe884a8a3fc86e56 (diff)
build: Build initramfs with OMAR
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
index 24ceb56..b78924f 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -6,6 +6,7 @@ ARCH = @ARCH@
ISO = rv7.iso
SYS_CFLAGS = @SYS_CFLAGS@
SYSROOT = root
+OMAR = $(shell pwd)/tools/omar/bin/omar
.PHONY: all
all: $(SYSROOT) sys iso
@@ -35,6 +36,9 @@ $(SYSROOT):
mkdir -p $(SYSROOT)/usr/include/
mkdir -p $(SYSROOT)/usr/bin/
mkdir -p $(SYSROOT)/usr/sbin/
+ mkdir -p $(SYSROOT)/etc/
+ cp -r etc/* $(SYSROOT)/etc
+ - $(OMAR) -i $(shell pwd)/$(SYSROOT) -o $(shell pwd)/initramfs.omar
.PHONY: run
run: