Compare commits

..

No commits in common. "e844d3edabc69ee11d526f152f0410a97c49a4d3" and "bea8fe9134b489bf106e5b9f690d44d9a731819d" have entirely different histories.

3 changed files with 4 additions and 8 deletions

2
kernel

@ -1 +1 @@
Subproject commit 80376a95dc784966260992910d7e789390f58b65 Subproject commit 7e2e7b8c21b41cd2686511b0ba01ae3aeb6eb102

View File

@ -9,8 +9,6 @@ INSTALLER_FLAGS?=--cookbook=cookbook
PREFIX_BINARY?=1 PREFIX_BINARY?=1
## Filesystem size in MB (256 is the default) ## Filesystem size in MB (256 is the default)
FILESYSTEM_SIZE?=256 FILESYSTEM_SIZE?=256
## Flags to pass to redoxfs-mkfs. Add --encrypt to set up disk encryption
REDOXFS_MKFS_FLAGS?=
# Per host variables # Per host variables
UNAME := $(shell uname) UNAME := $(shell uname)

View File

@ -1,19 +1,17 @@
build/filesystem.bin: filesystem.toml build/kernel prefix build/filesystem.bin: filesystem.toml build/bootloader.bin build/kernel prefix
cargo build --manifest-path cookbook/Cargo.toml --release cargo build --manifest-path cookbook/Cargo.toml --release
cargo build --manifest-path installer/Cargo.toml --release cargo build --manifest-path installer/Cargo.toml --release
cargo build --manifest-path redoxfs/Cargo.toml --release cargo build --manifest-path redoxfs/Cargo.toml --release
-$(FUMOUNT) build/filesystem/ || true -$(FUMOUNT) build/filesystem/ || true
rm -rf $@ $@.partial build/filesystem/ rm -rf $@ $@.partial build/filesystem/
dd if=/dev/zero of=$@.partial bs=1048576 count="$(FILESYSTEM_SIZE)" dd if=/dev/zero of=$@.partial bs=1048576 count="$(FILESYSTEM_SIZE)"
cargo run --release \ cargo run --manifest-path redoxfs/Cargo.toml --release --bin redoxfs-mkfs $@.partial
--manifest-path redoxfs/Cargo.toml \
--bin redoxfs-mkfs \
-- $(REDOXFS_MKFS_FLAGS) $@.partial
mkdir -p build/filesystem/ mkdir -p build/filesystem/
redoxfs/target/release/redoxfs $@.partial build/filesystem/ redoxfs/target/release/redoxfs $@.partial build/filesystem/
sleep 2 sleep 2
pgrep redoxfs pgrep redoxfs
cp $< build/filesystem/filesystem.toml cp $< build/filesystem/filesystem.toml
cp build/bootloader.bin build/filesystem/bootloader
cp build/kernel build/filesystem/kernel cp build/kernel build/filesystem/kernel
cp -r $(ROOT)/$(PREFIX_INSTALL)/$(TARGET)/include build/filesystem/include cp -r $(ROOT)/$(PREFIX_INSTALL)/$(TARGET)/include build/filesystem/include
cp -r $(ROOT)/$(PREFIX_INSTALL)/$(TARGET)/lib build/filesystem/lib cp -r $(ROOT)/$(PREFIX_INSTALL)/$(TARGET)/lib build/filesystem/lib