build: Integrated middle version commit for xtensa hifi5 [6/8]
PD#SWPL-66844
Problem:
Integrated first version commit for xtensa hifi5
Solution:
Only generated freertos.bin not verify function
Verify:
N/A
Change-Id: Iaec382b2ce3043b265b918ef43887165eb74e420
Signed-off-by: Xiaohu.Huang <xiaohu.huang@amlogic.com>
diff --git a/Makefile b/Makefile
index 20f18fa..a87f0d0 100755
--- a/Makefile
+++ b/Makefile
@@ -52,6 +52,11 @@
CROSSTOOL := $(build_DIR)/toolchains/$(COMPILER)*$(TOOLCHAIN_KEYWORD)*.tar.xz
PATH := $(toolchain_DIR)/bin:$(PATH)
+XTENSA_CORE = Amlogic_v9
+XTENSA_HOME = /opt/xtensa/XtDevTools/install/tools/RI-2020.5-linux/XtensaTools
+XTENSA_SYSTEM = /opt/xtensa/XtDevTools/install/builds/RI-2020.5-linux/${XTENSA_CORE}/config
+PATH := ${XTENSA_HOME}/bin:${PATH}
+
export PATH ARCH BOARD KERNEL SDK_BASE kernel_BUILD_DIR
################################################################
@@ -71,7 +76,7 @@
$($(1)_BUILD_DIR): board
@ mkdir -p $($(1)_BUILD_DIR)
# Auto-generate root CMakeLists.txt and Kconfig
- @ ./scripts/setup.sh $(MANIFEST_FILE)
+ @ ./scripts/setup.sh
@ if [ ! -f $($(1)_BUILD_DIR)/build.ninja ]; then \
cmake -G Ninja -DBOARD=$(BOARD) -DCMAKE_TOOLCHAIN_FILE=$(build_DIR)/cmake/toolchains/$(ARCH)-gcc.cmake -S $(product_DIR)/$(PRODUCT) -B $($(1)_BUILD_DIR); \
fi
@@ -232,18 +237,20 @@
ifndef COMPILER
$(error COMPILER is not set, Please execute source scripts/env.sh)
endif
- @ if [ ! -d $($@_DIR) ]; then \
- $(call MESSAGE,"Preparing $@"); \
- mkdir -p $($@_DIR); \
- tar -xf $(CROSSTOOL) -C $($@_DIR) --strip-components=1; \
- touch $($@_DIR); \
+ @ if [[ "$(TOOLCHAIN_KEYWORD)-$(COMPILER)" != "xt-xcc" ]]; then \
+ if [ ! -d $($@_DIR) ]; then \
+ $(call MESSAGE,"Preparing $@"); \
+ mkdir -p $($@_DIR); \
+ tar -xf $(CROSSTOOL) -C $($@_DIR) --strip-components=1; \
+ touch $($@_DIR); \
+ fi; \
+ if ( find $(CROSSTOOL) -newer $($@_DIR) | grep -q $(CROSSTOOL) ); then \
+ $(call MESSAGE,"Updating $@"); \
+ rm -rf $($@_DIR)/*; \
+ tar -xf $(CROSSTOOL) -C $($@_DIR) --strip-components=1; \
+ touch $($@_DIR); \
+ fi; \
fi
- @ if ( find $(CROSSTOOL) -newer $($@_DIR) | grep -q $(CROSSTOOL) ); then \
- $(call MESSAGE,"Updating $@"); \
- rm -rf $($@_DIR)/*; \
- tar -xf $(CROSSTOOL) -C $($@_DIR) --strip-components=1; \
- touch $($@_DIR); \
- fi
.PHONY: menuconfig
menuconfig: $(kernel_BUILD_DIR)