Add WIP recipe for gcc6809.

Does not work, xgcc crashes while compiling stuff in there...
This commit is contained in:
Adrien Destugues
2014-08-09 16:11:46 +02:00
parent d2e4129cd1
commit dcb1da1d55
2 changed files with 8339 additions and 0 deletions

View File

@@ -0,0 +1,77 @@
SUMMARY="GCC compiler for Motorola 6809"
DESCRIPTION="This is a version of the GCC compiler for the Motorla 6809. It uses
the lwtools as a backend. Note that there is no C library provided."
HOMEPAGE="http://lwtools.projects.l-w.ca"
SRC_URI="ftp://ftp.irisa.fr/pub/mirrors/gcc.gnu.org/gcc/releases/gcc-$portVersion/gcc-$portVersion.tar.bz2"
CHECKSUM_SHA256="8eebf51c908151d1f1a3756c8899c5e71572e8469a547ad72a1ef16a08a31b59"
REVISION="1"
COPYRIGHT="1988-2013 Free Software Foundation, Inc."
LICENSE="
GNU GPL v2
GNU LGPL v2
"
PATCHES="gcc6809-$portVersion.patchset"
ARCHITECTURES=""
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
# x86_gcc2 is fine as primary target architecture as long as we're building
# for a different secondary architecture.
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
fi
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
gcc6809$secondaryArchSuffix = $portVersion compat >= 4
"
REQUIRES="
cmd:m6809_unknown_ld$secondaryArchSuffix
"
BUILD_REQUIRES="
devel:libgmp$secondaryArchSuffix
devel:libmpfr$secondaryArchSuffix
devel:libmpc$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
cmd:autoconf
cmd:awk
cmd:find
cmd:flex
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:makeinfo
cmd:sed
cmd:strip
cmd:tar
cmd:which
cmd:xargs
cmd:m6809_unknown_ld$secondaryArchSuffix
"
SOURCE_DIR="gcc-$portVersion"
sourceDir=$(pwd)
objectsDir=$(pwd)/../${portVersionedName}-obj
BUILD()
{
rm -rf $objectsDir
mkdir -p $objectsDir
cd $objectsDir
runConfigure $sourceDir/configure --enable-languages=c,c++ \
--target=m6809-unknown --program-prefix=m6809-unknown- \
--enable-obsolete --srcdir=$sourceDir --disable-threads --disable-nls \
--disable-libssp --with-as=$(which m6809-unknown-as) \
--with-ar=$(which m6809-unknown-ar) --with-ld=$(which m6809-unknown-ld)
make $jobArgs
}
INSTALL()
{
make install
}

File diff suppressed because it is too large Load Diff