Adding a workaround for read-only Enum.java during build

This commit is contained in:
Vasily Litvinov 2014-02-26 03:24:10 +04:00
parent 4184c8313a
commit a2ff617f1e

View File

@ -1593,6 +1593,10 @@ $(build)/android.dep: $(luni-javas) $(libdvm-javas) $(crypto-javas) \
@mkdir -p $(build)/android-src/libexpat
cp $(android)/external/fdlibm/fdlibm.h $(build)/android-src/external/fdlibm/
cp $(android)/external/expat/lib/expat*.h $(build)/android-src/libexpat/
if [ -a $(build)/android-src/java/lang/Enum.java ] ; \
then \
chmod +w $(build)/android-src/java/lang/Enum.java ; \
fi;
cp -a $(luni-java)/* $(libdvm-java)/* $(crypto-java)/* $(dalvik-java)/* \
$(xml-java)/* $(build)/android-src/
sed -i -e 's/return ordinal - o.ordinal;/return ordinal - o.ordinal();/' \