From d0b9344c958daa13de38a30f1fa62cca0b9b5c93 Mon Sep 17 00:00:00 2001 From: "Justin C. Miller" Date: Sun, 23 Feb 2020 19:27:51 -0800 Subject: [PATCH] Fix header include issues - Add types.h to all generated proto headers - Add tables.h to loaded_image protocol header --- generate_protos.py | 1 + protos.yaml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/generate_protos.py b/generate_protos.py index e8a31cd..45b5dc2 100755 --- a/generate_protos.py +++ b/generate_protos.py @@ -16,6 +16,7 @@ template = Template('''#pragma once // https://github.com/justinian/j6-uefi-headers for more information. #include +#include {%- for header in headers %} #include <{{ header }}> {%- endfor %} diff --git a/protos.yaml b/protos.yaml index 4d1475f..1f8313f 100644 --- a/protos.yaml +++ b/protos.yaml @@ -1,5 +1,7 @@ - name: loaded_image guid: "0x5b1b31a1,0x9562,0x11d2,{0x8e,0x3f,0x00,0xa0,0xc9,0x69,0x72,0x3b}" + headers: + - uefi/tables.h pre_data: - name: revision type: uint32_t