Skip to content

Commit 86d9291

Browse files
committed
ucm-imx95: use --replace-fail for substituteInPlace
1 parent 8650454 commit 86d9291

File tree

5 files changed

+22
-22
lines changed

5 files changed

+22
-22
lines changed

compulab/ucm-imx95/bsp/ucm-imx95-boot.nix

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ in
2828

2929
postPatch = ''
3030
substituteInPlace Makefile \
31-
--replace 'git rev-parse --short=8 HEAD' 'echo ${shortRev}'
31+
--replace-fail 'git rev-parse --short=8 HEAD' 'echo ${shortRev}'
3232
substituteInPlace Makefile \
33-
--replace 'CC = gcc' 'CC = clang'
33+
--replace-fail 'CC = gcc' 'CC = clang'
3434
substituteInPlace iMX95/soc.mak \
35-
--replace 'xxd' "${pkgs.vim.xxd}/bin/xxd"
35+
--replace-fail 'xxd' "${pkgs.vim.xxd}/bin/xxd"
3636
substituteInPlace scripts/fspi_fcb_gen.sh \
37-
--replace 'xxd' "${pkgs.vim.xxd}/bin/xxd"
37+
--replace-fail 'xxd' "${pkgs.vim.xxd}/bin/xxd"
3838
substituteInPlace scripts/fspi_packer.sh \
39-
--replace 'xxd' "${pkgs.vim.xxd}/bin/xxd"
39+
--replace-fail 'xxd' "${pkgs.vim.xxd}/bin/xxd"
4040
patchShebangs scripts
4141
'';
4242

compulab/ucm-imx95/bsp/ucm-imx95-oei-ddr.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ pkgs.stdenv.mkDerivation rec {
3535

3636
postPatch = ''
3737
substituteInPlace oei/makefiles/build_info.mak \
38-
--replace "/bin/echo" "echo"
38+
--replace-fail "/bin/echo" "echo"
3939
substituteInPlace Makefile \
40-
--replace "/bin/echo" "echo"
40+
--replace-fail "/bin/echo" "echo"
4141
'';
4242

4343
makeFlags = [

compulab/ucm-imx95/bsp/ucm-imx95-oei-tcm.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ pkgs.stdenv.mkDerivation rec {
3535

3636
postPatch = ''
3737
substituteInPlace oei/makefiles/build_info.mak \
38-
--replace "/bin/echo" "echo"
38+
--replace-fail "/bin/echo" "echo"
3939
substituteInPlace Makefile \
40-
--replace "/bin/echo" "echo"
40+
--replace-fail "/bin/echo" "echo"
4141
'';
4242

4343
makeFlags = [

compulab/ucm-imx95/bsp/ucm-imx95-optee-os.nix

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,25 +39,25 @@ pkgs.stdenv.mkDerivation rec {
3939

4040
postPatch = ''
4141
substituteInPlace scripts/arm32_sysreg.py \
42-
--replace '/usr/bin/env python3' '${python3}/bin/python'
42+
--replace-fail '/usr/bin/env python3' '${python3}/bin/python'
4343
substituteInPlace scripts/gen_tee_bin.py \
44-
--replace '/usr/bin/env python3' '${python3}/bin/python'
44+
--replace-fail '/usr/bin/env python3' '${python3}/bin/python'
4545
substituteInPlace scripts/pem_to_pub_c.py \
46-
--replace '/usr/bin/env python3' '${python3}/bin/python'
46+
--replace-fail '/usr/bin/env python3' '${python3}/bin/python'
4747
substituteInPlace ta/pkcs11/scripts/verify-helpers.sh \
48-
--replace '/bin/bash' '${pkgs.bash}/bin/bash'
48+
--replace-fail '/bin/bash' '${pkgs.bash}/bin/bash'
4949
substituteInPlace mk/gcc.mk \
50-
--replace "\$(CROSS_COMPILE_\$(sm))objcopy" ${binutils}/bin/${toolchain.targetPrefix}objcopy
50+
--replace-fail "\$(CROSS_COMPILE_\$(sm))objcopy" ${binutils}/bin/${toolchain.targetPrefix}objcopy
5151
substituteInPlace mk/gcc.mk \
52-
--replace "\$(CROSS_COMPILE_\$(sm))objdump" ${binutils}/bin/${toolchain.targetPrefix}objdump
52+
--replace-fail "\$(CROSS_COMPILE_\$(sm))objdump" ${binutils}/bin/${toolchain.targetPrefix}objdump
5353
substituteInPlace mk/gcc.mk \
54-
--replace "\$(CROSS_COMPILE_\$(sm))nm" ${binutils}/bin/${toolchain.targetPrefix}nm
54+
--replace-fail "\$(CROSS_COMPILE_\$(sm))nm" ${binutils}/bin/${toolchain.targetPrefix}nm
5555
substituteInPlace mk/gcc.mk \
56-
--replace "\$(CROSS_COMPILE_\$(sm))readelf" ${binutils}/bin/${toolchain.targetPrefix}readelf
56+
--replace-fail "\$(CROSS_COMPILE_\$(sm))readelf" ${binutils}/bin/${toolchain.targetPrefix}readelf
5757
substituteInPlace mk/gcc.mk \
58-
--replace "\$(CROSS_COMPILE_\$(sm))ar" ${binutils}/bin/${toolchain.targetPrefix}ar
58+
--replace-fail "\$(CROSS_COMPILE_\$(sm))ar" ${binutils}/bin/${toolchain.targetPrefix}ar
5959
substituteInPlace mk/gcc.mk \
60-
--replace "\$(CROSS_COMPILE_\$(sm))cpp" ${cpp}/bin/cpp
60+
--replace-fail "\$(CROSS_COMPILE_\$(sm))cpp" ${cpp}/bin/cpp
6161
'';
6262

6363
makeFlags = [

compulab/ucm-imx95/bsp/ucm-imx95-sm-fw.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ pkgs.stdenv.mkDerivation rec {
4949

5050
postPatch = ''
5151
substituteInPlace sm/makefiles/gcc_cross.mak \
52-
--replace "\$(SM_CROSS_COMPILE)objcopy" ${pkgs.gcc-arm-embedded}/bin/arm-none-eabi-objcopy
52+
--replace-fail "\$(SM_CROSS_COMPILE)objcopy" ${pkgs.gcc-arm-embedded}/bin/arm-none-eabi-objcopy
5353
substituteInPlace sm/makefiles/build_info.mak \
54-
--replace "/bin/echo" "echo"
54+
--replace-fail "/bin/echo" "echo"
5555
substituteInPlace sm/makefiles/gcc_cross.mak \
56-
--replace 'SM_CROSS_COMPILE ?= $(TOOLS)/arm-gnu-toolchain-*-none-eabi/bin/arm-none-eabi-' \
56+
--replace-fail 'SM_CROSS_COMPILE ?= $(TOOLS)/arm-gnu-toolchain-*-none-eabi/bin/arm-none-eabi-' \
5757
'SM_CROSS_COMPILE ?= $(CROSS_COMPILE)'
5858
'';
5959

0 commit comments

Comments
 (0)