diff options
| author | Thomas Petazzoni <thomas.petazzoni@bootlin.com> | 2018-03-24 15:20:06 +0100 |
|---|---|---|
| committer | Peter Korsgaard <peter@korsgaard.com> | 2018-03-25 17:49:05 +0200 |
| commit | 0283d7ee3907d1345307c4ee4aab02fdf38780d4 (patch) | |
| tree | 204f81c3c67221197b022f971a950e97304cf3ea /package/ccache | |
| parent | 15815e43ddbb137faca46084f3808f8063bfbffd (diff) | |
| download | buildroot-0283d7ee3907d1345307c4ee4aab02fdf38780d4.tar.gz buildroot-0283d7ee3907d1345307c4ee4aab02fdf38780d4.zip | |
package/pkg-generic: handle host-ccache as a regular dependency
This moves the host-ccache dependency handling from
DEPENDENCIES_HOST_PREREQ to a proper package dependency. When
BR2_CCACHE=y, we add host-ccache as a regular dependency of all
packages except:
- The extractor packages host-tar, host-xz and host-lzip
- host-ccache itself
- host-skeleton, because all packages depend on it
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Tested-by: Matt Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/ccache')
| -rw-r--r-- | package/ccache/ccache.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/package/ccache/ccache.mk b/package/ccache/ccache.mk index 552a611f42..9a11d46d30 100644 --- a/package/ccache/ccache.mk +++ b/package/ccache/ccache.mk @@ -21,6 +21,11 @@ CCACHE_LICENSE_FILES = LICENSE.txt GPL-3.0.txt # has zero dependency besides the C library. HOST_CCACHE_CONF_OPTS += --with-bundled-zlib +# We are ccache, so we can't use ccache +HOST_CCACHE_CONF_ENV = \ + CC="$(HOSTCC_NOCCACHE)" \ + CXX="$(HOSTCXX_NOCCACHE)" + # Patch host-ccache as follows: # - Use BR_CACHE_DIR instead of CCACHE_DIR, because CCACHE_DIR # is already used by autotargets for the ccache package. |

