aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-bsp/imx-kobs/imx-kobs/fix-compile.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp/imx-kobs/imx-kobs/fix-compile.patch')
-rw-r--r--recipes-bsp/imx-kobs/imx-kobs/fix-compile.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/recipes-bsp/imx-kobs/imx-kobs/fix-compile.patch b/recipes-bsp/imx-kobs/imx-kobs/fix-compile.patch
new file mode 100644
index 0000000..2ac73ae
--- /dev/null
+++ b/recipes-bsp/imx-kobs/imx-kobs/fix-compile.patch
@@ -0,0 +1,17 @@
+This patch fixes a build error with kernel includes (>= 4.4) <stdint.h> must
+be explicitly included to get uintX_t types.
+
+Upstream-Status: Pending
+
+Index: imx-kobs-5.4/src/BootControlBlocks.h
+===================================================================
+--- imx-kobs-5.4.orig/src/BootControlBlocks.h
++++ imx-kobs-5.4/src/BootControlBlocks.h
+@@ -54,6 +54,7 @@
+ //! This structure holds the timing for the NAND. This data is used by
+ //! rom_nand_hal_GpmiSetNandTiming to setup the GPMI hardware registers.
+
++#include <stdint.h>
+ typedef struct _NAND_Timing {
+ uint8_t m_u8DataSetup;
+ uint8_t m_u8DataHold;