From f82e32f88a0ce813244d1d93670548f985a4a728 Mon Sep 17 00:00:00 2001 From: bryan Date: Sun, 29 Jan 2023 18:01:10 -0500 Subject: [PATCH] More --source cleanup --- openwrtbuilder | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/openwrtbuilder b/openwrtbuilder index 4749c92..e0ce138 100755 --- a/openwrtbuilder +++ b/openwrtbuilder @@ -624,11 +624,6 @@ fromSource() { pushd "$GITWORKTREEDIR" &>/dev/null || return 1 - # make clean # compiled output - # make targetclean # compiled output, toolchain - # make dirclean # compiled output, toolchain, build tools - make distclean # compiled output, toolchain, build tools, .config, feeds, .ccache - # Grab the release seed config if ! curl -so "$SEED_FILE" "$SEED_URL"; then echo "Could not obtain $SEED_FILE from $SEED_URL" @@ -690,6 +685,15 @@ fromSource() { # Make image (( DEBUG )) && make_opts+=("V=s") + + # Cleaning modes + # make clean # compiled output + # make targetclean # compiled output, toolchain + # make dirclean # compiled output, toolchain, build tools + # make distclean # compiled output, toolchain, build tools, .config, feeds, .ccache + + debug "make ${make_opts[*]} dirclean" + make "${make_opts[@]}" dirclean debug "make ${make_opts[*]} download" make "${make_opts[@]}" download debug "make ${make_opts[*]} -j$(nproc) world"