@@ -86,12 +86,11 @@ in rec {
8686 ubootTools = buildUBoot rec {
8787 defconfig = "allnoconfig";
8888 installDir = "$out/bin";
89− buildFlags = "tools NO_SDL=1";
9089 hardeningDisable = [];
9190 dontStrip = false;
9291 extraMeta.platforms = stdenv.lib.platforms.linux;
9392 # build tools/kwboot
94− extraMakeFlags = [ "CONFIG_KIRKWOOD=y" ];
93+ extraMakeFlags = [ "CONFIG_KIRKWOOD=y" "CROSS_BUILD_TOOLS=1" "NO_SDL=1" "tools" ];
9594 postConfigure = ''
9695 sed -i '/CONFIG_SYS_TEXT_BASE/c\CONFIG_SYS_TEXT_BASE=0x00000000' .config
9796 '';