diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/mamona/bash-noemu-3.2/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/mamona/bash-noemu_3.2.bb | 29 | ||||
-rw-r--r-- | packages/mamona/binutils-noemu-2.17.50.0.5/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/mamona/binutils-noemu_2.17.50.0.5.bb | 32 | ||||
-rw-r--r-- | packages/mamona/gcc-noemu-4.1.1/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/mamona/gcc-noemu_4.1.1.bb | 82 | ||||
-rw-r--r-- | packages/mamona/gcc-package-noemu.inc | 126 |
7 files changed, 269 insertions, 0 deletions
diff --git a/packages/mamona/bash-noemu-3.2/.mtn2git_empty b/packages/mamona/bash-noemu-3.2/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/mamona/bash-noemu-3.2/.mtn2git_empty diff --git a/packages/mamona/bash-noemu_3.2.bb b/packages/mamona/bash-noemu_3.2.bb new file mode 100644 index 0000000000..090b7086e2 --- /dev/null +++ b/packages/mamona/bash-noemu_3.2.bb @@ -0,0 +1,29 @@ +require bash.inc +PR = "r1" + +SRC_URI = "${GNU_MIRROR}/bash/bash-${PV}.tar.gz \ + file://001-005.patch;patch=1" + +S = "${WORKDIR}/bash-${PV}" + +EXTRA_OECONF += "--enable-static-link --without-bash-malloc" + +#HOST_SYS = "${BUILD_SYS}" +#CONFIG_SITE = "" + +do_configure () { + export CPP="gcc -E" + export CC=gcc + export AS=as + export LD=ld + export CXX=g++ + export AR=ar + export OBJCOPY=objcopy + export OBJDUMP=objdump + export RANLIB=ranlib + export NM=nm + export STRIP=strip + export CFLAGS="-fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os" + export CXXFLAGS="-fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -fpermissive -fvisibility-inlines-hidden" + oe_runconf +} diff --git a/packages/mamona/binutils-noemu-2.17.50.0.5/.mtn2git_empty b/packages/mamona/binutils-noemu-2.17.50.0.5/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/mamona/binutils-noemu-2.17.50.0.5/.mtn2git_empty diff --git a/packages/mamona/binutils-noemu_2.17.50.0.5.bb b/packages/mamona/binutils-noemu_2.17.50.0.5.bb new file mode 100644 index 0000000000..17a6749404 --- /dev/null +++ b/packages/mamona/binutils-noemu_2.17.50.0.5.bb @@ -0,0 +1,32 @@ +require binutils.inc + +PR = "r1" + +SRC_URI = \ + "${KERNELORG_MIRROR}/pub/linux/devel/binutils/binutils-${PV}.tar.bz2 \ + file://binutils-2.16.91.0.6-objcopy-rename-errorcode.patch;patch=1 \ + file://binutils-uclibc-100-uclibc-conf.patch;patch=1 \ + file://binutils-configure-texinfo-version.patch;patch=1 \ + file://110-arm-eabi-conf.patch;patch=1 \ + file://binutils-uclibc-300-001_ld_makefile_patch.patch;patch=1 \ + file://binutils-uclibc-300-006_better_file_error.patch;patch=1 \ + file://binutils-uclibc-300-012_check_ldrunpath_length.patch;patch=1 \ + " + +EXTRA_OECONF = "--with-sysroot=${CROSS_DIR}/${TARGET_SYS} \ + --program-prefix=${TARGET_PREFIX} --disable-shared" + +HOST_SYS = "${BUILD_SYS}" + +do_configure () { + CC=gcc AS=as LD=ld CXX=g++ AR=ar OBJCOPY=objcopy OBJDUMP=objdump RANLIB=ranlib NM=nm STRIP=strip oe_runconf +} + +do_compile() { + make configure-host + make LDFLAGS=\"-all-static\" +} + +do_stage() { + : +} diff --git a/packages/mamona/gcc-noemu-4.1.1/.mtn2git_empty b/packages/mamona/gcc-noemu-4.1.1/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/mamona/gcc-noemu-4.1.1/.mtn2git_empty diff --git a/packages/mamona/gcc-noemu_4.1.1.bb b/packages/mamona/gcc-noemu_4.1.1.bb new file mode 100644 index 0000000000..42d9f0719f --- /dev/null +++ b/packages/mamona/gcc-noemu_4.1.1.bb @@ -0,0 +1,82 @@ +PR = "r14" +DESCRIPTION = "The GNU cc and gcc C compilers." +HOMEPAGE = "http://www.gnu.org/software/gcc/" +SECTION = "devel" +LICENSE = "GPL" + +inherit autotools gettext + +require gcc-package-noemu.inc + +SRC_URI = "http://ftp.gnu.org/pub/gnu/gcc/gcc-4.1.1/gcc-4.1.1.tar.bz2 \ + file://100-uclibc-conf.patch;patch=1 \ + file://110-arm-eabi.patch;patch=1 \ + file://200-uclibc-locale.patch;patch=1 \ + file://300-libstdc++-pic.patch;patch=1 \ + file://301-missing-execinfo_h.patch;patch=1 \ + file://302-c99-snprintf.patch;patch=1 \ + file://303-c99-complex-ugly-hack.patch;patch=1 \ + file://304-index_macro.patch;patch=1 \ + file://602-sdk-libstdc++-includes.patch;patch=1 \ + file://740-sh-pr24836.patch;patch=1 \ + file://800-arm-bigendian.patch;patch=1 \ + file://801-arm-bigendian-eabi.patch;patch=1 \ + file://arm-nolibfloat.patch;patch=1 \ + file://arm-softfloat.patch;patch=1 \ + file://gcc41-configure.in.patch;patch=1 \ + file://arm-thumb.patch;patch=1 \ + file://arm-thumb-cache.patch;patch=1 \ + file://ldflags.patch;patch=1 \ + file://cse.patch;patch=1 \ + file://zecke-xgcc-cpp.patch;patch=1 \ + file://unbreak-armv4t.patch;patch=1 \ + file://fix-ICE-in-arm_unwind_emit_set.diff;patch=1 \ + file://gcc-4.1.1-pr13685-1.patch;patch=1 \ + file://gcc-ignore-cache.patch;patch=1 \ + " + +SRC_URI_append_sh3 = " file://sh3-installfix-fixheaders.patch;patch=1 " + +#This is a dirty hack to get gcc 4.1.1 to compile for glibc AND uclibc on ppc +#the patch that is need it to get gcc support soft-floats with glibc, makes gcc fail with uclibc +SRC_URI_append_linux = " file://ppc-gcc-41-20060515.patch;patch=1 \ + file://ppc-sfp-long-double-gcc411-7.patch;patch=1 " + + +#Set the fortran bits +# 'fortran' or '', not 'f77' like gcc3 had +FORTRAN = "" +HAS_GFORTRAN = "no" +HAS_G2C = "no" + +#Set the java bits +JAVA_arm = "" +JAVA = "" + +LANGUAGES = "c,c++${FORTRAN}${JAVA}" +require gcc3-build.inc + +EXTRA_OECONF += "--disable-libspp --with-slibdir=\"/lib\"" + +EXTRA_OEMAKE += "LDFLAGS=\"-static\" build_tooldir=\"${STAGING_DIR}/${TARGET_SYS}\"" + +HOST_SYS = ${BUILD_SYS} + +CONFIG_SITE="" + +do_configure () { + export CPP="gcc -E" + export CC=gcc + export AS=as + export LD=ld + export CXX=g++ + export AR=ar + export OBJCOPY=objcopy + export OBJDUMP=objdump + export RANLIB=ranlib + export NM=nm + export STRIP=strip + export CFLAGS="-fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os" + export CXXFLAGS="-fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -fpermissive -fvisibility-inlines-hidden" + oe_runconf +} diff --git a/packages/mamona/gcc-package-noemu.inc b/packages/mamona/gcc-package-noemu.inc new file mode 100644 index 0000000000..548c3d4f01 --- /dev/null +++ b/packages/mamona/gcc-package-noemu.inc @@ -0,0 +1,126 @@ +gcclibdir ?= "${libdir}/gcc" +BINV ?= "${PV}" + +PACKAGES = "libgcc ${PN} ${PN}-symlinks \ + g++-noemu g++-noemu-symlinks \ + cpp-noemu cpp-noemu-symlinks \ + g77-noemu g77-noemu-symlinks \ + gcov-noemu gcov-noemu-symlinks \ + libmudflap-noemu libmudflap-noemu-dev \ + libstdc++-noemu libg2c-noemu \ + libstdc++-noemu-dev libg2c-noemu-dev \ + ${PN}-doc" + +FILES_${PN} = "${bindir}/${TARGET_PREFIX}gcc \ + ${bindir}/${TARGET_PREFIX}gccbug \ + ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/cc1 \ + ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/collect2 \ + ${gcclibdir}/${TARGET_SYS}/${BINV}/*.o \ + ${gcclibdir}/${TARGET_SYS}/${BINV}/specs \ + ${gcclibdir}/${TARGET_SYS}/${BINV}/lib* \ + ${gcclibdir}/${TARGET_SYS}/${BINV}/include" +FILES_${PN}-symlinks = "${bindir}/cc \ + ${bindir}/gcc \ + ${bindir}/gccbug" + +FILES_g77-noemu = "${bindir}/${TARGET_PREFIX}g77 \ + ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/f771" +FILES_g77-noemu-symlinks = "${bindir}/g77 \ + ${bindir}/f77" + +FILES_cpp-noemu = "${bindir}/${TARGET_PREFIX}cpp \ + ${base_libdir}/cpp" +FILES_cpp-noemu-symlinks = "${bindir}/cpp" + +FILES_gcov-noemu = "${bindir}/${TARGET_PREFIX}gcov" +FILES_gcov-noemu-symlinks = "${bindir}/gcov" + +FILES_libgcc-noemu = "${base_libdir}/libgcc*.so.*" +FILES_libgcc-noemu-dev = "${base_libdir}/libgcc*.so" + +# Called from within gcc-cross, so libdir is set wrong +FILES_libg2c-noemu = "${target_libdir}/libg2c.so.*" +FILES_libg2c-noemu-dev = "${libdir}/libg2c.so \ + ${libdir}/libg2c.a \ + ${libdir}/libfrtbegin.a" + +FILES_g++-noemu = "${bindir}/${TARGET_PREFIX}g++ \ + ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/cc1plus" +FILES_g++-noemu-symlinks = "${bindir}/c++ \ + ${bindir}/g++" + +FILES_libstdc++-noemu = "${libdir}/libstdc++.so.*" +FILES_libstdc++-noemu-dev = "${includedir}/c++/${BINV} \ + ${libdir}/libstdc++.so \ + ${libdir}/libstdc++.la \ + ${libdir}/libstdc++.a \ + ${libdir}/libsupc++.la \ + ${libdir}/libsupc++.a" + +FILES_libmudflap-noemu = "${libdir}/libmudflap*.so.*" +FILES_libmudflap-noemu-dev = "${libdir}/libmudflap*.so \ + ${libdir}/libmudflap*.a \ + ${libdir}/libmudflap*.a" + + +FILES_${PN}-doc = "${infodir} \ + ${mandir} \ + ${gcclibdir}/${TARGET_SYS}/${BINV}/include/README" + +python do_package() { + if bb.data.getVar('DEBIAN_NAMES', d, 1): + bb.data.setVar('PKG_libgcc', 'libgcc1', d) + bb.build.exec_func('package_do_package', d) +} + + +do_install () { + autotools_do_install + + # Cleanup some of the ${libdir}{,exec}/gcc stuff ... + rm -r ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/install-tools + rm -r ${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/install-tools + + # Hack around specs file assumptions + test -f ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/specs && sed -i -e '/^*cross_compile:$/ { n; s/1/0/; }' ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/specs + + # Using --with-slibdir instead of this hack below.. + ## Move libgcc_s into /lib + #mkdir -p ${D}${base_libdir} + #mv ${D}${libdir}/libgcc_s.so.* ${D}${base_libdir} + #rm -f ${D}${libdir}/libgcc_s.so + #ln -sf `echo ${libdir}/gcc/${TARGET_SYS}/${BINV} \ + # | tr -s / \ + # | sed -e 's,^/,,' -e 's,[^/]*,..,g'`/lib/libgcc_s.so.1 \ + # ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/libgcc_s.so + + # We don't need libtool libraries + rm -f ${D}${libdir}/libg2c.la &>/dev/null || true + + # Cleanup manpages.. + rm -rf ${D}${mandir}/man7 + + # We use libiberty from binutils + rm -f ${D}${libdir}/libiberty.a + + cd ${D}${bindir} + + # We care about g++ not c++ + rm -f *c++ + + # We don't care about the gcc-<version> ones for this + rm -f *gcc-?.?* + + # These sometimes show up, they are strange, we remove them + rm -f ${TARGET_ARCH}-*${TARGET_ARCH}-* + + # Symlinks so we can use these trivially on the target + ln -sf ${TARGET_SYS}-g77 g77 + ln -sf ${TARGET_SYS}-g++ g++ + ln -sf ${TARGET_SYS}-gcc gcc + ln -sf g77 f77 + ln -sf g++ c++ + ln -sf gcc cc + ln -sf ${bindir}/${TARGET_SYS}-cpp ${D}${base_libdir}/cpp + ln -sf ${bindir}/${TARGET_SYS}-cpp ${D}${bindir}/cpp +} |