1ifeq ($(ARCH),) 2 $(error ARCH must be set to a valid architecture) 3endif 4 5default: 6 @cmp --quiet mod-simple.c mod-simple-$(ARCH).c || ( \ 7 ln -sf mod-simple.c mod-simple-$(ARCH).c; \ 8 /bin/false \ 9 ) 10 $(MAKE) -C $(KDIR_$(ARCH)) CROSS_COMPILE=$(CROSS_COMPILE_$(ARCH)) M=$$PWD KMOD_TESTSUITE_ARCH_BUILD=1 11 12clean: 13 $(MAKE) -C $(KDIR_$(ARCH)) CROSS_COMPILE=$(CROSS_COMPILE_$(ARCH)) M=$$PWD KMOD_TESTSUITE_ARCH_BUILD=1 clean 14 rm -f mod-simple-$(ARCH).c 15