Files
CherryUSB/demo/phytium-e2000/usbhost/makefile
zhugengyu e2a4fb11d8 update
2022-09-22 22:12:09 +08:00

30 lines
683 B
Makefile

export PROJECT_DIR ?= $(shell pwd)
export USR_SRC_DIR = $(PROJECT_DIR) \
./src
export USR_INC_DIR = $(PROJECT_DIR) \
./inc
# 用户定义的编译目标文件上传路径
ifeq ($(OS),Windows_NT)
USR_BOOT_DIR ?= $(subst \,/, $(PHYTIUM_DEV_PATH))/tftp
else
USR_BOOT_DIR ?= /mnt/d/tftboot
endif
# 设置启动镜像名
BOOT_IMG_NAME ?= freertos
# 指定编译freertos项目使用的makefile
include $(FREERTOS_SDK_ROOT)/make/build_freertos.mk
# 完成编译
boot:
make -j
@cp ./$(CONFIG_TARGET_NAME).elf $(USR_BOOT_DIR)/$(BOOT_IMG_NAME).elf
@cp ./$(CONFIG_TARGET_NAME).bin $(USR_BOOT_DIR)/$(BOOT_IMG_NAME).bin
@ls -l $(USR_BOOT_DIR)/$(BOOT_IMG_NAME).*