forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/tools/testing/selftests/rseq/Makefile
....@@ -1,6 +1,14 @@
11 # SPDX-License-Identifier: GPL-2.0+ OR MIT
2
-CFLAGS += -O2 -Wall -g -I./ -I../../../../usr/include/ -L./ -Wl,-rpath=./
3
-LDLIBS += -lpthread
2
+
3
+ifneq ($(shell $(CC) --version 2>&1 | head -n 1 | grep clang),)
4
+CLANG_FLAGS += -no-integrated-as
5
+endif
6
+
7
+top_srcdir = ../../../..
8
+
9
+CFLAGS += -O2 -Wall -g -I./ -I../../../../usr/include/ -L$(OUTPUT) -Wl,-rpath=./ \
10
+ $(CLANG_FLAGS) -I$(top_srcdir)/tools/include
11
+LDLIBS += -lpthread -ldl
412
513 # Own dependencies because we only want to build against 1st prerequisite, but
614 # still track changes to header files and depend on shared object.
....@@ -13,6 +21,8 @@
1321
1422 TEST_PROGS = run_param_test.sh
1523
24
+TEST_FILES := settings
25
+
1626 include ../lib.mk
1727
1828 $(OUTPUT)/librseq.so: rseq.c rseq.h rseq-*.h