While making it possible to build a minimal OpenEmbedded/Angstrom system using a binary CodeSourcery toolchain, I had to produce a CodeSourcery-based SDK with the OpenEmbedded, which required a new recipe to be added:
PR = "r0"
inherit sdk
require gcc-csl-arm-2007q3.inc
require gcc-cross-sdk.inc
require gcc-configure-sdk.inc
require gcc-package-sdk.inc
EXTRA_OECONF += " \
--disable-multilib \
--disable-libssp \
--disable-libgomp \
--disable-libunwind-exceptions \
--disable-libmudflap \
--with-mpfr=${STAGING_DIR_NATIVE}${layout_exec_prefix} \
"
#We don't want i686 linux ending up in the CFLAGS_FOR_TARGET like this: -isystem/OE/angstrom-tmp/staging/i686-linux/usr/include
CFLAGS = ""
CXXFLAGS = ""
LDFLAGS = ""
# Hack till we fix *libc properly
do_install_append() {
cp -a ${D}${gcclibdir}/${TARGET_SYS}/${BINV}/include-fixed/* ${D}${gcclibdir}/${TARGET_SYS}/${BINV}/include/
}
After testing and making sure it works, I opened up a Bugzilla ticket and started persuading OE developers to accept it in the development branch.And eventually, after talking to Philip Balister on IRC, the patch was committed to the upstream.
No comments:
Post a Comment