kernel type naming and package version conflicts
I believe I've identified why my preempt_rt kernel recipes are failing to build. The do_package_write_ipk is complaining about invalid characters in the file name - specifically:
kernel-2.6.34.7-rt-yocto-preempt_rt
*** Error: Package name contains illegal characters, (other than [a-z0-9.+-])
Note the "_" in preempt_rt.
This name appears to be generated in part from the following assignment:
LINUX_KERNEL_TYPE = "preempt_rt" LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}"
Changing this to the following allows the build to succeed without error (replacing _ with -). LINUX_VERSION_EXTENSION ?= "-yocto-preempt-rt"
As I see it we have two options, we can rewrite linux-yocto kernel branches for use in bitbake package names (replacing _ with -), or we can forbid the use of _ in the linux-yocto git branches. Rather than clutter up the recipes with string manipulators, I would prefer the latter option.
Bruce, Tom, do you have an opinion?
Signature · 2 lines
Darren Hart Yocto Linux Kernel
Quoted 15 lines · Darren Hart
I believe I've identified why my
preempt_rtkernel recipes are failing to build. Thedo_package_write_ipkis complaining about invalid characters in the file name - specifically:kernel-2.6.34.7-rt-yocto-preempt_rt
*** Error: Package name contains illegal characters, (other than [a-z0-9.+-])Note the "_" in
preempt_rt.This name appears to be generated in part from the following assignment:
LINUX_KERNEL_TYPE= "preempt_rt"LINUX_VERSION_EXTENSION?= "-yocto-${LINUX_KERNEL_TYPE}"
Quoted 8 lines
Changing this to the following allows the build to succeed without error (replacing _ with -).
LINUX_VERSION_EXTENSION?= "-yocto-preempt-rt"As I see it we have two options, we can rewrite linux-yocto kernel branches for use in bitbake package names (replacing _ with -), or we can forbid the use of _ in the linux-yocto git branches. Rather than clutter up the recipes with string manipulators, I would prefer the latter option.
Ah yes. The _ in preempt_rt pre-dates bitbake, but I'm not particularly attached to it.
As for forbidding, I'll have to add sanity checks, since the branch names are board customizable, and I know of plenty that will use _'s.
Quoted 2 lines
Bruce, Tom, do you have an opinion?
I'll fix preempt_rt to be preempt-rt, and add sanity checks, but won't go for full replacement.
How does that sound ?
Bruce
Quoted 10 lines
--
Darren Hart
Yocto Linux Kernel
_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"
Quoted 32 lines · Bruce Ashfield
Quoted 15 lines · Darren Hart
I believe I've identified why my
preempt_rtkernel recipes are failing to build. Thedo_package_write_ipkis complaining about invalid characters in the file name - specifically:kernel-2.6.34.7-rt-yocto-preempt_rt
*** Error: Package name contains illegal characters, (other than [a-z0-9.+-])Note the "_" in
preempt_rt.This name appears to be generated in part from the following assignment:
LINUX_KERNEL_TYPE= "preempt_rt"LINUX_VERSION_EXTENSION?= "-yocto-${LINUX_KERNEL_TYPE}"Quoted 8 lines
Changing this to the following allows the build to succeed without error (replacing _ with -).
LINUX_VERSION_EXTENSION?= "-yocto-preempt-rt"As I see it we have two options, we can rewrite linux-yocto kernel branches for use in bitbake package names (replacing _ with -), or we can forbid the use of _ in the linux-yocto git branches. Rather than clutter up the recipes with string manipulators, I would prefer the latter option.
Ah yes. The _ in
preempt_rtpre-dates bitbake, but I'm not particularly attached to it.As for forbidding, I'll have to add sanity checks, since the branch names are board customizable, and I know of plenty that will use _'s.
Quoted 1 line
Quoted 6 lines
Quoted 1 line
Bruce, Tom, do you have an opinion?
I'll fix
preempt_rtto be preempt-rt, and add sanity checks, but won't go for full replacement.How does that sound ?
Sounds sound ;-)
Thanks,
Signature · 2 lines
Darren Hart Yocto Linux Kernel