initfs.mk 830 Bytes
Newer Older
Jeremy Soller's avatar
Jeremy Soller committed
1
build/initfs.tag: initfs.toml prefix
2
	rm -f build/libkernel.a
Jeremy Soller's avatar
Jeremy Soller committed
3
	rm -rf build/initfs
Jeremy Soller's avatar
Jeremy Soller committed
4
	mkdir -p build/initfs
Jeremy Soller's avatar
Jeremy Soller committed
5
	export PATH="$(PREFIX_PATH):$$PATH" && \
Jeremy Soller's avatar
Jeremy Soller committed
6
	cargo run --manifest-path installer/Cargo.toml -- $(INSTALLER_FLAGS) -c $< build/initfs/
7
	touch $@
8

9 10 11 12 13 14 15 16
build/initfs_coreboot.tag: initfs_coreboot.toml prefix
	rm -f build/libkernel_coreboot.a
	rm -rf build/initfs_coreboot
	mkdir -p build/initfs_coreboot
	export PATH="$(PREFIX_PATH):$$PATH" && \
	cargo run --manifest-path installer/Cargo.toml -- $(INSTALLER_FLAGS) -c $< build/initfs_coreboot/
	touch $@

Jeremy Soller's avatar
Jeremy Soller committed
17
build/initfs_live.tag: initfs_live.toml prefix
18
	rm -f build/libkernel_live.a
19 20
	rm -rf build/initfs_live
	mkdir -p build/initfs_live
Jeremy Soller's avatar
Jeremy Soller committed
21
	export PATH="$(PREFIX_PATH):$$PATH" && \
22 23
	cargo run --manifest-path installer/Cargo.toml -- $(INSTALLER_FLAGS) -c $< build/initfs_live/
	touch $@