ea5b2418e6
Apply the full Red Bear bootloader patch set: - P0-gpt-partition-offset - fix-uefi-alloc-panic - redox.patch (Makefile/mk and misc fixes) - P1-bootloader-timeout-and-default-resolution - P2-live-preload-guard - P3-uefi-live-image-safe-read - P4-live-large-iso-boot - P5-live-preload-cap-1gib Also switch redoxfs dependency to the local fork path.
27 lines
626 B
Makefile
27 lines
626 B
Makefile
TARGET?=x86_64-unknown-uefi
|
|
SOURCE:=$(dir $(realpath $(lastword $(MAKEFILE_LIST))))
|
|
BUILD:=$(CURDIR)
|
|
export RUST_TARGET_PATH?=$(SOURCE)/targets
|
|
CARGO_ARGS=--release --locked --target $(TARGET) \
|
|
-Z build-std=core,alloc \
|
|
-Z build-std-features=compiler-builtins-mem
|
|
|
|
include $(SOURCE)/mk/$(TARGET).mk
|
|
|
|
clean:
|
|
rm -rf build target
|
|
|
|
$(BUILD)/filesystem:
|
|
mkdir -p $(BUILD)
|
|
rm -f $@.partial
|
|
mkdir $@.partial
|
|
fallocate -l 1MiB $@.partial/kernel
|
|
mv $@.partial $@
|
|
|
|
$(BUILD)/filesystem.bin: $(BUILD)/filesystem
|
|
mkdir -p $(BUILD)
|
|
rm -f $@.partial
|
|
fallocate -l 254MiB $@.partial
|
|
redoxfs-ar $@.partial $<
|
|
mv $@.partial $@
|