2011-11-28 17:37:47 +01:00
|
|
|
PRODUCT_BRAND ?= cyanogenmod
|
|
|
|
|
2013-02-28 19:33:25 +01:00
|
|
|
SUPERUSER_EMBEDDED := true
|
2013-03-04 09:37:02 +01:00
|
|
|
SUPERUSER_PACKAGE_PREFIX := com.android.settings.cyanogenmod.superuser
|
2013-02-28 19:33:25 +01:00
|
|
|
|
2012-08-21 11:18:40 +02:00
|
|
|
# To deal with CM9 specifications
|
|
|
|
# TODO: remove once all devices have been switched
|
2012-03-14 08:10:33 +01:00
|
|
|
ifneq ($(TARGET_BOOTANIMATION_NAME),)
|
2012-08-21 11:18:40 +02:00
|
|
|
TARGET_SCREEN_DIMENSIONS := $(subst -, $(space), $(subst x, $(space), $(TARGET_BOOTANIMATION_NAME)))
|
|
|
|
ifeq ($(TARGET_SCREEN_WIDTH),)
|
|
|
|
TARGET_SCREEN_WIDTH := $(word 2, $(TARGET_SCREEN_DIMENSIONS))
|
|
|
|
endif
|
|
|
|
ifeq ($(TARGET_SCREEN_HEIGHT),)
|
|
|
|
TARGET_SCREEN_HEIGHT := $(word 3, $(TARGET_SCREEN_DIMENSIONS))
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(TARGET_SCREEN_WIDTH) $(TARGET_SCREEN_HEIGHT),$(space))
|
|
|
|
|
|
|
|
# clear TARGET_BOOTANIMATION_NAME in case it was set for CM9 purposes
|
|
|
|
TARGET_BOOTANIMATION_NAME :=
|
|
|
|
|
|
|
|
# determine the smaller dimension
|
|
|
|
TARGET_BOOTANIMATION_SIZE := $(shell \
|
|
|
|
if [ $(TARGET_SCREEN_WIDTH) -lt $(TARGET_SCREEN_HEIGHT) ]; then \
|
|
|
|
echo $(TARGET_SCREEN_WIDTH); \
|
|
|
|
else \
|
|
|
|
echo $(TARGET_SCREEN_HEIGHT); \
|
|
|
|
fi )
|
|
|
|
|
|
|
|
# get a sorted list of the sizes
|
|
|
|
bootanimation_sizes := $(subst .zip,, $(shell ls vendor/cm/prebuilt/common/bootanimation))
|
|
|
|
bootanimation_sizes := $(shell echo -e $(subst $(space),'\n',$(bootanimation_sizes)) | sort -rn)
|
|
|
|
|
|
|
|
# find the appropriate size and set
|
|
|
|
define check_and_set_bootanimation
|
|
|
|
$(eval TARGET_BOOTANIMATION_NAME := $(shell \
|
|
|
|
if [ -z "$(TARGET_BOOTANIMATION_NAME)" ]; then
|
|
|
|
if [ $(1) -le $(TARGET_BOOTANIMATION_SIZE) ]; then \
|
|
|
|
echo $(1); \
|
|
|
|
exit 0; \
|
|
|
|
fi;
|
|
|
|
fi;
|
|
|
|
echo $(TARGET_BOOTANIMATION_NAME); ))
|
|
|
|
endef
|
|
|
|
$(foreach size,$(bootanimation_sizes), $(call check_and_set_bootanimation,$(size)))
|
|
|
|
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
vendor/cm/prebuilt/common/bootanimation/$(TARGET_BOOTANIMATION_NAME).zip:system/media/bootanimation.zip
|
2012-03-14 08:10:33 +01:00
|
|
|
endif
|
|
|
|
|
2011-11-27 20:56:54 +01:00
|
|
|
ifdef CM_NIGHTLY
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
|
|
ro.rommanager.developerid=cyanogenmodnightly
|
|
|
|
else
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
|
|
ro.rommanager.developerid=cyanogenmod
|
|
|
|
endif
|
|
|
|
|
|
|
|
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
|
|
|
|
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
|
|
keyguard.no_require_sim=true \
|
|
|
|
ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html \
|
|
|
|
ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html \
|
|
|
|
ro.com.google.clientidbase=android-google \
|
|
|
|
ro.com.android.wifi-watchlist=GoogleGuest \
|
|
|
|
ro.setupwizard.enterprise_mode=1 \
|
|
|
|
ro.com.android.dateformat=MM-dd-yyyy \
|
|
|
|
ro.com.android.dataroaming=false
|
|
|
|
|
2013-03-20 11:47:17 +01:00
|
|
|
ifneq ($(TARGET_BUILD_VARIANT),eng)
|
2013-02-15 16:46:39 +01:00
|
|
|
# Enable ADB authentication
|
|
|
|
ADDITIONAL_DEFAULT_PROPERTIES += ro.adb.secure=1
|
2013-03-20 11:47:17 +01:00
|
|
|
endif
|
2013-02-15 16:46:39 +01:00
|
|
|
|
2011-11-27 20:56:54 +01:00
|
|
|
# Copy over the changelog to the device
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
vendor/cm/CHANGELOG.mkdn:system/etc/CHANGELOG-CM.txt
|
|
|
|
|
2012-03-04 09:37:42 +01:00
|
|
|
# Backup Tool
|
2011-11-27 20:56:54 +01:00
|
|
|
PRODUCT_COPY_FILES += \
|
2012-03-04 09:37:42 +01:00
|
|
|
vendor/cm/prebuilt/common/bin/backuptool.sh:system/bin/backuptool.sh \
|
|
|
|
vendor/cm/prebuilt/common/bin/backuptool.functions:system/bin/backuptool.functions \
|
2012-12-19 02:11:21 +01:00
|
|
|
vendor/cm/prebuilt/common/bin/50-cm.sh:system/addon.d/50-cm.sh \
|
|
|
|
vendor/cm/prebuilt/common/bin/blacklist:system/addon.d/blacklist
|
2011-11-27 20:56:54 +01:00
|
|
|
|
2011-12-20 21:14:24 +01:00
|
|
|
# init.d support
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
vendor/cm/prebuilt/common/etc/init.d/00banner:system/etc/init.d/00banner \
|
|
|
|
vendor/cm/prebuilt/common/bin/sysinit:system/bin/sysinit
|
|
|
|
|
2012-04-06 03:18:18 +02:00
|
|
|
# userinit support
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
vendor/cm/prebuilt/common/etc/init.d/90userinit:system/etc/init.d/90userinit
|
|
|
|
|
2012-10-18 17:38:25 +02:00
|
|
|
# CM-specific init file
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
vendor/cm/prebuilt/common/etc/init.local.rc:root/init.cm.rc
|
|
|
|
|
2011-12-20 21:14:24 +01:00
|
|
|
# Compcache/Zram support
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
vendor/cm/prebuilt/common/bin/compcache:system/bin/compcache \
|
|
|
|
vendor/cm/prebuilt/common/bin/handle_compcache:system/bin/handle_compcache
|
|
|
|
|
2013-01-12 05:24:47 +01:00
|
|
|
# Terminal Emulator
|
2011-11-27 20:56:54 +01:00
|
|
|
PRODUCT_COPY_FILES += \
|
2013-01-02 16:06:52 +01:00
|
|
|
vendor/cm/proprietary/Term.apk:system/app/Term.apk \
|
2012-09-20 19:26:25 +02:00
|
|
|
vendor/cm/proprietary/lib/armeabi/libjackpal-androidterm4.so:system/lib/libjackpal-androidterm4.so
|
2012-01-15 00:50:25 +01:00
|
|
|
|
2012-03-07 14:34:38 +01:00
|
|
|
# Bring in camera effects
|
2012-01-15 00:50:25 +01:00
|
|
|
PRODUCT_COPY_FILES += \
|
2012-01-12 07:10:39 +01:00
|
|
|
vendor/cm/prebuilt/common/media/LMprec_508.emd:system/media/LMprec_508.emd \
|
|
|
|
vendor/cm/prebuilt/common/media/PFFprec_600.emd:system/media/PFFprec_600.emd
|
2011-11-27 20:56:54 +01:00
|
|
|
|
|
|
|
# Enable SIP+VoIP on all targets
|
|
|
|
PRODUCT_COPY_FILES += \
|
2012-07-11 12:21:50 +02:00
|
|
|
frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml
|
2011-11-27 20:56:54 +01:00
|
|
|
|
2013-01-30 21:45:20 +01:00
|
|
|
# Enable wireless Xbox 360 controller support
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
frameworks/base/data/keyboards/Vendor_045e_Product_028e.kl:system/usr/keylayout/Vendor_045e_Product_0719.kl
|
|
|
|
|
2012-03-26 02:21:32 +02:00
|
|
|
# This is CM!
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
vendor/cm/config/permissions/com.cyanogenmod.android.xml:system/etc/permissions/com.cyanogenmod.android.xml
|
|
|
|
|
2012-01-26 23:54:31 +01:00
|
|
|
# Don't export PS1 in /system/etc/mkshrc.
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
vendor/cm/prebuilt/common/etc/mkshrc:system/etc/mkshrc
|
|
|
|
|
2012-05-04 11:15:56 +02:00
|
|
|
# T-Mobile theme engine
|
|
|
|
include vendor/cm/config/themes_common.mk
|
|
|
|
|
2011-11-27 20:56:54 +01:00
|
|
|
# Required CM packages
|
|
|
|
PRODUCT_PACKAGES += \
|
2011-12-21 01:16:01 +01:00
|
|
|
Camera \
|
|
|
|
Development \
|
2011-11-27 20:56:54 +01:00
|
|
|
LatinIME \
|
2011-11-26 03:02:09 +01:00
|
|
|
Superuser \
|
2011-11-27 20:56:54 +01:00
|
|
|
su
|
|
|
|
|
|
|
|
# Optional CM packages
|
|
|
|
PRODUCT_PACKAGES += \
|
2011-11-27 22:00:30 +01:00
|
|
|
VideoEditor \
|
|
|
|
VoiceDialer \
|
2012-02-22 20:22:42 +01:00
|
|
|
SoundRecorder \
|
2012-08-28 12:21:46 +02:00
|
|
|
Basic
|
2011-11-27 02:31:19 +01:00
|
|
|
|
2011-12-14 23:02:19 +01:00
|
|
|
# Custom CM packages
|
|
|
|
PRODUCT_PACKAGES += \
|
2011-12-22 17:47:22 +01:00
|
|
|
Trebuchet \
|
2011-12-14 23:02:19 +01:00
|
|
|
DSPManager \
|
2011-12-15 07:27:07 +01:00
|
|
|
libcyanogen-dsp \
|
2012-05-06 01:23:24 +02:00
|
|
|
audio_effects.conf \
|
2012-05-25 02:31:26 +02:00
|
|
|
CMWallpapers \
|
2012-09-29 18:17:45 +02:00
|
|
|
Apollo \
|
2012-11-01 06:40:46 +01:00
|
|
|
CMUpdater \
|
2012-12-30 19:37:40 +01:00
|
|
|
CMFileManager \
|
|
|
|
LockClock
|
2011-12-14 23:02:19 +01:00
|
|
|
|
2013-03-28 07:14:05 +01:00
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
CellBroadcastReceiver
|
|
|
|
|
2012-04-15 11:39:25 +02:00
|
|
|
# Extra tools in CM
|
|
|
|
PRODUCT_PACKAGES += \
|
2012-07-05 10:20:47 +02:00
|
|
|
openvpn \
|
|
|
|
e2fsck \
|
|
|
|
mke2fs \
|
2012-09-21 02:09:07 +02:00
|
|
|
tune2fs \
|
|
|
|
bash \
|
|
|
|
vim \
|
|
|
|
nano \
|
|
|
|
htop \
|
|
|
|
powertop \
|
|
|
|
lsof
|
2012-04-15 11:39:25 +02:00
|
|
|
|
2012-07-19 12:34:25 +02:00
|
|
|
# Openssh
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
scp \
|
|
|
|
sftp \
|
|
|
|
ssh \
|
|
|
|
sshd \
|
|
|
|
sshd_config \
|
|
|
|
ssh-keygen \
|
2012-08-19 14:00:04 +02:00
|
|
|
start-ssh
|
|
|
|
|
|
|
|
# rsync
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
rsync
|
2012-07-19 12:34:25 +02:00
|
|
|
|
2011-11-28 16:44:23 +01:00
|
|
|
PRODUCT_PACKAGE_OVERLAYS += vendor/cm/overlay/dictionaries
|
2011-12-21 00:02:07 +01:00
|
|
|
PRODUCT_PACKAGE_OVERLAYS += vendor/cm/overlay/common
|
2011-11-28 16:44:23 +01:00
|
|
|
|
2012-07-11 17:05:12 +02:00
|
|
|
PRODUCT_VERSION_MAJOR = 10
|
2012-11-22 11:20:54 +01:00
|
|
|
PRODUCT_VERSION_MINOR = 1
|
2013-06-24 23:41:00 +02:00
|
|
|
PRODUCT_VERSION_MAINTENANCE = 1-RC0
|
2011-11-28 16:44:23 +01:00
|
|
|
|
2012-05-07 07:49:33 +02:00
|
|
|
# Set CM_BUILDTYPE
|
2011-11-28 16:44:23 +01:00
|
|
|
ifdef CM_NIGHTLY
|
2012-05-07 07:49:33 +02:00
|
|
|
CM_BUILDTYPE := NIGHTLY
|
|
|
|
endif
|
|
|
|
ifdef CM_EXPERIMENTAL
|
|
|
|
CM_BUILDTYPE := EXPERIMENTAL
|
|
|
|
endif
|
|
|
|
ifdef CM_RELEASE
|
|
|
|
CM_BUILDTYPE := RELEASE
|
|
|
|
endif
|
|
|
|
|
2012-06-08 12:08:15 +02:00
|
|
|
ifdef CM_BUILDTYPE
|
|
|
|
ifdef CM_EXTRAVERSION
|
|
|
|
# Force build type to EXPERIMENTAL
|
|
|
|
CM_BUILDTYPE := EXPERIMENTAL
|
|
|
|
# Add leading dash to CM_EXTRAVERSION
|
|
|
|
CM_EXTRAVERSION := -$(CM_EXTRAVERSION)
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
# If CM_BUILDTYPE is not defined, set to UNOFFICIAL
|
2012-05-07 07:49:33 +02:00
|
|
|
CM_BUILDTYPE := UNOFFICIAL
|
2012-06-08 12:08:15 +02:00
|
|
|
CM_EXTRAVERSION :=
|
2012-05-07 07:49:33 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CM_RELEASE
|
|
|
|
CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(CM_BUILD)
|
2011-11-28 16:44:23 +01:00
|
|
|
else
|
2012-12-04 14:46:48 +01:00
|
|
|
ifeq ($(PRODUCT_VERSION_MINOR),0)
|
|
|
|
CM_VERSION := $(PRODUCT_VERSION_MAJOR)-$(shell date -u +%Y%m%d)-$(CM_BUILDTYPE)-$(CM_BUILD)$(CM_EXTRAVERSION)
|
|
|
|
else
|
|
|
|
CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(shell date -u +%Y%m%d)-$(CM_BUILDTYPE)-$(CM_BUILD)$(CM_EXTRAVERSION)
|
|
|
|
endif
|
2011-11-28 16:44:23 +01:00
|
|
|
endif
|
2012-02-23 23:07:44 +01:00
|
|
|
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
|
|
ro.cm.version=$(CM_VERSION) \
|
2012-03-04 09:37:42 +01:00
|
|
|
ro.modversion=$(CM_VERSION)
|
2012-11-13 11:42:11 +01:00
|
|
|
|
|
|
|
|
|
|
|
-include $(WORKSPACE)/hudson/image-auto-bits.mk
|