[Buildroot] [PATCH v3 0/3] [RFC] Reinstall Targets

Doug Kehn rdkehn at yahoo.com
Fri Nov 28 15:25:03 UTC 2014


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



More information about the buildroot mailing list