@@ -304,11 +304,17 @@ define define_module =
304304 echo -n '$($1_repo ) |$($1_commit_hash ) ' > "$$@ "; \
305305 elif [ "$$$$(cat "$$@ " ) " != '$($1_repo ) |$($1_commit_hash ) ' ]; then \
306306 echo "Switching $1 to $($1_repo ) at $($1_commit_hash ) " && \
307- git -C "$(build ) /$($1_base_dir ) " fetch $($1_repo ) $($1_commit_hash ) && \
307+ git -C "$(build ) /$($1_base_dir ) " reset --hard HEAD^ && \
308+ echo "git fetch $($1_repo ) $($1_commit_hash ) --recurse-submodules=no" && \
309+ git -C "$(build ) /$($1_base_dir ) " fetch $($1_repo ) $($1_commit_hash ) --recurse-submodules=no && \
310+ echo "git reset --hard $($1_commit_hash ) " && \
308311 git -C "$(build ) /$($1_base_dir ) " reset --hard $($1_commit_hash ) && \
312+ echo "git clean" && \
309313 git -C "$(build ) /$($1_base_dir ) " clean -df && \
310314 git -C "$(build ) /$($1_base_dir ) " clean -dffx payloads util/cbmem && \
315+ echo "git submodule sync" && \
311316 git -C "$(build ) /$($1_base_dir ) " submodule sync && \
317+ echo "git submodule update" && \
312318 git -C "$(build ) /$($1_base_dir ) " submodule update --init --checkout && \
313319 echo -n '$($1_repo ) |$($1_commit_hash ) ' > "$$@ "; \
314320 fi
@@ -527,6 +533,7 @@ bin_modules-$(CONFIG_KBD) += kbd
527533bin_modules-$(CONFIG_ZSTD) += zstd
528534bin_modules-$(CONFIG_E2FSPROGS) += e2fsprogs
529535bin_modules-$(CONFIG_EXFATPROGS) += exfatprogs
536+ bin_modules-$(CONFIG_IOTOOLS) += iotools
530537
531538$(foreach m, $(bin_modules-y), \
532539 $(call map,initrd_bin_add,$(call bins,$m)) \
0 commit comments