generate-makefiles.sh.patch 910 字节
Newer Older
C
chuaizhzh 已提交
1 2
--- third_party/ltp/testcases/open_posix_testsuite/scripts/generate-makefiles.sh	2021-07-08 10:43:20.237148000 +0800
+++ test/xts/acts/open_posix_testsuite/ltp-patch/generate-makefiles.sh	2021-07-08 10:38:59.237148000 +0800
W
wenjun 已提交
3 4 5 6 7 8 9 10 11 12 13 14
@@ -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
C
chuaizhzh 已提交
15
+CFLAGS+=        --target=arm-liteos --sysroot=${SYSROOT_PATH} ${ARCH_CFLAGS}
W
wenjun 已提交
16 17 18
 
 # XXX: for testfrmw.c -- needs to be moved into a library.
 CFLAGS+=		-I\$(srcdir)
C
chuaizhzh 已提交
19
@@ -303,6 +305,10 @@
W
wenjun 已提交
20 21 22 23 24
 GLOBAL_BOILERPLATE="${TOP_SRCDIR}/.global_boilerplate"
 
 CONFIG_MK="../../include/mk/config-openposix.mk"
+COMPILE_PATH=$1
+BUILD_ROOT_PATH=$2
C
chuaizhzh 已提交
25
+SYSROOT_PATH=$3
C
chuaizhzh 已提交
26
+ARCH_CFLAGS=$4
W
wenjun 已提交
27 28 29
 
 rm -f "$GLOBAL_BOILERPLATE"