-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial implementation of vc4 cross-compile
- Loading branch information
1 parent
91b02cd
commit 4aa1ffa
Showing
11 changed files
with
94 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ stdenv, texinfo, flex, bison, fetchFromGitHub, crossLibcStdenv, buildPackages }: | ||
|
||
crossLibcStdenv.mkDerivation { | ||
name = "newlib"; | ||
src = fetchFromGitHub { | ||
owner = "itszor"; | ||
repo = "newlib-vc4"; | ||
rev = "89abe4a5263d216e923fbbc80495743ff269a510"; | ||
sha256 = "131r4v0nn68flnqibjcvhsrys3hs89bn0i4vwmrzgjd7v1rbgqav"; | ||
}; | ||
dontUpdateAutotoolsGnuConfigScripts = true; | ||
configurePlatforms = [ "target" ]; | ||
enableParallelBuilding = true; | ||
|
||
nativeBuildInputs = [ texinfo flex bison ]; | ||
depsBuildBuild = [ buildPackages.stdenv.cc ]; | ||
# newlib expects CC to build for build platform, not host platform | ||
preConfigure = '' | ||
export CC=cc | ||
''; | ||
|
||
dontStrip = true; | ||
|
||
passthru = { | ||
incdir = "/${stdenv.targetPlatform.config}/include"; | ||
libdir = "/${stdenv.targetPlatform.config}/lib"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ fetchFromGitHub, stdenv, cmake, qt4 }: | ||
|
||
stdenv.mkDerivation { | ||
name = "resim"; | ||
src = fetchFromGitHub { | ||
owner = "itszor"; | ||
repo = "resim"; | ||
rev = "cdc7808ceb7ba4ac00d0d08ca646b58615059150"; | ||
sha256 = "1743lngqxd7ai4k6cd4d1cf9h60z2pnvr2iynfs1zlpcj3w1hx0c"; | ||
}; | ||
nativeBuildInputs = [ cmake ]; | ||
buildInputs = [ qt4 ]; | ||
installPhase = '' | ||
mkdir -pv $out/{lib,bin} | ||
cp -v libresim/libarmsim.so $out/lib/libarmsim.so | ||
cp -v vc4emul/vc4emul $out/bin/vc4emul | ||
''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters