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.
19 lines
393 B
19 lines
393 B
PROJECT_DIR = $(CURDIR)
|
|
SDK_DIR ?= $(CURDIR)/../../..
|
|
|
|
USER_CSRC := main.c
|
|
USER_CSRC += $(wildcard src/*.c)
|
|
|
|
USER_INCLUDE := $(PROJECT_DIR) \
|
|
$(PROJECT_DIR)/inc
|
|
|
|
include $(SDK_DIR)/tools/build/makeall.mk
|
|
|
|
USR_BOOT_DIR ?= /mnt/d/tftpboot
|
|
|
|
.PHONY:image
|
|
|
|
image:
|
|
make all -j
|
|
cp ./$(IMAGE_OUT_NAME).elf $(USR_BOOT_DIR)/baremetal.elf
|
|
cp ./$(IMAGE_OUT_NAME).bin $(USR_BOOT_DIR)/baremetal.bin
|