Building for armhf (RaspberryPI on Debian)

Submitted by Matteo Fortini on Oct. 27, 2012, 1:36 p.m.

Details

Message ID CAC_9p+9kUhDG4dCo0Dvdhu0atZV=YxXQo3BOvMd72RsxQP9HUw@mail.gmail.com
State Not Applicable
Headers show

Commit Message

Matteo Fortini Oct. 27, 2012, 1:36 p.m.
Hi,
I'm trying to build some OE deb packages using meta-raspberrypi, but my
wheezy Raspbian distro is complaining that the OE .deb was built for the
"arm" architecture and not for the "armhf" one.

To fix this, I tried to use an "armhf" machine, by changing the machine
definition in the following way. However, this didn't fix it, even if
bitbake is telling me it's using the hardware accelerated FPU.

Could you point me to a way of solving it?

Thank you in advance,
Matteo

-TUNE_FEATURES_tune-arm1176jzfs = "${TUNE_FEATURES_tune-armv6} arm1176jzfs"
-PACKAGE_EXTRA_ARCHS_tune-arm1176jzfs = "${PACKAGE_EXTRA_ARCHS_tune-armv6}"
+TUNE_FEATURES_tune-arm1176jzfs = "${TUNE_FEATURES_tune-armv6hf}
arm1176jzfs"
+PACKAGE_EXTRA_ARCHS_tune-arm1176jzfs =
"${PACKAGE_EXTRA_ARCHS_tune-armv6hf}"

Patch hide | download patch | download mbox

diff --git a/conf/machine/include/tune-arm1176jzf-s.inc
b/conf/machine/include/tune-arm1176jzf-s.inc
index b52c161..9060f48 100644
--- a/conf/machine/include/tune-arm1176jzf-s.inc
+++ b/conf/machine/include/tune-arm1176jzf-s.inc
@@ -6,5 +6,5 @@  TUNEVALID[arm1176jzfs] = "Enable arm1176jzfs specific
processor optimizations"
 TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "arm1176jzfs",
"-mtune=arm1176jzf-s", "", d)}"

 AVAILTUNES += "arm1176jzfs"

Comments

Andrei Gherzan Oct. 29, 2012, 10:14 a.m.
This sounds like a bug. Could you please submit an issue on github?

Thanks,
ag


On Sat, Oct 27, 2012 at 4:36 PM, Matteo Fortini <matteo.fortini@gmail.com>wrote:

> Hi,
> I'm trying to build some OE deb packages using meta-raspberrypi, but my
> wheezy Raspbian distro is complaining that the OE .deb was built for the
> "arm" architecture and not for the "armhf" one.
>
> To fix this, I tried to use an "armhf" machine, by changing the machine
> definition in the following way. However, this didn't fix it, even if
> bitbake is telling me it's using the hardware accelerated FPU.
>
> Could you point me to a way of solving it?
>
> Thank you in advance,
> Matteo
>
> diff --git a/conf/machine/include/tune-arm1176jzf-s.inc
> b/conf/machine/include/tune-arm1176jzf-s.inc
> index b52c161..9060f48 100644
> --- a/conf/machine/include/tune-arm1176jzf-s.inc
> +++ b/conf/machine/include/tune-arm1176jzf-s.inc
> @@ -6,5 +6,5 @@ TUNEVALID[arm1176jzfs] = "Enable arm1176jzfs specific
> processor optimizations"
>  TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "arm1176jzfs",
> "-mtune=arm1176jzf-s", "", d)}"
>
>  AVAILTUNES += "arm1176jzfs"
> -TUNE_FEATURES_tune-arm1176jzfs = "${TUNE_FEATURES_tune-armv6} arm1176jzfs"
> -PACKAGE_EXTRA_ARCHS_tune-arm1176jzfs = "${PACKAGE_EXTRA_ARCHS_tune-armv6}"
> +TUNE_FEATURES_tune-arm1176jzfs = "${TUNE_FEATURES_tune-armv6hf}
> arm1176jzfs"
> +PACKAGE_EXTRA_ARCHS_tune-arm1176jzfs =
> "${PACKAGE_EXTRA_ARCHS_tune-armv6hf}"
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>