]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sandbox: Allow building with GENERATE_ACPI_TABLE
authorSimon Glass <sjg@chromium.org>
Wed, 1 Dec 2021 16:02:40 +0000 (09:02 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 25 Jan 2022 18:44:36 +0000 (11:44 -0700)
At present this option is missing a header file, a function prototype and
the qfw driver needs a header included.

Fix these problems so we can enable this option on sandbox. This will
increase the build coverage.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/include/asm/acpi_table.h
arch/sandbox/include/asm/tables.h [new file with mode: 0644]
drivers/misc/qfw.c

index 921c7f4201dffba344ec7e6cd7628ce053217669..ae17f6c5197f5cff1e4fbb0c7fc0d92974ed57a8 100644 (file)
@@ -6,4 +6,6 @@
 #ifndef __ASM_ACPI_TABLE_H__
 #define __ASM_ACPI_TABLE_H__
 
+ulong write_acpi_tables(ulong start);
+
 #endif /* __ASM_ACPI_TABLE_H__ */
diff --git a/arch/sandbox/include/asm/tables.h b/arch/sandbox/include/asm/tables.h
new file mode 100644 (file)
index 0000000..e69de29
index ea00be88a8d5151926ed2058a818968a067dba4a..a298e5cf7274e3fd897fdf081e5909606301621b 100644 (file)
@@ -14,6 +14,7 @@
 #include <qfw.h>
 #include <dm.h>
 #include <misc.h>
+#include <tables_csum.h>
 #ifdef CONFIG_GENERATE_ACPI_TABLE
 #include <asm/tables.h>
 #endif