[yocto] Setting architecture of only DEB files (arm vs armel)

Tyler Jones tylerjones64 at gmail.com
Fri Jun 15 18:18:22 PDT 2012


On 14 June 2012 23:18, Khem Raj <raj.khem at 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 at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20120615/da4e3f62/attachment.html>


More information about the yocto mailing list