@ -48,6 +48,7 @@ trap cleanup EXIT INT TERM ERR
# $3: CM root directory
# $3: CM root directory
# $4: is common device - optional, default to false
# $4: is common device - optional, default to false
# $5: cleanup - optional, default to true
# $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
# Must be called before any other functions can be used. This
# sets up the internal state for a new vendor configuration.
# sets up the internal state for a new vendor configuration.
@ -76,7 +77,12 @@ function setup_vendor() {
mkdir -p " $CM_ROOT / $OUTDIR "
mkdir -p " $CM_ROOT / $OUTDIR "
fi
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 ANDROIDMK = " $CM_ROOT " /" $OUTDIR " /Android.mk
export BOARDMK = " $CM_ROOT " /" $OUTDIR " /BoardConfigVendor.mk
export BOARDMK = " $CM_ROOT " /" $OUTDIR " /BoardConfigVendor.mk