modules: add module_tar_opt to allow different strip options

Signed-off-by: Trammell hudson <hudson@trmm.net>
This commit is contained in:
Trammell hudson 2019-12-03 10:48:10 +01:00
parent 28740017d8
commit 027ae39abe
No known key found for this signature in database
GPG Key ID: 0F948052DDECBE68
2 changed files with 2 additions and 1 deletions

View File

@ -265,7 +265,7 @@ define define_module =
# that the files are all present
$(build)/$($1_base_dir)/.canary: $(packages)/.$1-$($1_version)_verify
mkdir -p "$$(dir $$@)"
tar -xf "$(packages)/$($1_tar)" --strip 1 -C "$$(dir $$@)"
tar -xf "$(packages)/$($1_tar)" $(or $($1_tar_opt),--strip 1) -C "$$(dir $$@)"
if [ -r patches/$1-$($1_version).patch ]; then \
( cd $$(dir $$@) ; patch -p1 ) \
< patches/$1-$($1_version).patch \

View File

@ -108,6 +108,7 @@ modules-y += coreboot-blobs
coreboot-blobs_version := $(coreboot_version)
coreboot-blobs_tar := coreboot-blobs-$(coreboot-blobs_version).tar.xz
coreboot-blobs_tar_opt := --strip 3
coreboot-blobs_dir := coreboot-$(coreboot-blobs_version)/3rdparty/blobs
coreboot-blobs_url := https://www.coreboot.org/releases/$(coreboot-blobs_tar)
coreboot-blobs_hash := 18aa509ae3af005a05d7b1e0b0246dc640249c14fc828f5144b6fd20bb10e295