From e179176b28b8789634cc3cefab70dfa772e0c10e Mon Sep 17 00:00:00 2001 From: Michael Shigorin Date: Sun, 18 Nov 2012 00:54:37 +0200 Subject: [PATCH] initial armh support Somewhat kludgy unfortunately and might need even more tweaking, I have only armv7l board handy at the moment to verify that the transformation is going to work. QEMU is bailing out here and now ("Exec format error"). Example sources.list.sisyphus.armh of the season: rpm http://ftp.altlinux.ru/pub/people/asdus/sisyphus armh classic rpm http://ftp.altlinux.ru/pub/people/asdus/sisyphus noarch classic --- Makefile | 3 ++- lib/build.mk | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index ce699333..1190b605 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,8 @@ ifndef ARCHES ifdef ARCH ARCHES := $(ARCH) else -ARCHES := $(shell arch | sed 's/i686/i586/; s/armv.*/arm/; s/ppc.*/ppc/') +ARCHES := $(shell arch \ + | sed 's/i686/i586/; s/armv7.*/armh/; s/armv.*/arm/; s/ppc.*/ppc/') endif endif export ARCHES diff --git a/lib/build.mk b/lib/build.mk index baf407b8..9790e820 100644 --- a/lib/build.mk +++ b/lib/build.mk @@ -21,10 +21,12 @@ LOWSPACE = 1024 START += time -f "%E %PCPU %Mk" # /usr/bin/{i586,x86_64} are setarch(8) symlinks but arm is not; +# armh (armv7l) doesn't have any but should cope with qemu-arm.static; # also check whether non-x86 build is running native +EARCH := $(subst armh,arm,$(ARCH)) ifeq (,$(wildcard $(subst :,/$(ARCH) ,$(PATH):))) -ifeq (,$(findstring $(ARCH),$(shell uname -m))) -export GLOBAL_HSH_USE_QEMU=$(ARCH) +ifeq (,$(findstring $(EARCH),$(shell uname -m))) +export GLOBAL_HSH_USE_QEMU=$(EARCH) endif else START += $(ARCH)