don't build ota or update packages for sdk or sim
diff --git a/core/Makefile b/core/Makefile
index a9ca138..0b7aa88 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -860,6 +860,10 @@
# -----------------------------------------------------------------
# OTA update package
+
+ifneq ($(TARGET_SIMULATOR),true)
+ifneq ($(TARGET_PRODUCT),sdk)
+
name := $(TARGET_PRODUCT)
ifeq ($(TARGET_BUILD_TYPE),debug)
name := $(name)_debug
@@ -880,6 +884,8 @@
.PHONY: otapackage
otapackage: $(INTERNAL_OTA_PACKAGE_TARGET)
+endif # TARGET_PRODUCT != sdk
+endif # TARGET_SIMULATOR != true
# -----------------------------------------------------------------
# installed file list
@@ -982,6 +988,9 @@
# -----------------------------------------------------------------
# The update package
+ifneq ($(TARGET_SIMULATOR),true)
+ifneq ($(TARGET_PRODUCT),sdk)
+
name := $(TARGET_PRODUCT)
ifeq ($(TARGET_BUILD_TYPE),debug)
name := $(name)_debug
@@ -999,6 +1008,9 @@
.PHONY: updatepackage
updatepackage: $(INTERNAL_UPDATE_PACKAGE_TARGET)
+endif # TARGET_PRODUCT != sdk
+endif # TARGET_SIMULATOR != true
+
# -----------------------------------------------------------------
# The emulator package