summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/tests/support
diff options
context:
space:
mode:
authorStefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>2021-11-25 13:59:52 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-11-26 17:01:37 +0000
commite241d0e78cc2312d4c751421a0fcecc53624aabf (patch)
tree1df18fc7ac185a86a104bca9313a8145b65a4597 /bitbake/lib/bb/tests/support
parent8091ad4347ecbf14fcf4d1ee2d47b91670932cf8 (diff)
downloadpoky-e241d0e78cc2312d4c751421a0fcecc53624aabf.tar.gz
bitbake: fetch2: Add striplevel support to unpack
Add a parameter `striplevel` to the SRC_URI to strip NUMBER leading components (levels) from file names on extraction. For example, if the archive `archive.tar.gz` contains `some/file`, the SRC_URI `https://.../archive.tar.gz;subdir=other;striplevel=1` will extract `some/file` to `other/file`. This is useful to extract archives to a specified directory instead of the original root component of the archive. The feature is required for the npm support. The npm package contents should reside in a subfolder inside a npm archive (usually it is called package/). npm strips one directory layer when installing the package. (Bitbake rev: aa4926e5d9c92f33b4434e2da709ff0bf3049f5b) Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/tests/support')
0 files changed, 0 insertions, 0 deletions