createPackPublish.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <title>Publish a Pack</title>
  7. <title>CMSIS-Pack: Publish a Pack</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <link href="cmsis.css" rel="stylesheet" type="text/css" />
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <script type="text/javascript" src="printComponentTabs.js"></script>
  13. <link href="navtree.css" rel="stylesheet" type="text/css"/>
  14. <script type="text/javascript" src="resize.js"></script>
  15. <script type="text/javascript" src="navtree.js"></script>
  16. <script type="text/javascript">
  17. $(document).ready(initResizable);
  18. $(window).load(resizeHeight);
  19. </script>
  20. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  21. <script type="text/javascript" src="search/search.js"></script>
  22. <script type="text/javascript">
  23. $(document).ready(function() { searchBox.OnSelectItem(0); });
  24. </script>
  25. </head>
  26. <body>
  27. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  28. <div id="titlearea">
  29. <table cellspacing="0" cellpadding="0">
  30. <tbody>
  31. <tr style="height: 46px;">
  32. <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td>
  33. <td style="padding-left: 0.5em;">
  34. <div id="projectname">CMSIS-Pack
  35. &#160;<span id="projectnumber">Version 1.6.3</span>
  36. </div>
  37. <div id="projectbrief">Delivery Mechanism for Software Packs</div>
  38. </td>
  39. </tr>
  40. </tbody>
  41. </table>
  42. </div>
  43. <!-- end header part -->
  44. <div id="CMSISnav" class="tabs1">
  45. <ul class="tablist">
  46. <script type="text/javascript">
  47. <!--
  48. writeComponentTabs.call(this);
  49. //-->
  50. </script>
  51. </ul>
  52. </div>
  53. <!-- Generated by Doxygen 1.8.6 -->
  54. <script type="text/javascript">
  55. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  56. </script>
  57. <div id="navrow1" class="tabs">
  58. <ul class="tablist">
  59. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  60. <li class="current"><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li>
  61. <li>
  62. <div id="MSearchBox" class="MSearchBoxInactive">
  63. <span class="left">
  64. <img id="MSearchSelect" src="search/mag_sel.png"
  65. onmouseover="return searchBox.OnSearchSelectShow()"
  66. onmouseout="return searchBox.OnSearchSelectHide()"
  67. alt=""/>
  68. <input type="text" id="MSearchField" value="Search" accesskey="S"
  69. onfocus="searchBox.OnSearchFieldFocus(true)"
  70. onblur="searchBox.OnSearchFieldFocus(false)"
  71. onkeyup="searchBox.OnSearchFieldChange(event)"/>
  72. </span><span class="right">
  73. <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
  74. </span>
  75. </div>
  76. </li>
  77. </ul>
  78. </div>
  79. </div><!-- top -->
  80. <div id="side-nav" class="ui-resizable side-nav-resizable">
  81. <div id="nav-tree">
  82. <div id="nav-tree-contents">
  83. <div id="nav-sync" class="sync"></div>
  84. </div>
  85. </div>
  86. <div id="splitbar" style="-moz-user-select:none;"
  87. class="ui-resizable-handle">
  88. </div>
  89. </div>
  90. <script type="text/javascript">
  91. $(document).ready(function(){initNavTree('createPackPublish.html','');});
  92. </script>
  93. <div id="doc-content">
  94. <!-- window showing the filter options -->
  95. <div id="MSearchSelectWindow"
  96. onmouseover="return searchBox.OnSearchSelectShow()"
  97. onmouseout="return searchBox.OnSearchSelectHide()"
  98. onkeydown="return searchBox.OnSearchSelectKey(event)">
  99. <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Pages</a></div>
  100. <!-- iframe showing the search results (closed by default) -->
  101. <div id="MSearchResultsWindow">
  102. <iframe src="javascript:void(0)" frameborder="0"
  103. name="MSearchResults" id="MSearchResults">
  104. </iframe>
  105. </div>
  106. <div class="header">
  107. <div class="headertitle">
  108. <div class="title">Publish a Pack </div> </div>
  109. </div><!--header-->
  110. <div class="contents">
  111. <div class="textblock"><p>There are multiple ways to distribute a software pack:</p>
  112. <h1><a class="anchor" id="cp_prerequisites"></a>
  113. Prerequisites</h1>
  114. <p>Before you start to distribute a software pack, you need to make sure that it does not contain errors. A good start is an error and warning free run of:</p>
  115. <ul>
  116. <li><code>gen_pack.bat</code> script from the <a class="el" href="cp_Packs.html#PackTutorials">Pack Tutorial</a></li>
  117. <li>or <a class="el" href="bash_script.html">Bash Script gen_pack.sh</a> that does not show any <a class="el" href="packChk.html">packChk</a> errors.</li>
  118. </ul>
  119. <p>Also you should perform an XML schema check, for example using the MDK Pack Installer.</p>
  120. <ul>
  121. <li>Right-click on the pack version number and select <b>Schema Check</b>: <br/>
  122. <div class="image">
  123. <img src="schema_check.png" alt="schema_check.png"/>
  124. </div>
  125. </li>
  126. <li>The <b>Output</b> window shows the result. If errors are reported, please make sure to fix them before continuing.<br/>
  127. <div class="image">
  128. <img src="schema_check_output.png" alt="schema_check_output.png"/>
  129. </div>
  130. </li>
  131. </ul>
  132. <dl class="section note"><dt>Note</dt><dd>This is important when the pack should published using a <a class="el" href="createPackPublish.html#cp_KeilComPack">pack index service</a>. The pack importer will ignore all <b>&lt;vendor&gt;</b>.<b>&lt;name&gt;</b>.pdsc files that do fail when checking against the current PACK.xsd schema file and thus your pack will cannot be downloaded.</dd></dl>
  133. <h1><a class="anchor" id="cp_LocalInstallation"></a>
  134. Local Installation</h1>
  135. <p>The easiest way to distribute a software pack is attaching it to an email or using other means of electronic distribution (for example using a company internal file server). The installation of a software pack is usually triggered by double-clicking the Pack file. The pack management tool is invoked and the Pack is installed on the local machine. After installation, the Pack will be shown in the list of installed packs (tool dependent). If the PDSC file does not contain a valid <code>&lt;url&gt;</code> element, a manual installation is required to update a software pack. Otherwise, pack management tools can check for updates on the server or the local machine that is specified by <code>&lt;url&gt;</code>.</p>
  136. <div class="image">
  137. <img src="LocalInstallation.png" alt="LocalInstallation.png"/>
  138. <div class="caption">
  139. Local installation and update from URL</div></div>
  140. <dl class="section note"><dt>Note</dt><dd>For automatic updates on a local machine, specify the <code>&lt;url&gt;</code> using the <a href="https://en.wikipedia.org/wiki/File_URI_scheme" target="_blank">file URI scheme</a>.</dd></dl>
  141. <h1><a class="anchor" id="cp_WebDownload"></a>
  142. Web Download</h1>
  143. <p>Any web server can be used to host a software pack (specified by the <code>&lt;url&gt;</code> element in the PDSC file). At this location, the following files should be present:</p>
  144. <ol type="1">
  145. <li><b>&lt;vendor&gt;</b>.<b>&lt;name&gt;</b>.pdsc [required]: pack description file.</li>
  146. <li><b>&lt;vendor&gt;</b>.<b>&lt;name&gt;</b>.<b>&lt;version&gt;</b>.pack [required]: pack file where <b>&lt;version&gt;</b> refers to the latest version specified in the PDSC file.</li>
  147. <li><b>&lt;vendor&gt;</b>.pidx [optional]: list with all packs hosted and maintained by the vendor (refer to <a class="el" href="packIndexFile.html#pidxFile">Package Index File (pidx)</a>)</li>
  148. </ol>
  149. <p>All previous versions listed in the <b>&lt;releases&gt;</b> section of the PDSC file should be present at the <code>&lt;url&gt;</code> as well. This allows users to revert updates or to download a previous version of a software pack (for maintenance purposes).</p>
  150. <p>The <b>&lt;vendor&gt;</b>.pidx allows you to publish multiple packs to a <a class="el" href="createPackPublish.html#cp_KeilComPack">Pack Index Service</a>.</p>
  151. <h1><a class="anchor" id="cp_KeilComPack"></a>
  152. Publish with Pack Index Service</h1>
  153. <p>Several companies maintain a Pack Index Server to make packs available within tools or web pages. Once you are ready to deploy packs via such services, you may send the URL of the <b>&lt;vendor&gt;</b>.<b>&lt;name&gt;</b>.pdsc or <b>&lt;vendor&gt;</b>.pidx file to the following email addresses:</p>
  154. <ul>
  155. <li>for Arm and Keil tools and web pages email to <a href="#" onclick="location.href='mai'+'lto:'+'CMS'+'IS'+'@ar'+'m.'+'com'; return false;">CMSIS@arm.com</a></li>
  156. <li>for IAR tools email to <a href="#" onclick="location.href='mai'+'lto:'+'CMS'+'IS'+'@ar'+'m.'+'com'; return false;">CMSIS@iar.com</a></li>
  157. </ul>
  158. <p>The *.pidx file allows you to change pack versions and add packs to your distribution list. All packs that are referenced in the .pidx file will be processed and validated. <b>Only packs that pass the <a class="el" href="packChk.html">packChk</a> and schema check</b> will become available via web pages and development tools.</p>
  159. <p>For example, Arm uses the pack information to generate a list of available software packs. The following content will be processed in order to generate the web site (<a href="https://developer.arm.com/embedded/cmsis/cmsis-packs" target="_blank">https://developer.arm.com/embedded/cmsis/cmsis-packs</a>):</p>
  160. <ul>
  161. <li>Version</li>
  162. <li>Release Notes</li>
  163. <li>Devices</li>
  164. <li>Boards</li>
  165. <li>Examples</li>
  166. <li>Software Components</li>
  167. </ul>
  168. <p>Please allow up to seven working days for the process. If the files contain any errors, you will be notified. Otherwise, the information is added to the index server.</p>
  169. <h1><a class="anchor" id="cp_PackRehosting"></a>
  170. Rehost pack to different URL</h1>
  171. <p>Sometimes, it is necessary to rehost a pack (moving a pack from one URL to another). This implies that you need to change the &lt;url&gt; element in the PDSC file. To ensure that the pack is found by a <a class="el" href="createPackPublish.html#cp_KeilComPack">Pack Index Service</a>, follow this procedure:</p>
  172. <ul>
  173. <li>Create a new version of the pack: update the <b>&lt;vendor&gt;</b>.<b>&lt;name&gt;</b>.pdsc file with the new URL ("url_B") and make sure to increment the version</li>
  174. <li>Place a copy of this latest <b>&lt;vendor&gt;</b>.<b>&lt;name&gt;</b>.pdsc at url_B and url_A (the original URL).</li>
  175. <li>Place a copy of the new <b>&lt;vendor&gt;</b>.<b>&lt;name&gt;</b>.<b>&lt;version&gt;</b>.pack in url_B (only)</li>
  176. <li>Copy all packs from url_A to url_B</li>
  177. <li>Inform Arm about the new URL by either<ul>
  178. <li>update the <b>&lt;vendor&gt;</b>.pidx with url_B for this pack <em>or</em> </li>
  179. <li>email a link to the PDSC file if your company does not maintain a <b>&lt;vendor&gt;</b>.pidx</li>
  180. </ul>
  181. </li>
  182. </ul>
  183. <dl class="section note"><dt>Note</dt><dd><ul>
  184. <li>PDSC and pack versions need to be accessible from the same new URL</li>
  185. <li>You must keep url_A alive as is. But there is no need to maintain/update url_A going forward otherwise users with an old PDSC file will no longer find the pack versions.</li>
  186. </ul>
  187. </dd></dl>
  188. <h1><a class="anchor" id="cp_HowWebDownloadWorks"></a>
  189. Web Infra-structure</h1>
  190. <p>Tool, software, or silicon vendors may provide a web infra-structure that lists packs that are available from multiple vendors. Companies like Arm or IAR provide a <a class="el" href="createPackPublish.html#cp_KeilComPack">Pack Index Service</a> that uses either a <b>&lt;vendor&gt;</b>.<b>&lt;name&gt;</b>.pdsc or a <b>&lt;vendor&gt;</b>.pidx file to obtain the latest pack versions. This information is used to make the packs available in the development tools (via a <b><a href="https://www.keil.com/mdk5/packinstaller/">Pack Installer</a></b>) and/or to publish information on certain web pages, for example a <b><a href="https://developer.arm.com/embedded/cmsis/cmsis-packs/devices" target="_blank">device list</a></b>.</p>
  191. <p>The following diagram explains how these services are working behind the scene.</p>
  192. <div class="image">
  193. <img src="WebInstallation.png" alt="WebInstallation.png"/>
  194. <div class="caption">
  195. Web infra-structure for pack hosting services</div></div>
  196. <dl class="section note"><dt>Note</dt><dd><ul>
  197. <li>The &lt;url&gt; element in <b>&lt;vendor&gt;</b>.<b>&lt;name&gt;</b>.pdsc is the location where these services check for new packs. At this &lt;url&gt; location, an (unversioned) <b>&lt;vendor&gt;</b>.<b>&lt;name&gt;</b>.pdsc file and a (versioned) <b>&lt;vendor&gt;</b>.<b>&lt;name&gt;</b>.<b>&lt;version&gt;</b>.pack must be available.</li>
  198. <li>The &lt;url&gt; is the page where the pack is downloaded. This means, if the URL or the PDSC/Pack files become unavailable, users are unable to download the pack.</li>
  199. <li>When a new PDSC/Pack file is available, it is important to update the version number, otherwise the <a class="el" href="createPackPublish.html#cp_KeilComPack">Pack Index Service</a> will not recognize that the pack has changed.</li>
  200. <li>Previous versions of a (versioned) <b>&lt;vendor&gt;</b>.<b>&lt;name&gt;</b>.<b>&lt;version&gt;</b>.pack should remain available.</li>
  201. </ul>
  202. </dd></dl>
  203. <p>Depending on the implementation, the web infra-structure may provide index files with additional information:</p>
  204. <ul>
  205. <li><b>&lt;vendor&gt;</b>.vidx file (<a class="el" href="packIndexFile.html#vidxFile">Vendor Index File (vidx)</a>) lists pack index locations known by the service. Arm scans these locations every 24 hours to import new packs. If your location is not listed</li>
  206. <li><a href="https://www.keil.com/pack/index.pidx">https://www.keil.com/pack/index.pidx</a> is a list of all packs that are correctly imported. If a pack does not appear, the pack did not pass the <a class="el" href="createPackPublish.html#cp_prerequisites">validation process</a>. </li>
  207. </ul>
  208. </div></div><!-- contents -->
  209. </div><!-- doc-content -->
  210. <!-- start footer part -->
  211. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  212. <ul>
  213. <li class="footer">Generated on Thu Apr 9 2020 15:49:54 for CMSIS-Pack Version 1.6.3 by Arm Ltd. All rights reserved.
  214. <!--
  215. <a href="http://www.doxygen.org/index.html">
  216. <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6
  217. -->
  218. </li>
  219. </ul>
  220. </div>
  221. </body>
  222. </html>