summaryrefslogtreecommitdiffstats
path: root/testsuite/module-playground/Makefile.arch
blob: 47bd9cbbca9986b3dcc60736d39038a5702a4ee7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
ifeq ($(ARCH),)
    $(error ARCH must be set to a valid architecture)
endif

default:
	@cmp --quiet mod-simple.c mod-simple-$(ARCH).c || (	\
		ln -sf mod-simple.c mod-simple-$(ARCH).c;	\
		/bin/false					\
	)
	$(MAKE) -C $(KDIR_$(ARCH)) CROSS_COMPILE=$(CROSS_COMPILE_$(ARCH)) M=$$PWD KMOD_TESTSUITE_ARCH_BUILD=1

clean:
	$(MAKE) -C $(KDIR_$(ARCH)) CROSS_COMPILE=$(CROSS_COMPILE_$(ARCH)) M=$$PWD KMOD_TESTSUITE_ARCH_BUILD=1  clean
	rm -f mod-simple-$(ARCH).c