I have written a Makefile to compile my driver in LEDE.The problem was the xxx.ko file is available in /lib/modules/uname -r
/ directory but that module is no install from the boot.So can you help me to rewrite my Makefile to bring my driver installed from the boot.I have attached my Makefile here.
define Build/Compile
$(MAKE) -C "$(LINUX_DIR)" $(MAKE_OPTS) modules
endef
define Package/kmod-ax88772/install
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
$(INSTALL_DIR) $(1)/usr/sbin
endef
Thank you in advance.
Use autoload in your makefile, like
AUTOLOAD:=$(call AutoLoad,30, moduleName)