The bulk of the selftests are actually below the powerpc sub directory. This adds support for installing them, when on a powerpc machine, or if ARCH and CROSS_COMPILE are set appropriately. This is a little more complicated because of the sub directory structure under powerpc, but much of the common logic in lib.mk is still used. The net effect of the patch is still a reduction in code. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
16 lines
244 B
Makefile
16 lines
244 B
Makefile
noarg:
|
|
$(MAKE) -C ../
|
|
|
|
TEST_PROGS := hugetlb_vs_thp_test subpage_prot
|
|
|
|
all: $(TEST_PROGS) tempfile
|
|
|
|
$(TEST_PROGS): ../harness.c
|
|
|
|
include ../../lib.mk
|
|
|
|
tempfile:
|
|
dd if=/dev/zero of=tempfile bs=64k count=1
|
|
|
|
clean:
|
|
rm -f $(TEST_PROGS) tempfile
|