feat: CI run tests
This commit is contained in:
parent
8d6a1bcc79
commit
040bba5f40
9 changed files with 81 additions and 34 deletions
|
@ -8,9 +8,15 @@ BINS := $(patsubst $(APP_DIR)/%.rs, $(TARGET_DIR)/%.bin, $(APPS))
|
|||
|
||||
OBJDUMP := rust-objdump --arch-name=riscv64
|
||||
OBJCOPY := rust-objcopy --binary-architecture=riscv64
|
||||
CP := cp
|
||||
|
||||
TEST ?=
|
||||
|
||||
elf: $(APPS)
|
||||
@cargo build --release
|
||||
ifeq ($(TEST), 1)
|
||||
@$(CP) $(TARGET_DIR)/usertests $(TARGET_DIR)/initproc
|
||||
endif
|
||||
|
||||
binary: elf
|
||||
$(foreach elf, $(ELFS), $(OBJCOPY) $(elf) --strip-all -O binary $(patsubst $(TARGET_DIR)/%, $(TARGET_DIR)/%.bin, $(elf));)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue