All of lore.kernel.org
 help / color / mirror / Atom feed
* external kernel module does not recognize a new git commit
@ 2017-05-31 11:32 Lars Larsen
  2017-06-12 11:00 ` Lars Larsen
  0 siblings, 1 reply; 2+ messages in thread
From: Lars Larsen @ 2017-05-31 11:32 UTC (permalink / raw)
  To: poky

[-- Attachment #1: Type: text/plain, Size: 1575 bytes --]

Hi

For my image I have a  recipe where I build an external kernel module (a 
driver).

I followed the model in the hello_mod.bb <http://hello_mod.bb> example, 
except that the SRC_URI is a git repository and  SRCREV= "${AUTOREV} 
(/See the recipe below.)/

in my image recipe I do :
PACKAGE_INSTALL_append() = "kernel-module-camdriverV20"

If I make changes and push a new version to the git repo , it is not 
discovered by bitbake, it keeps building the older version it already 
have checked out.


///
//SUMMARY = "CAMERA DRIVER for Robovator"//
//LICENSE = "GPLv2"//
//LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e"//
//
//# Cameradriver for Robovator, based on camdriverV10//
//
//#INHIBIT_PACKAGE_DEBUG_SPLIT = "1"//
//BRANCH = "Pokybuild"//
//
//inherit module//
//
//SRC_URI =" git:///${ESERVER}/GIT/camdriverV20/;branch=${BRANCH};"//
//
//SRCREV= "${AUTOREV}"//
//PV = "1.0.0+gitr${SRCPV}"//
//
//#SRCREV = "aa47aca8424a3f65ea2fc50386c2d1cdc47120d2"//
//#PV = "1.0.0+gitr${SRCPV}"//
////
//S = "${WORKDIR}/git"//
//
//# Do not autoload the driver when running "V1.9" mode//
//#KERNEL_MODULE_AUTOLOAD += "camdriverV20"/

/
/

ESERVER and BRANCH are externally defined an are correct.

All my application level module recipes are made the same way and they 
work fine

I must have  something wrong with the driver module. but what?


B.R Lars


-- 

Best Regards
Lars Larsen

F.Poulsen Engineering Aps
Tjørnager 16
4330 Hvalsø
Denmark
+45 29802784
www.visionweeding.com


[-- Attachment #2: Type: text/html, Size: 2788 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: external kernel module does not recognize a new git commit
  2017-05-31 11:32 external kernel module does not recognize a new git commit Lars Larsen
@ 2017-06-12 11:00 ` Lars Larsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Larsen @ 2017-06-12 11:00 UTC (permalink / raw)
  To: poky

[-- Attachment #1: Type: text/plain, Size: 2081 bytes --]

SOLVED

It was caused by  my inexperience with bitbake, and half baked attempts 
to setup for offline builds

BB_FETCH_PREMIRRORONLY was set to 1.

sorry for the disturbance.

-Lars


On 2017-05-31 13:32, Lars Larsen wrote:
>
> Hi
>
> For my image I have a  recipe where I build an external kernel module 
> (a driver).
>
> I followed the model in the hello_mod.bb <http://hello_mod.bb> 
> example, except that the SRC_URI is a git repository and SRCREV= 
> "${AUTOREV} (/See the recipe below.)/
>
> in my image recipe I do :
> PACKAGE_INSTALL_append() = "kernel-module-camdriverV20"
>
> If I make changes and push a new version to the git repo , it is not 
> discovered by bitbake, it keeps building the older version it already 
> have checked out.
>
>
> ///
> //SUMMARY = "CAMERA DRIVER for Robovator"//
> //LICENSE = "GPLv2"//
> //LIC_FILES_CHKSUM = 
> "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e"//
> //
> //# Cameradriver for Robovator, based on camdriverV10//
> //
> //#INHIBIT_PACKAGE_DEBUG_SPLIT = "1"//
> //BRANCH = "Pokybuild"//
> //
> //inherit module//
> //
> //SRC_URI =" git:///${ESERVER}/GIT/camdriverV20/;branch=${BRANCH};"//
> //
> //SRCREV= "${AUTOREV}"//
> //PV = "1.0.0+gitr${SRCPV}"//
> //
> //#SRCREV = "aa47aca8424a3f65ea2fc50386c2d1cdc47120d2"//
> //#PV = "1.0.0+gitr${SRCPV}"//
> ////
> //S = "${WORKDIR}/git"//
> //
> //# Do not autoload the driver when running "V1.9" mode//
> //#KERNEL_MODULE_AUTOLOAD += "camdriverV20"/
>
> /
> /
>
> ESERVER and BRANCH are externally defined an are correct.
>
> All my application level module recipes are made the same way and they 
> work fine
>
> I must have  something wrong with the driver module. but what?
>
>
> B.R Lars
>
>
> -- 
>
> Best Regards
> Lars Larsen
>
> F.Poulsen Engineering Aps
> Tjørnager 16
> 4330 Hvalsø
> Denmark
> +45 29802784
> www.visionweeding.com
>
>
>

-- 

Best Regards
Lars Larsen

F.Poulsen Engineering Aps
Tjørnager 16
4330 Hvalsø
Denmark
+45 29802784
www.visionweeding.com


[-- Attachment #2: Type: text/html, Size: 3925 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-12 11:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-31 11:32 external kernel module does not recognize a new git commit Lars Larsen
2017-06-12 11:00 ` Lars Larsen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.