Fixes in project generation for ARC specific projects
This commit is contained in:
parent
21e7a9fffa
commit
f9b6799aad
@ -150,6 +150,8 @@ $(PRJDIR)$(3)/$(1)/Makefile: tensorflow/lite/micro/tools/make/templates/arc/arc_
|
||||
sed -E 's#\%\{APP_DEBUG_CMD\}\%#$(ARC_APP_DEBUG_CMD)#g' | \
|
||||
sed -E 's#\%\{EXTRA_EXECUTE_RULES\}\%#$(ARC_EXTRA_EXECUTE_RULES)#g' > $$@
|
||||
|
||||
$(PRJDIR)$(3)/$(1)/%: tensorflow/lite/micro/tools/make/templates/arc/%.tpl
|
||||
@cp $$< $$@
|
||||
|
||||
$(foreach var,$(ARC_TARGET_FILES_DIRS),$(eval $(call path_changing_copy_file,$(PRJDIR)$(3)/$(1),$(var))))
|
||||
|
||||
|
@ -105,7 +105,7 @@ endif
|
||||
|
||||
PLATFORM_FLAGS = -tcf=$(TCF_FILE_NAME) -tcf_core_config
|
||||
|
||||
PLATFORM_FLAGS += -Hnocopyr -O3 -Hpurge -Hdense_prologue -Hon=Long_enums -fslp-vectorize-aggressive -ffunction-sections -fdata-sections
|
||||
PLATFORM_FLAGS += -Hnocopyr -Hpurge -Hdense_prologue -Hon=Long_enums -fslp-vectorize-aggressive -ffunction-sections -fdata-sections
|
||||
|
||||
# Use compact CRT. It requires pre-defined heap size
|
||||
PLATFORM_FLAGS += -Hcl -Hcrt_fast_memcpy -Hcrt_fast_memset
|
||||
|
@ -28,11 +28,11 @@ SECTIONS {
|
||||
.text? : { *('.text$crt*') }
|
||||
* (TEXT): {}
|
||||
* (LIT): {}
|
||||
} > ICCM0
|
||||
} > SRAM
|
||||
|
||||
GROUP BLOCK(4): {
|
||||
.Zdata? : {}
|
||||
.stack ALIGN(4) SIZE(DEFINED _STACKSIZE?_STACKSIZE:8K): {}
|
||||
.stack ALIGN(4) SIZE(DEFINED _STACKSIZE?_STACKSIZE:32K): {}
|
||||
.heap? ALIGN(4) SIZE(DEFINED _HEAPSIZE?_HEAPSIZE:8K): {}
|
||||
} > DCCM
|
||||
|
||||
|
@ -54,8 +54,11 @@ ifeq ($(filter $(ARC_TARGET_FILES_DIRS), $(dir $(UBOOT_FILE))),)
|
||||
ARC_TARGET_FILES_DIRS += $(dir $(UBOOT_FILE))
|
||||
endif
|
||||
|
||||
# for default EMSD configuration we can use default em9d rt libs
|
||||
MAKE_PROJECT_FILES := $(filter-out README_MAKE.md, $(MAKE_PROJECT_FILES)) README_ARC_EMSDP.md
|
||||
|
||||
# for default EMSDP configuration we can use em9d_va rt libs
|
||||
# for better performance runtime should be built for emsdp configuration
|
||||
PLATFORM_LDFLAGS += -Hlib=em9d_voice_audio
|
||||
# No hostlink library for smaller codesize purpose
|
||||
PLATFORM_LDFLAGS += -Hlib=em9d_voice_audio -Hhostlib=
|
||||
|
||||
endif
|
||||
|
@ -33,6 +33,8 @@ endif
|
||||
|
||||
include $(MAKEFILE_DIR)/targets/arc/arc_common.inc
|
||||
|
||||
MAKE_PROJECT_FILES := $(filter-out README_MAKE.md, $(MAKE_PROJECT_FILES)) README_ARC.md
|
||||
|
||||
endif # $(TARGET)
|
||||
endif # $(TARGET_ARCH)...
|
||||
|
||||
|
@ -0,0 +1,2 @@
|
||||
# Mock Project Readme for common ARC target
|
||||
|
@ -0,0 +1,2 @@
|
||||
# Mock Project Readme for ARC EMSDP target
|
||||
|
Loading…
Reference in New Issue
Block a user