scripts: Makefile.lib: generate dsdt_generated.c instead of dsdt.c
PATCH 1/1 scripts: Makefile.lib: generate dsdt_generated.c instead of dsdt.c
There is a conflict between the static filelib/acpi/dsdt.c and the file dsdt.c generated
dynamicaly by scripts/Makefile.lib. When a
mrproper is done, the static file dsdt.c is
removed. If a build with acpi enabled is
launched after, the following error is raised:
CC lib/acpi/acpi_table.o
make[2]: *** No rule to make target 'lib/acpi/dsdt.asl', needed by 'lib/acpi/dsdt.c'. Stop. scripts/Makefile.build:394: recipe for target 'lib/acpi' failed
To avoid such error, the generated file is nameddsdt_generated.c instead of dstdt.c.
--- Makefile | 3 ++- board/advantech/som-db5800-som-6867/Makefile | 2 +- board/congatec/conga-qeval20-qa3-e3845/Makefile | 2 +- board/dfi/dfi-bt700/Makefile | 2 +- board/google/chromebook_coral/Makefile | 2 +- board/intel/bayleybay/Makefile | 2 +- board/intel/edison/Makefile | 2 +- board/intel/galileo/Makefile | 2 +- board/intel/minnowmax/Makefile | 2 +- scripts/Makefile.lib | 4 ++-- 10 files changed, 12 insertions(+), 11 deletions(-)
Makefile +2 -1
@@ -2226,7 +2226,8 @@ clean: $(clean-dirs) -o -name '*.asn1.[ch]' \ -o -name '*.symtypes' -o -name 'modules.order' \ -o -name modules.builtin -o -name '.tmp_*.o.*' \ - -o -name 'dsdt.aml' -o -name 'dsdt.asl.tmp' -o -name 'dsdt.c' \ + -o -name 'dsdt_generated.aml' -o -name 'dsdt_generated.asl.tmp' \ + -o -name 'dsdt_generated.c' \ -o -name '*.efi' -o -name '*.gcno' -o -name '*.so' \) \ -type f -print | xargs rm -f
board/advantech/som-db5800-som-6867/Makefile +1 -1
@@ -3,4 +3,4 @@ # Copyright (C) 2015, Google, Inc obj-y += som-db5800-som-6867.o -obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.o
board/congatec/conga-qeval20-qa3-e3845/Makefile +1 -1
@@ -3,4 +3,4 @@ # Copyright (C) 2015, Google, Inc obj-y += conga-qeval20-qa3.o -obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.o
board/dfi/dfi-bt700/Makefile +1 -1
@@ -3,4 +3,4 @@ # Copyright (C) 2015, Google, Inc obj-y += dfi-bt700.o -obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.o
board/google/chromebook_coral/Makefile +1 -1
@@ -3,4 +3,4 @@ # Copyright 2019 Google LLC obj-y += coral.o -obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.o
board/intel/bayleybay/Makefile +1 -1
@@ -3,4 +3,4 @@ # Copyright (C) 2015, Bin Meng <[email protected]> obj-y += bayleybay.o -obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.o
board/intel/edison/Makefile +1 -1
@@ -5,4 +5,4 @@ # obj-y += edison.o -obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.o
board/intel/galileo/Makefile +1 -1
@@ -3,4 +3,4 @@ # Copyright (C) 2015, Bin Meng <[email protected]> obj-y += galileo.o -obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.o
board/intel/minnowmax/Makefile +1 -1
@@ -3,4 +3,4 @@ # Copyright (C) 2015, Google, Inc obj-y += minnowmax.o -obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.o
scripts/Makefile.lib +2 -2
@@ -468,9 +468,9 @@ cmd_acpi_c_asl= \ $(if $(KBUILD_VERBOSE:1=), >/dev/null) && \ mv $(patsubst %.c,%.hex,$@) $@ -$(obj)/dsdt.c: $(src)/dsdt.asl +$(obj)/dsdt_generated.c: $(src)/dsdt.asl $(call cmd,acpi_c_asl) - $(Q)sed -i -e "s,dsdt_aml_code,AmlCode," $@ + $(Q)sed -i -e "s,dsdt_generated_aml_code,AmlCode," $@ # Bzip2 # ---------------------------------------------------------------------------
Signature · 1 line
2.17.1
Quoted 7 lines · Philippe Reynes
There is a conflict between the static file
lib/acpi/dsdt.cand the filedsdt.cgenerated
dynamicaly byscripts/Makefile.lib. When a
mrproper is done, the static filedsdt.cis
removed. If a build with acpi enabled is
launched after, the following error is raised:
Quoted 8 lines
CC
lib/acpi/acpi_table.o
make[2]: *** No rule to make target 'lib/acpi/dsdt.asl', needed by 'lib/acpi/dsdt.c'. Stop.scripts/Makefile.build:394: recipe for target 'lib/acpi' failedTo avoid such error, the generated file is named
dsdt_generated.cinstead ofdstdt.c.Signed-off-by Philippe Reynes <[email protected]>
Marking the patch as v2 and adding a change history would have been preferable.
scripts/Makefile.lib
Quoted 111 lines
--- Makefile | 3 ++- board/advantech/som-db5800-som-6867/Makefile | 2 +- board/congatec/conga-qeval20-qa3-e3845/Makefile | 2 +- board/dfi/dfi-bt700/Makefile | 2 +- board/google/chromebook_coral/Makefile | 2 +- board/intel/bayleybay/Makefile | 2 +- board/intel/edison/Makefile | 2 +- board/intel/galileo/Makefile | 2 +- board/intel/minnowmax/Makefile | 2 +- scripts/Makefile.lib | 4 ++-- 10 files changed, 12 insertions(+), 11 deletions(-)Makefile +2
-1@@ -2226,7 +2226,8 @@ clean: $(clean-dirs) -o -name '*.asn1.[ch]' \ -o -name '*.symtypes' -o -name 'modules.order' \ -o -name modules.builtin -o -name '.tmp_*.o.*' \ - -o -name 'dsdt.aml' -o -name 'dsdt.asl.tmp' -o -name 'dsdt.c' \ + -o -name 'dsdt_generated.aml' -o -name 'dsdt_generated.asl.tmp' \ + -o -name 'dsdt_generated.c' \ -o -name '*.efi' -o -name '*.gcno' -o -name '*.so' \) \ -type f -print | xargs rm -fboard/advantech/som-db5800-som-6867/Makefile +1
-1@@ -3,4 +3,4 @@ # Copyright (C) 2015, Google, Inc obj-y += som-db5800-som-6867.o -obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.oboard/congatec/conga-qeval20-qa3-e3845/Makefile +1
-1@@ -3,4 +3,4 @@ # Copyright (C) 2015, Google, Inc obj-y += conga-qeval20-qa3.o -obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.oboard/dfi/dfi-bt700/Makefile +1
-1@@ -3,4 +3,4 @@ # Copyright (C) 2015, Google, Inc obj-y += dfi-bt700.o -obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.oboard/google/chromebook_coral/Makefile +1
-1@@ -3,4 +3,4 @@ # Copyright 2019 Google LLC obj-y += coral.o -obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.oboard/intel/bayleybay/Makefile +1
-1@@ -3,4 +3,4 @@ # Copyright (C) 2015, Bin Meng <[email protected]> obj-y += bayleybay.o -obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.oboard/intel/edison/Makefile +1
-1@@ -5,4 +5,4 @@ # obj-y += edison.o -obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.oboard/intel/galileo/Makefile +1
-1@@ -3,4 +3,4 @@ # Copyright (C) 2015, Bin Meng <[email protected]> obj-y += galileo.o -obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.oboard/intel/minnowmax/Makefile +1
-1@@ -3,4 +3,4 @@ # Copyright (C) 2015, Google, Inc obj-y += minnowmax.o -obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.oscripts/Makefile.lib +0
-0
The comments in lines 454-461 should be reworked too.
Best regards
Heinrich
Quoted 12 lines
scripts/Makefile.lib +2
-2@@ -468,9 +468,9 @@ cmd_acpi_c_asl= \ $(if $(KBUILD_VERBOSE:1=), >/dev/null) && \ mv $(patsubst %.c,%.hex,$@) $@ -$(obj)/dsdt.c: $(src)/dsdt.asl +$(obj)/dsdt_generated.c: $(src)/dsdt.asl $(call cmd,acpi_c_asl) - $(Q)sed -i -e "s,dsdt_aml_code,AmlCode," $@ + $(Q)sed -i -e "s,dsdt_generated_aml_code,AmlCode," $@ # Bzip2 # ---------------------------------------------------------------------------
Hi Heinrich,
Le 22/02/2022 à 10:40, Heinrich Schuchardt a écrit :
Quoted 12 lines · Philippe Reynes
Quoted 11 lines
There is a conflict between the static file
lib/acpi/dsdt.cand the filedsdt.cgenerated
dynamicaly byscripts/Makefile.lib. When a
mrproper is done, the static filedsdt.cis
removed. If a build with acpi enabled is
launched after, the following error is raised:CC
lib/acpi/acpi_table.o
make[2]: *** No rule to make target 'lib/acpi/dsdt.asl', needed by 'lib/acpi/dsdt.c'. Stop.scripts/Makefile.build:394: recipe for target 'lib/acpi' failed
Quoted 7 lines
Quoted 4 lines
To avoid such error, the generated file is named
dsdt_generated.cinstead ofdstdt.c.Signed-off-by Philippe Reynes <[email protected]>Marking the patch as v2 and adding a change history would have been preferable.
Oh yes, sorry, I forgot it ...
Quoted 97 lines
Quoted 97 lines
---
Makefile | 3 ++- board/advantech/som-db5800-som-6867/Makefile | 2 +- board/congatec/conga-qeval20-qa3-e3845/Makefile | 2 +- board/dfi/dfi-bt700/Makefile | 2 +- board/google/chromebook_coral/Makefile | 2 +- board/intel/bayleybay/Makefile | 2 +- board/intel/edison/Makefile | 2 +- board/intel/galileo/Makefile | 2 +- board/intel/minnowmax/Makefile | 2 +- scripts/Makefile.lib | 4 ++--10 files changed, 12 insertions(+), 11 deletions(-)Makefile +2
-1@@ -2226,7 +2226,8 @@ clean: $(clean-dirs) -o -name '*.asn1.[ch]' \ -o -name '*.symtypes' -o -name 'modules.order' \ -o -name modules.builtin -o -name '.tmp_*.o.*' \ - -o -name 'dsdt.aml' -o -name 'dsdt.asl.tmp' -o -name 'dsdt.c' \ + -o -name 'dsdt_generated.aml' -o -name 'dsdt_generated.asl.tmp' \ + -o -name 'dsdt_generated.c' \ -o -name '*.efi' -o -name '*.gcno' -o -name '*.so' \) \-type f -print | xargs rm -f
diff --git a/board/advantech/som-db5800-som-6867/Makefile b/board/advantech/som-db5800-som-6867/Makefile index7975547f41..95af6c4df7100644board/advantech/som-db5800-som-6867/Makefile +0
-0@@ -3,4 +3,4 @@ # Copyright (C) 2015, Google, Incobj-y += som-db5800-som-6867.o
board/advantech/som-db5800-som-6867/Makefile +1
-1-obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.oboard/congatec/conga-qeval20-qa3-e3845/Makefile +0
-0@@ -3,4 +3,4 @@ # Copyright (C) 2015, Google, Incobj-y += conga-qeval20-qa3.o
board/congatec/conga-qeval20-qa3-e3845/Makefile +1
-1-obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.oboard/dfi/dfi-bt700/Makefile +0
-0@@ -3,4 +3,4 @@ # Copyright (C) 2015, Google, Incobj-y += dfi-bt700.o
board/dfi/dfi-bt700/Makefile +1
-1-obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.oboard/google/chromebook_coral/Makefile +0
-0@@ -3,4 +3,4 @@ # Copyright 2019 Google LLCobj-y += coral.o
board/google/chromebook_coral/Makefile +1
-1-obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.oboard/intel/bayleybay/Makefile +0
-0@@ -3,4 +3,4 @@ # Copyright (C) 2015, Bin Meng <[email protected]>obj-y += bayleybay.o
board/intel/bayleybay/Makefile +1
-1-obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.oboard/intel/edison/Makefile +0
-0@@ -5,4 +5,4 @@ #obj-y += edison.o
board/intel/edison/Makefile +1
-1-obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.oboard/intel/galileo/Makefile +0
-0@@ -3,4 +3,4 @@ # Copyright (C) 2015, Bin Meng <[email protected]>obj-y += galileo.o
board/intel/galileo/Makefile +1
-1-obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.oboard/intel/minnowmax/Makefile +0
-0@@ -3,4 +3,4 @@ # Copyright (C) 2015, Google, Incobj-y += minnowmax.o
Quoted 8 lines
scripts/Makefile.lib
Quoted 6 lines
board/intel/minnowmax/Makefile +1
-1-obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.oscripts/Makefile.lib +0
-0The comments in lines 454-461 should be reworked too.
You're right, I forgot to update the comments.
I prepare a v3 and send it very soon.
Quoted 5 lines
Best regards
Heinrich
Quoted 12 lines
Quoted 11 lines
scripts/Makefile.lib +0
-0@@ -468,9 +468,9 @@ cmd_acpi_c_asl= \ $(if $(KBUILD_VERBOSE:1=), >/dev/null) && \mv $(patsubst %.c,%.hex,$@) $@ -$(obj)/dsdt.c: $(src)/dsdt.asl +$(obj)/dsdt_generated.c: $(src)/dsdt.asl $(call cmd,acpi_c_asl)
- $(Q)sed -i -e "s,dsdt_aml_code,AmlCode," $@ + $(Q)sed -i -e "s,dsdt_generated_aml_code,AmlCode," $@ # Bzip2
#
---------------------------------------------------------------------------
Regards,
Philippe