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.
 
 
 
 
 
 

18 lines
375 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
image:
make clean
make all -j
cp ./$(IMAGE_OUT_NAME).elf $(USR_BOOT_DIR)/baremetal.elf