1 # SPDX-License-Identifier: GPL-2.0 << 2 # Taken from perf makefile 1 # Taken from perf makefile 3 uname_M := $(shell uname -m 2>/dev/null || ech 2 uname_M := $(shell uname -m 2>/dev/null || echo not) 4 ARCH ?= $(shell echo $(uname_M) | sed -e s/i.8 !! 3 ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/i386/) >> 4 ifeq ($(ARCH),i386) >> 5 ARCH := x86 >> 6 endif >> 7 ifeq ($(ARCH),x86_64) >> 8 ARCH := x86 >> 9 endif 5 10 6 TEST_GEN_PROGS := step_after_suspend_test << 7 11 >> 12 all: 8 ifeq ($(ARCH),x86) 13 ifeq ($(ARCH),x86) 9 TEST_GEN_PROGS += breakpoint_test !! 14 gcc breakpoint_test.c -o breakpoint_test 10 endif !! 15 else 11 ifneq (,$(filter $(ARCH),aarch64 arm64)) !! 16 echo "Not an x86 target, can't build breakpoints selftests" 12 TEST_GEN_PROGS += breakpoint_test_arm64 << 13 endif 17 endif 14 18 15 include ../lib.mk !! 19 run_tests: >> 20 @./breakpoint_test || echo "breakpoints selftests: [FAIL]" 16 21 >> 22 clean: >> 23 rm -fr breakpoint_test
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.