linux/tools/power/acpi
Chen Yu 11f8cb8903 ACPI: tools: Fix compilation when output directory is not present
Compiling the ACPI tools when output directory parameter is specified,
but the output directory is not present, triggers the following error:

make O=/data/test/tmp/ -C tools/power/acpi/

make: Entering directory '/data/src/kernel/linux/tools/power/acpi'
  DESCEND tools/acpidbg
make[1]: Entering directory '/data/src/kernel/linux/tools/power/acpi/tools/acpidbg'
  MKDIR    include
  CP       include
  CC       tools/acpidbg/acpidbg.o
Assembler messages:
Fatal error: can't create /data/test/tmp/tools/power/acpi/tools/acpidbg/acpidbg.o: No such file or directory
make[1]: *** [../../Makefile.rules:24: /data/test/tmp/tools/power/acpi/tools/acpidbg/acpidbg.o] Error 1
make[1]: Leaving directory '/data/src/kernel/linux/tools/power/acpi/tools/acpidbg'
make: *** [Makefile:18: acpidbg] Error 2
make: Leaving directory '/data/src/kernel/linux/tools/power/acpi'

which occurs because the output directory has not been created yet.

Fix this issue by creating the output directory before compiling.

Reported-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Chen Yu <yu.c.chen@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
[ rjw: New subject, changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2021-12-08 15:10:27 +01:00
..
common ACPICA: Tree-wide: fix various typos and spelling mistakes 2021-04-07 19:09:00 +02:00
man ACPI / acpidump: Update acpidump manual 2015-07-01 23:17:55 +02:00
os_specific/service_layers ACPICA: Updated all copyrights to 2021 2021-01-22 15:51:53 +01:00
tools ACPICA: Updated all copyrights to 2021 2021-01-22 15:51:53 +01:00
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
Makefile tools/power/acpi: Serialize Makefile 2020-10-02 19:18:31 +02:00
Makefile.config ACPI: tools: Fix compilation when output directory is not present 2021-12-08 15:10:27 +01:00
Makefile.rules ACPI: tools: Fix compilation when output directory is not present 2021-12-08 15:10:27 +01:00