Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Target rebuilding
@ 2013-01-17 11:04 Jérôme Pouiller
  2013-01-17 13:27 ` Stephan Hoffmann
  2013-01-19 16:32 ` Arnout Vandecappelle
  0 siblings, 2 replies; 14+ messages in thread
From: Jérôme Pouiller @ 2013-01-17 11:04 UTC (permalink / raw)
  To: buildroot

Hello all,

It is handy to do tests directly in target/. But after some time, it is 
necessary to make a new fresh target/ directory. The current procedure to do 
this is:

* remove build/.root (or remove target/ if you want to throw all your work)
* remove build/*/.stamp_target_installed
* depending of you toolchain:
  # remove stamps/ext-toolchain-installed (external)
  # remove stamps/ct-ng-toolchain-installed (ctng)
  # remove target/lib/libc.so.0 (buildroot)
* launch make

I think this process lacks of consistency. Idealy, this process should be:
  rm -r target (depending if want to throw all your work)
  rm build/*/.stamp_target_installed
  make

I suggest following changes:

 1. Move build/.root to stamps/. Since it is hidden, many user forget this 
file exist.

 2. All stamps files are in subdirectories of build/. I suggest to move 
stamps/ to build/stamps/

 3. Buildroot toolchain should create a stamp files to be uniform with other 
toolchains. In add, target/lib/libc.so.0 never exists when PREFER_STATIC_LIB 
is enable.

 4. To be consistent stamps/*-toolchain-installed may be renamed 
stamps/.stamp_target_installed or stamps/.stamp_toolchain_target_installed or 
toolchain/.stamp_target_installed. We may add a README file to explain what is 
purpose of this apparently empty directory.

  5. stamps/ext-toolchain-installed currently copy libc in staging/ and in 
target/. It may be splited in two rules: stamps/ext-toolchain-target-installed 
and stamps/ext-toolchain-staging-installed.


What do you think about it?


Regards,

-- 
J?r?me Pouiller

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

end of thread, other threads:[~2013-05-15 21:01 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-17 11:04 [Buildroot] Target rebuilding Jérôme Pouiller
2013-01-17 13:27 ` Stephan Hoffmann
2013-01-18  9:43   ` Jérôme Pouiller
2013-01-19 16:32 ` Arnout Vandecappelle
2013-05-14 14:30   ` [Buildroot] [PATCH] Standardisation of $(BUILD)/.root name Jérôme Pouiller
2013-05-14 15:07     ` Thomas Petazzoni
2013-05-14 15:27       ` Jérôme Pouiller
2013-05-14 22:23         ` Yann E. MORIN
2013-05-15  6:19           ` Jérôme Pouiller
2013-05-15  6:27             ` Jérôme Pouiller
2013-05-15 21:01               ` Yann E. MORIN
2013-05-15 20:59             ` Yann E. MORIN
2013-05-14 21:52       ` Arnout Vandecappelle
2013-05-14 22:06         ` Yann E. MORIN

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