From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B019A1E495; Fri, 7 Jun 2024 21:38:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717796292; cv=none; b=uJAEoqOYw9OlqvlfC7OuxeH1Bc3d6kydcB8Av2y6Ey99vBOL/lp/fwZG9jdrOhQF2Z7lZtyGZHaFpGwDPjili0XuWhVFt+WENTbpdDAlMhHY5xKpYDyKbkqgl+hPJExwQOYc6Kpq1MoSIhndZTMx4xuQo2DyK0ilOCtmoZ+aEoE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717796292; c=relaxed/simple; bh=72gb8BM70mgsIZDMWOganiYr+lGSQ/4n7CT4a84+G8Y=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=mfS9bH9lwNDBzX2V2tMAgZF6TBHX270Eq7a9+/Cx18E+pO9WOxvmtKvmXqt+jfyabTPgmpdsk1i9m0/0TPt+Raok+EFpxRkFE9Ajva4RDDXzT65+42FGE/4ZY74UOH1rYLfZsXsgq52uHqCsU4xftlVaYhWLrpPGDJ0RuBItLtI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=gutMZWsm; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=ZC9PkiTY; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="gutMZWsm"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="ZC9PkiTY" Date: Fri, 07 Jun 2024 21:38:07 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1717796288; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lo6OeiHnixowsI/O8/Q1rbGOSTTLlz3S6ItfVtnVRgI=; b=gutMZWsmM+f8yUvjo13SkQccaus4/nGCt3REe0fE2vdydJIa+jDR4SQHT2iwlLM4uRhGKV 9o17TTZFl2RK+saemwKCbVkYFfYdQS0kIHcukI7xSA9QCiOQVGWoyBSo4O55KpnaHRB36v cWPsX+iaYeME2xGNt95bcbquH36QuUN6eJP5PNEf9lgTvAJQKQzWvvsXGyNyeO5Py71+Ma utAgquunezQR9h0GETAQuLGFvfHyArt73zRrmLkHlgfr3cW1CE463nlPgPk9czAxgAJ5BR XoTGk0B7uJkInxYFX4mFMtGCqeO9xQi5k8ACBzGsCJECvaOP0fNEYVRp/PLL3w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1717796288; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lo6OeiHnixowsI/O8/Q1rbGOSTTLlz3S6ItfVtnVRgI=; b=ZC9PkiTYOsDaUWQSr1BTD2ZPstDSXY4IJyZf0uQEDAu0rdmhbxem8RmmyzHCFQ6As9r8Ro 3uBNw/PlqDBIUlAQ== From: "tip-bot2 for Christian Heusel" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/misc] tools/x86/kcpuid: Add missing dir via Makefile Cc: Christian Heusel , "Borislav Petkov (AMD)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240531111757.719528-2-christian@heusel.eu> References: <20240531111757.719528-2-christian@heusel.eu> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171779628813.10875.3798969892614697703.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the x86/misc branch of tip: Commit-ID: f6d116e080604251880b4957843f9b1f6fdfa30f Gitweb: https://git.kernel.org/tip/f6d116e080604251880b4957843f9b1f6fdfa30f Author: Christian Heusel AuthorDate: Fri, 31 May 2024 13:17:58 +02:00 Committer: Borislav Petkov (AMD) CommitterDate: Fri, 07 Jun 2024 23:30:52 +02:00 tools/x86/kcpuid: Add missing dir via Makefile So far the Makefile just installed the csv into $(HWDATADIR)/cpuid.csv, which made it unaware about $DESTDIR. Add $DESTDIR to the install command and while at it also create the directory, should it not exist already. This eases the packaging of kcpuid and allows i.e. for the install on Arch to look like this: $ make BINDIR=/usr/bin DESTDIR="$pkgdir" -C tools/arch/x86/kcpuid install Some background on DESTDIR: DESTDIR is commonly used in packaging for staged installs (regardless of the used package manager): https://www.gnu.org/prep/standards/html_node/DESTDIR.html So the package is built and installed into a directory which the package manager later picks up and creates some archive from it. What is specific to Arch Linux here is only the usage of $pkgdir in the example, DESTDIR itself is widely used. [ bp: Extend the commit message with Christian's info on DESTDIR as a GNU coding standards thing. ] Signed-off-by: Christian Heusel Signed-off-by: Borislav Petkov (AMD) Link: https://lore.kernel.org/r/20240531111757.719528-2-christian@heusel.eu --- tools/arch/x86/kcpuid/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/arch/x86/kcpuid/Makefile b/tools/arch/x86/kcpuid/Makefile index 87b554f..d0b4b0e 100644 --- a/tools/arch/x86/kcpuid/Makefile +++ b/tools/arch/x86/kcpuid/Makefile @@ -19,6 +19,6 @@ clean : @rm -f kcpuid install : kcpuid - install -d $(DESTDIR)$(BINDIR) + install -d $(DESTDIR)$(BINDIR) $(DESTDIR)$(HWDATADIR) install -m 755 -p kcpuid $(DESTDIR)$(BINDIR)/kcpuid - install -m 444 -p cpuid.csv $(HWDATADIR)/cpuid.csv + install -m 444 -p cpuid.csv $(DESTDIR)$(HWDATADIR)/cpuid.csv