File tree Expand file tree Collapse file tree 4 files changed +15
-22
lines changed Expand file tree Collapse file tree 4 files changed +15
-22
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,12 @@ pkgs.stdenv.mkDerivation rec {
1616 --replace 'CC = gcc' 'CC = clang'
1717 '' ;
1818
19- nativeBuildInputs = [
20- clang
21- git
19+ depsBuildBuild = [
20+ pkgs . buildPackages . stdenv . cc
2221 ] ;
2322
24- buildInputs = [
23+ nativeBuildInputs = [
24+ clang
2525 git
2626 glibc . static
2727 ] ;
Original file line number Diff line number Diff line change 1515 inherit ( pkgs . buildPackages ) python3 ;
1616 toolchain = pkgs . stdenv . cc ;
1717 binutils = pkgs . stdenv . cc . bintools . bintools_bin ;
18- cpp = pkgs . stdenv . gcc ;
18+ cpp = pkgs . stdenv . cc ;
1919
2020 # Determine PLATFORM and PLATFORM_FLAVOR from platformFlavor
2121 # Format can be either "imx-mx93evk" (full platform string) or "mx8mpevk" (just flavor, platform is "imx")
@@ -58,7 +58,7 @@ pkgs.stdenv.mkDerivation {
5858 substituteInPlace mk/gcc.mk \
5959 --replace-fail "\$(CROSS_COMPILE_\$(sm))ar" ${ binutils } /bin/${ toolchain . targetPrefix } ar
6060 substituteInPlace mk/gcc.mk \
61- --replace-fail "\$(CROSS_COMPILE_\$(sm))cpp"${ cpp } /bin/${ toolchain . targetPrefix } cpp
61+ --replace-fail "\$(CROSS_COMPILE_\$(sm))cpp" ${ cpp } /bin/${ toolchain . targetPrefix } cpp
6262 '' ;
6363
6464 makeFlags = [
Original file line number Diff line number Diff line change 22 pkgs ,
33 enable-tee ? true ,
44} :
5- with pkgs ;
65let
76 fw-ver = "202006" ;
87 cp-tee = if enable-tee then "install -m 0644 ${ imx8mp-optee-os } /tee.bin ./iMX8M/tee.bin" else "" ;
2221 shortRev = builtins . substring 0 8 src . rev ;
2322in
2423{
25- imx8m-boot = pkgs . stdenv . mkDerivation rec {
24+ imx8m-boot = pkgs . buildPackages . stdenv . mkDerivation {
2625 inherit src ;
2726 name = "imx8mp-mkimage" ;
2827 version = "lf-6.1.55-2.2.0" ;
2928
3029 postPatch = ''
3130 substituteInPlace Makefile \
3231 --replace 'git rev-parse --short=8 HEAD' 'echo ${ shortRev } '
33- substituteInPlace Makefile \
34- --replace 'CC = gcc' 'CC = clang'
3532 patchShebangs scripts
3633 '' ;
3734
3835 nativeBuildInputs = [
39- clang
40- git
41- dtc
42- ] ;
43-
44- buildInputs = [
45- git
46- glibc . static
47- zlib
48- zlib . static
36+ pkgs . buildPackages . stdenv . cc
37+ pkgs . buildPackages . git
38+ pkgs . buildPackages . dtc
39+ pkgs . buildPackages . glibc . static
40+ pkgs . buildPackages . zlib
41+ pkgs . buildPackages . zlib . static
4942 ] ;
5043
5144 buildPhase = ''
5447 make bin
5548 make SOC=iMX8MP mkimage_imx8
5649
57- cp -v ${ pkgs . ubootTools } /bin/mkimage ./iMX8M/mkimage_uboot
50+ cp -v ${ pkgs . buildPackages . ubootTools } /bin/mkimage ./iMX8M/mkimage_uboot
5851
5952 install -m 0644 ${ imx8mp-uboot } /u-boot-spl.bin ./iMX8M/u-boot-spl.bin
6053 install -m 0644 ${ imx8mp-uboot } /u-boot-nodtb.bin ./iMX8M/u-boot-nodtb.bin
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
1313 dontStrip = true ;
1414
1515 installPhase = ''
16- ${ pkgs . bash } /bin/bash $src --auto-accept --force
16+ ${ pkgs . buildPackages . bash } /bin/bash $src --auto-accept --force
1717 mv firmware-imx-${ version } $out
1818 '' ;
1919}
You can’t perform that action at this time.
0 commit comments