Signed-off-by: Andreas Mueller <[email protected]>
---
 .../elftosb/uclibc_and_eglibc_have_no_powf.patch   |   12 ++++++++++++
 recipes/freescale/elftosb_10.12.01.bb              |   20 ++++++++++++++++++++
 2 files changed, 32 insertions(+), 0 deletions(-)
 create mode 100644 
recipes/freescale/elftosb/uclibc_and_eglibc_have_no_powf.patch
 create mode 100644 recipes/freescale/elftosb_10.12.01.bb

diff --git a/recipes/freescale/elftosb/uclibc_and_eglibc_have_no_powf.patch 
b/recipes/freescale/elftosb/uclibc_and_eglibc_have_no_powf.patch
new file mode 100644
index 0000000..7874023
--- /dev/null
+++ b/recipes/freescale/elftosb/uclibc_and_eglibc_have_no_powf.patch
@@ -0,0 +1,12 @@
+--- a/elftosb2/ElftosbAST.cpp.old      2010-09-20 15:28:03.000000000 +0200
++++ b/elftosb2/ElftosbAST.cpp  2011-04-18 22:25:54.000000000 +0200
+@@ -755,7 +755,8 @@
+                       #ifdef WIN32
+                               result = 0;
+                       #else
+-                              result = lroundf(powf(float(leftValue), 
float(rightValue)));
++                              //result = lroundf(powf(float(leftValue), 
float(rightValue)));
++                              result = 0;
+                       #endif
+                               break;
+                       case kBitwiseAnd:
diff --git a/recipes/freescale/elftosb_10.12.01.bb 
b/recipes/freescale/elftosb_10.12.01.bb
new file mode 100644
index 0000000..9fc18a0
--- /dev/null
+++ b/recipes/freescale/elftosb_10.12.01.bb
@@ -0,0 +1,20 @@
+LICENSE = "FREESCALE"
+PR = "r0"
+
+SRC_URI = "http://foss.doredevelopment.dk/mirrors/imx/elftosb-${PV}.tar.gz \
+           file://uclibc_and_eglibc_have_no_powf.patch"
+
+SRC_URI[md5sum] = "e8005d606c1e0bb3507c82f6eceb3056"
+SRC_URI[sha256sum] = 
"77bb6981620f7575b87d136d94c7daa88dd09195959cc75fc18b138369ecd42b"
+
+BBCLASSEXTEND = "native"
+
+do_install() {
+        install -d ${D}${bindir}
+        install ${S}/bld/linux/elftosb ${D}${bindir}/
+        install ${S}/bld/linux/keygen ${D}${bindir}/
+        install ${S}/bld/linux/sbtool ${D}${bindir}/
+}
+
+NATIVE_INSTALL_WORKS = "1"
+
-- 
1.7.4.4


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Reply via email to