• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1--- third_party/ltp/testcases/open_posix_testsuite/scripts/generate-makefiles.sh	2021-07-08 10:43:20.237148000 +0800
2+++ test/xts/acts/open_posix_testsuite/ltp-patch/generate-makefiles.sh	2021-07-08 10:38:59.237148000 +0800
3@@ -107,6 +107,7 @@
4 #
5
6 # Path variables.
7+CC := ${COMPILE_PATH}
8 top_srcdir?=		`echo "$prereq_dir" | awk '{ gsub(/[^\/]+/, "..", $0); print }'`
9 subdir=			$prereq_cache_dir
10 srcdir=			\$(top_srcdir)/\$(subdir)
11@@ -118,6 +119,7 @@
12
13 # Build variables
14 CFLAGS+=		-I\$(top_srcdir)/include
15+CFLAGS+=        --target=arm-liteos-ohos --sysroot=${SYSROOT_PATH} ${ARCH_CFLAGS}
16
17 # XXX: for testfrmw.c -- needs to be moved into a library.
18 CFLAGS+=		-I\$(srcdir)
19@@ -303,6 +305,10 @@
20 GLOBAL_BOILERPLATE="${TOP_SRCDIR}/.global_boilerplate"
21
22 CONFIG_MK="../../include/mk/config-openposix.mk"
23+COMPILE_PATH=$1
24+BUILD_ROOT_PATH=$2
25+SYSROOT_PATH=$3
26+ARCH_CFLAGS=$4
27
28 rm -f "$GLOBAL_BOILERPLATE"
29
30