]> Git Repo - buildroot-mgba.git/commit - Makefile
core: add per-package and per-filesystem show-info
authorYann E. MORIN <[email protected]>
Mon, 15 Apr 2019 19:47:32 +0000 (21:47 +0200)
committerArnout Vandecappelle (Essensium/Mind) <[email protected]>
Mon, 15 Apr 2019 21:47:22 +0000 (23:47 +0200)
commit5abb88218ecbb517b6a9f64a1f8b0a36fb9814aa
treeba387cdac3a13635c6f542c683f0732657b48f31
parentf8177b78132698b39ae3c49a0ee2f1d6828f8324
core: add per-package and per-filesystem show-info

Sometimes, it is need to quickly get the metadata of a subset of
packages, without resorting to a full-blown JSON query.

Introduce a new per-package (and per-filesystem) foo-show-info rule,
that otputs a per-entity valid JSON blob.

Note that calling it for multiple packages and.or filesystems at once
will not generate a valid JSON blob, as there would be no separator
between the JSON elements:

    $ make {foo,bar}-show-info
    { "foo": { foo stuff } }
    { "bar": { bar stuff } }

However, jq is able to absorb this, with its slurping ability, which
generates an array (ellipsed and manualy reformated for readability):

    $ make {foo,bar}-show-info |jq -s . -
    [
      { "foo": { foo stuff } },
      { "bar": { bar stuff } }
    ]

Signed-off-by: "Yann E. MORIN" <[email protected]>
Cc: Thomas Petazzoni <[email protected]>
Cc: Thomas De Schampheleire <[email protected]>
Cc: Arnout Vandecappelle <[email protected]>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <[email protected]>
Makefile
fs/common.mk
package/pkg-generic.mk
This page took 0.036103 seconds and 4 git commands to generate.