blob: ef53cc4e36a39caaad8e06bc0e6a3c0bdf501585 [file] [log] [blame]
Jason Price56df3e62012-06-14 16:01:04 -06001KERNEL_FLAGS ?= ARCH=arm
2
3kmake = $(MAKE) $(KERNEL_FLAGS) -C $(KERNEL_DIR) M=$(CURDIR)
4
5all-local:
6 $(kmake) modules
7
8install-exec-local:
9 $(kmake) modules_install INSTALL_MOD_PATH=$(DESTDIR)$(prefix)/modules INSTALL_MOD_DIR=kernel-tests
10
11# "make distclean" will always run clean-local in this directory,
12# regardless of the KERNELMODULES conditional. Therefore, ensure
13# KERNEL_DIR exists before running clean. Further, don't fail even
14# if there is a problem.
15clean-local:
16 -test ! -d "$(KERNEL_DIR)" || $(kmake) clean