summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2015-12-21 15:49:06 +0100
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2015-12-21 15:49:06 +0100
commit71ccf3f90ed5171dc9f98d0bfd7222e621941356 (patch)
treeab427bb33e3c0941b2ee15077bfe9bbef3daed46
parente616dce0a79cb63b571e6f90c757f8a94443a843 (diff)
downloadvendor_replicant-71ccf3f90ed5171dc9f98d0bfd7222e621941356.zip
vendor_replicant-71ccf3f90ed5171dc9f98d0bfd7222e621941356.tar.gz
vendor_replicant-71ccf3f90ed5171dc9f98d0bfd7222e621941356.tar.bz2
switch to simpler naming scheme for Replicant
add SoftwareGl settings always build Superuser Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
-rw-r--r--config/common.mk86
-rw-r--r--overlay/softwaregl/packages/apps/Trebuchet/res/xml/default_workspace.xml122
2 files changed, 19 insertions, 189 deletions
diff --git a/config/common.mk b/config/common.mk
index c75d252..7584944 100644
--- a/config/common.mk
+++ b/config/common.mk
@@ -223,90 +223,42 @@ PRODUCT_PROPERTY_OVERRIDES += \
ifneq ($(TARGET_BUILD_VARIANT),user)
PRODUCT_PACKAGES += \
procmem \
- procrank \
- su
+ procrank
endif
+# Superuser
+PRODUCT_PACKAGES += \
+ su
+
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.root_access=0
PRODUCT_PACKAGE_OVERLAYS += vendor/replicant/overlay/common
-PRODUCT_VERSION_MAJOR = 13
-PRODUCT_VERSION_MINOR = 0
-PRODUCT_VERSION_MAINTENANCE = 0-RC0
-
-# Set CM_BUILDTYPE from the env RELEASE_TYPE, for jenkins compat
-
-ifndef CM_BUILDTYPE
- ifdef RELEASE_TYPE
- # Starting with "CM_" is optional
- RELEASE_TYPE := $(shell echo $(RELEASE_TYPE) | sed -e 's|^CM_||g')
- CM_BUILDTYPE := $(RELEASE_TYPE)
- endif
-endif
+ifeq ($(USE_OPENGL_RENDERER),true)
+PRODUCT_PACKAGE_OVERLAYS += vendor/replicant/overlay/opengl
+else
+BOARD_EGL_CFG := vendor/replicant/prebuilt/softwaregl/configs/egl.cfg
-# Filter out random types, so it'll reset to UNOFFICIAL
-ifeq ($(filter RELEASE NIGHTLY SNAPSHOT EXPERIMENTAL,$(CM_BUILDTYPE)),)
- CM_BUILDTYPE :=
-endif
+PRODUCT_PROPERTY_OVERRIDES += ro.softwaregl=1
-ifdef CM_BUILDTYPE
- ifneq ($(CM_BUILDTYPE), SNAPSHOT)
- ifdef CM_EXTRAVERSION
- # Force build type to EXPERIMENTAL
- CM_BUILDTYPE := EXPERIMENTAL
- # Remove leading dash from CM_EXTRAVERSION
- CM_EXTRAVERSION := $(shell echo $(CM_EXTRAVERSION) | sed 's/-//')
- # Add leading dash to CM_EXTRAVERSION
- CM_EXTRAVERSION := -$(CM_EXTRAVERSION)
- endif
- else
- ifndef CM_EXTRAVERSION
- # Force build type to EXPERIMENTAL, SNAPSHOT mandates a tag
- CM_BUILDTYPE := EXPERIMENTAL
- else
- # Remove leading dash from CM_EXTRAVERSION
- CM_EXTRAVERSION := $(shell echo $(CM_EXTRAVERSION) | sed 's/-//')
- # Add leading dash to CM_EXTRAVERSION
- CM_EXTRAVERSION := -$(CM_EXTRAVERSION)
- endif
- endif
-else
- # If CM_BUILDTYPE is not defined, set to UNOFFICIAL
- CM_BUILDTYPE := UNOFFICIAL
- CM_EXTRAVERSION :=
+PRODUCT_PACKAGE_OVERLAYS += vendor/replicant/overlay/softwaregl
endif
-ifeq ($(CM_BUILDTYPE), UNOFFICIAL)
- ifneq ($(TARGET_UNOFFICIAL_BUILD_ID),)
- CM_EXTRAVERSION := -$(TARGET_UNOFFICIAL_BUILD_ID)
- endif
-endif
+PRODUCT_VERSION_MAJOR = 6
+PRODUCT_VERSION_MINOR = 0
+PRODUCT_VERSION_MAINTENANCE = 1
-ifeq ($(CM_BUILDTYPE), RELEASE)
- ifndef TARGET_VENDOR_RELEASE_BUILD_ID
- CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(CM_BUILD)
- else
- ifeq ($(TARGET_BUILD_VARIANT),user)
- CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(TARGET_VENDOR_RELEASE_BUILD_ID)-$(CM_BUILD)
- else
- CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(CM_BUILD)
- endif
- endif
-else
- CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(shell date -u +%Y%m%d)-$(CM_BUILDTYPE)$(CM_EXTRAVERSION)-$(CM_BUILD)
-endif
+REPLICANT_VERSION := "replicant-6.0"
PRODUCT_PROPERTY_OVERRIDES += \
- ro.cm.version=$(CM_VERSION) \
- ro.cm.releasetype=$(CM_BUILDTYPE) \
- ro.modversion=$(CM_VERSION) \
- ro.cmlegal.url=https://cyngn.com/legal/privacy-policy
+ ro.cm.version=$(REPLICANT_VERSION) \
+ ro.modversion=$(REPLICANT_VERSION)
-include vendor/cm-priv/keys/keys.mk
-CM_DISPLAY_VERSION := $(CM_VERSION)
+CM_VERSION := $(REPLICANT_VERSION)
+CM_DISPLAY_VERSION := $(REPLICANT_VERSION)
ifneq ($(PRODUCT_DEFAULT_DEV_CERTIFICATE),)
ifneq ($(PRODUCT_DEFAULT_DEV_CERTIFICATE),build/target/product/security/testkey)
diff --git a/overlay/softwaregl/packages/apps/Trebuchet/res/xml/default_workspace.xml b/overlay/softwaregl/packages/apps/Trebuchet/res/xml/default_workspace.xml
deleted file mode 100644
index ab2702d..0000000
--- a/overlay/softwaregl/packages/apps/Trebuchet/res/xml/default_workspace.xml
+++ /dev/null
@@ -1,122 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2009 The Android Open Source Project
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<favorites xmlns:launcher="http://schemas.android.com/apk/res/com.cyanogenmod.trebuchet">
- <!-- Far-left screen [0] -->
-
- <!-- Left screen [1] -->
- <appwidget
- launcher:packageName="com.andrew.apollo"
- launcher:className="com.andrew.apollo.appwidgets.AppWidgetLarge"
- launcher:screen="1"
- launcher:x="0"
- launcher:y="0"
- launcher:spanX="4"
- launcher:spanY="2" />
- <favorite
- launcher:packageName="com.android.camera"
- launcher:className="com.android.camera.Camera"
- launcher:screen="1"
- launcher:x="1"
- launcher:y="3" />
- <favorite
- launcher:packageName="com.android.gallery"
- launcher:className="com.android.camera.GalleryPicker"
- launcher:screen="1"
- launcher:x="2"
- launcher:y="3" />
-
- <!-- Middle screen [2] -->
- <appwidget
- launcher:packageName="com.android.deskclock"
- launcher:className="com.android.alarmclock.AnalogAppWidgetProvider"
- launcher:screen="2"
- launcher:x="1"
- launcher:y="0"
- launcher:spanX="2"
- launcher:spanY="2" />
- <favorite
- launcher:packageName="com.andrew.apollo"
- launcher:className="com.andrew.apollo.ui.activities.HomeActivity"
- launcher:screen="2"
- launcher:x="0"
- launcher:y="3" />
- <favorite
- launcher:packageName="com.android.email"
- launcher:className="com.android.email.activity.Welcome"
- launcher:screen="2"
- launcher:x="3"
- launcher:y="3" />
-
- <!-- Right screen [3] -->
- <appwidget
- launcher:packageName="com.android.settings"
- launcher:className="com.android.settings.widget.SettingsAppWidgetProvider"
- launcher:screen="3"
- launcher:x="0"
- launcher:y="0"
- launcher:spanX="4"
- launcher:spanY="1" />
- <favorite
- launcher:packageName="org.fdroid.fdroid"
- launcher:className="org.fdroid.fdroid.FDroid"
- launcher:screen="3"
- launcher:x="1"
- launcher:y="3" />
- <favorite
- launcher:packageName="com.android.settings"
- launcher:className="com.android.settings.Settings"
- launcher:screen="3"
- launcher:x="2"
- launcher:y="3" />
-
- <!-- Far-right screen [4] -->
-
- <!-- Hotseat (We use the screen as the position of the item in the hotseat) -->
- <favorite
- launcher:packageName="com.android.contacts"
- launcher:className="com.android.contacts.activities.DialtactsActivity"
- launcher:container="-101"
- launcher:screen="0"
- launcher:x="0"
- launcher:y="0" />
- <favorite
- launcher:packageName="com.android.contacts"
- launcher:className="com.android.contacts.activities.PeopleActivity"
- launcher:container="-101"
- launcher:screen="0"
- launcher:x="1"
- launcher:y="0" />
- <allapps
- launcher:container="-101"
- launcher:screen="0"
- launcher:x="2"
- launcher:y="0" />
- <favorite
- launcher:packageName="com.android.mms"
- launcher:className="com.android.mms.ui.ConversationList"
- launcher:container="-101"
- launcher:screen="0"
- launcher:x="3"
- launcher:y="0" />
- <favorite
- launcher:packageName="com.android.browser"
- launcher:className="com.android.browser.BrowserActivity"
- launcher:container="-101"
- launcher:screen="0"
- launcher:x="4"
- launcher:y="0" />
-</favorites>