diff options
author | Cédric Marie <cedric.marie@openmailbox.org> | 2015-04-22 22:11:56 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-04-23 09:50:16 +0200 |
commit | dfcc18f84b0d90b0ed5937bac3c4b12aba086cd5 (patch) | |
tree | ac2f3ae7c59262bb7a5228094e1b48c1e4c85728 | |
parent | f593c61dce04b1cac5e56d00afb86c3eb8f89110 (diff) | |
download | buildroot-dfcc18f84b0d90b0ed5937bac3c4b12aba086cd5.tar.gz buildroot-dfcc18f84b0d90b0ed5937bac3c4b12aba086cd5.zip |
pkg-cmake: Skip compilation in installation step
With CMake build system, the "make install" command always compiles
before installing, to make sure that everything is up-to-date.
In Buildroot environment, this is quite useless, because the package
has always already been compiled, either at first build, or when
invoking "make <package>-rebuild".
In all cases, when it comes to staging or target installation step, the
package has just been compiled.
Using "make install/fast" - in order to skip the compilation step - is
therefore more appropriate, more consistent with what other build
systems do, and saves time when you need to rebuild your package.
Signed-off-by: Cédric Marie <cedric.marie@openmailbox.org>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tested-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r-- | package/pkg-cmake.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/pkg-cmake.mk b/package/pkg-cmake.mk index 2262012483..f17a883312 100644 --- a/package/pkg-cmake.mk +++ b/package/pkg-cmake.mk @@ -57,8 +57,8 @@ $(2)_MAKE ?= $$(MAKE) $(2)_MAKE_ENV ?= $(2)_MAKE_OPTS ?= $(2)_INSTALL_OPTS ?= install -$(2)_INSTALL_STAGING_OPTS ?= DESTDIR=$$(STAGING_DIR) install -$(2)_INSTALL_TARGET_OPTS ?= DESTDIR=$$(TARGET_DIR) install +$(2)_INSTALL_STAGING_OPTS ?= DESTDIR=$$(STAGING_DIR) install/fast +$(2)_INSTALL_TARGET_OPTS ?= DESTDIR=$$(TARGET_DIR) install/fast $(2)_SRCDIR = $$($(2)_DIR)/$$($(2)_SUBDIR) |