diff options
author | Diogo Ferreira <defer@cyanogenmod.com> | 2011-10-13 17:39:00 +0100 |
---|---|---|
committer | Diogo Ferreira <defer@cyanogenmod.com> | 2011-10-14 15:32:49 +0100 |
commit | 11d5cdb86f35335d52d57f74732e3bdd294d8501 (patch) | |
tree | f875a08c9de0c902b0ec0bdb7dde0938ff312538 /products/cyanogen_p990.mk | |
parent | d0cb8772058f50c70c8459c02d40b2b2e7bc2b3f (diff) | |
download | vendor_replicant-11d5cdb86f35335d52d57f74732e3bdd294d8501.zip vendor_replicant-11d5cdb86f35335d52d57f74732e3bdd294d8501.tar.gz vendor_replicant-11d5cdb86f35335d52d57f74732e3bdd294d8501.tar.bz2 |
vendor: Externalize common version and release names
We have been using a system where each vendor makefile needed to be
updated for each release. This leads to both redundancy and
inconsistency across devices. This patch externalizes version code to
the common_versions.mk.
As we all know CyanogenMod versioning works as such:
MAJOR.MINOR.MAINTENACE.DEVICE_SPECIFIC (i.e. 7.1.0.1)
common_versions.mk now contains the first three in the form of the
following variables: PRODUCT_VERSION_MAJOR, PRODUCT_VERSION_MINOR,
PRODUCT_VERSION_MAINTENANCE.
Additionally, each device makefile contains two additional flags
which control both the release name (the name that appears in the
generated zip) and the device-specific version (empty by default,
to be bumped on a per device basis), example:
PRODUCT_RELEASE_NAME := XperiaArc-LT15i
PRODUCT_VERSION_DEVICE_SPECIFIC := .1
Change-Id: I15d18e27b89ea00109a61cb66e3bffbb061a2ed4
Diffstat (limited to 'products/cyanogen_p990.mk')
-rw-r--r-- | products/cyanogen_p990.mk | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/products/cyanogen_p990.mk b/products/cyanogen_p990.mk index 0d91eb6..e4d32c1 100644 --- a/products/cyanogen_p990.mk +++ b/products/cyanogen_p990.mk @@ -15,26 +15,15 @@ PRODUCT_BRAND := lge PRODUCT_DEVICE := p990 PRODUCT_MODEL := Optimus 2X PRODUCT_MANUFACTURER := LGE -PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=lge_star BUILD_ID=FRG83G BUILD_DISPLAY_ID=GWK74 BUILD_FINGERPRINT=lge/lge_star/p990/p990:2.2.2/FRG83G/lgp990-V10b.2ED2ADCFFC:user/release-keys PRIVATE_BUILD_DESC="star-user 2.2.2 FRG83G 2ED2ADCFFC release-keys" +PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=lge_star BUILD_ID=FRG83G BUILD_FINGERPRINT=lge/lge_star/p990/p990:2.2.2/FRG83G/lgp990-V10b.2ED2ADCFFC:user/release-keys PRIVATE_BUILD_DESC="star-user 2.2.2 FRG83G 2ED2ADCFFC release-keys" # Extra Star overlay PRODUCT_PACKAGE_OVERLAYS += vendor/cyanogen/overlay/star -# -# Set ro.modversion -# -ifdef CYANOGEN_NIGHTLY - PRODUCT_PROPERTY_OVERRIDES += \ - ro.modversion=CyanogenMod-7-$(shell date +%m%d%Y)-NIGHTLY-Optimus2X -else - ifdef CYANOGEN_RELEASE - PRODUCT_PROPERTY_OVERRIDES += \ - ro.modversion=CyanogenMod-7.1.0-Optimus2X - else - PRODUCT_PROPERTY_OVERRIDES += \ - ro.modversion=CyanogenMod-7.1.0-Optimus2X-KANG - endif -endif +# Release name and versioning +PRODUCT_RELEASE_NAME := Optimus2X +PRODUCT_VERSION_DEVICE_SPECIFIC := +-include vendor/cyanogen/products/common_versions.mk # # Copy prebuilt files |