Compare commits
5 Commits
3724ea9fd1
...
c7c2e89c3f
Author | SHA1 | Date | |
---|---|---|---|
![]() |
c7c2e89c3f | ||
![]() |
f5e83779e0 | ||
![]() |
03e6618a10 | ||
![]() |
52982d83a4 | ||
![]() |
088faded0b |
3
Makefile
3
Makefile
@ -1,6 +1,9 @@
|
||||
# Configuration and variables
|
||||
include mk/config.mk
|
||||
|
||||
# Dependencies
|
||||
include mk/depends.mk
|
||||
|
||||
all: build/harddrive.bin
|
||||
|
||||
coreboot: build/coreboot.elf
|
||||
|
19
mk/depends.mk
Normal file
19
mk/depends.mk
Normal file
@ -0,0 +1,19 @@
|
||||
# Dependencies
|
||||
|
||||
ifeq ($(shell which rustup),)
|
||||
$(error rustup not found, install from "https://rustup.rs/")
|
||||
endif
|
||||
|
||||
ifeq ($(shell which nasm),)
|
||||
$(error nasm not found, install from your package manager)
|
||||
endif
|
||||
|
||||
CARGO_CONFIG_VERSION=0.1.1
|
||||
ifeq ($(shell cargo install --list | grep '^cargo-config v$(CARGO_CONFIG_VERSION):$$'),)
|
||||
$(error cargo-config $(CARGO_CONFIG_VERSION) not found, run "cargo install --force --version $(CARGO_CONFIG_VERSION) cargo-config")
|
||||
endif
|
||||
|
||||
XARGO_VERSION=0.3.20
|
||||
ifeq ($(shell cargo install --list | grep '^xargo v$(XARGO_VERSION):$$'),)
|
||||
$(error xargo $(XARGO_VERSION) not found, run "cargo install --force --version $(XARGO_VERSION) xargo")
|
||||
endif
|
@ -147,7 +147,7 @@ $(PREFIX)/relibc-freestanding-install: $(ROOT)/relibc | $(PREFIX_BASE_INSTALL) $
|
||||
rm -rf "$@.partial" "$@"
|
||||
mkdir -p "$@.partial"
|
||||
cd "$<" && \
|
||||
export PATH="$(PREFIX_BASE_INSTALL):$(PREFIX_FREESTANDING_PATH):$$PATH" && \
|
||||
export PATH="$(PREFIX_BASE_PATH):$(PREFIX_FREESTANDING_PATH):$$PATH" && \
|
||||
export CARGO="env -u CARGO -u RUSTUP_TOOLCHAIN xargo" && \
|
||||
export CC_$(subst -,_,$(TARGET))="$(TARGET)-gcc -isystem $(ROOT)/$@.partial/$(TARGET)/include" && \
|
||||
$(MAKE) -j `$(NPROC)` all && \
|
||||
|
2
relibc
2
relibc
@ -1 +1 @@
|
||||
Subproject commit 5aa74fd2f3ba534da908ef83fccdd3fd41c6e493
|
||||
Subproject commit d9bacaec0477ec494bf8937126aa5eb3e6cfabd0
|
Reference in New Issue
Block a user