blob: d065a3957de9c12a63018a0b0bbf9049a409672d [file] [log] [blame]
default: all
KBUILD_OPTIONS := TP_ROOT=$(shell cd $(KERNEL_SRC); readlink -e $(M))
KBUILD_OPTIONS += MODNAME?=private-drivers-tp_cyttsp5
TP_SELECT := CONFIG_TOUCHSCREEN_CYPRESS_CYTTSP5=m \
CONFIG_TOUCHSCREEN_CYPRESS_CYTTSP5_LOADER=m \
CONFIG_TOUCHSCREEN_CYPRESS_CYTTSP5_DEVICE_ACCESS=m
KBUILD_OPTIONS += $(TP_SELECT)
all:
$(MAKE) -C $(KERNEL_SRC) M=$(M) modules $(KBUILD_OPTIONS)
modules_install:
$(MAKE) INSTALL_MOD_STRIP=1 M=$(M) -C $(KERNEL_SRC) modules_install
clean::
rm -f *.o *.ko *.mod.c *.mod.o *~ .*.cmd Module.symvers
rm -rf .tmp_versions