From 92ed65a34f79ada1306f5d23ab7271fd41c819bc Mon Sep 17 00:00:00 2001 From: Anuj Mittal Date: Mon, 29 May 2023 15:03:42 +0800 Subject: lms: fix build errors with gcc13 Fixes errors like: | /build/poky/build/tmp/work/x86-64-v3-poky-linux/lms/2245.0.0.0-r0/git/MEIClient/Include/MEIparser.h:11:1: note: 'uint8_t' is defined in header ''; did you forget to '#include '? | 10 | #include | +++ |+#include Signed-off-by: Anuj Mittal --- .../recipes-bsp/amt/lms/fix-gcc13.patch | 46 ++++++++++++++++++++++ .../recipes-bsp/amt/lms_2245.0.0.0.bb | 1 + 2 files changed, 47 insertions(+) create mode 100644 dynamic-layers/openembedded-layer/recipes-bsp/amt/lms/fix-gcc13.patch diff --git a/dynamic-layers/openembedded-layer/recipes-bsp/amt/lms/fix-gcc13.patch b/dynamic-layers/openembedded-layer/recipes-bsp/amt/lms/fix-gcc13.patch new file mode 100644 index 00000000..7e5e3bee --- /dev/null +++ b/dynamic-layers/openembedded-layer/recipes-bsp/amt/lms/fix-gcc13.patch @@ -0,0 +1,46 @@ +Upstream-Status: Pending +Signed-off-by: Anuj Mittal + +diff --git a/MEIClient/AMTHIClient/Include/AmtAnsiString.h b/MEIClient/AMTHIClient/Include/AmtAnsiString.h +index 23114c9..deef61b 100644 +--- a/MEIClient/AMTHIClient/Include/AmtAnsiString.h ++++ b/MEIClient/AMTHIClient/Include/AmtAnsiString.h +@@ -12,6 +12,7 @@ + + #include + #include ++#include + + namespace Intel + { +diff --git a/MEIClient/Include/MEIparser.h b/MEIClient/Include/MEIparser.h +index 0d47bb9..d4ffcd8 100644 +--- a/MEIClient/Include/MEIparser.h ++++ b/MEIClient/Include/MEIparser.h +@@ -8,6 +8,7 @@ + #include "MEIClientException.h" + #include + #include ++#include + + namespace Intel + { +diff --git a/UNS/GMS_COMMON/FuncEntryExit.h b/UNS/GMS_COMMON/FuncEntryExit.h +index 21862ab..7165906 100644 +--- a/UNS/GMS_COMMON/FuncEntryExit.h ++++ b/UNS/GMS_COMMON/FuncEntryExit.h +@@ -5,6 +5,7 @@ + #ifndef FUNCENTRYEXIT_H + #define FUNCENTRYEXIT_H + #include "GMSCommonDllExport.h" ++#include + + GMS_COMMON_EXPORT void FlowLog(const wchar_t *name, const wchar_t *pref, const wchar_t *func); + GMS_COMMON_EXPORT void FuncEntry(const wchar_t *name, const wchar_t *func); +@@ -48,4 +49,4 @@ private: + const wchar_t * name_; + const wchar_t * func_; + }; +-#endif // FUNCENTRYEXIT_H +\ No newline at end of file ++#endif // FUNCENTRYEXIT_H diff --git a/dynamic-layers/openembedded-layer/recipes-bsp/amt/lms_2245.0.0.0.bb b/dynamic-layers/openembedded-layer/recipes-bsp/amt/lms_2245.0.0.0.bb index 36e45dd5..7f339c8f 100644 --- a/dynamic-layers/openembedded-layer/recipes-bsp/amt/lms_2245.0.0.0.bb +++ b/dynamic-layers/openembedded-layer/recipes-bsp/amt/lms_2245.0.0.0.bb @@ -30,6 +30,7 @@ S = "${WORKDIR}/git" SYSTEMD_SERVICE:${PN} = "lms.service" SRC_URI = "git://github.com/intel/lms.git;branch=master;protocol=https \ + file://fix-gcc13.patch \ " SRCREV = "4db4ceb3f70cd1b907747646dda6785db7b247d7" -- cgit v1.2.3-54-g00ecf