Skip to contentSkip to conversation

imx-kobs: Fix compiler error when build with recent OE-core (kernel includes from linux version >=4.4)

PATCH In review Gary Thomas 2 participants 2 messages Apr 15, 2016 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 imx-kobs: Fix compiler error when build with recent OE-core (kernel includes from linux version >=4.4)

---
 recipes-bsp/imx-kobs/imx-kobs/fix-compile.patch | 15 +++++++++++++++
 recipes-bsp/imx-kobs/imx-kobs_5.4.bb            |  4 +++-
 2 files changed, 18 insertions(+), 1 deletion(-)
 create mode 100644 recipes-bsp/imx-kobs/imx-kobs/fix-compile.patch
recipes-bsp/imx-kobs/imx-kobs/fix-compile.patch new file +15 -0
new file mode 100644
index 0000000..09f476b
@@ -0,0 +1,15 @@
+This patch fixes a build error with kernel includes (>= 4.4) <stdint.h> must
+be explicitly included to get uintX_t types.
+
+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;
recipes-bsp/imx-kobs/imx-kobs_5.4.bb +3 -1
index 5487160..1d33d40 100644
@@ -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"
Signature · 1 line
2.5.0
#1 lore raw
Quoted 1 line · Gary Thomas

I reworked the patch and applied it in master; expect a conflict when rebasing ;-)

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750