[Openembedded-users] Build gcc-cross_4.1.1 HELP
Alessandro Biasci
a.biasci at evidence.eu.com
Fri Jul 23 09:10:37 UTC 2010
Hi, I'm trying to build the package gcc-cross_4.1.1 for powerPC with
linux.powerpc-angstrom-linux.
I have change this:
insert new machine file in openembedded/conf/machine/ppc8xx.conf
--------------------------------------------------->
TARGET_ARCH = "powerpc"
PACKAGE_EXTRA_ARCHS = "all ${MACHINE} ppc"
PREFERRED_PROVIDER_virtual/kernel = "linux-${MACHINE}"
MACHINE_FEATURES = "kernel26 usbhost"
USE_VT = "0"
SERIAL_CONSOLE = "115200 ttyS0"
PREFERRED_VERSION_u-boot = "git"
EXTRA_IMAGECMD = "--big-endian"
ERASEBLOCK_SIZE = "0x10000"
IMAGE_FSTYPES = "jffs2"
PACKAGE_ARCH = "ppc8xx"
<---------------------------------------------------
Edit build/conf/config file:
DL_DIR = "${HOME}/sources"
BBFILES = "${OEBASE}/openembedded/packages/*/*.bb"
BBMASK = ""
PREFERRED_PROVIDERS = "virtual/qte:qte virtual/libqpe:libqpe-opie"
PREFERRED_PROVIDERS += " virtual/libsdl:libsdl-x11"
PREFERRED_PROVIDERS += "
virtual/${TARGET_PREFIX}gcc-initial:gcc-cross-initial"
PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc:gcc-cross"
PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}g++:gcc-cross"
MACHINE = "ppc8xx"
DISTRO = "angstrom-2007.1"
IMAGE_FSTYPES = "jffs2 tar"
DEBUG_BUILD = "1"
INHIBIT_PACKAGE_STRIP = "1"
BBINCLUDELOGS = "yes"
Make this commands on shell:
. set_environement
bitbake -b ../openembedded/packages/shasum/shasum-native.bb
bitbake -b ../openembedded/packages/perl/perl-native_5.8.8.bb
bitbake -b ../openembedded/packages/autoconf/autoconf-native_2.61.bb
bitbake
-b ../openembedded/packages/gnu-config/gnu-config-native_20050701.bb
bitbake -b ../openembedded/packages/gcc/gcc-cross_4.1.1.bb
The compile of gcc-cross fails for a lots of causes:
- stamp-as, stamp-collect-ld, stamp-nm rules fails (I comment they)
- as: unrecognized option '-mppc'
make[2]: *** [crtbegin.o] Error 1
More information about the Openembedded-users
mailing list