]> code.ossystems Code Review - openembedded-core.git/commitdiff
external-csl-toolchain: fix mtd-user.h issue
authorChristopher Larson <chris_larson@mentor.com>
Mon, 6 Feb 2012 20:01:07 +0000 (14:01 -0600)
committerSaul Wold <sgw@linux.intel.com>
Fri, 10 Feb 2012 07:03:20 +0000 (23:03 -0800)
The use of __packed, which isn't defined in userspace, caused busybox build
failures.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
meta/recipes-core/meta/external-csl-toolchain.bb

index 22aa99657f8200705c4a35214809a222897c1c28..d15578bf786b558a59d8f4541e26f7bf1cb0a9fd 100644 (file)
@@ -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
 }