summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/android/platform_version.mk')
-rw-r--r--jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/android/platform_version.mk28
1 files changed, 14 insertions, 14 deletions
diff --git a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/android/platform_version.mk b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/android/platform_version.mk
index f2a5600..b99d976 100644
--- a/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/android/platform_version.mk
+++ b/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/common/android/platform_version.mk
@@ -41,25 +41,25 @@
41# If there's no build.prop file in the expected location, bail out. Tell the 41# If there's no build.prop file in the expected location, bail out. Tell the
42# user which file we were trying to read in case TARGET_DEVICE was not set. 42# user which file we were trying to read in case TARGET_DEVICE was not set.
43# 43#
44BUILD_PROP := $(TARGET_ROOT)/product/$(TARGET_DEVICE)/system/build.prop 44#BUILD_PROP := $(TARGET_ROOT)/product/$(TARGET_DEVICE)/system/build.prop
45ifeq ($(wildcard $(BUILD_PROP)),) 45#ifeq ($(wildcard $(BUILD_PROP)),)
46$(warning *** Could not determine Android version. Did you set ANDROID_ROOT,\ 46#$(warning *** Could not determine Android version. Did you set ANDROID_ROOT,\
47OUT_DIR and TARGET_DEVICE in your environment correctly?) 47#OUT_DIR and TARGET_DEVICE in your environment correctly?)
48$(error Error reading $(BUILD_PROP)) 48#$(error Error reading $(BUILD_PROP))
49endif 49#endif
50 50
51# Extract version.release and version.codename from the build.prop file. 51# Extract version.release and version.codename from the build.prop file.
52# If either of the values aren't in the build.prop, the Make variables won't 52# If either of the values aren't in the build.prop, the Make variables won't
53# be defined, and fallback handling will take place. 53# be defined, and fallback handling will take place.
54# 54#
55define newline 55#define newline
56 56#
57 57#
58endef 58#endef
59$(eval $(subst #,$(newline),$(shell cat $(BUILD_PROP) | \ 59#$(eval $(subst #,$(newline),$(shell cat $(BUILD_PROP) | \
60 grep '^ro.build.version.release=\|^ro.build.version.codename=' | \ 60# grep '^ro.build.version.release=\|^ro.build.version.codename=' | \
61 sed -e 's,ro.build.version.release=,PLATFORM_RELEASE=,' \ 61# sed -e 's,ro.build.version.release=,PLATFORM_RELEASE=,' \
62 -e 's,ro.build.version.codename=,PLATFORM_CODENAME=,' | tr '\n' '#'))) 62# -e 's,ro.build.version.codename=,PLATFORM_CODENAME=,' | tr '\n' '#')))
63 63
64define release-starts-with 64define release-starts-with
65$(shell echo $(PLATFORM_RELEASE) | grep -q ^$(1); \ 65$(shell echo $(PLATFORM_RELEASE) | grep -q ^$(1); \