diff options
author | Rashed Abdel-Tawab <rashed@linux.com> | 2016-10-01 20:33:00 -0400 |
---|---|---|
committer | Rashed Abdel-Tawab <rashed@linux.com> | 2016-10-04 16:02:09 -0400 |
commit | afa30d8c94e6fe7ce94e1899121040a5e22b6d3c (patch) | |
tree | 3929a97c00ebc1c7e0fab57a8e8061c7a929c10c /extract_utils.sh | |
parent | a6337344ff4b4e1136e08b96dc93ab490185ee71 (diff) |
extract_utils: Add ability to set custom vendor.mk name
In some circumstances we might want to set a custom vendor.mk
filename. If not set, then just default to the current device name
Change-Id: Icb59ebee67ce17b41ac613020685773efb01103d
Diffstat (limited to 'extract_utils.sh')
-rw-r--r-- | extract_utils.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/extract_utils.sh b/extract_utils.sh index a4197a5..771e6bf 100644 --- a/extract_utils.sh +++ b/extract_utils.sh @@ -48,6 +48,7 @@ trap cleanup EXIT INT TERM ERR # $3: CM root directory # $4: is common device - optional, default to false # $5: cleanup - optional, default to true +# $6: custom vendor makefile name - optional, default to false # # Must be called before any other functions can be used. This # sets up the internal state for a new vendor configuration. @@ -76,7 +77,12 @@ function setup_vendor() { mkdir -p "$CM_ROOT/$OUTDIR" fi - export PRODUCTMK="$CM_ROOT"/"$OUTDIR"/"$DEVICE"-vendor.mk + VNDNAME="$6" + if [ -z "$VNDNAME" ]; then + VNDNAME="$DEVICE" + fi + + export PRODUCTMK="$CM_ROOT"/"$OUTDIR"/"$VNDNAME"-vendor.mk export ANDROIDMK="$CM_ROOT"/"$OUTDIR"/Android.mk export BOARDMK="$CM_ROOT"/"$OUTDIR"/BoardConfigVendor.mk |