Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Settings for RISCV 32-bit MCU toolchain.
- TARGET_ARCH := riscv32_mcu
- TARGET_TOOLCHAIN_PREFIX := riscv64-unknown-elf-
- PLATFORM_FLAGS = \
- -march=rv32imac \
- -mabi=ilp32 \
- -mcmodel=medany \
- -mexplicit-relocs \
- -fno-builtin-printf \
- -fno-exceptions \
- -DTF_LITE_MCU_DEBUG_LOG \
- -DTF_LITE_USE_GLOBAL_CMATH_FUNCTIONS \
- -funsigned-char \
- -fno-delete-null-pointer-checks \
- -fomit-frame-pointer
- CXXFLAGS += $(PLATFORM_FLAGS) \
- -fpermissive \
- -fno-rtti \
- -fno-threadsafe-statics \
- -fno-use-cxa-atexit \
- -DTF_LITE_USE_GLOBAL_MIN \
- -DTF_LITE_USE_GLOBAL_MAX \
- --std=gnu++11
- CCFLAGS += $(PLATFORM_FLAGS)
- BUILD_TYPE := micro
- MICROLITE_CC_SRCS += \
- $(wildcard tensorflow/lite/micro/riscv32_mcu/*.cc)
- # These are microcontroller-specific rules for converting the ELF output
- # of the linker into a binary image that can be loaded directly.
- OBJCOPY := $(TARGET_TOOLCHAIN_PREFIX)objcopy
- $(BINDIR)/%.bin: $(BINDIR)/%
- @mkdir -p $(dir $@)
- $(OBJCOPY) $< $@ -O binary
Advertisement
Add Comment
Please, Sign In to add comment