2024-09-09 08:57:42 +00:00
|
|
|
bus_timeoutdir = $(prefix)/bus-timeout
|
|
|
|
KERNEL_FLAGS ?= ARCH=arm
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
dist_bus_timeout_SCRIPTS = bus_timeout_test.sh
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
module = bus_timeout_mod.ko
|
|
|
|
kmake = $(MAKE) $(KERNEL_FLAGS) -C $(KERNEL_DIR) M=$(CURDIR)
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
$(module):
|
|
|
|
$(kmake) modules
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
all-local: $(module)
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
install-exec-local: $(module)
|
|
|
|
$(kmake) INSTALL_MOD_PATH=$(DESTDIR)$(prefix)/modules modules_install
|
|
|
|
|
|
|
|
dist_bus_timeout_DATA = README
|
|
|
|
|
|
|
|
# "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
|