Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] make clean not so clean
@ 2008-02-01  5:02 jake sullivan
  2008-02-01  5:36 ` Ormund Williams
  0 siblings, 1 reply; 7+ messages in thread
From: jake sullivan @ 2008-02-01  5:02 UTC (permalink / raw)
  To: buildroot

I'm not sure how to go about fixing this, but I have been able to recreate an annoying little bug (that I think is the source of a number of other newb problems).

I started by building a basic system, got my cross compilers working, and got my embedded system working on a normal hard drive (ext2).  When I went to add jffs2 as a target output, I got a lot of errors about missing things (e.g. the shadow directory).  This was similar to earlier problems that I had solved by deleting the whole directory and re checking out buildroot from svn (make clean didn't solve any of the previous problems).   This time I tried "make clean" again, didn't work, but "make distclean" did work.  It was a little annoying that I had to redownload all the source, but I didn't lose the settings from the buildroot "make menuconfig" (but I did lose the "make menuconfig" settings for the kernel).  I tried checking out another copy of buildroot, building it without jffs2 adding some features, building, adding jffs2 and build error.  I then tried make clean, no luck, and then make distclean.  After all the source was downloaded again, the
 build worked great.

My gut says to update "make clean" to delete all the config files (and basically everything but the source files), but before I put work into making and testing a patch, I want to make sure that is the right approach...

Jake






      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] make clean not so clean
  2008-02-01  5:02 [Buildroot] make clean not so clean jake sullivan
@ 2008-02-01  5:36 ` Ormund Williams
  2008-02-01  8:20   ` Bernhard Fischer
  2008-02-01  8:34   ` Robert P. J. Day
  0 siblings, 2 replies; 7+ messages in thread
From: Ormund Williams @ 2008-02-01  5:36 UTC (permalink / raw)
  To: buildroot

On Thu, 2008-01-31 at 21:02 -0800, jake sullivan wrote:
> I'm not sure how to go about fixing this, but I have been able to
> recreate an annoying little bug (that I think is the source of a
> number of other newb problems).
> 
...(snip)...
> My gut says to update "make clean" to delete all the config files (and
> basically everything but the source files), but before I put work into
> making and testing a patch, I want to make sure that is the right
> approach...
> 
Don't know about "Right Appraach", but I just locate my download
directory outside the Buildroot tree.

Under: Build Options --->

	$(BASE_DIR)/../dl) Download dir


__
Ormund

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] make clean not so clean
  2008-02-01  5:36 ` Ormund Williams
@ 2008-02-01  8:20   ` Bernhard Fischer
  2008-02-01  9:40     ` Robert P. J. Day
  2008-02-01  8:34   ` Robert P. J. Day
  1 sibling, 1 reply; 7+ messages in thread
From: Bernhard Fischer @ 2008-02-01  8:20 UTC (permalink / raw)
  To: buildroot

On Fri, Feb 01, 2008 at 12:36:43AM -0500, Ormund Williams wrote:
>On Thu, 2008-01-31 at 21:02 -0800, jake sullivan wrote:
>> I'm not sure how to go about fixing this, but I have been able to
>> recreate an annoying little bug (that I think is the source of a
>> number of other newb problems).
>> 
>...(snip)...
>> My gut says to update "make clean" to delete all the config files (and
>> basically everything but the source files), but before I put work into
>> making and testing a patch, I want to make sure that is the right
>> approach...
>> 
>Don't know about "Right Appraach", but I just locate my download
>directory outside the Buildroot tree.
>
>Under: Build Options --->
>
>	$(BASE_DIR)/../dl) Download dir

This historical behaviour is indeed annoying. Note that distclean only
deletes the DL_DIR if it is set to the default ("$(BASE_DIR)/dl"). I
usually set it to $(BASE_DIR)/down due to this slightly inconvenient
behaviour.

Changing this behaviour is easy, but how should DL_DIR be cleaned-out?
make dl-clean?
Suggestions for a better name for the target?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] make clean not so clean
  2008-02-01  5:36 ` Ormund Williams
  2008-02-01  8:20   ` Bernhard Fischer
@ 2008-02-01  8:34   ` Robert P. J. Day
  2008-02-01  8:46     ` Ormund Williams
  1 sibling, 1 reply; 7+ messages in thread
From: Robert P. J. Day @ 2008-02-01  8:34 UTC (permalink / raw)
  To: buildroot

On Fri, 1 Feb 2008, Ormund Williams wrote:

> On Thu, 2008-01-31 at 21:02 -0800, jake sullivan wrote:
> > I'm not sure how to go about fixing this, but I have been able to
> > recreate an annoying little bug (that I think is the source of a
> > number of other newb problems).
> >
> ...(snip)...
> > My gut says to update "make clean" to delete all the config files (and
> > basically everything but the source files), but before I put work into
> > making and testing a patch, I want to make sure that is the right
> > approach...
> >
> Don't know about "Right Appraach", but I just locate my download
> directory outside the Buildroot tree.
>
> Under: Build Options --->
>
> 	$(BASE_DIR)/../dl) Download dir

