On Mon, 2011-07-25 at 14:47 +0100, Richard Purdie wrote:
> +oe_multilib_header() {
> +     for each_header in "$@" ; do
> +        if [ ! -f "${D}/${includedir}/$each_header" ]; then
> +           bberror "oe_multilib_header: Unable to find header $each_header."
> +           continue
> +        fi
> +        stem=$(echo $each_header | sed 's#\.h$##')
> +        mv ${D}/${includedir}/$each_header 
> ${D}/${includedir}/${stem}-${SITEINFO_BITS}.h
> +
> +        sed -e "s#ENTER_HEADER_FILENAME_HERE#${stem}#g" 
> ${COREBASE}/scripts/multilib_header_wrapper.h > 
> ${D}/${includedir}/$each_header
> +     done
> +}

I guess it would also be nice if this was conditionalized in some way so
that it only triggered if one was trying to do a multilib build (or, at
least, had a TARGET_ARCH which supported multiple different wordsizes).
I don't especially want to have all the headers on, say, arm wrapped in
wordsize conditionals since the word size is basically invariant there.

po.



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

Reply via email to