about summary refs log tree commit diff
diff options
context:
space:
mode:
authorThomas Watson <twatson52@icloud.com>2024-03-11 20:33:00 -0500
committerThomas Watson <twatson52@icloud.com>2024-03-11 20:33:16 -0500
commit2aa408936e856f7ea76563cf438083162fba5476 (patch)
tree8590bab0611c55fe35617cf3a788a0813243bfd8
parent009a43eab1f976d6246cd18dd16016b7e17d40ef (diff)
downloadnixlib-2aa408936e856f7ea76563cf438083162fba5476.tar
nixlib-2aa408936e856f7ea76563cf438083162fba5476.tar.gz
nixlib-2aa408936e856f7ea76563cf438083162fba5476.tar.bz2
nixlib-2aa408936e856f7ea76563cf438083162fba5476.tar.lz
nixlib-2aa408936e856f7ea76563cf438083162fba5476.tar.xz
nixlib-2aa408936e856f7ea76563cf438083162fba5476.tar.zst
nixlib-2aa408936e856f7ea76563cf438083162fba5476.zip
uboot-asahi: fix makeFlag DTC= removal
Correct test sense and hasPrefix argument order to preserve the
other flags.
-rw-r--r--apple-silicon-support/packages/uboot-asahi/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/apple-silicon-support/packages/uboot-asahi/default.nix b/apple-silicon-support/packages/uboot-asahi/default.nix
index a1491f41f065..02075891677d 100644
--- a/apple-silicon-support/packages/uboot-asahi/default.nix
+++ b/apple-silicon-support/packages/uboot-asahi/default.nix
@@ -32,8 +32,8 @@
   patches = [ 
   ];
 
-  # flag somehow breaks DTC compilation so we remove it
-  makeFlags = builtins.filter (s: (lib.strings.hasPrefix s "DTC")) o.makeFlags;
+  # DTC= flag somehow breaks DTC compilation so we remove it
+  makeFlags = builtins.filter (s: (!(lib.strings.hasPrefix "DTC=" s))) o.makeFlags;
 
   preInstall = ''
     # compress so that m1n1 knows U-Boot's size and can find things after it