Building with CONFIG_INTEL_ACPIGEN fails on qemu-x86_64_defconfig

Heinrich Schuchardt xypron.glpk at gmx.de
Wed Jan 20 21:31:24 CET 2021


Hello Simon,

I wanted to look at ACPI tables using the acpi command on
qemu-x86_64_defconfig.

CONFIG_CMD_ACPI=y leads to build failure without CONFIG_ACPIGEN=y.

With both enabled no ACPI table is generated. Shouldn't there at least
be a board description?

If I additionally add CONFIG_INTEL_ACPIGEN=y, I end up with bunches of
errors. Isn't the emulated CPU an Intel one?

No clue why Chrome OS stuff is coming up: Chrome OS runs on different
platforms and not all Intel systems run Chrome OS.

In file included from include/linux/posix_types.h:4,
                  from include/linux/types.h:4,
                  from include/time.h:7,
                  from include/common.h:18,
                  from arch/x86/cpu/intel_common/acpi.c:11:
include/linux/stddef.h:17:54: error: ‘struct acpi_global_nvs’ has no
member named ‘chromeos’
    17 | #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
       |                                                      ^~
include/linux/kernel.h:284:2: note: in expansion of macro ‘offsetof’
   284 |  offsetof(struct structure, member) == (offset), \
       |  ^~~~~~~~
./arch/x86/include/asm/intel_gnvs.h:88:1: note: in expansion of macro
‘check_member’
    88 | check_member(acpi_global_nvs, chromeos, GNVS_CHROMEOS_ACPI_OFFSET);
       | ^~~~~~~~~~~~
include/linux/stddef.h:17:32: error: expression in static assertion is
not an integer
    17 | #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
       |                                ^
include/linux/kernel.h:284:2: note: in expansion of macro ‘offsetof’
   284 |  offsetof(struct structure, member) == (offset), \
       |  ^~~~~~~~
./arch/x86/include/asm/intel_gnvs.h:88:1: note: in expansion of macro
‘check_member’
    88 | check_member(acpi_global_nvs, chromeos, GNVS_CHROMEOS_ACPI_OFFSET);
       | ^~~~~~~~~~~~
arch/x86/cpu/intel_common/acpi.c:26:10: fatal error: asm/arch/iomap.h:
No such file or directory
    26 | #include <asm/arch/iomap.h>
       |          ^~~~~~~~~~~~~~~~~~

Best regards

Heinrich


More information about the U-Boot mailing list