From: Johannes Berg Date: Fri, 18 Sep 2020 09:50:00 +0000 (+0200) Subject: build: Allow overriding BUILDDIR from command line X-Git-Tag: hostap_2_10~894 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce963433bd9316eaf825ba5d20d84404adf786e1;p=thirdparty%2Fhostap.git build: Allow overriding BUILDDIR from command line You can now specify BUILDDIR= on the make command line, e.g., in order to put that into a tmpfs or similar. Signed-off-by: Johannes Berg --- diff --git a/src/build.rules b/src/build.rules index bdcae6551..32f45ae1e 100644 --- a/src/build.rules +++ b/src/build.rules @@ -7,7 +7,8 @@ all: _all # setup some variables ROOTDIR := $(dir $(lastword $(MAKEFILE_LIST))) ROOTDIR := $(dir $(ROOTDIR:%../src/=%))../ -BUILDDIR := $(ROOTDIR)build +BUILDDIR ?= $(abspath $(ROOTDIR)build) +BUILDDIR := $(BUILDDIR:%/=%) _PROJ := $(abspath $(dir $(firstword $(MAKEFILE_LIST)))) ABSROOT := $(abspath $(ROOTDIR)) _PROJ := $(_PROJ:$(ABSROOT)/%=%)