From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Fri, 17 Aug 2018 23:37:50 +0200 Subject: [Buildroot] Can not create driver package with local sources In-Reply-To: References: Message-ID: <20180817233750.12cbc85e@windsurf> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net 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