[Buildroot] Buildroot and kernel modules

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed Nov 12 12:34:18 UTC 2014


Dear Paassen, Hiram van,

On Wed, 12 Nov 2014 12:21:12 +0000, Paassen, Hiram van wrote:

> As an alternative we use a buildroot package with something like this in
> it:
> 
> KERNELMODULE_DEPENDENCIES = linux
> 
> define KERNELMODULE_BUILD_CMDS
>    $(MAKE) $(LINUX_MAKE_FLAGS) -C $(LINUX_DIR) M=$(@D) modules
> endef
> 
> define KERNELMODULE_INSTALL_TARGET_CMDS
>    $(MAKE) $(LINUX_MAKE_FLAGS) -C $(LINUX_DIR) M=$(@D) modules_install
> endef
> 
> $(eval $(generic-package))
> 
> 
> which basically builds a normal out of tree module.

Yes, that's what should be done if your module is out of tree, indeed.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list