The xPack eXtensible Component Definition Language framework
Last modified on Mon Feb 6 16:18:36 2017 UTC.
Contents |
This chapter contains reference information for the XCDL / xPack command line applications.
TODO: add/update content
The xpack
command is the XCDL package manager, equivalent to npm
.
For reference, see npm.
Similar to npm access
.
Similar to npm build
, but it might have different semantics.
xpack build [--target <name>] [--toolchain <name>] [--profile <name>] -- ...
xpack build --test <name> ... [--target <name>] [--toolchain <name>] [--profile <name>] -- ...
xpack build --tests -- ...
Options:
--target <name>
: the target name, like stm32f4discovery
; if missing, the package default target is used;--toolchain <name>
: the toolchain name, like gcc
, clang
; if missing, the package default toolchain or the target default toolchain is used;--profile <name>
: the profile name, like debug
, release
; if missing, debug
is used--test <name> ...
: the list of test names--tests
: build all tests, for all targets, toolchains and profilesThe result of the build is a sub-folder under build
, like:
build/target-toolchain-profile
, for application builds;build/test-name-target-toolchain-profile
, for tests.Similar to npm cache
.
Similar to npm completion
.
Similar to npm config
.
Similar to npm deprecate
.
Similar to npm dist-tag
.
Similar to npm init
.
Similar to npm install
.
Similar to npm login
.
Options:
--dep <url>
: force a specific dependency that will override the package dependencies.Similar to npm logout
.
Similar to npm ls
.
Similar to npm owner
.
Similar to npm pack
.
Similar to npm ping
.
Similar to npm publish
.
Similar to npm run-script
.
Run scripts, similarly to npm run-script name
. It should allow to pass arguments npm run-script name -- 1 2 3
and possibly use configs.
Inspired from How to Use npm as a Build Tool.
Warning: running scripts on Windows requires attention.
Similar to npm search
.
Similar to npm star
.
Similar to npm stars
.
Manage targets.
xpack target <name>
xpack target
Run a specific test, or all tests.
xpack test <name> [--target <name>] [--toolchain <name>] [--profile <name>]
xpack test
Manage toolchains.
TODO
Similar to npm uninstall
.
Similar to npm unpublish
.
Similar to npm update
.
Similar to npm unstar
.
Similar to npm version
.
Similar to npm whoami
.
Commands to manipulate the XCDL metadata.
TODO: define.
Possibly a more generic version of xpack build
, if XCDL can be extended with features specific to cmake/autotools/etc.
Perform a sequence of tasks to make something, similar to make
.
This group of commands are currently used to generate the files used by GNU ARM Eclipse QEMU.
XSVD files are the XCDL equivalent of CMSIS SVD files, but in JSON instead of XML.
Convert a CMSIS SVD file to XSVD.
Modify an XSVD file by adding definitions from a patch file.
Generate source code for QEMU peripherals.