mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-12-17 06:21:17 +01:00
imx8-evk: fix cross-compiled builds
update just to fix the cross compilation. Signed-off-by: Brian McGillion <bmg.avoin@gmail.com>
This commit is contained in:
parent
d48e8f0e16
commit
ae91411396
4 changed files with 15 additions and 22 deletions
|
|
@ -16,12 +16,12 @@ pkgs.stdenv.mkDerivation rec {
|
|||
--replace 'CC = gcc' 'CC = clang'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
clang
|
||||
git
|
||||
depsBuildBuild = [
|
||||
pkgs.buildPackages.stdenv.cc
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
nativeBuildInputs = [
|
||||
clang
|
||||
git
|
||||
glibc.static
|
||||
];
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ let
|
|||
inherit (pkgs.buildPackages) python3;
|
||||
toolchain = pkgs.stdenv.cc;
|
||||
binutils = pkgs.stdenv.cc.bintools.bintools_bin;
|
||||
cpp = pkgs.stdenv.gcc;
|
||||
cpp = pkgs.stdenv.cc;
|
||||
|
||||
# Determine PLATFORM and PLATFORM_FLAVOR from platformFlavor
|
||||
# Format can be either "imx-mx93evk" (full platform string) or "mx8mpevk" (just flavor, platform is "imx")
|
||||
|
|
@ -58,7 +58,7 @@ pkgs.stdenv.mkDerivation {
|
|||
substituteInPlace mk/gcc.mk \
|
||||
--replace-fail "\$(CROSS_COMPILE_\$(sm))ar" ${binutils}/bin/${toolchain.targetPrefix}ar
|
||||
substituteInPlace mk/gcc.mk \
|
||||
--replace-fail "\$(CROSS_COMPILE_\$(sm))cpp"${cpp}/bin/${toolchain.targetPrefix}cpp
|
||||
--replace-fail "\$(CROSS_COMPILE_\$(sm))cpp" ${cpp}/bin/${toolchain.targetPrefix}cpp
|
||||
'';
|
||||
|
||||
makeFlags = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue