summaryrefslogtreecommitdiffstats
path: root/mkspecs/devices/linux-mipsel-broadcom-97425-g++/qmake.conf
diff options
context:
space:
mode:
Diffstat (limited to 'mkspecs/devices/linux-mipsel-broadcom-97425-g++/qmake.conf')
-rw-r--r--mkspecs/devices/linux-mipsel-broadcom-97425-g++/qmake.conf16
1 files changed, 10 insertions, 6 deletions
diff --git a/mkspecs/devices/linux-mipsel-broadcom-97425-g++/qmake.conf b/mkspecs/devices/linux-mipsel-broadcom-97425-g++/qmake.conf
index e196f279d7..9211551daf 100644
--- a/mkspecs/devices/linux-mipsel-broadcom-97425-g++/qmake.conf
+++ b/mkspecs/devices/linux-mipsel-broadcom-97425-g++/qmake.conf
@@ -12,6 +12,16 @@ include(../../common/g++-unix.conf)
load(device_config)
+defineTest(qtConfSanitizeMkspec) {
+ isEmpty(B_REFSW_DEBUG): \
+ error("B_REFSW_DEBUG needs to be set via -device-option B_REFSW_DEBUG=(y|n)")
+ isEmpty(BRCM_ROCKFORD_PATH): \
+ error("BRCM_ROCKFORD_PATH needs to be set via -device-option BRCM_ROCKFORD_PATH=<path>")
+ isEmpty(BRCM_APPLIBS_PATH): \
+ error("BRCM_APPLIBS_PATH needs to be set via -device-option BRCM_APPLIBS_PATH=<path>")
+ deviceSanityCheckCompiler()
+}
+
# Modify the defaults we loaded above
CROSS_COMPILE = mipsel-linux-
QMAKE_CC = $${CROSS_COMPILE}gcc
@@ -31,12 +41,6 @@ QMAKE_STRIP = $${CROSS_COMPILE}strip
BRCM_PLATFORM = 97425
-# Sanity checks
-deviceSanityCheckCompiler()
-isEmpty(B_REFSW_DEBUG):error("B_REFSW_DEBUG needs to be set via -device-option B_REFSW_DEBUG=(y|n).")
-isEmpty(BRCM_ROCKFORD_PATH):error("BRCM_ROCKFORD_PATH needs to be set via -device-option BRCM_ROCKFORD_PATH=path.")
-isEmpty(BRCM_APPLIBS_PATH):error("BRCM_APPLIBS_PATH needs to be set via -device-option BRCM_APPLIBS_PATH=path.")
-
# Figure the kind of directfb build used.
BRCM_BUILD_TYPE = debug
contains(B_REFSW_DEBUG, [Nn]) {