You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
310 B
21 lines
310 B
6 years ago
|
arch ?= aarch64
|
||
|
mode ?= debug
|
||
|
target := $(arch)
|
||
|
|
||
|
bootloader := target/$(target)/$(mode)/rcore-bootloader
|
||
|
|
||
|
build_args := --target=targets/$(arch).json
|
||
|
ifeq ($(mode), release)
|
||
|
build_args += --release
|
||
|
endif
|
||
|
|
||
|
.PHONY: all clean
|
||
|
|
||
|
all: $(bootloader)
|
||
|
|
||
|
$(bootloader):
|
||
|
@cargo xbuild $(build_args)
|
||
|
|
||
|
clean:
|
||
|
@cargo clean
|