2018-08-18 02:47:48 +02:00
|
|
|
build/filesystem.bin: filesystem.toml build/bootloader build/kernel prefix
|
2017-01-05 22:07:20 +01:00
|
|
|
-$(FUMOUNT) build/filesystem/ || true
|
2017-05-13 04:37:59 +02:00
|
|
|
rm -rf $@ $@.partial build/filesystem/
|
2019-03-16 22:18:30 +01:00
|
|
|
dd if=/dev/zero of=$@.partial bs=1048576 count="$(FILESYSTEM_SIZE)"
|
2017-09-14 00:35:24 +02:00
|
|
|
cargo run --manifest-path redoxfs/Cargo.toml --release --bin redoxfs-mkfs $@.partial
|
2017-01-05 22:07:20 +01:00
|
|
|
mkdir -p build/filesystem/
|
2017-09-14 00:35:24 +02:00
|
|
|
cargo build --manifest-path redoxfs/Cargo.toml --release --bin redoxfs
|
|
|
|
cargo run --manifest-path redoxfs/Cargo.toml --release --bin redoxfs -- $@.partial build/filesystem/
|
2017-01-05 22:07:20 +01:00
|
|
|
sleep 2
|
|
|
|
pgrep redoxfs
|
2018-09-15 15:25:49 +02:00
|
|
|
cp $< build/filesystem/filesystem.toml
|
|
|
|
cp build/bootloader build/filesystem/bootloader
|
|
|
|
cp build/kernel build/filesystem/kernel
|
2019-04-16 05:27:59 +02:00
|
|
|
cp -r $(ROOT)/$(PREFIX_INSTALL)/$(TARGET)/include build/filesystem/include
|
|
|
|
cp -r $(ROOT)/$(PREFIX_INSTALL)/$(TARGET)/lib build/filesystem/lib
|
2018-08-18 02:47:48 +02:00
|
|
|
export PATH="$(PREFIX_PATH):$$PATH" && \
|
2018-03-13 03:52:42 +01:00
|
|
|
cargo run --manifest-path installer/Cargo.toml --release -- $(INSTALLER_FLAGS) -c $< build/filesystem/
|
2017-01-05 22:07:20 +01:00
|
|
|
sync
|
|
|
|
-$(FUMOUNT) build/filesystem/ || true
|
|
|
|
rm -rf build/filesystem/
|
2017-05-13 04:37:59 +02:00
|
|
|
mv $@.partial $@
|
2017-01-05 22:07:20 +01:00
|
|
|
|
|
|
|
mount: FORCE
|
|
|
|
mkdir -p build/filesystem/
|
2017-09-14 00:35:24 +02:00
|
|
|
cargo build --manifest-path redoxfs/Cargo.toml --release --bin redoxfs
|
|
|
|
cargo run --manifest-path redoxfs/Cargo.toml --release --bin redoxfs -- build/harddrive.bin build/filesystem/
|
2017-01-05 22:07:20 +01:00
|
|
|
sleep 2
|
|
|
|
pgrep redoxfs
|
|
|
|
|
|
|
|
unmount: FORCE
|
|
|
|
sync
|
|
|
|
-$(FUMOUNT) build/filesystem/ || true
|
|
|
|
rm -rf build/filesystem/
|