Commit 84ad4092 authored by Michael Shigorin's avatar Michael Shigorin

Makefile: fixed an interbug

This inobvious buglet has been spotted shortly after 1.1.0 refactoring was roughly over; the problem is that armh-specific targets would get ignored without explicit ARCH=armh. It's commit 768df7e9 which streamlined introspection within main.mk and a bug in Makefile which left ARCH empty even upon having autodetected it for ARCHES. The current version is more straightforward as a bonus.
parent fbe571e2
...@@ -6,15 +6,16 @@ ...@@ -6,15 +6,16 @@
-include $(HOME)/.mkimage/profiles.mk -include $(HOME)/.mkimage/profiles.mk
# for immediate assignment # for immediate assignment
ifndef ARCHES ifndef ARCH
ifdef ARCH ARCH := $(shell arch \
ARCHES := $(ARCH)
else
ARCHES := $(shell arch \
| sed 's/i686/i586/; s/armv7.*/armh/; s/armv.*/arm/; s/ppc.*/ppc/') | sed 's/i686/i586/; s/armv7.*/armh/; s/armv.*/arm/; s/ppc.*/ppc/')
endif endif
ifndef ARCHES
ARCHES := $(ARCH)
endif endif
export ARCHES
export ARCHES ARCH
export PATH := $(CURDIR)/bin:$(PATH) export PATH := $(CURDIR)/bin:$(PATH)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment