forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/tools/testing/selftests/rseq/Makefile
....@@ -1,6 +1,12 @@
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
+CFLAGS += -O2 -Wall -g -I./ -I../../../../usr/include/ -L$(OUTPUT) -Wl,-rpath=./ \
8
+ $(CLANG_FLAGS)
9
+LDLIBS += -lpthread -ldl
410
511 # Own dependencies because we only want to build against 1st prerequisite, but
612 # still track changes to header files and depend on shared object.
....@@ -13,6 +19,8 @@
1319
1420 TEST_PROGS = run_param_test.sh
1521
22
+TEST_FILES := settings
23
+
1624 include ../lib.mk
1725
1826 $(OUTPUT)/librseq.so: rseq.c rseq.h rseq-*.h