From bc287a20ddb6028c10ff2330822d73f41ca32748 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 17 Feb 2020 04:00:48 -0600 Subject: Work around kernel build bug where "make distclean" doesn't work in cp -sfR directory. Downside: this modifies (distcleans) the source directory for an out of tree build, but the alternative is (sometimes subtle) build breaks. --- scripts/mkroot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/mkroot.sh') diff --git a/scripts/mkroot.sh b/scripts/mkroot.sh index 9ab1a2e2..371ba48f 100755 --- a/scripts/mkroot.sh +++ b/scripts/mkroot.sh @@ -200,8 +200,8 @@ else chmod +x "$OUTPUT/qemu-$TARGET.sh" && echo "Build linux for $KARCH" + pushd "$LINUX" && make distclean && popd && cp -sfR "$LINUX" "$MYBUILD/linux" && pushd "$MYBUILD/linux" || exit 1 - make distclean && write_miniconfig > "$OUTPUT/miniconfig-$TARGET" && make ARCH=$KARCH allnoconfig KCONFIG_ALLCONFIG="$OUTPUT/miniconfig-$TARGET" && make ARCH=$KARCH CROSS_COMPILE="$CROSS_COMPILE" -j $(nproc) || exit 1 -- cgit v1.2.3