From 1a2cb511ff20c9de24e973df3b556febb9659df4 Mon Sep 17 00:00:00 2001 From: Mark Hatle Date: Thu, 28 Sep 2023 13:49:23 -0600 Subject: libomxil-xlnx: Add fixup for latest gcc Signed-off-by: Mark Hatle --- ...-Current-gcc-requires-cstdint-for-C-types.patch | 55 ++++++++++++++++++++++ .../recipes-multimedia/vcu/libomxil-xlnx_2023.1.bb | 2 + 2 files changed, 57 insertions(+) create mode 100644 meta-xilinx-core/recipes-multimedia/vcu/files/0001-Current-gcc-requires-cstdint-for-C-types.patch diff --git a/meta-xilinx-core/recipes-multimedia/vcu/files/0001-Current-gcc-requires-cstdint-for-C-types.patch b/meta-xilinx-core/recipes-multimedia/vcu/files/0001-Current-gcc-requires-cstdint-for-C-types.patch new file mode 100644 index 00000000..defe14dc --- /dev/null +++ b/meta-xilinx-core/recipes-multimedia/vcu/files/0001-Current-gcc-requires-cstdint-for-C-types.patch @@ -0,0 +1,55 @@ +From 2316632e8f3eefc21bc4f9cb97be4603b4c14719 Mon Sep 17 00:00:00 2001 +From: Mark Hatle +Date: Thu, 28 Sep 2023 12:24:04 -0600 +Subject: [PATCH] Current gcc requires cstdint for C types + +Add #include to resolve the issues similar to the following: + + module/module_structs.h:259:3: note: 'uint16_t' is defined in header ''; did you forget to '#include '? + module/module_structs.h:260:3: error: 'uint16_t' does not name a type + +Signed-off-by: Mark Hatle +--- + exe_omx/encoder/EncCmdMngr.h | 1 + + module/module_structs.h | 1 + + utility/processor_fifo.h | 1 + + 3 files changed, 3 insertions(+) + +diff --git a/exe_omx/encoder/EncCmdMngr.h b/exe_omx/encoder/EncCmdMngr.h +index 6dacd68..cd3d0a6 100644 +--- a/exe_omx/encoder/EncCmdMngr.h ++++ b/exe_omx/encoder/EncCmdMngr.h +@@ -7,6 +7,7 @@ + #include + #include + #include ++#include + + #include "ICommandsSender.h" + +diff --git a/module/module_structs.h b/module/module_structs.h +index 7151b86..37ff8ac 100644 +--- a/module/module_structs.h ++++ b/module/module_structs.h +@@ -6,6 +6,7 @@ + #include "module_enums.h" + #include + #include ++#include + + template + struct InputOutput +diff --git a/utility/processor_fifo.h b/utility/processor_fifo.h +index 1c62ba4..3c9cd86 100644 +--- a/utility/processor_fifo.h ++++ b/utility/processor_fifo.h +@@ -6,6 +6,7 @@ + #include + #include + #include ++#include + + #if defined __linux__ + #include +-- +2.34.1 diff --git a/meta-xilinx-core/recipes-multimedia/vcu/libomxil-xlnx_2023.1.bb b/meta-xilinx-core/recipes-multimedia/vcu/libomxil-xlnx_2023.1.bb index 3c258008..75a05fed 100644 --- a/meta-xilinx-core/recipes-multimedia/vcu/libomxil-xlnx_2023.1.bb +++ b/meta-xilinx-core/recipes-multimedia/vcu/libomxil-xlnx_2023.1.bb @@ -13,6 +13,8 @@ SRCREV = "4773b372b72b88ccbabc122b023f042fb22a019e" BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" SRC_URI = "${REPO};${BRANCHARG}" +SRC_URI += "file://0001-Current-gcc-requires-cstdint-for-C-types.patch" + S = "${WORKDIR}/git" inherit features_check -- cgit v1.2.3-54-g00ecf