Raphael | 2ff496b | 2011-02-15 16:08:36 -0800 | [diff] [blame] | 1 | # Makefile to build the SDK repository packages. |
| 2 | |
| 3 | .PHONY: sdk_repo |
| 4 | |
Raphael Moll | 9516dc5 | 2012-02-27 15:18:29 -0800 | [diff] [blame] | 5 | SDK_REPO_DEPS := |
| 6 | SDK_REPO_XML_ARGS := |
| 7 | SDK_EXTRAS_DEPS := |
| 8 | SDK_EXTRAS_XML_ARGS := |
Raphael | 4802378 | 2011-02-23 16:46:42 -0800 | [diff] [blame] | 9 | |
Raphael | 2ff496b | 2011-02-15 16:08:36 -0800 | [diff] [blame] | 10 | # Define the name of a package zip file to generate |
| 11 | # $1=OS (e.g. linux-x86, windows, etc) |
| 12 | # $2=sdk zip (e.g. out/host/linux.../android-eng-sdk.zip) |
| 13 | # $3=package to create (e.g. tools, docs, etc.) |
| 14 | # |
| 15 | define sdk-repo-pkg-zip |
Raphael | 4802378 | 2011-02-23 16:46:42 -0800 | [diff] [blame] | 16 | $(dir $(2))/sdk-repo-$(1)-$(3)-$(FILE_NAME_TAG).zip |
Raphael | 2ff496b | 2011-02-15 16:08:36 -0800 | [diff] [blame] | 17 | endef |
| 18 | |
| 19 | # Defines the rule to build an SDK repository package by zipping all |
| 20 | # the content of the given directory. |
| 21 | # E.g. given a folder out/host/linux.../sdk/android-eng-sdk/tools |
| 22 | # this generates an sdk-repo-linux-tools that contains tools/* |
| 23 | # |
Raphael Moll | ea40d2f | 2014-04-24 19:13:47 -0700 | [diff] [blame] | 24 | # $1=variable where to accumulate args for mk_sdk_repo_xml. |
| 25 | # $2=OS (e.g. linux-x86, windows, etc) |
| 26 | # $3=sdk zip (e.g. out/host/linux.../android-eng-sdk.zip) |
| 27 | # $4=package to create (e.g. tools, docs, etc.) |
Raphael | 2ff496b | 2011-02-15 16:08:36 -0800 | [diff] [blame] | 28 | # |
| 29 | # The rule depends on the SDK zip file, which is defined by $2. |
| 30 | # |
| 31 | define mk-sdk-repo-pkg-1 |
Raphael Moll | ea40d2f | 2014-04-24 19:13:47 -0700 | [diff] [blame] | 32 | $(call sdk-repo-pkg-zip,$(2),$(3),$(4)): $(3) |
| 33 | @echo "Building SDK repository package $(4) from $(notdir $(3))" |
| 34 | $(hide) cd $(basename $(3)) && \ |
Raphael Moll | 4df9f46 | 2014-06-02 17:11:45 -0700 | [diff] [blame] | 35 | rm -f ../$(notdir $(call sdk-repo-pkg-zip,$(2),$(3),$(4))) && \ |
Raphael Moll | ea40d2f | 2014-04-24 19:13:47 -0700 | [diff] [blame] | 36 | zip -9rq ../$(notdir $(call sdk-repo-pkg-zip,$(2),$(3),$(4))) $(4)/* |
| 37 | $(call dist-for-goals, sdk_repo, $(call sdk-repo-pkg-zip,$(2),$(3),$(4))) |
| 38 | $(1) += $(4) $(2) \ |
| 39 | $(call sdk-repo-pkg-zip,$(2),$(3),$(4)):$(notdir $(call sdk-repo-pkg-zip,$(2),$(3),$(4))) |
Raphael | 2ff496b | 2011-02-15 16:08:36 -0800 | [diff] [blame] | 40 | endef |
| 41 | |
| 42 | # Defines the rule to build an SDK repository package when the |
| 43 | # package directory contains a single platform-related inner directory. |
| 44 | # E.g. given a folder out/host/linux.../sdk/android-eng-sdk/samples/android-N |
| 45 | # this generates an sdk-repo-linux-samples that contains android-N/* |
| 46 | # |
Raphael Moll | ea40d2f | 2014-04-24 19:13:47 -0700 | [diff] [blame] | 47 | # $1=variable where to accumulate args for mk_sdk_repo_xml. |
| 48 | # $2=OS (e.g. linux-x86, windows, etc) |
| 49 | # $3=sdk zip (e.g. out/host/linux.../android-eng-sdk.zip) |
| 50 | # $4=package to create (e.g. platforms, samples, etc.) |
Raphael | 2ff496b | 2011-02-15 16:08:36 -0800 | [diff] [blame] | 51 | # |
| 52 | # The rule depends on the SDK zip file, which is defined by $2. |
| 53 | # |
| 54 | define mk-sdk-repo-pkg-2 |
Raphael Moll | ea40d2f | 2014-04-24 19:13:47 -0700 | [diff] [blame] | 55 | $(call sdk-repo-pkg-zip,$(2),$(3),$(4)): $(3) |
| 56 | @echo "Building SDK repository package $(4) from $(notdir $(3))" |
| 57 | $(hide) cd $(basename $(3))/$(4) && \ |
Raphael Moll | 4df9f46 | 2014-06-02 17:11:45 -0700 | [diff] [blame] | 58 | rm -f ../../$(notdir $(call sdk-repo-pkg-zip,$(2),$(3),$(4))) && \ |
Raphael Moll | ea40d2f | 2014-04-24 19:13:47 -0700 | [diff] [blame] | 59 | zip -9rq ../../$(notdir $(call sdk-repo-pkg-zip,$(2),$(3),$(4))) * |
| 60 | $(call dist-for-goals, sdk_repo, $(call sdk-repo-pkg-zip,$(2),$(3),$(4))) |
| 61 | $(1) += $(4) $(2) \ |
| 62 | $(call sdk-repo-pkg-zip,$(2),$(3),$(4)):$(notdir $(call sdk-repo-pkg-zip,$(2),$(3),$(4))) |
Raphael | 2ff496b | 2011-02-15 16:08:36 -0800 | [diff] [blame] | 63 | endef |
| 64 | |
Raphael Moll | 3d308aa | 2011-10-01 23:44:08 -0700 | [diff] [blame] | 65 | # Defines the rule to build an SDK repository package when the |
| 66 | # package directory contains 3 levels from the sdk dir, for example |
| 67 | # to package SDK/extra/android/support or SDK/system-images/android-N/armeabi. |
| 68 | # Because we do not know the intermediary directory name, this only works |
| 69 | # if each directory contains a single sub-directory (e.g. sdk/$4/*/* must be |
| 70 | # unique.) |
| 71 | # |
Raphael Moll | ea40d2f | 2014-04-24 19:13:47 -0700 | [diff] [blame] | 72 | # $1=variable where to accumulate args for mk_sdk_repo_xml. |
| 73 | # $2=OS (e.g. linux-x86, windows, etc) |
| 74 | # $3=sdk zip (e.g. out/host/linux.../android-eng-sdk.zip) |
| 75 | # $4=package to create (e.g. system-images, support, etc.) |
| 76 | # $5=the root of directory to package in the sdk (e.g. extra/android). |
Raphael Moll | 3d308aa | 2011-10-01 23:44:08 -0700 | [diff] [blame] | 77 | # this must be a 2-segment path, the last one can be *. |
| 78 | # |
| 79 | # The rule depends on the SDK zip file, which is defined by $2. |
| 80 | # |
| 81 | define mk-sdk-repo-pkg-3 |
Raphael Moll | ea40d2f | 2014-04-24 19:13:47 -0700 | [diff] [blame] | 82 | $(call sdk-repo-pkg-zip,$(2),$(3),$(4)): $(3) |
| 83 | @echo "Building SDK repository package $(4) from $(notdir $(3))" |
| 84 | $(hide) cd $(basename $(3))/$(5) && \ |
Raphael Moll | 4df9f46 | 2014-06-02 17:11:45 -0700 | [diff] [blame] | 85 | rm -f ../../../$(notdir $(call sdk-repo-pkg-zip,$(2),$(3),$(4))) && \ |
Raphael Moll | ea40d2f | 2014-04-24 19:13:47 -0700 | [diff] [blame] | 86 | zip -9rq ../../../$(notdir $(call sdk-repo-pkg-zip,$(2),$(3),$(4))) * |
| 87 | $(call dist-for-goals, sdk_repo, $(call sdk-repo-pkg-zip,$(2),$(3),$(4))) |
| 88 | $(1) += $(4) $(2) \ |
| 89 | $(call sdk-repo-pkg-zip,$(2),$(3),$(4)):$(notdir $(call sdk-repo-pkg-zip,$(2),$(3),$(4))) |
Raphael Moll | 3d308aa | 2011-10-01 23:44:08 -0700 | [diff] [blame] | 90 | endef |
| 91 | |
Raphael Moll | da9eabd | 2011-09-28 11:18:34 -0700 | [diff] [blame] | 92 | # Defines the rule to build an SDK sources package. |
| 93 | # |
Raphael Moll | ea40d2f | 2014-04-24 19:13:47 -0700 | [diff] [blame] | 94 | # $1=variable where to accumulate args for mk_sdk_repo_xml. |
| 95 | # $2=OS (e.g. linux-x86, windows, etc) |
| 96 | # $3=sdk zip (e.g. out/host/linux.../android-eng-sdk.zip) |
| 97 | # $4=package to create, must be "sources" |
Raphael Moll | da9eabd | 2011-09-28 11:18:34 -0700 | [diff] [blame] | 98 | # |
| 99 | define mk-sdk-repo-sources |
Raphael Moll | ea40d2f | 2014-04-24 19:13:47 -0700 | [diff] [blame] | 100 | $(call sdk-repo-pkg-zip,$(2),$(3),$(4)): $(3) $(HOST_OUT)/development/sdk/source_source.properties |
Raphael Moll | da9eabd | 2011-09-28 11:18:34 -0700 | [diff] [blame] | 101 | @echo "Building SDK sources package" |
Raphael Moll | a85a93f | 2012-03-27 10:45:59 -0700 | [diff] [blame] | 102 | $(hide) $(TOPDIR)development/build/tools/mk_sources_zip.py --exec-zip \ |
Raphael Moll | 9ca69cf | 2013-02-12 13:48:39 -0800 | [diff] [blame] | 103 | $(HOST_OUT)/development/sdk/source_source.properties \ |
Raphael Moll | ea40d2f | 2014-04-24 19:13:47 -0700 | [diff] [blame] | 104 | $(call sdk-repo-pkg-zip,$(2),$(3),$(4)) \ |
Raphael Moll | 9ca69cf | 2013-02-12 13:48:39 -0800 | [diff] [blame] | 105 | $(TOPDIR). |
Raphael Moll | ea40d2f | 2014-04-24 19:13:47 -0700 | [diff] [blame] | 106 | $(call dist-for-goals, sdk_repo, $(call sdk-repo-pkg-zip,$(2),$(3),$(4))) |
| 107 | $(1) += $(4) $(2) \ |
| 108 | $(call sdk-repo-pkg-zip,$(2),$(3),$(4)):$(notdir $(call sdk-repo-pkg-zip,$(2),$(3),$(4))) |
Raphael Moll | da9eabd | 2011-09-28 11:18:34 -0700 | [diff] [blame] | 109 | endef |
Raphael | 2ff496b | 2011-02-15 16:08:36 -0800 | [diff] [blame] | 110 | |
Raphael | 4802378 | 2011-02-23 16:46:42 -0800 | [diff] [blame] | 111 | # ----------------------------------------------------------------- |
Raphael Moll | 9516dc5 | 2012-02-27 15:18:29 -0800 | [diff] [blame] | 112 | # Rules for main host sdk |
| 113 | |
| 114 | ifneq ($(filter sdk win_sdk,$(MAKECMDGOALS)),) |
| 115 | |
Raphael Moll | ea40d2f | 2014-04-24 19:13:47 -0700 | [diff] [blame] | 116 | # Similarly capture all sys-img.xml that are now split out of repository.xml |
| 117 | $(eval $(call mk-sdk-repo-pkg-3,SDK_SYSIMG_XML_ARGS,$(HOST_OS),$(MAIN_SDK_ZIP),system-images,system-images/*)) |
Raphael Moll | 9516dc5 | 2012-02-27 15:18:29 -0800 | [diff] [blame] | 118 | |
Ji-Hwan Lee | e3e3de0 | 2014-06-22 04:26:56 +0900 | [diff] [blame] | 119 | SDK_SYSIMG_DEPS += \ |
| 120 | $(call sdk-repo-pkg-zip,$(HOST_OS),$(MAIN_SDK_ZIP),system-images) \ |
| 121 | |
| 122 | # All these go in the main repository.xml |
Ji-Hwan Lee | 5cd3de1 | 2014-06-21 17:19:49 +0900 | [diff] [blame] | 123 | $(eval $(call mk-sdk-repo-pkg-2,SDK_REPO_XML_ARGS,$(HOST_OS),$(MAIN_SDK_ZIP),build-tools)) |
| 124 | $(eval $(call mk-sdk-repo-pkg-1,SDK_REPO_XML_ARGS,$(HOST_OS),$(MAIN_SDK_ZIP),platform-tools)) |
| 125 | $(eval $(call mk-sdk-repo-pkg-1,SDK_REPO_XML_ARGS,$(HOST_OS),$(MAIN_SDK_ZIP),docs)) |
| 126 | $(eval $(call mk-sdk-repo-pkg-2,SDK_REPO_XML_ARGS,$(HOST_OS),$(MAIN_SDK_ZIP),platforms)) |
| 127 | $(eval $(call mk-sdk-repo-pkg-2,SDK_REPO_XML_ARGS,$(HOST_OS),$(MAIN_SDK_ZIP),samples)) |
Ji-Hwan Lee | 5cd3de1 | 2014-06-21 17:19:49 +0900 | [diff] [blame] | 128 | $(eval $(call mk-sdk-repo-sources,SDK_REPO_XML_ARGS,$(HOST_OS),$(MAIN_SDK_ZIP),sources)) |
Raphael Moll | 9516dc5 | 2012-02-27 15:18:29 -0800 | [diff] [blame] | 129 | |
| 130 | SDK_REPO_DEPS += \ |
Raphael Moll | 9ca69cf | 2013-02-12 13:48:39 -0800 | [diff] [blame] | 131 | $(call sdk-repo-pkg-zip,$(HOST_OS),$(MAIN_SDK_ZIP),build-tools) \ |
| 132 | $(call sdk-repo-pkg-zip,$(HOST_OS),$(MAIN_SDK_ZIP),platform-tools) \ |
| 133 | $(call sdk-repo-pkg-zip,$(HOST_OS),$(MAIN_SDK_ZIP),docs) \ |
| 134 | $(call sdk-repo-pkg-zip,$(HOST_OS),$(MAIN_SDK_ZIP),platforms) \ |
| 135 | $(call sdk-repo-pkg-zip,$(HOST_OS),$(MAIN_SDK_ZIP),samples) \ |
Raphael Moll | 9ca69cf | 2013-02-12 13:48:39 -0800 | [diff] [blame] | 136 | $(call sdk-repo-pkg-zip,$(HOST_OS),$(MAIN_SDK_ZIP),sources) |
Raphael Moll | 9516dc5 | 2012-02-27 15:18:29 -0800 | [diff] [blame] | 137 | |
| 138 | endif |
| 139 | |
| 140 | # ----------------------------------------------------------------- |
Raphael | 2ff496b | 2011-02-15 16:08:36 -0800 | [diff] [blame] | 141 | # Rules for win_sdk |
| 142 | |
| 143 | ifneq ($(WIN_SDK_ZIP),) |
| 144 | |
| 145 | # docs, platforms and samples have nothing OS-dependent right now. |
Ji-Hwan Lee | 5cd3de1 | 2014-06-21 17:19:49 +0900 | [diff] [blame] | 146 | $(eval $(call mk-sdk-repo-pkg-2,SDK_REPO_XML_ARGS,windows,$(WIN_SDK_ZIP),build-tools)) |
| 147 | $(eval $(call mk-sdk-repo-pkg-1,SDK_REPO_XML_ARGS,windows,$(WIN_SDK_ZIP),platform-tools)) |
Raphael | 2ff496b | 2011-02-15 16:08:36 -0800 | [diff] [blame] | 148 | |
| 149 | SDK_REPO_DEPS += \ |
Raphael Moll | 9ca69cf | 2013-02-12 13:48:39 -0800 | [diff] [blame] | 150 | $(call sdk-repo-pkg-zip,windows,$(WIN_SDK_ZIP),build-tools) \ |
| 151 | $(call sdk-repo-pkg-zip,windows,$(WIN_SDK_ZIP),platform-tools) |
Raphael | 2ff496b | 2011-02-15 16:08:36 -0800 | [diff] [blame] | 152 | |
| 153 | endif |
| 154 | |
Raphael | 4802378 | 2011-02-23 16:46:42 -0800 | [diff] [blame] | 155 | # ----------------------------------------------------------------- |
Raphael Moll | 9516dc5 | 2012-02-27 15:18:29 -0800 | [diff] [blame] | 156 | # Pickup the most recent xml schema for repository and add-on |
Raphael | 2ff496b | 2011-02-15 16:08:36 -0800 | [diff] [blame] | 157 | |
Raphael Moll | 9516dc5 | 2012-02-27 15:18:29 -0800 | [diff] [blame] | 158 | SDK_REPO_XSD := \ |
Raphael Moll | bc7c8c5 | 2013-02-12 13:48:39 -0800 | [diff] [blame] | 159 | $(lastword \ |
| 160 | $(wildcard \ |
| 161 | $(TOPDIR)prebuilts/devtools/repository/sdk-repository-*.xsd \ |
| 162 | )) |
Raphael | 2ff496b | 2011-02-15 16:08:36 -0800 | [diff] [blame] | 163 | |
Raphael Moll | 9516dc5 | 2012-02-27 15:18:29 -0800 | [diff] [blame] | 164 | SDK_ADDON_XSD := \ |
Raphael Moll | bc7c8c5 | 2013-02-12 13:48:39 -0800 | [diff] [blame] | 165 | $(lastword \ |
| 166 | $(wildcard \ |
| 167 | $(TOPDIR)prebuilts/devtools/repository/sdk-addon-*.xsd \ |
| 168 | )) |
| 169 | |
Raphael Moll | ea40d2f | 2014-04-24 19:13:47 -0700 | [diff] [blame] | 170 | SDK_SYSIMG_XSD := \ |
| 171 | $(lastword \ |
| 172 | $(wildcard \ |
| 173 | $(TOPDIR)prebuilts/devtools/repository/sdk-sys-img-*.xsd \ |
| 174 | )) |
| 175 | |
Raphael | 2ff496b | 2011-02-15 16:08:36 -0800 | [diff] [blame] | 176 | |
Raphael | 4802378 | 2011-02-23 16:46:42 -0800 | [diff] [blame] | 177 | # ----------------------------------------------------------------- |
Raphael | 2ff496b | 2011-02-15 16:08:36 -0800 | [diff] [blame] | 178 | # Rules for sdk addon |
| 179 | |
bohu | 52e0bf3 | 2015-06-01 17:25:11 -0700 | [diff] [blame] | 180 | ifneq ($(filter sdk_addon,$(MAKECMDGOALS)),) |
Raphael | 2ff496b | 2011-02-15 16:08:36 -0800 | [diff] [blame] | 181 | ifneq ($(ADDON_SDK_ZIP),) |
| 182 | |
| 183 | # ADDON_SDK_ZIP is defined in build/core/tasks/sdk-addon.sh and is |
| 184 | # already packaged correctly. All we have to do is dist it with |
| 185 | # a different destination name. |
| 186 | |
Raphael | 4802378 | 2011-02-23 16:46:42 -0800 | [diff] [blame] | 187 | RENAMED_ADDON_ZIP := $(ADDON_SDK_ZIP):$(notdir $(call sdk-repo-pkg-zip,$(HOST_OS),$(ADDON_SDK_ZIP),addon)) |
| 188 | |
| 189 | $(call dist-for-goals, sdk_repo, $(RENAMED_ADDON_ZIP)) |
| 190 | |
| 191 | # Also generate the addon.xml using the latest schema and the renamed addon zip |
| 192 | |
| 193 | SDK_ADDON_XML := $(dir $(ADDON_SDK_ZIP))/addon.xml |
| 194 | |
Raphael | 4802378 | 2011-02-23 16:46:42 -0800 | [diff] [blame] | 195 | $(SDK_ADDON_XML): $(ADDON_SDK_ZIP) |
| 196 | $(hide) $(TOPDIR)development/build/tools/mk_sdk_repo_xml.sh \ |
Raphael Moll | 9ca69cf | 2013-02-12 13:48:39 -0800 | [diff] [blame] | 197 | $(SDK_ADDON_XML) $(SDK_ADDON_XSD) add-on $(HOST_OS) $(RENAMED_ADDON_ZIP) |
Raphael | 4802378 | 2011-02-23 16:46:42 -0800 | [diff] [blame] | 198 | |
| 199 | $(call dist-for-goals, sdk_repo, $(SDK_ADDON_XML)) |
Raphael | 2ff496b | 2011-02-15 16:08:36 -0800 | [diff] [blame] | 200 | |
| 201 | endif |
| 202 | |
Raphael Moll | fa090e2 | 2014-08-21 15:15:02 -0700 | [diff] [blame] | 203 | ifneq ($(ADDON_SDK_IMG_ZIP),) |
| 204 | |
| 205 | # Copy/rename the ADDON_SDK_IMG_ZIP file as an sdk-repo zip in the dist dir |
| 206 | |
| 207 | RENAMED_ADDON_IMG_ZIP := $(ADDON_SDK_IMG_ZIP):$(notdir $(call sdk-repo-pkg-zip,$(HOST_OS),$(ADDON_SDK_IMG_ZIP),system-images)) |
| 208 | |
| 209 | $(call dist-for-goals, sdk_repo, $(RENAMED_ADDON_IMG_ZIP)) |
| 210 | |
| 211 | # Generate the system-image XML for the addon sys-img |
| 212 | |
| 213 | SDK_ADDON_IMG_XML := $(dir $(ADDON_SDK_ZIP))/addon-sys-img.xml |
| 214 | |
| 215 | $(SDK_ADDON_IMG_XML): $(ADDON_SDK_IMG_ZIP) |
| 216 | $(hide) $(TOPDIR)development/build/tools/mk_sdk_repo_xml.sh \ |
| 217 | $(SDK_ADDON_IMG_XML) $(SDK_SYSIMG_XSD) system-image $(HOST_OS) $(RENAMED_ADDON_IMG_ZIP) |
| 218 | |
| 219 | $(call dist-for-goals, sdk_repo, $(SDK_ADDON_IMG_XML)) |
| 220 | |
| 221 | endif |
bohu | 52e0bf3 | 2015-06-01 17:25:11 -0700 | [diff] [blame] | 222 | endif |
Raphael Moll | fa090e2 | 2014-08-21 15:15:02 -0700 | [diff] [blame] | 223 | |
Raphael | 4802378 | 2011-02-23 16:46:42 -0800 | [diff] [blame] | 224 | # ----------------------------------------------------------------- |
| 225 | # Rules for the SDK Repository XML |
Raphael | 2ff496b | 2011-02-15 16:08:36 -0800 | [diff] [blame] | 226 | |
Raphael Moll | 26bcf6a | 2014-06-03 10:44:56 -0700 | [diff] [blame] | 227 | SDK_REPO_XML := $(MAIN_SDK_DIR)/repository.xml |
| 228 | SDK_EXTRAS_XML := $(MAIN_SDK_DIR)/repo-extras.xml |
| 229 | SDK_SYSIMG_XML := $(MAIN_SDK_DIR)/repo-sys-img.xml |
Raphael | 4802378 | 2011-02-23 16:46:42 -0800 | [diff] [blame] | 230 | |
| 231 | ifneq ($(SDK_REPO_XML_ARGS),) |
| 232 | |
Raphael | 4802378 | 2011-02-23 16:46:42 -0800 | [diff] [blame] | 233 | $(SDK_REPO_XML): $(SDK_REPO_DEPS) |
| 234 | $(hide) $(TOPDIR)development/build/tools/mk_sdk_repo_xml.sh \ |
Raphael Moll | 9ca69cf | 2013-02-12 13:48:39 -0800 | [diff] [blame] | 235 | $(SDK_REPO_XML) $(SDK_REPO_XSD) $(SDK_REPO_XML_ARGS) |
Raphael | 4802378 | 2011-02-23 16:46:42 -0800 | [diff] [blame] | 236 | |
| 237 | $(call dist-for-goals, sdk_repo, $(SDK_REPO_XML)) |
| 238 | |
| 239 | else |
| 240 | |
| 241 | $(SDK_REPO_XML): ; |
| 242 | |
| 243 | endif |
| 244 | |
Raphael Moll | 9516dc5 | 2012-02-27 15:18:29 -0800 | [diff] [blame] | 245 | |
| 246 | ifneq ($(SDK_EXTRAS_XML_ARGS),) |
| 247 | |
| 248 | $(SDK_EXTRAS_XML): $(SDK_EXTRAS_DEPS) |
| 249 | $(hide) $(TOPDIR)development/build/tools/mk_sdk_repo_xml.sh \ |
Raphael Moll | 9ca69cf | 2013-02-12 13:48:39 -0800 | [diff] [blame] | 250 | $(SDK_EXTRAS_XML) $(SDK_ADDON_XSD) $(SDK_EXTRAS_XML_ARGS) |
Raphael Moll | 9516dc5 | 2012-02-27 15:18:29 -0800 | [diff] [blame] | 251 | |
| 252 | $(call dist-for-goals, sdk_repo, $(SDK_EXTRAS_XML)) |
| 253 | |
| 254 | else |
| 255 | |
| 256 | $(SDK_EXTRAS_XML): ; |
| 257 | |
| 258 | endif |
| 259 | |
Raphael Moll | ea40d2f | 2014-04-24 19:13:47 -0700 | [diff] [blame] | 260 | |
| 261 | ifneq ($(SDK_SYSIMG_XML_ARGS),) |
| 262 | |
| 263 | $(SDK_SYSIMG_XML): $(SDK_SYSIMG_DEPS) |
| 264 | $(hide) $(TOPDIR)development/build/tools/mk_sdk_repo_xml.sh \ |
| 265 | $(SDK_SYSIMG_XML) $(SDK_SYSIMG_XSD) $(SDK_SYSIMG_XML_ARGS) |
| 266 | |
| 267 | $(call dist-for-goals, sdk_repo, $(SDK_SYSIMG_XML)) |
| 268 | |
| 269 | else |
| 270 | |
| 271 | $(SDK_SYSIMG_XML): ; |
| 272 | |
| 273 | endif |
| 274 | |
Raphael | 4802378 | 2011-02-23 16:46:42 -0800 | [diff] [blame] | 275 | # ----------------------------------------------------------------- |
| 276 | |
Raphael Moll | ea40d2f | 2014-04-24 19:13:47 -0700 | [diff] [blame] | 277 | sdk_repo: $(SDK_REPO_DEPS) $(SDK_REPO_XML) $(SDK_EXTRAS_XML) $(SDK_SYSIMG_XML) |
Raphael | 2ff496b | 2011-02-15 16:08:36 -0800 | [diff] [blame] | 278 | @echo "Packing of SDK repository done" |
| 279 | |