summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>2012-04-20 21:28:11 +0200
committerBernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>2012-04-21 20:43:31 +0200
commit13e1957d2a2383fc8f42cc173de9d1f591a1bc05 (patch)
treea95c9aed6ce05fd2b7ad643bdfb8da6f324bc9db
parentf71640943da5b7b532d976be9aa11d264afecfe7 (diff)
downloadimx6-13e1957d2a2383fc8f42cc173de9d1f591a1bc05.tar.gz
imx6: Set DEVICE_TREES only if the kernel supports it
The Freescale kernel doesn't support DeviceTree. Don't set DEVICE_TREES if it isn't supported. Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
-rw-r--r--BoardConfig.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk
index f32c560..1f1e845 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -7,7 +7,10 @@ TARGET_BOARD_PLATFORM := imx6
TARGET_NO_BOOTLOADER := true # Uses u-boot instead
TARGET_NO_KERNEL := false
KERNEL_CONFIG := imx6_android_defconfig
+DT_SUPPORT := $(shell if test -e ../../../kernel/arch/arm/boot/dts/imx6q-sabrelite.dts; then echo -n yes; else echo -n no; fi )
+ifneq ($(DT_SUPPORT),no)
DEVICE_TREES := imx6q-sabrelite:board.dtb
+endif
TARGET_USE_UBOOT := true
UBOOT_CONFIG := mx6qsabrelite_config
TARGET_USE_XLOADER := false