something_i_am_sure

This commit is contained in:
2026-10-30 10:37:42 +01:00
parent 9615b5d42f
commit aef25a9d47
24 changed files with 4401 additions and 13 deletions
+8 -2
View File
@@ -10,11 +10,11 @@
#
# This build does NOT use the WCH EVT SDK, WCH's GCC, libprintf, or IQmath.
TARGET ?= firmware
TARGET ?= ch32v003_GPIO_USB
TARGET_MCU ?= CH32V003
# Root of the ch32fun checkout (the directory containing ch32fun/ and minichlink/).
CH32FUN_ROOT ?= $(HOME)/code/ch32fun
CH32FUN_ROOT ?= ./rv003usb/ch32fun
CH32FUN ?= $(CH32FUN_ROOT)/ch32fun
MINICHLINK ?= $(CH32FUN_ROOT)/minichlink
@@ -27,6 +27,12 @@ NEWLIB ?= /usr/riscv64-elf/include
# make PREFIX=riscv32-unknown-elf
PREFIX ?= riscv64-elf
EXTRA_CFLAGS:=-I./rv003usb/lib -I./rv003usb/rv003usb -I../include -O3
ADDITIONAL_C_FILES+=$(wildcard ./src/*.c)
ADDITIONAL_C_FILES+=$(wildcard ./rv003usb/rv003usb/*.c)
ifeq ($(wildcard $(CH32FUN)/ch32fun.mk),)
$(error ch32fun not found at $(CH32FUN). Set CH32FUN_ROOT=/path/to/ch32fun)
endif