Hello,
Enabling "package_ipk" in PACKAGE_CLASSES in local.conf makes the yocto build for imx8mqevk fail in the linux-imx recipe:
...
Subprocess output:
kernel-module-xt-conntrack-4.9.88-imx_4.9.88_2.0.0_ga+g5e23f9d61147
*** Error: Package name contains illegal characters, (other than [a-z0-9.+-])
My build configured as "MACHINE=imx8mqevk DISTRO=fsl-imx-xwayland source ./fsl-setup-release.sh -b build-20180610"
How this could be fixed?
Regards,
Sergei
Hi Sergei,
You are using a diff kernel image than the iMX8M, please work in L4.9.88_1.0.0.
Hello Alfred,
I'm confused. I'm using the exact build configuration as provided by the NXP Release documentation https://www.nxp.com/webapp/Download?colCode=L4.9.88_2.0.0_LINUX_DOCS&Parent_nodeId=13376994810717061... . I'm initializing the repositories for the build as:
repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-rocko -m imx-4.9.88-2.0.0_ga.xml
repo sync
Why would I work with a different release?
Please clarify.
Thanks!
Regards,
Sergei
I am getting the exact same error with the ipk of the imx kernel:
kernel-module-snd-hwdep-4.9.88-imx_4.9.88_2.0.0_ga+g5e23f9d
*** Error: Package name contains illegal characters, (other than [a-z0-9.+-])
Hi Phil,
We worked around this by adding "_" to the name validity check in opkg-build, here is the patch:
--- opkg-utils-0.3.5.orig/opkg-utils 2018-06-16 12:54:53.581191934 +0300
+++ opkg-utils-0.3.5/opkg-build 2018-06-16 13:22:28.321938270 +0300
@@ -131,8 +131,8 @@ You probably want to chown these to a sy
disallowed_filename=`disallowed_field Filename`
[ "$?" -ne 0 ] && PKG_ERROR=1
- if echo $pkg | grep '[^a-z0-9.+-]'; then
- echo "*** Error: Package name $name contains illegal characters, (othe\
r than [a-z0-9.+-])" >&2
+ if echo $pkg | grep '[^a-z0-9.+-_]'; then
+ echo "*** Error: Package name $pkg contains illegal characters, (other\
than [a-z0-9.+-_])" >&2
PKG_ERROR=1;
fi
--- opkg-utils-0.3.5.orig/opkg-buildpackage 2017-01-30 22:52:45.000000000 +0300
+++ opkg-utils-0.3.5/opkg-buildpackage 2018-06-16 13:23:29.985668241 +0300
@@ -65,8 +65,8 @@ pkg_appears_sane_control() {
required_field Maintainer >/dev/null
required_field Description >/dev/null
- if echo $pkg | grep '[^a-z0-9.+-]'; then
- echo "opkg-build: Error: Package name $name contains illegal character\
s, (other than [a-z0-9.+-])"
+ if echo $pkg | grep '[^a-z0-9.+-_]'; then
+ echo "opkg-build: Error: Package name $pkg contains illegal characters\
, (other than [a-z0-9.+-_])"
PKG_ERROR=1;
fi