The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / qt5 / qt5base / 0003-mkspecs-files.patch
1 Add a Buildroot 'device' to ease cross-compilation
2
3 Qt5 has a mechanism to support "device" profiles, so that people can
4 specify the compiler, compiler flags and so on for a specific device.
5
6 We leverage this mechanism in the Buildroot packaging of qt5 to
7 simplify cross-compilation: we have our own "device" definition, which
8 allows us to easily pass the cross-compiler paths and flags from our
9 qt5.mk.
10
11 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
12
13 Index: b/mkspecs/devices/linux-buildroot-g++/qmake.conf
14 ===================================================================
15 --- /dev/null
16 +++ b/mkspecs/devices/linux-buildroot-g++/qmake.conf
17 @@ -0,0 +1,16 @@
18 +include(../common/linux_device_pre.conf)
19 +
20 +# modifications to g++-unix.conf
21 +QMAKE_CC                = $${BR_CCACHE} $${CROSS_COMPILE}gcc
22 +QMAKE_CXX               = $${BR_CCACHE} $${CROSS_COMPILE}g++
23 +
24 +#modifications to gcc-base.conf
25 +QMAKE_CFLAGS           += $${BR_COMPILER_CFLAGS}
26 +QMAKE_CXXFLAGS         += $${BR_COMPILER_CXXFLAGS}
27 +QMAKE_CXXFLAGS_RELEASE += -O3
28 +CONFIG                 += nostrip
29 +
30 +QMAKE_LIBS             += -lrt -lpthread -ldl
31 +
32 +include(../common/linux_device_post.conf)
33 +load(qt_config)
34 Index: b/mkspecs/devices/linux-buildroot-g++/qplatformdefs.h
35 ===================================================================
36 --- /dev/null
37 +++ b/mkspecs/devices/linux-buildroot-g++/qplatformdefs.h
38 @@ -0,0 +1 @@
39 +#include "../../linux-g++/qplatformdefs.h"