Index Repo for Packs Produced by Renesas for use with cpackget provided by Open-CMSIS-Toolbox. See GitHub-hosted Packs in the Open-CMSIS-Pack specification
- Create a folder called
cpackget-test. - In powershell run the init command with a new pack root folder
.\cpackget.exe init --pack-root <path-to>\cpackget-test https://github.com/renesas/indexrepo/raw/main/renesas.pidx -v
When successful, you should see the following as a part of the output.
D: Downloading https://github.com/renesas/indexrepo/raw/main/renesas.pidx to <path-to>\cpackget-test
...
D: Registring "Renesas.Button.6.4.0"
D: Copying file from "<path-to>\cpackget-test\.Download\renesas.pidx" to "<path-to>\cpackget-test\.Web\index.pidx"
...
- List installed packs using the command
.\cpackget.exe list -p -R <path-to>\cpackget-test
When successful, you should see the following as a part of the output.
I: Listing packs from the public index
...
I: Renesas::Button@6.4.0
...
- Add desired Open-CMSIS-Pack packages using the command
.\cpackget.exe add Renesas::Button@6.4.0 -R <path-to>\cpackget-test
When successful, you should see the following as a part of the output.
...
I: Adding pack "Renesas::Button@6.4.0"
I: Downloading Renesas.Button.6.4.0.pack...
...
As noted on the README of cpackget, cpackget will determine the pack root folder based on the Operating System and user environment.
This "default mode" enables a fast bootstrapping process, as cpackget will detect the presence of the public index file .Web/index.pidx in the default pack root and if it's missing, automatically populates/initializes it using the current index reference. This is the equivalent of running cpackget init https://www.keil.com/pack/index.pidx.
Finally, to change the pack root folder use command below, or it's equivalent for your environment.
$env:CMSIS_PACK_ROOT = path\to\pack-root