Skip to contentSkip to conversation

imx-kobs: fix build for recent toolchains

PATCH New Gary Bisson 3 participants 4 messages Jan 17, 2016 – Jan 19, 2016 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 imx-kobs: fix build for recent toolchains

Starting with Linux 4.4 headers, mtd-user.h isn't including stdint.h any more which breaks the build.

---
Hi all,

This patch fixes the following error:
http://autobuild.buildroot.net/results/05a/05a159c7f8382237d4c941b1bb6de7dad72708f3/

Regards,
Gary

---
 .../0002-Fix-build-for-recent-toolchains.patch     | 26 ++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 package/freescale-imx/imx-kobs/0002-Fix-build-for-recent-toolchains.patch
package/freescale-imx/imx-kobs/0002-Fix-build-for-recent-toolchains.patch new file +26 -0
new file mode 100644
index 0000000..d6680b8
@@ -0,0 +1,26 @@
+[PATCH] Fix build for recent toolchains
+
+Starting with Linux 4.4 headers, mtd-user.h isn't including stdint.h any
+more which breaks the build.
+
+Signed-off-by: Gary Bisson <[email protected]>
+---
+ src/BootControlBlocks.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/BootControlBlocks.h b/src/BootControlBlocks.h
+index 192eb61..aacdb64 100644
+--- a/src/BootControlBlocks.h
++++ b/src/BootControlBlocks.h
+@@ -20,6 +20,8 @@
+ #ifndef BOOTCONTROLBLOCKS_H_
+ #define BOOTCONTROLBLOCKS_H_
+ 
++#include <stdint.h>
++
+ #define NCB_FINGERPRINT1	0x504d5453	//!< 'STMP'
+ #define NCB_FINGERPRINT2	0x2042434e	//!< 'NCB<space>' - NAND Control Block
+ #define NCB_FINGERPRINT3	0x4e494252	//!< 'RBIN' - ROM Boot Image Block - N
+-- 
+2.6.4
+
Signature · 1 line
2.6.4
#1 lore raw

PATCH 1/1 imx-kobs: fix build for recent toolchains

Hi Gary,

Quoted 9 lines · Gary Bisson

Starting with Linux 4.4 headers, mtd-user.h isn't including stdint.h any more which breaks the build.

---
Hi all,

This patch fixes the following error:
http://autobuild.buildroot.net/results/05a/05a159c7f8382237d4c941b1bb6de7dad72708f3/

This text should be part of the commit log message above.

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
#2 lore raw

PATCH 1/1 imx-kobs: fix build for recent toolchains

Baruch, All,

Quoted 6 lines · Baruch Siach

Hi Gary,

Quoted 3 lines · Gary Bisson

Starting with Linux 4.4 headers, mtd-user.h isn't including stdint.h any more which breaks the build.

Quoted 8 lines
Quoted 6 lines

---
Hi all,

This patch fixes the following error:
http://autobuild.buildroot.net/results/05a/05a159c7f8382237d4c941b1bb6de7dad72708f3/

This text should be part of the commit log message above.

Ok, wasn't sure actually. Should I submit a V2 or can the submitter includes it in the commit log for this time?

Regards,
Gary

#3 lore raw

PATCH 1/1 imx-kobs: fix build for recent toolchains

In reply to Gary Bisson

Dear Gary Bisson,

Quoted 6 lines · Gary Bisson

Starting with Linux 4.4 headers, mtd-user.h isn't including stdint.h any more which breaks the build.

---
Hi all,

Applied, with some minor changes:

[Thomas:
- fix minor typo in the patch description
- add reference to the autobuilder failure, as suggested by Baruch.]

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com