[Buildroot] Can not create driver package with local sources

Thomas Petazzoni thomas.petazzoni at bootlin.com
Fri Aug 17 21:37:50 UTC 2018


Hello Fabrice,

On Fri, 17 Aug 2018 14:06:35 +0000, Fabrice Mousset | GEOCEPT GmbH
wrote:

> I try to create a custom package to build a linux driver which sources are stored locally, but this doesn't work, because source files are not copy to build directory.
> I am using BuildRoot 2018.05.
> 
> Here is my mk file:
> ---
> BR2_PACKAGE_SITEC_S4_LP_VERSION      = 1.0
> BR2_PACKAGE_SITEC_S4_LP_SITE         = $(TOPDIR)/package/sitec-s4-lp/src
> BR2_PACKAGE_SITEC_S4_LP_SITE_METHOD  = local
> BR2_PACKAGE_SITEC_S4_LP_DEPENDENCIES = linux
> 
> define BR2_PACKAGE_SITEC_S4_LP_BUILD_CMDS

All those prefixes are wrong. The variables in the .mk file should be
prefixed by SITEC_S4_LP, not BR2_PACKAGE_SITEC_S4_LP.

As your .mk file is written, none of those variables are taken into
account, so it's exactly as if your file contained just:

$(eval $(kernel-module))
$(eval $(generic-package))

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list