From patchwork Fri Sep 18 09:50:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Berg X-Patchwork-Id: 1366762 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=sipsolutions.net Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=xOK7xvgu; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Bt8kb0qg6z9sRK for ; Fri, 18 Sep 2020 20:11:35 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=MM3wSJboWwxo9QvdAA6qLMXpOHsLA1b8tBY6uXZRRMo=; b=xOK7xvguP4WagMZM1/riejJ0w ksBH7eCYf+/FKiKl11XDH3/26MnMEphgSIiCXJ9+OAM37j1pAuPmeZPKScu4/L3G0JtakLXe4NOH1 c/l3kOPlSwoSClwiHLlilU53jJFyQcndugO7ixLAXPDkFpaDofw77UL1Mk5a3S06Ag1Me1yx3N6VC zhpbP1ci0jd2i5jVNVDYWDx+Hk7d4AQenu39u9RXLD9gq3vAJLHkqWeQiquu6+z20zjjSh2VpiyT0 MWVJG+EDsUfPbhA7zipjKtvDLgtDhWra5/BK+KIHt4MQLJpLEzSFK9E6nkkHGsupc3wKnCEMz4AQA QDMD30hGA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kJDM9-0003qA-B4; Fri, 18 Sep 2020 10:11:05 +0000 Received: from s3.sipsolutions.net ([2a01:4f8:191:4433::2] helo=sipsolutions.net) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kJDM7-0003pO-9Q for hostap@lists.infradead.org; Fri, 18 Sep 2020 10:11:04 +0000 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94) (envelope-from ) id 1kJD1u-006Abk-ST; Fri, 18 Sep 2020 11:50:10 +0200 From: Johannes Berg To: hostap@lists.infradead.org Subject: [PATCH v7 14/15] build: allow overriding BUILDDIR from command line Date: Fri, 18 Sep 2020 11:50:00 +0200 Message-Id: <1600422562-I3dda8359cfcdef249aebe01cbbc7caf429925d1d@changeid> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200918095001.18935-1-johannes@sipsolutions.net> References: <20200918095001.18935-1-johannes@sipsolutions.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200918_061103_354811_4C318E49 X-CRM114-Status: GOOD ( 12.18 ) X-Spam-Score: 0.4 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.4 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.4 KHOP_HELO_FCRDNS Relay HELO differs from its IP's reverse DNS X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Johannes Berg Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Johannes Berg 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 --- src/build.rules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/build.rules b/src/build.rules index 1b830490cfe0..ec1cd66ce2a6 100644 --- a/src/build.rules +++ b/src/build.rules @@ -7,8 +7,8 @@ all: _all # setup some variables ROOTDIR := $(dir $(lastword $(MAKEFILE_LIST))) ROOTDIR := $(dir $(ROOTDIR:%../src/=%))../ -BUILDDIR := $(ROOTDIR)build -BUILDDIR := $(abspath $(BUILDDIR)) +BUILDDIR ?= $(abspath $(ROOTDIR)build) +BUILDDIR := $(BUILDDIR:%/=%) ABSROOT := $(abspath $(ROOTDIR)) ifeq ($(origin OUT),command line) _PROJ := $(OUT:%/=%)