xref: /linux/tools/testing/selftests/kexec/Makefile (revision 0db240bc077fd16cc16bcecfd7f4645bc474aa7e)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2973b71c6SMimi Zohar# Makefile for kexec tests
3c3c0e811SMimi Zohar
42a8e366bSRicardo CañueloARCH ?= $(shell uname -m 2>/dev/null || echo not)
52a8e366bSRicardo CañueloARCH_PROCESSED := $(shell echo $(ARCH) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
6c3c0e811SMimi Zohar
72a8e366bSRicardo Cañueloifeq ($(ARCH_PROCESSED),$(filter $(ARCH_PROCESSED),x86 ppc64le))
8973b71c6SMimi ZoharTEST_PROGS := test_kexec_load.sh test_kexec_file_load.sh
95025b0f0SMimi ZoharTEST_FILES := kexec_common_lib.sh
10c3c0e811SMimi Zohar
117615b94bSDavid Woodhouseinclude ../../../scripts/Makefile.arch
127615b94bSDavid Woodhouse
137615b94bSDavid Woodhouseifeq ($(IS_64_BIT)$(ARCH_PROCESSED),1x86)
147615b94bSDavid WoodhouseTEST_PROGS += test_kexec_jump.sh
15*661e9cd1SMoon Hee LeeTEST_GEN_PROGS := test_kexec_jump
167615b94bSDavid Woodhouseendif
177615b94bSDavid Woodhouse
18c3c0e811SMimi Zoharinclude ../lib.mk
19c3c0e811SMimi Zohar
20c3c0e811SMimi Zoharendif
21