]> code.ossystems Code Review - meta-freescale.git/commitdiff
imx-kobs: Fix compiler error with Linux kernel headers version >= 4.4
authorGary Thomas <gary@mlbassoc.com>
Fri, 15 Apr 2016 13:02:53 +0000 (15:02 +0200)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 19 Apr 2016 18:06:34 +0000 (15:06 -0300)
This patch fixes a build error with kernel includes (>= 4.4)
<stdint.h> must be explicitly included to get uintX_t types.

Change-Id: I3a0059a59bf578fdba0cf68370eec0e19fc10835
Signed-off-by: Gary Thomas <gary@mlbassoc.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes-bsp/imx-kobs/imx-kobs/fix-compile.patch [new file with mode: 0644]
recipes-bsp/imx-kobs/imx-kobs_5.4.bb

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 (file)
index 0000000..2ac73ae
--- /dev/null
@@ -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;
index 5487160127302a62e1b82ca31a8078f73964ecf9..1d33d40b9acbe48c81e87dbe374f9c55ef35cda5 100644 (file)
@@ -5,7 +5,9 @@ SECTION = "base"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
 
-SRC_URI = "${FSL_MIRROR}/imx-kobs-${PV}.tar.gz"
+SRC_URI = "${FSL_MIRROR}/imx-kobs-${PV}.tar.gz \
+           file://fix-compile.patch \
+"
 
 SRC_URI[md5sum] = "77467d834f858c2ec216841583e5f437"
 SRC_URI[sha256sum] = "85171b46068ac47c42fedb8104167bf9afd33dd9527ed127e1ca2eb29d7a86bf"