2
1

qt5base-0002-mkspecs-files.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. Add a Buildroot 'device' to ease cross-compilation
  2. Qt5 has a mechanism to support "device" profiles, so that people can
  3. specify the compiler, compiler flags and so on for a specific device.
  4. We leverage this mechanism in the Buildroot packaging of qt5 to
  5. simplify cross-compilation: we have our own "device" definition, which
  6. allows us to easily pass the cross-compiler paths and flags from our
  7. qt5.mk.
  8. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  9. Index: b/mkspecs/devices/linux-buildroot-g++/qmake.conf
  10. ===================================================================
  11. --- /dev/null
  12. +++ b/mkspecs/devices/linux-buildroot-g++/qmake.conf
  13. @@ -0,0 +1,12 @@
  14. +include(../common/linux_device_pre.conf)
  15. +
  16. +#modifications to gcc-base.conf
  17. +QMAKE_CFLAGS += $${BR_COMPILER_CFLAGS}
  18. +QMAKE_CXXFLAGS += $${BR_COMPILER_CXXFLAGS}
  19. +QMAKE_CXXFLAGS_RELEASE += -O3
  20. +CONFIG += nostrip
  21. +
  22. +QMAKE_LIBS += -lrt -lpthread -ldl
  23. +
  24. +include(../common/linux_device_post.conf)
  25. +load(qt_config)
  26. Index: b/mkspecs/devices/linux-buildroot-g++/qplatformdefs.h
  27. ===================================================================
  28. --- /dev/null
  29. +++ b/mkspecs/devices/linux-buildroot-g++/qplatformdefs.h
  30. @@ -0,0 +1 @@
  31. +#include "../../linux-g++/qplatformdefs.h"