Simplify rootfs creation script by using existing env variable

This commit is contained in:
Simon Fels 2016-08-14 15:53:01 +02:00
commit 4e7d48ea4f

View file

@ -1,10 +1,9 @@
#!/bin/bash #!/bin/bash
TOPDIR=`echo $ANDROID_BUILD_TOP` TOPDIR=`echo $ANDROID_BUILD_TOP`
PRODUCT_NAME=generic_arm64 OUTDIR=`echo $ANDROID_PRODUCT_OUT`
OUTDIR=out/target/product/$PRODUCT_NAME
CURDIR=`pwd` CURDIR=`pwd`
TARGET=anbox-rootfs TARGET=rootfs
if [ -d $TARGET ] ; then if [ -d $TARGET ] ; then
rm -rf $TARGET rm -rf $TARGET