[Buildroot] [PATCH 2/2] qt5base: use ccache if enabled

Peter Korsgaard jacmet at uclibc.org
Thu Nov 28 22:11:35 UTC 2013


>>>>> "Fatih" == Fatih Aşıcı <fatih.asici at gmail.com> writes:

 > For now, it doesn't use ccache when compiling host tools (e.g. qmake).
 > It seems the fix is not trivial.

 > Signed-off-by: Fatih Aşıcı <fatih.asici at gmail.com>
 > ---
 >  package/qt5/qt5base/qt5base-0002-mkspecs-files.patch | 6 +++++-
 >  package/qt5/qt5base/qt5base.mk                       | 1 +
 >  2 files changed, 6 insertions(+), 1 deletion(-)

 > diff --git a/package/qt5/qt5base/qt5base-0002-mkspecs-files.patch b/package/qt5/qt5base/qt5base-0002-mkspecs-files.patch
 > index 3fddeac..6fa8a92 100644
 > --- a/package/qt5/qt5base/qt5base-0002-mkspecs-files.patch
 > +++ b/package/qt5/qt5base/qt5base-0002-mkspecs-files.patch
 > @@ -14,9 +14,13 @@ Index: b/mkspecs/devices/linux-buildroot-g++/qmake.conf
 >  ===================================================================
 >  --- /dev/null
 >  +++ b/mkspecs/devices/linux-buildroot-g++/qmake.conf
 > -@@ -0,0 +1,11 @@
 > +@@ -0,0 +1,15 @@
 >  +include(../common/linux_device_pre.conf)
 >  +
 > ++# modifications to g++.conf
 > ++QMAKE_CC                = $${BUILDROOT_CCACHE} $${QMAKE_CC}
 > ++QMAKE_CXX               = $${BUILDROOT_CCACHE} $${QMAKE_CXX}
 > ++
 >  +#modifications to gcc-base.conf
 >  +QMAKE_CFLAGS           += $${BUILDROOT_COMPILER_CFLAGS}
 >  +QMAKE_CXXFLAGS         += $${BUILDROOT_COMPILER_CXXFLAGS}
 > diff --git a/package/qt5/qt5base/qt5base.mk b/package/qt5/qt5base/qt5base.mk
 > index febdc9b..a1d5dba 100644
 > --- a/package/qt5/qt5base/qt5base.mk
 > +++ b/package/qt5/qt5base/qt5base.mk
 > @@ -168,6 +168,7 @@ define QT5BASE_CONFIGURE_CMDS
 >  		-nomake examples -nomake tests \
 >  		-device buildroot \
 >  		-device-option CROSS_COMPILE="$(TARGET_CROSS)" \
 > +		-device-option BUILDROOT_CCACHE="$(CCACHE)" \

Can't we just pass it in CROSS_COMPILE?

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list