SDK Addon multi-sys-img support, part 2.

Change the sdk_repo rule to generate a system-image zip package and its
corresponding XML for the addon.

Change-Id: I3c2318d2085362f62784415713b44cc8fe97ea9c
This commit is contained in:
Raphael Moll
2014-08-21 15:15:02 -07:00
parent d6a790cdfe
commit fa090e240f
2 changed files with 22 additions and 0 deletions

View File

@@ -122,6 +122,8 @@ ATTRS=(
SystemImage.Abi abi r:3,s:1 SystemImage.Abi abi r:3,s:1
SystemImage.TagId tag-id r:9,s:2 SystemImage.TagId tag-id r:9,s:2
SystemImage.TagDisplay tag-display r:9,s:2 SystemImage.TagDisplay tag-display r:9,s:2
Addon.VendorId add-on/vendor-id s:3
Addon.VendorDisplay add-on/vendor-display s:3
# from addon manifest.ini for addon.xml packages # from addon manifest.ini for addon.xml packages
# (note that vendor/name are mapped to different XML elements based on the XSD version) # (note that vendor/name are mapped to different XML elements based on the XSD version)
vendor-id vendor-id 4 vendor-id vendor-id 4

View File

@@ -205,6 +205,26 @@ $(call dist-for-goals, sdk_repo, $(SDK_ADDON_XML))
endif endif
ifneq ($(ADDON_SDK_IMG_ZIP),)
# Copy/rename the ADDON_SDK_IMG_ZIP file as an sdk-repo zip in the dist dir
RENAMED_ADDON_IMG_ZIP := $(ADDON_SDK_IMG_ZIP):$(notdir $(call sdk-repo-pkg-zip,$(HOST_OS),$(ADDON_SDK_IMG_ZIP),system-images))
$(call dist-for-goals, sdk_repo, $(RENAMED_ADDON_IMG_ZIP))
# Generate the system-image XML for the addon sys-img
SDK_ADDON_IMG_XML := $(dir $(ADDON_SDK_ZIP))/addon-sys-img.xml
$(SDK_ADDON_IMG_XML): $(ADDON_SDK_IMG_ZIP)
$(hide) $(TOPDIR)development/build/tools/mk_sdk_repo_xml.sh \
$(SDK_ADDON_IMG_XML) $(SDK_SYSIMG_XSD) system-image $(HOST_OS) $(RENAMED_ADDON_IMG_ZIP)
$(call dist-for-goals, sdk_repo, $(SDK_ADDON_IMG_XML))
endif
# ----------------------------------------------------------------- # -----------------------------------------------------------------
# Rules for the SDK Repository XML # Rules for the SDK Repository XML