Compare commits

..

No commits in common. "faaed356a33d8b893120aac1d8cc3d1c874fda2e" and "0d6020bab9acfc82ea805bd62b7bbb83bce8ede5" have entirely different histories.

7 changed files with 13 additions and 16 deletions

3
.gitmodules vendored
View File

@ -34,6 +34,3 @@
path = bootloader-coreboot path = bootloader-coreboot
url = https://gitlab.redox-os.org/redox-os/bootloader-coreboot.git url = https://gitlab.redox-os.org/redox-os/bootloader-coreboot.git
branch = master branch = master
[submodule "redox-initfs"]
path = redox-initfs
url = https://gitlab.redox-os.org/redox-os/redox-initfs.git

@ -1 +1 @@
Subproject commit ec14ff801c89954196a9d86e4d13176eeb84ab9e Subproject commit 2f86d3a70e406a5b19fb2686da82b0bc2c81db35

2
kernel

@ -1 +1 @@
Subproject commit 8f06672153c17fc6b7f9ed5d57a220164360b7e2 Subproject commit 87b3bef06c13847a971aefd811a46dffa89adf46

View File

@ -1,4 +1,4 @@
build/filesystem.bin: prefix filesystem.toml build/bootloader.bin build/kernel build/initfs.img 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
@ -13,15 +13,14 @@ build/filesystem.bin: prefix filesystem.toml build/bootloader.bin build/kernel b
redoxfs/target/release/redoxfs $@.partial build/filesystem/ redoxfs/target/release/redoxfs $@.partial build/filesystem/
sleep 2 sleep 2
pgrep redoxfs pgrep redoxfs
cp -v filesystem.toml build/filesystem/filesystem.toml cp -v $< build/filesystem/filesystem.toml
cp -v build/bootloader.bin build/filesystem/bootloader cp -v build/bootloader.bin build/filesystem/bootloader
cp -v build/kernel build/filesystem/kernel cp -v build/kernel build/filesystem/kernel
mkdir -v build/filesystem/pkg mkdir -v build/filesystem/pkg
cp -v cookbook/build/id_ed25519.pub.toml build/filesystem/pkg/id_ed25519.pub.toml cp -v cookbook/build/id_ed25519.pub.toml build/filesystem/pkg/id_ed25519.pub.toml
#TODO cp -r $(ROOT)/$(PREFIX_INSTALL)/$(TARGET)/include build/filesystem/include #TODO cp -r $(ROOT)/$(PREFIX_INSTALL)/$(TARGET)/include build/filesystem/include
#TODO cp -r $(ROOT)/$(PREFIX_INSTALL)/$(TARGET)/lib build/filesystem/lib #TODO cp -r $(ROOT)/$(PREFIX_INSTALL)/$(TARGET)/lib build/filesystem/lib
$(INSTALLER) -c filesystem.toml build/filesystem/ $(INSTALLER) -c $< build/filesystem/
cp build/initfs.img build/filesystem/initfs
sync sync
-$(FUMOUNT) build/filesystem/ || true -$(FUMOUNT) build/filesystem/ || true
rm -rf build/filesystem/ rm -rf build/filesystem/

View File

@ -14,9 +14,10 @@ INITFS_RM_BINS=\
vboxd \ vboxd \
xhcid xhcid
build/initfs.img: initfs.toml prefix build/initfs.tag: initfs.toml 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
rm -f build/libkernel.a
rm -rf build/initfs rm -rf build/initfs
mkdir -p build/initfs mkdir -p build/initfs
$(INSTALLER) -c $< build/initfs/ $(INSTALLER) -c $< build/initfs/
@ -25,4 +26,4 @@ build/initfs.img: initfs.toml prefix
for bin in $(INITFS_RM_BINS); do \ for bin in $(INITFS_RM_BINS); do \
rm -f build/initfs/bin/$$bin; \ rm -f build/initfs/bin/$$bin; \
done done
cargo run --manifest-path redox-initfs/tools/Cargo.toml --bin redox-initfs-ar -- build/initfs -o $@ touch $@

View File

@ -1,10 +1,11 @@
build/libkernel.a: kernel/Cargo.lock kernel/Cargo.toml kernel/src/* kernel/src/*/* kernel/src/*/*/* kernel/src/*/*/*/* build/libkernel.a: kernel/Cargo.lock kernel/Cargo.toml kernel/src/* kernel/src/*/* kernel/src/*/*/* kernel/src/*/*/*/* build/initfs.tag
export PATH="$(PREFIX_PATH):$$PATH" && \ export PATH="$(PREFIX_PATH):$$PATH" && \
export INITFS_FOLDER=$(ROOT)/build/initfs && \
cd kernel && \ cd kernel && \
cargo rustc --lib --target=$(ROOT)/kernel/targets/$(KTARGET).json --release -- -C soft-float -C debuginfo=2 -C lto --emit link=../$@ cargo rustc --lib --target=$(ROOT)/kernel/targets/$(KTARGET).json --release -- -C soft-float -C debuginfo=2 -C lto --emit link=../$@
build/kernel: kernel/linkers/$(ARCH).ld mk/kernel_ld.sh build/libkernel.a build/kernel: kernel/linkers/$(ARCH).ld mk/kernel_ld.sh build/libkernel.a
export PATH="$(PREFIX_PATH):$$PATH" && \ export PATH="$(PREFIX_PATH):$$PATH" && \
$(ROOT)/mk/kernel_ld.sh $(LD) --gc-sections -z max-page-size=0x1000 -T $< -o $@.all build/libkernel.a && \ $(ROOT)/mk/kernel_ld.sh $(LD) --gc-sections -z max-page-size=0x1000 -T $< -o $@ build/libkernel.a && \
$(OBJCOPY) --only-keep-debug $@.all $@.sym && \ $(OBJCOPY) --only-keep-debug $@ $@.sym && \
$(OBJCOPY) --strip-debug $@.all $@ $(OBJCOPY) --strip-debug $@

@ -1 +0,0 @@
Subproject commit 89b8fb8984cf96c418880b7dcd9ce3d6afc3f71c