1717 cpp = pkgs . buildPackages . gcc ;
1818
1919in
20- pkgs . stdenv . mkDerivation rec {
20+ pkgs . stdenv . mkDerivation {
2121
2222 pname = "imx-optee-os" ;
2323 version = "5.15.32_2.0.0" ;
@@ -41,25 +41,25 @@ pkgs.stdenv.mkDerivation rec {
4141
4242 postPatch = ''
4343 substituteInPlace scripts/arm32_sysreg.py \
44- --replace '/usr/bin/env python3' '${ python3 } /bin/python'
44+ --replace-fail '/usr/bin/env python3' '${ python3 } /bin/python'
4545 substituteInPlace scripts/gen_tee_bin.py \
46- --replace '/usr/bin/env python3' '${ python3 } /bin/python'
46+ --replace-fail '/usr/bin/env python3' '${ python3 } /bin/python'
4747 substituteInPlace scripts/pem_to_pub_c.py \
48- --replace '/usr/bin/env python3' '${ python3 } /bin/python'
48+ --replace-fail '/usr/bin/env python3' '${ python3 } /bin/python'
4949 substituteInPlace ta/pkcs11/scripts/verify-helpers.sh \
50- --replace '/bin/bash' '${ pkgs . bash } /bin/bash'
50+ --replace-fail '/bin/bash' '${ pkgs . bash } /bin/bash'
5151 substituteInPlace mk/gcc.mk \
52- --replace "\$(CROSS_COMPILE_\$(sm))objcopy" ${ binutils } /bin/${ toolchain . targetPrefix } objcopy
52+ --replace-fail "\$(CROSS_COMPILE_\$(sm))objcopy" ${ binutils } /bin/${ toolchain . targetPrefix } objcopy
5353 substituteInPlace mk/gcc.mk \
54- --replace "\$(CROSS_COMPILE_\$(sm))objdump" ${ binutils } /bin/${ toolchain . targetPrefix } objdump
54+ --replace-fail "\$(CROSS_COMPILE_\$(sm))objdump" ${ binutils } /bin/${ toolchain . targetPrefix } objdump
5555 substituteInPlace mk/gcc.mk \
56- --replace "\$(CROSS_COMPILE_\$(sm))nm" ${ binutils } /bin/${ toolchain . targetPrefix } nm
56+ --replace-fail "\$(CROSS_COMPILE_\$(sm))nm" ${ binutils } /bin/${ toolchain . targetPrefix } nm
5757 substituteInPlace mk/gcc.mk \
58- --replace "\$(CROSS_COMPILE_\$(sm))readelf" ${ binutils } /bin/${ toolchain . targetPrefix } readelf
58+ --replace-fail "\$(CROSS_COMPILE_\$(sm))readelf" ${ binutils } /bin/${ toolchain . targetPrefix } readelf
5959 substituteInPlace mk/gcc.mk \
60- --replace "\$(CROSS_COMPILE_\$(sm))ar" ${ binutils } /bin/${ toolchain . targetPrefix } ar
60+ --replace-fail "\$(CROSS_COMPILE_\$(sm))ar" ${ binutils } /bin/${ toolchain . targetPrefix } ar
6161 substituteInPlace mk/gcc.mk \
62- --replace "\$(CROSS_COMPILE_\$(sm))cpp" ${ cpp } /bin/cpp
62+ --replace-fail "\$(CROSS_COMPILE_\$(sm))cpp" " ${ cpp } /bin/${ toolchain . targetPrefix } cpp"
6363 '' ;
6464
6565 makeFlags = [
0 commit comments