Get version info from Makefile

This commit is contained in:
topjohnwu 2017-10-20 22:58:36 +08:00
parent c58dcf0d32
commit 15145084b9
2 changed files with 4 additions and 6 deletions

View File

@ -1,8 +1,3 @@
LOCAL_PATH := $(call my-dir)
VERSION = 1
PATCHLEVEL = 27
SUBLEVEL = 2
EXTRAVERSION = -topjohnwu
BB_VER = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)

View File

@ -171,7 +171,10 @@ if $GENERATE; then
echo "LOCAL_SRC_FILES := \\" > Android_src.mk
parse_kbuild | sort -u >> Android_src.mk
cp ../busybox.mk Android.mk 2>/dev/null
# Build Android.mk
echo 'LOCAL_PATH := $(call my-dir)' > Android.mk
cat Makefile | head -n 3 >> Android.mk
cat ../busybox.mk >> Android.mk
if $COMMIT; then
git add -f include