nixpkgs/pkgs/development/compilers/gcc-4.4
Lluís Batlle i Rossell b1b7266aa3 After some testing with an ultrasparc cross-compiler:
Updating the cross-build expressions, adding some flexibility.
Updated the linux headers used cross building, as 2.6.28 had bugs on endianness in
sparc64.
There were, as usual some bugs in gcc. Maybe not many make a cross compiler to
ultrasparc.

For the record, I could build an ultrasparc kernel with this base nix:
import /etc/nixos/nixpkgs/default.nix   # The root nixpkgs default.nix
{
    crossSystem = {
        config = "sparc64-unknown-linux";
        bigEndian = true;
        arch = "sparc64";
        float = "soft";
        withTLS = true;
        cpu = "ultrasparc";
    };

    config = pkgs: {
      packageOverrides = pkgs : {
        platform = {
            name = "sparc64";
            kernelHeadersBaseConfig = "sparc64_defconfig";
            kernelBaseConfig = "sparc64_defconfig";
            kernelArch = "sparc";
            kernelAutoModules = false;
            kernelTarget = "zImage";
            uboot = null;
        };
      };
    };
}

Although it did not boot directly in qemu-system-sparc64:
[sparc64] Kernel already loaded
Unhandled Exception 0x0000000000000020
PC = 0x0000000000404000 NPC = 0x0000000000404004

svn path=/nixpkgs/trunk/; revision=20269
2010-02-27 00:52:48 +00:00
..
builder.sh Updating the ghdl related expressions: 2010-01-15 23:22:28 +00:00
default.nix After some testing with an ultrasparc cross-compiler: 2010-02-27 00:52:48 +00:00
ghdl-ortho-cflags.patch Fixing the ghdl patch for gcc 4.4 (I missed a part in my last commit) 2010-01-15 23:31:05 +00:00
gnat-cflags.patch 2nd attempt at fixing the gnat44 build 2010-01-27 13:43:23 +00:00
java-jvgenmain-link.patch
libstdc++-target.patch Renamed some old glibcCross to libcCross (we can use uclibc in cross builds already). 2009-12-08 09:36:19 +00:00
no-sys-dirs.patch
pass-cxxcpp.patch
sources.nix Updating gcc to 4.4.3 2010-01-26 16:25:30 +00:00
target-cpp.patch gcc 4.4.2 is also affected by the wrong CPP passed to the configure script of 2009-12-09 10:05:47 +00:00
update-gcc.sh GCC 4.4.2; new `update-gcc.sh' script. 2009-11-05 18:46:52 +00:00