From 2424c8db9dd95d8a301aeb20e1d237c0cc6e637a Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Sun, 31 Dec 2023 22:17:19 -0500 Subject: [PATCH] buildUBoot: specify absolute path of dtc, fix building u-boot 2023.10+ --- pkgs/misc/uboot/default.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/misc/uboot/default.nix b/pkgs/misc/uboot/default.nix index 9d4e04d1c18a..617b71a6b2a1 100644 --- a/pkgs/misc/uboot/default.nix +++ b/pkgs/misc/uboot/default.nix @@ -77,7 +77,6 @@ let ncurses # tools/kwboot bc bison - dtc flex installShellFiles (buildPackages.python3.withPackages (p: [ @@ -96,7 +95,7 @@ let enableParallelBuilding = true; makeFlags = [ - "DTC=dtc" + "DTC=${lib.getExe buildPackages.dtc}" "CROSS_COMPILE=${stdenv.cc.targetPrefix}" ] ++ extraMakeFlags;