to save me the trouble of pawing through the source, if you override
the default download directory (of "dl"?), does that mean a "make
distclean" will leave all the downloads alone?  thanks.

rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

Home page:                                         http://crashcourse.ca
Fedora Cookbook:    http://crashcourse.ca/wiki/index.php/Fedora_Cookbook
========================================================================

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] make clean not so clean
  2008-02-01  8:34   ` Robert P. J. Day
@ 2008-02-01  8:46     ` Ormund Williams
  2008-02-01  9:15       ` Robert P. J. Day
  0 siblings, 1 reply; 7+ messages in thread
From: Ormund Williams @ 2008-02-01  8:46 UTC (permalink / raw)
  To: buildroot

On Fri, 2008-02-01 at 03:34 -0500, Robert P. J. Day wrote:

> to save me the trouble of pawing through the source, if you override
> the default download directory (of "dl"?), does that mean a "make
> distclean" will leave all the downloads alone?  thanks.
> 
Exactly

__
Ormund

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] make clean not so clean
  2008-02-01  8:46     ` Ormund Williams
@ 2008-02-01  9:15       ` Robert P. J. Day
  0 siblings, 0 replies; 7+ messages in thread
From: Robert P. J. Day @ 2008-02-01  9:15 UTC (permalink / raw)
  To: buildroot

On Fri, 1 Feb 2008, Ormund Williams wrote:

> On Fri, 2008-02-01 at 03:34 -0500, Robert P. J. Day wrote:
>
> > to save me the trouble of pawing through the source, if you override
> > the default download directory (of "dl"?), does that mean a "make
> > distclean" will leave all the downloads alone?  thanks.
> >
> Exactly

yes, i just saw bernhard's response, thanks.

rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

Home page:                                         http://crashcourse.ca
Fedora Cookbook:    http://crashcourse.ca/wiki/index.php/Fedora_Cookbook
========================================================================

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] make clean not so clean
  2008-02-01  8:20   ` Bernhard Fischer
@ 2008-02-01  9:40     ` Robert P. J. Day
  0 siblings, 0 replies; 7+ messages in thread
From: Robert P. J. Day @ 2008-02-01  9:40 UTC (permalink / raw)
  To: buildroot

On Fri, 1 Feb 2008, Bernhard Fischer wrote:

> On Fri, Feb 01, 2008 at 12:36:43AM -0500, Ormund Williams wrote:
> >On Thu, 2008-01-31 at 21:02 -0800, jake sullivan wrote:
> >> I'm not sure how to go about fixing this, but I have been able to
> >> recreate an annoying little bug (that I think is the source of a
> >> number of other newb problems).
> >>
> >...(snip)...
> >> My gut says to update "make clean" to delete all the config files (and
> >> basically everything but the source files), but before I put work into
> >> making and testing a patch, I want to make sure that is the right
> >> approach...
> >>
> >Don't know about "Right Appraach", but I just locate my download
> >directory outside the Buildroot tree.
> >
> >Under: Build Options --->
> >
> >	$(BASE_DIR)/../dl) Download dir
>
> This historical behaviour is indeed annoying. Note that distclean only
> deletes the DL_DIR if it is set to the default ("$(BASE_DIR)/dl"). I
> usually set it to $(BASE_DIR)/down due to this slightly inconvenient
> behaviour.
>
> Changing this behaviour is easy, but how should DL_DIR be
> cleaned-out? make dl-clean? Suggestions for a better name for the
> target?

this drove me a bit nuts when i first started working with OpenWrt
but, as much as it pains me to say it, i think the current behaviour
is the correct one -- "make distclean" is historically understood to
mean, "clean right down to the original distribution", and that
absolutely involves getting rid of downloaded sources *if they've been
placed in that directory*.

the only reasonable solution is to somehow emphatically recommend to
users to keep their downloaded sources elsewhere (which is a good
idea, anyway).  i don't see the need for an extra target that covers
the downloads directory.

p.s.  one potentially hideous solution is to not specify a default
location for the downloads directory and *force* the user to pick an
initial location, at which point you can warn him/her.  but that
strikes me as overly annoying, so maybe forget that plan.

rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

Home page:                                         http://crashcourse.ca
Fedora Cookbook:    http://crashcourse.ca/wiki/index.php/Fedora_Cookbook
========================================================================

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-02-01  9:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-01  5:02 [Buildroot] make clean not so clean jake sullivan
2008-02-01  5:36 ` Ormund Williams
2008-02-01  8:20   ` Bernhard Fischer
2008-02-01  9:40     ` Robert P. J. Day
2008-02-01  8:34   ` Robert P. J. Day
2008-02-01  8:46     ` Ormund Williams
2008-02-01  9:15       ` Robert P. J. Day

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox