Luci-app-lxc set target to armhf if arch is armv7

luci-app-lxc set target to armhf if arch is armv7 by default, but my cpu don't support hard float.

Is this a bug?

Thanks

Convention between ARM Ltd., the SOC vendors and the major general purpose Linux distributions is that ARMv7 always comes with hardfloat. Technically it is possible to omit the FPU nevertheless, and iirc there is (only) one offender - which gets penalized in the form that it isn't supported by ARMv7 binaries of any of the major distributions.

Thank you for your reply.

Another question, can I get whether my cpu supports hard-float or not at runtime?

For the CPU support, you should look for the "vfp" flags in cpu features:

root@orangepiplus2e:~# grep ^Features /proc/cpuinfo | head -1
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm

This is on an "orange pi plus 2e" SBC.

For the OS support, it should report ARCH being "armhf", for example:

root@orangepiplus2e:~# dpkg --print-architecture
armhf

This is on a debian-based distribution, you may have a look at /bin/ld:

root@orangepiplus2e:~# ls -l /lib/ld*
lrwxrwxrwx 1 root root 30 Oct 14  2022 /lib/ld-linux-armhf.so.3 -> arm-linux-gnueabihf/ld-2.31.so

The hints are "armhf" and "gnueabihf".

See this debian wiki page for more infos.

You can probably find similar informations on the other distributions.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.