Skip to content

Commit

Permalink
deb-pkg: Add automatic support for armhf architecture
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Ian Campbell <[email protected]>
Acked-by: Fathi Boudra <[email protected]>
Reviewed-by: Riku Voipio <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
  • Loading branch information
bwhacks authored and Michal Marek committed Oct 26, 2015
1 parent 7c2aa61 commit 63a478f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion scripts/package/builddeb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,16 @@ set_debarch() {
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
;;
*)
debarch=$(dpkg --print-architecture)
echo "" >&2
Expand Down

0 comments on commit 63a478f

Please sign in to comment.