diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2009-07-19 19:53:30 +0400 |
---|---|---|
committer | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2009-07-19 19:53:30 +0400 |
commit | 63c45c7c049f978b0c155e7f00504d3d513b4070 (patch) | |
tree | d0614b3a6f7702d610b07f1f3c67677ca2435403 /recipes/uclibc/uclibc.inc | |
parent | b743ae7f047b7a4dbd2c38c7c8cd3e3a8a792580 (diff) | |
download | openembedded-63c45c7c049f978b0c155e7f00504d3d513b4070.tar.gz |
uclibc: rework configuration for bfin
Use common uclibc.distro instead of blackfin-specific ones, reduce bfin-related uClibc.machine
to being really machine-only. Instead of storing huge uClibc.distro for blackfin, patch merged
config after concatenation.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Diffstat (limited to 'recipes/uclibc/uclibc.inc')
-rw-r--r-- | recipes/uclibc/uclibc.inc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes/uclibc/uclibc.inc b/recipes/uclibc/uclibc.inc index 3c723664d3..3769c73c52 100644 --- a/recipes/uclibc/uclibc.inc +++ b/recipes/uclibc/uclibc.inc @@ -136,6 +136,17 @@ do_configure() { cat ${WORKDIR}/uClibc.config >>${S}/merged.config fi cp ${S}/merged.config ${S}/.config + if [ "${TARGET_ARCH}" = "bfin" ] + then + sed -e '/DOPIC/d' -e '/MALLOC/d' -e '/UCLIBC_STATIC_LDCONFIG/d' -e '/FORCE_SHAREABLE/d' -e '/WORDEXP/d' -i ${S}/.config + echo "DOPIC=y" >> ${S}/.config + echo "UCLIBC_STATIC_LDCONFIG=y" >> ${S}/.config + echo "MALLOC=y" >> ${S}/.config + grep "MALLOC_GLIBC_COMPAT" ${S}/merged.config >> ${S}/.config + echo "FORCE_SHAREABLE_TEXT_SEGMENTS=y" >> ${S}/.config + echo "# UCLIBC_HAS_WORDEXP is not defined" >> ${S}/.config + fi + # Mangle the resulting .config depending on OE variables perl -i -p -e 's,^CROSS=.*,TARGET_ARCH=${TARGET_ARCH}\nCROSS=${TARGET_PREFIX},g' ${S}/Rules.mak |