Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v3 0/3] [RFC] Reinstall Targets
@ 2014-11-28 15:25 Doug Kehn
  2014-11-28 15:25 ` [Buildroot] [PATCH v3 1/3] pkg-generic.mk: reinstall targets Doug Kehn
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Doug Kehn @ 2014-11-28 15:25 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 (3):
  pkg-generic.mk: reinstall targets
  manual: reinstall targets
  manual: style update

 docs/manual/package-make-target.txt | 26 ++++++++++++++++++++------
 package/pkg-generic.mk              | 22 ++++++++++++++++++++++
 2 files changed, 42 insertions(+), 6 deletions(-)

---
Changes v2 -> v3:
  - Move style updates to separate patch (requested by Thomos)

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

-- 
1.9.1

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

end of thread, other threads:[~2015-02-03 17:49 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-28 15:25 [Buildroot] [PATCH v3 0/3] [RFC] Reinstall Targets Doug Kehn
2014-11-28 15:25 ` [Buildroot] [PATCH v3 1/3] pkg-generic.mk: reinstall targets Doug Kehn
2015-02-01 10:55   ` Yann E. MORIN
2015-02-01 10:59     ` Thomas Petazzoni
2015-02-01 11:19       ` Yann E. MORIN
2015-02-03 17:11   ` Thomas Petazzoni
2014-11-28 15:25 ` [Buildroot] [PATCH v3 2/3] manual: " Doug Kehn
2015-02-03 17:11   ` Thomas Petazzoni
2015-02-03 17:49     ` rdkehn at yahoo.com
2014-11-28 15:25 ` [Buildroot] [PATCH v3 3/3] manual: style update Doug Kehn
2015-02-03 17:12   ` Thomas Petazzoni
2014-12-10 18:42 ` [Buildroot] [PATCH v3 0/3] [RFC] Reinstall Targets 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