Make sure Android package is constructed from top build dir
This commit is contained in:
parent
05d3563fa0
commit
709807984f
1 changed files with 8 additions and 1 deletions
|
|
@ -1,8 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
TOPDIR=`pwd`
|
TOPDIR=`echo $ANDROID_BUILD_TOP`
|
||||||
PRODUCT_NAME=generic_arm64
|
PRODUCT_NAME=generic_arm64
|
||||||
OUTDIR=out/target/product/$PRODUCT_NAME
|
OUTDIR=out/target/product/$PRODUCT_NAME
|
||||||
|
CURDIR=`pwd`
|
||||||
|
|
||||||
if [ -d rootfs ] ; then
|
if [ -d rootfs ] ; then
|
||||||
rm -rf rootfs
|
rm -rf rootfs
|
||||||
|
|
@ -23,6 +24,12 @@ if [ ! -e rootfs/filesystem_config.txt ] ; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "$TOPDIR" ] || [ "$CURDIR" != "$TOPDIR" ] ; then
|
||||||
|
echo "ERROR: You have to execute this script from the ANDROID_BUILD_TOP"
|
||||||
|
echo "ERROR: directory."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
cp anbox-init.sh rootfs/
|
cp anbox-init.sh rootfs/
|
||||||
chmod +x rootfs/anbox-init.sh
|
chmod +x rootfs/anbox-init.sh
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue