Fixes in project generation for ARC specific projects

This commit is contained in:
Dmitry Zakharov 2020-04-24 13:31:42 +03:00 committed by jacco
parent 21e7a9fffa
commit f9b6799aad
7 changed files with 16 additions and 5 deletions

View File

@ -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))))

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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)...

View File

@ -0,0 +1,2 @@
# Mock Project Readme for common ARC target

View File

@ -0,0 +1,2 @@
# Mock Project Readme for ARC EMSDP target