]> code.ossystems Code Review - meta-freescale.git/commitdiff
elftosb: don't use full path for headers
authorOtavio Salvador <otavio@ossystems.com.br>
Fri, 1 Jun 2012 22:28:25 +0000 (19:28 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 1 Jun 2012 22:28:51 +0000 (19:28 -0300)
This fixes the building on new host distributions where header might
move due multilib support and other possible changes in future.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
meta-fsl-arm/recipes-bsp/elftosb/elftosb_10.12.01.bb
meta-fsl-arm/recipes-bsp/elftosb/files/don-t-use-full-path-for-headers.patch [new file with mode: 0644]

index 08cca38de1ba89c79cdc6e580c9f97b7efed5631..827379e1cb0187f03333c0caa71bd6bfd3f00f34 100644 (file)
@@ -5,11 +5,12 @@ DESCRIPTION = "Helper utility for freescale imx platforms"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://COPYING;md5=172ede34353056ebec7a597d8459f029"
 SECTION = "bootloader"
-PR = "r2"
+PR = "r3"
 BBCLASSEXTEND = "native"
 
 SRC_URI = "http://repository.timesys.com/buildsources/e/elftosb/elftosb-${PV}/elftosb-${PV}.tar.gz \
-           file://cross-build.patch"
+           file://cross-build.patch \
+           file://don-t-use-full-path-for-headers.patch"
 SRC_URI[md5sum] = "e8005d606c1e0bb3507c82f6eceb3056"
 SRC_URI[sha256sum] = "77bb6981620f7575b87d136d94c7daa88dd09195959cc75fc18b138369ecd42b"
 
diff --git a/meta-fsl-arm/recipes-bsp/elftosb/files/don-t-use-full-path-for-headers.patch b/meta-fsl-arm/recipes-bsp/elftosb/files/don-t-use-full-path-for-headers.patch
new file mode 100644 (file)
index 0000000..8996ffb
--- /dev/null
@@ -0,0 +1,42 @@
+elftosb: don't use full path for headers
+
+This fixes the building on new host distributions where header might
+move due multilib support and other possible changes in future.
+
+Upstream-Status: Pending
+
+Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
+---
+ common/stdafx.h |    2 +-
+ stdafx.h        |    2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/common/stdafx.h b/common/stdafx.h
+index e6bf9dd..fb3c2d7 100644
+--- a/common/stdafx.h
++++ b/common/stdafx.h
+@@ -27,7 +27,7 @@
+ // For Linux systems only, types.h only defines the signed
+ // integer types.  This is not professional code.
+ // Update: They are defined in the header files in the more recent version of redhat enterprise gcc.
+-#include "/usr/include/sys/types.h"
++#include <sys/types.h>
+ #include <stdint.h>
+ //typedef unsigned long uint32_t;
+ //typedef unsigned short uint16_t;
+diff --git a/stdafx.h b/stdafx.h
+index ce80458..6ff2f44 100644
+--- a/stdafx.h
++++ b/stdafx.h
+@@ -27,7 +27,7 @@
+ // For Linux systems only, types.h only defines the signed
+ // integer types.  This is not professional code.
+ // Update: They are defined in the header files in the more recent version of redhat enterprise gcc.
+-#include "/usr/include/sys/types.h"
++#include <sys/types.h>
+ //typedef unsigned long uint32_t;
+ //typedef unsigned short uint16_t;
+ //typedef unsigned char uint8_t;
+-- 
+1.7.2.5
+