Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 0/2] [RFC] Reinstall Targets
@ 2014-11-27  4:48 Doug Kehn
  2014-11-27  4:48 ` [Buildroot] [PATCH v2 1/2] pkg-generic.mk: reinstall targets Doug Kehn
  2014-11-27  4:48 ` [Buildroot] [PATCH v2 2/2] manual: " Doug Kehn
  0 siblings, 2 replies; 5+ messages in thread
From: Doug Kehn @ 2014-11-27  4:48 UTC (permalink / raw)
  To: buildroot

This RFC proposes adding the following targets to pkg-generic.mk:
	<package>-reinstall
	<package>-reinstall-target
	<package>-reinstall-staging
	<package>-reinstall-images
	<package>-reinstall-host

These targets remove the package's .stamp_*_installed file to allow the
reinstall to execute.  The only method I presently know of to reinstall a
package is to make <package>-rebuild.  The proposed targets allow a package
reinstall without, unnecessarily incurring a rebuild of the package.

In addition to allowing a reinstall to staging and/or target output
directories, the proposed targets allow selected packages to be
installed to a different 'target' directory.  For example, I attempt to
keep software updates as small as possible; therefore, I cherry-pick
files to include in the update package.  If I know packages foo and bar
have been updated, the following will install those packages to a
directory that can be further processed to generate the desired update
package.

make TARGET_DIR=${PWD}/update foo-reinstall-target

make TARGET_DIR=${PWD}/update bar-reinstall-target

Doug Kehn (2):
  pkg-generic.mk: reinstall targets
  manual: reinstall targets

 docs/manual/package-make-target.txt | 26 ++++++++++++++++++++------
 package/pkg-generic.mk              | 28 +++++++++++++++++++++++++---
 2 files changed, 45 insertions(+), 9 deletions(-)

---
Changes v1 -> v2:
  - Reworked to include reinstall target (requested by Thomas)
  - Updated documentation

-- 
1.9.1

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

end of thread, other threads:[~2014-11-27 18:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-27  4:48 [Buildroot] [PATCH v2 0/2] [RFC] Reinstall Targets Doug Kehn
2014-11-27  4:48 ` [Buildroot] [PATCH v2 1/2] pkg-generic.mk: reinstall targets Doug Kehn
2014-11-27 18:08   ` Yann E. MORIN
2014-11-27 18:32     ` Doug Kehn
2014-11-27  4:48 ` [Buildroot] [PATCH v2 2/2] manual: " Doug Kehn

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