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.
26 lines
731 B
26 lines
731 B
# 指定工程项目根目录为当前(只能指定一个目录)
|
|
export PROJECT_DIR ?= .
|
|
# 用户添加的源文件夹和头文件夹(可以指定多个)
|
|
export USR_SRC_DIR ?= . \
|
|
./src
|
|
export USR_INC_DIR ?= . \
|
|
./inc
|
|
|
|
# 用户定义的编译目标文件上传路径
|
|
ifeq ($(OS),Windows_NT)
|
|
USR_BOOT_DIR ?= $(subst \,/, $(PHYTIUM_DEV_PATH))/tftp
|
|
else
|
|
USR_BOOT_DIR ?= /mnt/d/phytium-dev/tftp
|
|
endif
|
|
|
|
# 设置启动镜像名
|
|
BOOT_IMG_NAME ?= baremetal
|
|
|
|
# 指定编译freertos项目使用的makefile
|
|
include $(STANDALONE_SDK_ROOT)/make/build_baremetal.mk
|
|
|
|
# 完成编译
|
|
boot:
|
|
make
|
|
@cp ./$(CONFIG_TARGET_NAME).elf $(USR_BOOT_DIR)/$(BOOT_IMG_NAME).elf
|
|
@ls $(USR_BOOT_DIR)/$(BOOT_IMG_NAME).elf -l
|
|
|