From patchwork Fri Jan 13 16:49:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Thompson X-Patchwork-Id: 91471 Delivered-To: patches@linaro.org Received: by 10.140.20.99 with SMTP id 90csp278700qgi; Fri, 13 Jan 2017 08:50:10 -0800 (PST) X-Received: by 10.28.154.143 with SMTP id c137mr2927311wme.34.1484326210862; Fri, 13 Jan 2017 08:50:10 -0800 (PST) Return-Path: Received: from mail-wm0-x231.google.com (mail-wm0-x231.google.com. [2a00:1450:400c:c09::231]) by mx.google.com with ESMTPS id x204si2743879wmx.24.2017.01.13.08.50.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Jan 2017 08:50:10 -0800 (PST) Received-SPF: pass (google.com: domain of daniel.thompson@linaro.org designates 2a00:1450:400c:c09::231 as permitted sender) client-ip=2a00:1450:400c:c09::231; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of daniel.thompson@linaro.org designates 2a00:1450:400c:c09::231 as permitted sender) smtp.mailfrom=daniel.thompson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by mail-wm0-x231.google.com with SMTP id c206so79261272wme.0 for ; Fri, 13 Jan 2017 08:50:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=V2zdsm/rEKYrrTdq1J2kR9HCm2IxzmJST2Ec1UaVyYs=; b=LCY4nBpXZZW8Is5wt0QLhX4Ivfonnm8vB4gP9FpWUFY4povNEWy+kddx/CeQS8rXJO J4NaogoTCnO2YaU60Sox+tEcaGpQAovLxeY5BFOgMNCDEIox5ogeMJzzghJRSKSXIJWz QCXKC3aGajIT7mB4S5RT8muqfUWvxN+Ei2Dug= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=V2zdsm/rEKYrrTdq1J2kR9HCm2IxzmJST2Ec1UaVyYs=; b=s99mqSEH2oI3hugNDWEds8mRVuO2VQM8hAEGygAq0oNW3sykdEXxxSf9F4vnX1qgRi 9megja3JcEl7nvuyy0yLUYhSVPCzRug5c12sAnk/4aamxwHxcwsdaE24qZZP4vZk21q5 DDJ5PUvbuDbhWIw5FD6/vpX2HH4UUKrAbhXSHOHqaqnVPE6VquiGwyxBnEcZeijtyz12 b9Kr0bYs8tVZOZspY9ezPRlV+aq2qRst/GnEv3B0OqKja/GLNxTmuA9H6g7l44Y8Fqjl 5OtlL2ibD9y+JC+sFUmuU+EY1bDdhNCIbukMaykmiUKAIuGvmJh0KQi2RCHOGkMnAc7E zPBw== X-Gm-Message-State: AIkVDXIyLizcBU7s8r1uUAP+UtlG5KwgP9n16byMcYvHcSg+jYgAouQC5kQPSRh2t8oInmvjZTI= X-Received: by 10.28.230.194 with SMTP id e63mr3134508wmi.25.1484326209617; Fri, 13 Jan 2017 08:50:09 -0800 (PST) Return-Path: Received: from wychelm.lan (cpc87149-aztw31-2-0-cust149.18-1.cable.virginm.net. [77.101.221.150]) by smtp.gmail.com with ESMTPSA id o132sm5356288wmo.17.2017.01.13.08.50.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Jan 2017 08:50:08 -0800 (PST) From: Daniel Thompson To: Andrew Morton Cc: Daniel Thompson , linux-mm@kernel.org, linux-kernel@vger.kernel.org, patches@linaro.org Subject: [PATCH] tools/vm: Add missing Makefile rules Date: Fri, 13 Jan 2017 16:49:48 +0000 Message-Id: <20170113164948.25588-1-daniel.thompson@linaro.org> X-Mailer: git-send-email 2.9.3 Currently the tools/vm Makefile has a rather arbitrary implicit build rule; page-types is the first value in TARGETS so lets just build that one! Additionally there is no install rule and this is needed for make -C tools vm_install to work properly. Provide a more sensible implicit build rule and a new install rule. Note that the variables names used by the install rule (DESTDIR and sbindir) are copied from prior-art in tools/power/cpupower. Signed-off-by: Daniel Thompson --- tools/vm/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.9.3 diff --git a/tools/vm/Makefile b/tools/vm/Makefile index 93aadaf7ff63..006029456988 100644 --- a/tools/vm/Makefile +++ b/tools/vm/Makefile @@ -9,6 +9,8 @@ CC = $(CROSS_COMPILE)gcc CFLAGS = -Wall -Wextra -I../lib/ LDFLAGS = $(LIBS) +all: $(TARGETS) + $(TARGETS): $(LIBS) $(LIBS): @@ -20,3 +22,9 @@ $(LIBS): clean: $(RM) page-types slabinfo page_owner_sort make -C $(LIB_DIR) clean + +sbindir ?= /usr/sbin + +install: all + install -d $(DESTDIR)$(sbindir) + install -m 755 -p $(TARGETS) $(DESTDIR)$(sbindir)