All of lore.kernel.org
 help / color / mirror / Atom feed
* external kernel module - hash mismatch
@ 2017-05-08 12:07 Lars Larsen
  2017-05-10  9:05 ` Panagiotis Tamtamis
  0 siblings, 1 reply; 2+ messages in thread
From: Lars Larsen @ 2017-05-08 12:07 UTC (permalink / raw)
  To: poky

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

Hi

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

I followed the model in the hello_mod.bb example, except that the 
SRC_URI is a git repository and  SRCREV= "${AUTOREV}"

I added
PACKAGE_INSTALL_append() = "kernel-module-camdriverV20"

and it works fine. just as expected.

*But*  If I push changes to the git  repository, bitbake fails hard with 
error messages like this:

/ERROR: When reparsing 
/home/lars/poky/meta-fpe/recipes-core/drivers/camdriver/camdriverV20.bb.do_compile, 
the basehash value changed from cc51ed245a373392856ed0fcd4309081 to 
77f012fc7c9ef8b6a34a0c751e3aaa5f. The metadata is not deterministic and 
this needs to be fixed.//
//ERROR: When reparsing 
/home/lars/poky/meta-fpe/recipes-core/drivers/camdriver/camdriverV20.bb.do_install, 
the basehash value changed from c3a246124e6a97131cdb34bc26db47a7 to 
2713df6e7f9e94aee601d6f654758959. The metadata is not deterministic and 
this needs to be fixed.//
/
the only way i can get it to build is to /rm -rf /tmp

/what am I doing wrong/?

-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: 1955 bytes --]

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

* Re: external kernel module - hash mismatch
  2017-05-08 12:07 external kernel module - hash mismatch Lars Larsen
@ 2017-05-10  9:05 ` Panagiotis Tamtamis
  0 siblings, 0 replies; 2+ messages in thread
From: Panagiotis Tamtamis @ 2017-05-10  9:05 UTC (permalink / raw)
  To: Lars Larsen; +Cc: poky

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

Hi,

Did you use SRCPV in recipe in order the recipe version to be updated?
I guess this might resolve the problem.

See:
http://www.yoctoproject.org/docs/1.8/mega-manual/mega-manual.html#var-AUTOREV
http://www.yoctoproject.org/docs/1.8/mega-manual/mega-manual.html#var-SRCPV


Best regards,
Tamis


2017-05-08 15:07 GMT+03:00 Lars Larsen <lars@visionweeding.com>:

> Hi
>
> I have a recipe where I build an external kernel module (a driver).
>
> I followed the model in the hello_mod.bb example, except that the SRC_URI
> is a git repository and  SRCREV= "${AUTOREV}"
> I added
> PACKAGE_INSTALL_append() = "kernel-module-camdriverV20"
>
> and it works fine. just as expected.
>
> *But*  If I push changes to the git  repository, bitbake fails hard with
> error messages like this:
>
> *ERROR: When reparsing
> /home/lars/poky/meta-fpe/recipes-core/drivers/camdriver/camdriverV20.bb.do_compile,
> the basehash value changed from cc51ed245a373392856ed0fcd4309081 to
> 77f012fc7c9ef8b6a34a0c751e3aaa5f. The metadata is not deterministic and
> this needs to be fixed.*
> *ERROR: When reparsing
> /home/lars/poky/meta-fpe/recipes-core/drivers/camdriver/camdriverV20.bb.do_install,
> the basehash value changed from c3a246124e6a97131cdb34bc26db47a7 to
> 2713df6e7f9e94aee601d6f654758959. The metadata is not deterministic and
> this needs to be fixed.*
>
> the only way i can get it to build is to
>
> *rm -rf /tmp *what am I doing wrong
>
> * ? -Lars*
>
> --
>
> Best Regards
> Lars Larsen
>
> F.Poulsen Engineering Aps
> Tjørnager 16
> 4330 Hvalsø
> Denmark+45 29802784 <+45%2029%2080%2027%2084>www.visionweeding.com
>
>
> --
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
>
>


-- 
Think simple!

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

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

end of thread, other threads:[~2017-05-10  9:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-08 12:07 external kernel module - hash mismatch Lars Larsen
2017-05-10  9:05 ` Panagiotis Tamtamis

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.