X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Fqt5%2Fqt5base%2F0003-mkspecs-files.patch;fp=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Fqt5%2Fqt5base%2F0003-mkspecs-files.patch;h=09c1b67c11329fd4230df5f8e7a6262c95bee6b9;hb=b0a0f15dfaa205161a7fcb20cf1b8cd4948c2ef3;hp=0000000000000000000000000000000000000000;hpb=c6ac3cd55ee2da956195eee393b0882105dfad4e;p=packages%2Ftrusty%2Fcirros-testvm.git diff --git a/cirros-testvm/src-cirros/buildroot-2015.05/package/qt5/qt5base/0003-mkspecs-files.patch b/cirros-testvm/src-cirros/buildroot-2015.05/package/qt5/qt5base/0003-mkspecs-files.patch new file mode 100644 index 0000000..09c1b67 --- /dev/null +++ b/cirros-testvm/src-cirros/buildroot-2015.05/package/qt5/qt5base/0003-mkspecs-files.patch @@ -0,0 +1,39 @@ +Add a Buildroot 'device' to ease cross-compilation + +Qt5 has a mechanism to support "device" profiles, so that people can +specify the compiler, compiler flags and so on for a specific device. + +We leverage this mechanism in the Buildroot packaging of qt5 to +simplify cross-compilation: we have our own "device" definition, which +allows us to easily pass the cross-compiler paths and flags from our +qt5.mk. + +Signed-off-by: Thomas Petazzoni + +Index: b/mkspecs/devices/linux-buildroot-g++/qmake.conf +=================================================================== +--- /dev/null ++++ b/mkspecs/devices/linux-buildroot-g++/qmake.conf +@@ -0,0 +1,16 @@ ++include(../common/linux_device_pre.conf) ++ ++# modifications to g++-unix.conf ++QMAKE_CC = $${BR_CCACHE} $${CROSS_COMPILE}gcc ++QMAKE_CXX = $${BR_CCACHE} $${CROSS_COMPILE}g++ ++ ++#modifications to gcc-base.conf ++QMAKE_CFLAGS += $${BR_COMPILER_CFLAGS} ++QMAKE_CXXFLAGS += $${BR_COMPILER_CXXFLAGS} ++QMAKE_CXXFLAGS_RELEASE += -O3 ++CONFIG += nostrip ++ ++QMAKE_LIBS += -lrt -lpthread -ldl ++ ++include(../common/linux_device_post.conf) ++load(qt_config) +Index: b/mkspecs/devices/linux-buildroot-g++/qplatformdefs.h +=================================================================== +--- /dev/null ++++ b/mkspecs/devices/linux-buildroot-g++/qplatformdefs.h +@@ -0,0 +1 @@ ++#include "../../linux-g++/qplatformdefs.h"