Patchwork [2/4] external-csl-toolchain: fix mtd-user.h issue

login
register
mail settings
Submitter Christopher Larson
Date Feb. 6, 2012, 9:20 p.m.
Message ID <b1e91fad932b1294e2df4f190ab7733b5ef22c30.1328563142.git.chris_larson@mentor.com>
Download mbox | patch
Permalink /patch/20809/
State New
Headers show

Comments

Christopher Larson - Feb. 6, 2012, 9:20 p.m.
From: Christopher Larson <chris_larson@mentor.com>

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 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/meta/recipes-core/meta/external-csl-toolchain.bb b/meta/recipes-core/meta/external-csl-toolchain.bb
index 7dd8da2..e81559a 100644
--- a/meta/recipes-core/meta/external-csl-toolchain.bb
+++ b/meta/recipes-core/meta/external-csl-toolchain.bb
@@ -60,6 +60,7 @@  do_install() {
 	rm -r ${D}${datadir}/zoneinfo
 	rm -r ${D}${libdir}/bin
 
+	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
 }