45 lines
1.3 KiB
Diff
45 lines
1.3 KiB
Diff
Subject: deb-pkg: Add automatic support for armhf architecture
|
|
From: Ben Hutchings <ben@decadent.org.uk>
|
|
Date: Mon, 09 Jun 2014 01:21:34 +0100
|
|
Forwarded: http://mid.gmane.org/1402273294.23860.59.camel@deadeye.wl.decadent.org.uk
|
|
|
|
The Debian armhf architecture uses the ARM EABI hard-float variant,
|
|
whereas armel uses the soft-float variant. Although the kernel
|
|
doesn't use FP itself, CONFIG_VFP must be enabled to support
|
|
hard-float userland and will probably be disabled when supporting a
|
|
soft-float userland. So set the architecture to armhf by default when
|
|
CONFIG_AEABI and CONFIG_VFP are both enabled.
|
|
|
|
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
---
|
|
v2: rebased
|
|
|
|
After discussion with Hector, we agreed this would be a worthwhile
|
|
change. Hector may later improve this by using gcc specs.
|
|
|
|
Ben.
|
|
|
|
scripts/package/builddeb | 11 ++++++++++-
|
|
1 file changed, 10 insertions(+), 1 deletion(-)
|
|
|
|
--- a/scripts/package/builddeb
|
|
+++ b/scripts/package/builddeb
|
|
@@ -45,7 +45,16 @@ create_package() {
|
|
arm64)
|
|
debarch=arm64 ;;
|
|
arm*)
|
|
- debarch=arm$(grep -q CONFIG_AEABI=y $KCONFIG_CONFIG && echo el || true) ;;
|
|
+ if grep -q CONFIG_AEABI=y $KCONFIG_CONFIG; then
|
|
+ if grep -q CONFIG_VFP=y $KCONFIG_CONFIG; then
|
|
+ debarch=armhf
|
|
+ else
|
|
+ debarch=armel
|
|
+ fi
|
|
+ else
|
|
+ debarch=arm
|
|
+ fi
|
|
+ ;;
|
|
*)
|
|
echo "" >&2
|
|
echo "** ** ** WARNING ** ** **" >&2
|