M7350/qcom-opensource/kernel/kernel-tests/KernelModule.am

17 lines
522 B
Plaintext
Raw Normal View History

2024-09-09 08:52:07 +00:00
KERNEL_FLAGS ?= ARCH=arm
kmake = $(MAKE) $(KERNEL_FLAGS) -C $(KERNEL_DIR) M=$(CURDIR)
all-local:
$(kmake) modules
install-exec-local:
$(kmake) modules_install INSTALL_MOD_PATH=$(DESTDIR)$(prefix)/modules INSTALL_MOD_DIR=kernel-tests
# "make distclean" will always run clean-local in this directory,
# regardless of the KERNELMODULES conditional. Therefore, ensure
# KERNEL_DIR exists before running clean. Further, don't fail even
# if there is a problem.
clean-local:
-test ! -d "$(KERNEL_DIR)" || $(kmake) clean