forked from M-Labs/artiq
19 lines
422 B
Makefile
19 lines
422 B
Makefile
include ../include/generated/variables.mak
|
|
include $(MISOC_DIRECTORY)/software/common.mak
|
|
|
|
RUSTFLAGS += -Cpanic=abort
|
|
|
|
all:: bootloader.bin
|
|
|
|
.PHONY: $(RUSTOUT)/libbootloader.a
|
|
$(RUSTOUT)/libbootloader.a:
|
|
$(cargo) --manifest-path $(BOOTLOADER_DIRECTORY)/Cargo.toml -- \
|
|
-Clto
|
|
|
|
bootloader.elf: $(RUSTOUT)/libbootloader.a
|
|
$(link) -T $(BOOTLOADER_DIRECTORY)/bootloader.ld
|
|
|
|
%.bin: %.elf
|
|
$(objcopy) -O binary
|
|
$(MSCIMG) $@
|