[oe-commits] Christopher Larson : external-csl-toolchain: fix mtd-user.h issue

git at git.openembedded.org git at git.openembedded.org
Fri Feb 10 14:39:24 UTC 2012


Module: openembedded-core.git
Branch: master
Commit: 9c44bb6434a1d2347ebbb38bde9671688b0ae447
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=9c44bb6434a1d2347ebbb38bde9671688b0ae447

Author: Christopher Larson <chris_larson at mentor.com>
Date:   Mon Feb  6 14:01:07 2012 -0600

external-csl-toolchain: fix mtd-user.h issue

The use of __packed, which isn't defined in userspace, caused busybox build
failures.

Signed-off-by: Christopher Larson <chris_larson at mentor.com>

---

 meta/recipes-core/meta/external-csl-toolchain.bb |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/meta/recipes-core/meta/external-csl-toolchain.bb b/meta/recipes-core/meta/external-csl-toolchain.bb
index 22aa996..d15578b 100644
--- a/meta/recipes-core/meta/external-csl-toolchain.bb
+++ b/meta/recipes-core/meta/external-csl-toolchain.bb
@@ -66,6 +66,7 @@ do_install() {
 	fi
 	ln -s ../../bin/gdbserver ${D}${libdir}/bin/sysroot-gdbserver
 
+	sed -i -e 's/__packed/__attribute__ ((packed))/' ${D}${includedir}/mtd/ubi-user.h
 	sed -i -e "s# /lib# ../../lib#g" -e "s# /usr/lib# .#g" ${D}${libdir}/libc.so
 	sed -i -e "s# /lib# ../../lib#g" -e "s# /usr/lib# .#g" ${D}${libdir}/libpthread.so
 }





More information about the Openembedded-commits mailing list