Move initfs.mk to a regular cookbook recipe.
This commit is contained in:
parent
63605d1e80
commit
ce83e7b46d
7 changed files with 3 additions and 62 deletions
|
@ -1,4 +1,4 @@
|
|||
build/filesystem.bin: prefix filesystem.toml build/bootloader.bin build/initfs.img
|
||||
build/filesystem.bin: prefix filesystem.toml build/bootloader.bin
|
||||
$(HOST_CARGO) build --manifest-path cookbook/Cargo.toml --release
|
||||
$(HOST_CARGO) build --manifest-path installer/Cargo.toml --release
|
||||
$(HOST_CARGO) build --manifest-path redoxfs/Cargo.toml --release
|
||||
|
@ -20,7 +20,6 @@ build/filesystem.bin: prefix filesystem.toml build/bootloader.bin build/initfs.i
|
|||
#TODO cp -r $(ROOT)/$(PREFIX_INSTALL)/$(TARGET)/include build/filesystem/include
|
||||
#TODO cp -r $(ROOT)/$(PREFIX_INSTALL)/$(TARGET)/lib build/filesystem/lib
|
||||
$(INSTALLER) -c filesystem.toml build/filesystem/
|
||||
cp build/initfs.img build/filesystem/initfs
|
||||
sync
|
||||
-$(FUMOUNT) build/filesystem/ || true
|
||||
rm -rf build/filesystem/
|
||||
|
|
16
mk/initfs.mk
16
mk/initfs.mk
|
@ -1,16 +0,0 @@
|
|||
INITFS_RM_BINS=\
|
||||
redoxfs-ar \
|
||||
redoxfs-mkfs
|
||||
|
||||
build/initfs.img: initfs.toml prefix
|
||||
$(HOST_CARGO) build --manifest-path cookbook/Cargo.toml --release
|
||||
$(HOST_CARGO) build --manifest-path installer/Cargo.toml --release
|
||||
rm -rf build/initfs
|
||||
mkdir -p build/initfs
|
||||
$(INSTALLER) -c $< build/initfs/
|
||||
#TODO: HACK FOR SMALLER INITFS, FIX IN PACKAGING
|
||||
rm -rf build/initfs/pkg
|
||||
for bin in $(INITFS_RM_BINS); do \
|
||||
rm -f build/initfs/bin/$$bin; \
|
||||
done
|
||||
cargo run --manifest-path redox-initfs/tools/Cargo.toml --bin redox-initfs-ar -- build/initfs -o $@
|
Loading…
Add table
Add a link
Reference in a new issue