From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yann E. MORIN Date: Sun, 11 Sep 2016 15:46:27 +0200 Subject: [Buildroot] [PATCH] core: distclean is a noconfig target In-Reply-To: <20160911153404.06d0d424@free-electrons.com> References: <1473598598-5546-1-git-send-email-yann.morin.1998@free.fr> <20160911153404.06d0d424@free-electrons.com> Message-ID: <20160911134627.GL5740@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Thomas, All, On 2016-09-11 15:34 +0200, Thomas Petazzoni spake thusly: > On Sun, 11 Sep 2016 14:56:38 +0200, Yann E. MORIN wrote: > > @@ -86,7 +86,7 @@ export BR2_VERSION_FULL := $(BR2_VERSION)$(shell $(TOPDIR)/support/scripts/setlo > > noconfig_targets := menuconfig nconfig gconfig xconfig config oldconfig randconfig \ > > defconfig %_defconfig allyesconfig allnoconfig silentoldconfig release \ > > randpackageconfig allyespackageconfig allnopackageconfig \ > > - print-version olddefconfig > > + print-version olddefconfig distclean > > The distclean target uses the DL_DIR variable, which is derived from > BR2_DL_DIR, which can come from either the environment... or the > configuration file. So, the BR2_DL_DIR from the configuration will be > ignored. I'm not sure what the consequence is, but it's worth thinking > about this. Well, if either is set on not the default, then it is currently not removed. With this change, however, it is no longer removed, indeed. But, why are we even having this removal conditional? We can just unconditionally remove $(TOPDIR)/dl and be done with that, no? > Also, what is the rationale for having just "distclean" and not "clean" > in noconfig_targets ? The fact that "distclean" remove the > configuration, and as such "helps" in solving configuration issues ? Exactly. Otherwise one has to manually remove the .config file, which is not very nice... Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'