Jason Price | 56df3e6 | 2012-06-14 16:01:04 -0600 | [diff] [blame] | 1 | KERNEL_FLAGS ?= ARCH=arm |
| 2 | |
| 3 | kmake = $(MAKE) $(KERNEL_FLAGS) -C $(KERNEL_DIR) M=$(CURDIR) |
| 4 | |
| 5 | all-local: |
| 6 | $(kmake) modules |
| 7 | |
| 8 | install-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. |
| 15 | clean-local: |
| 16 | -test ! -d "$(KERNEL_DIR)" || $(kmake) clean |