xref: /freebsd/tests/sys/compat32/aarch64/Makefile (revision 28f66935d400eb3fb52f4e64931c0cb3c9d24be4)
1*28f66935SJessica Clarke# XXX: Doesn't work with GCC and requires an LLVM with the ARM backend
2*28f66935SJessica Clarke.if 0
3ccb59683SKyle EvansPACKAGE=	tests
4ccb59683SKyle EvansFILESGROUPS+=	asmprogs
5ccb59683SKyle Evans
6ccb59683SKyle EvansACFLAGS= -target armv7-unknown-freebsd${OS_REVISION} -nostdlib -Wl,-e -Wl,main -static
7ccb59683SKyle Evans
8ccb59683SKyle EvansTAP_TESTS_SH+=	swp_cond_test
9ccb59683SKyle EvansTAP_TESTS_SH+=	swp_test
10ccb59683SKyle Evans${PACKAGE}FILES+=	common.sh
11ccb59683SKyle Evans
12ccb59683SKyle Evans# Each test will individually respect the compat.arm.emul_swp
13ccb59683SKyle Evans# sysctl upon entry.
14ccb59683SKyle EvansTEST_METADATA.swp_cond_test+=	is_exclusive=true
15ccb59683SKyle EvansTEST_METADATA.swp_test+=	is_exclusive=true
16ccb59683SKyle Evans
17ccb59683SKyle EvansasmprogsMODE=		0755
18ccb59683SKyle Evansasmprogs+=	swp_cond_test_impl swp_test_impl
19ccb59683SKyle EvansasmprogsDIR=	${TESTSDIR}
20ccb59683SKyle Evans
21ccb59683SKyle Evans.for aprog in ${asmprogs}
22ccb59683SKyle Evans${aprog}: ${aprog}.S
23ccb59683SKyle Evans	${CC} ${ACFLAGS} -o ${.TARGET} ${.ALLSRC}
24ccb59683SKyle Evans.endfor
25ccb59683SKyle Evans
26ccb59683SKyle Evans.include <bsd.test.mk>
27*28f66935SJessica Clarke.endif
28