Bug 1009753 - Check for TARGET_DEVICE or TARGET_BOARD_PLATFORM