Snowball: Build a device tree file if needed
The tracking build uses the linux-linaro-tracking kernel and needs
a device tree file to boot.
Should really check if a device tree file is needed. Instead checks
if there is a vendor tarball to figure out if this is the tracking
build.
Change-Id: I398e1abc070356e27e3b4cd200edfa69e4e3d8d7
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 344a16e..8ff58f6 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -7,6 +7,14 @@
TARGET_NO_BOOTLOADER := true # Uses u-boot instead
TARGET_NO_KERNEL := false
KERNEL_CONFIG := u8500_android_defconfig
+
+# Check if we have a vendor tarball in the build
+ifeq ($(wildcard $(TOP)/vendor/st-ericsson/snowball/vendor.mk),)
+# No tarball -> this is the tracking build
+# Build a device tree file for the board
+DEVICE_TREES := snowball:board.dtb
+endif
+
TARGET_USE_UBOOT := true
UBOOT_CONFIG := snowball_config
TARGET_USE_XLOADER := false