generate-makefiles.sh.patch 886 字节
Newer Older
W
wenjun 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
--- third_party/ltp/testcases/open_posix_testsuite/scripts/generate-makefiles.sh	2020-09-03 20:31:21.369825435 +0800
+++ test/xts/acts/open_posix_testsuite/ltp-patch/generate-makefiles.sh	2020-09-03 20:33:42.534681514 +0800
@@ -107,6 +107,7 @@
 #
 
 # Path variables.
+CC := ${COMPILE_PATH}
 top_srcdir?=		`echo "$prereq_dir" | awk '{ gsub(/[^\/]+/, "..", $0); print }'`
 subdir=			$prereq_cache_dir
 srcdir=			\$(top_srcdir)/\$(subdir)
@@ -118,6 +119,7 @@
 
 # Build variables
 CFLAGS+=		-I\$(top_srcdir)/include
+CFLAGS+=        --target=arm-liteos --sysroot=${BUILD_ROOT_PATH}prebuilts/lite/sysroot
 
 # XXX: for testfrmw.c -- needs to be moved into a library.
 CFLAGS+=		-I\$(srcdir)
@@ -303,6 +305,8 @@
 GLOBAL_BOILERPLATE="${TOP_SRCDIR}/.global_boilerplate"
 
 CONFIG_MK="../../include/mk/config-openposix.mk"
+COMPILE_PATH=$1
+BUILD_ROOT_PATH=$2
 
 rm -f "$GLOBAL_BOILERPLATE"