On 14 June 2012 23:18, Khem Raj <raj.k...@gmail.com> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 6/14/2012 5:17 PM, Tyler Jones wrote:
> > I am compiling a distro for my hardware using DEBs for my package
> > management. In meta/classes/package_deb.bbclass I need DPKG_ARCH =
> > "armel" instead of TARGET_ARCH (which is "arm"). When I run dpkg on
> > my device armel is the architecture, not arm, but yocto wants my
> > TARGET_ARCH to be set to "arm". Is there a non hackish way to do
> > this from my BSP layer or config file?
> >
> > The dpkg error I get is: package architecture (arm) does not match
> > system (armel)
> >
>
> set DPKG_ARCH = "armel" in your local.conf
>
> > -Tyler Jones
> >
> >
> >
> >
> > _______________________________________________ yocto mailing list
> > yocto@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/yocto
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.12 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk/a06sACgkQuwUzVZGdMxRBvgCeJAinKceaUDI8gQHPbvzGiOSt
> tuQAnRDOpYZvovXfg6UHji6it4YehqvR
> =7G4e
> -----END PGP SIGNATURE-----
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>

That didn't seem to work I also tried editing in the top of the
meta/classes/package_deb.bbclass setting
  DPKG_ARCH = "armel"
But that did not work either.

When I change:

@@ -249,6 +249,7 @@ python do_package_deb () {
         localdata.setVar('OVERRIDES', pkg)

         bb.data.update_data(localdata)
+        localdata.setVar('DPKG_ARCH', 'armel')
         basedir = os.path.join(os.path.dirname(root))

         pkgoutdir = os.path.join(outdir, localdata.getVar('PACKAGE_ARCH',
True))

the packages are created properly.
-Tyler Jones
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to