linux/tools/arch/x86
Christian Heusel 1d2a03d26a 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 <christian@heusel.eu>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20240531111757.719528-2-christian@heusel.eu
2024-06-12 11:33:45 +02:00
..
dell-uart-backlight-emulator tools arch x86: Add dell-uart-backlight-emulator 2024-05-14 11:43:40 +02:00
include tools headers UAPI: Sync kvm headers with the kernel sources 2024-05-28 16:49:36 -03:00
intel_sdsi tools/arch/x86/intel_sdsi: Add current meter support 2024-04-29 10:52:02 +02:00
kcpuid tools/x86/kcpuid: Add missing dir via Makefile 2024-06-12 11:33:45 +02:00
lib x86/insn: Add support for APX EVEX instructions to the opcode map 2024-05-02 13:13:46 +02:00
tools x86/insn: Add support for APX EVEX to the instruction decoder logic 2024-05-02 13:13:45 +02:00