From 59f9a1b614f0bdfca35857ce88e3ec0e351a0f00 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 19 Dec 2014 13:26:08 +0000 Subject: Fix BUILD/HOST confusion The recent buildsystem improvements now use BUILD and HOST to set the ABI of the system doing the building and the ABI being targeted. Unfortunately we got these the wrong way round, this fixes that confusion. --- makefiles/Makefile.top | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'makefiles/Makefile.top') diff --git a/makefiles/Makefile.top b/makefiles/Makefile.top index 2d09276..38922d1 100644 --- a/makefiles/Makefile.top +++ b/makefiles/Makefile.top @@ -15,14 +15,15 @@ # # Optional inputs: # -# BUILDDIR Directory to build into (defaults to -# build-$(HOST)-$(BUILD)-$(VARIANT)-$(COMPONENT_TYPE)) +# BUILD Build platform identifier +# HOST Target host platform identifier, defaults to BUILD +# BUILDDIR Directory to place built output into (defaults to +# build-$(BUILD)-$(HOST)-$(VARIANT)-$(COMPONENT_TYPE)) +# This is not related to the BUILD platform identifier # CC_CAN_BUILD_AND_DEP Flag whether $(CC) is capable of calculating dependency # information at the same time as compiling sources. # Set to "yes" if it can. # DESTDIR Sandboxed FS root (e.g. for packaging) -# BUILD Target platform identifier, defaults to HOST -# HOST Host platform identifier # REQUIRED_PKGS List of required pkg-config packages # REQUIRED_LIBS List of required libraries to add to pkg-config # @@ -81,8 +82,8 @@ ifeq ($(COMPONENT_TYPE),) endif # Target platform must be defined by the client -ifeq ($(BUILD),) - $(error BUILD not defined) +ifeq ($(HOST),) + $(error HOST not defined) endif # Build variant, too @@ -110,7 +111,7 @@ patch-version := $(word 3,$(subst ., ,$(COMPONENT_VERSION))) ############################################################################## # Build directory -BUILDDIR ?= build-$(HOST)-$(BUILD)-$(VARIANT)-$(COMPONENT_TYPE) +BUILDDIR ?= build-$(BUILD)-$(HOST)-$(VARIANT)-$(COMPONENT_TYPE) # Build tree subdirs COVERAGEDIR := $(BUILDDIR)/coverage -- cgit v1.2.3