diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-09-19 14:24:55 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-09-19 15:55:58 +0200 |
commit | 9282ef9f41227231368e2c5cacc115702108fde1 (patch) | |
tree | 54c3c352ed05f151a3177345980f67eb85ac6dc3 /bin | |
parent | 1835596d3faff7a06cf6884c409f884eabe77285 (diff) | |
download | ptxdist-9282ef9f41227231368e2c5cacc115702108fde1.tar.gz ptxdist-9282ef9f41227231368e2c5cacc115702108fde1.tar.xz |
ptxdist: add package-info command
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ptxdist | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/ptxdist b/bin/ptxdist index f8d9a7270..af98896d6 100755 --- a/bin/ptxdist +++ b/bin/ptxdist @@ -972,6 +972,7 @@ Misc: use 'newpackage help' for a longer description nfsroot run a userspace NFS server and export the nfsroot gdb run cross gdb with configured sysroot etc. + package-info <package> print some basic information about the package print <var> print the contents of a variable, in the way it is known by "make" list-packages print a list of all selected packages @@ -1945,6 +1946,15 @@ EOF ptxd_make_log ptxd_make_nfsd exit ;; + package-info) + declare -a pkgs + + check_config && + check_deps && + pkgs=( "${@/#/${STATEDIR}/}" ) && + ptxd_make_log "${pkgs[@]/%/.${cmd}}" + exit + ;; print) if [ ${#} -eq 0 ]; then exit 1 |