diff options
author | Rob Landley <rob@landley.net> | 2020-02-17 04:00:48 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2020-02-17 04:00:48 -0600 |
commit | bc287a20ddb6028c10ff2330822d73f41ca32748 (patch) | |
tree | 59ca59eb7ae34dfd4555f27266f1cb106eb337bc | |
parent | d8565e8df961c30a27632328e65d9dffa2e3431c (diff) | |
download | toybox-bc287a20ddb6028c10ff2330822d73f41ca32748.tar.gz |
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.
-rwxr-xr-x | scripts/mkroot.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |