summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-09-19 14:24:55 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-09-19 15:55:58 +0200
commit9282ef9f41227231368e2c5cacc115702108fde1 (patch)
tree54c3c352ed05f151a3177345980f67eb85ac6dc3 /bin
parent1835596d3faff7a06cf6884c409f884eabe77285 (diff)
downloadptxdist-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-xbin/ptxdist10
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