/ / Come scrivere un Makefile per LEDE per installare il mio nuovo driver? - openwrt

Come scrivere un Makefile per LEDE per installare il mio nuovo driver? - openwrt

Ho scritto un Makefile per compilare il mio driver in LEDE.Il problema era che il file xxx.ko è disponibile in / lib / modules /uname -r/ directory ma quel modulo non è installazione dal boot. Puoi aiutarmi a riscrivere il mio Makefile per portare il mio driver installato dal boot. Ho allegato il mio Makefile qui.

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

Grazie in anticipo.

risposte:

0 per risposta № 1

Usa autoload nel tuo makefile, come

AUTOLOAD: = $ (chiama AutoLoad, 30, moduleName)