forked from projectceladon/vendor-intel-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vendorsetup.sh
26 lines (21 loc) · 905 Bytes
/
vendorsetup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# save the official lunch command to aosp_lunch() and source it
tmp_lunch=`mktemp`
sed '/ lunch()/,/^}/!d' build/envsetup.sh | sed 's/function lunch/function aosp_lunch/' > ${tmp_lunch}
source ${tmp_lunch}
rm -f ${tmp_lunch}
# Override lunch function to filter lunch targets
function lunch
{
aosp_lunch $*
rm -rf Android.mk
vendor/intel/utils/autopatch.sh
}
# Check that mixins are in sync with product configuration
if [ -f device/intel/mixins/mixin-update ]; then
if ! device/intel/mixins/mixin-update --dry-run; then
echo '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'
echo '+ Product configuration and mixins are out of sync +'
echo '+ PLEASE RE-RUN device/intel/mixins/mixin-update and commit the result! +'
echo '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'
fi
fi