Add leo related vendor files in Cyanogen Vendor

Change-Id: Idb55f5a74dd07a2964fbc87d98f522bb1d921947
This commit is contained in:
charansingh 2011-02-02 01:35:29 +05:30 committed by Steve Kondik
parent f161af25cc
commit d204b68f86
5 changed files with 100 additions and 0 deletions

View File

@ -0,0 +1,10 @@
#!/system/bin/sh
#
# Load MODULES
sleep 1
insmod /system/lib/modules/msm_rmnet.ko
insmod /system/lib/modules/tun.ko
insmod /system/lib/modules/cifs.ko
insmod /system/lib/modules/nls_utf8.ko
insmod /system/lib/modules/fuse.ko
echo "+++ RMNET / TUN / CIFS activated +++";

View File

@ -11,6 +11,7 @@ PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/cyanogen_glacier.mk \
$(LOCAL_DIR)/cyanogen_harmony.mk \
$(LOCAL_DIR)/cyanogen_legend.mk \
$(LOCAL_DIR)/cyanogen_leo.mk \
$(LOCAL_DIR)/cyanogen_liberty.mk \
$(LOCAL_DIR)/cyanogen_one.mk \
$(LOCAL_DIR)/cyanogen_passion.mk \

56
products/cyanogen_leo.mk Normal file
View File

@ -0,0 +1,56 @@
# Inherit AOSP device configuration for leo.
$(call inherit-product, device/htc/leo/full_leo.mk)
# Inherit some common cyanogenmod stuff.
$(call inherit-product, vendor/cyanogen/products/common_full.mk)
# Include GSM stuff
$(call inherit-product, vendor/cyanogen/products/gsm.mk)
#
# Setup device specific product configuration.
#
PRODUCT_NAME := cyanogen_leo
PRODUCT_BRAND := htc_wwe
PRODUCT_DEVICE := leo
PRODUCT_MODEL := HTC HD2
PRODUCT_MANUFACTURER := HTC
PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=passion BUILD_ID=FRG83D BUILD_DISPLAY_ID=GRH78C BUILD_FINGERPRINT=google/passion/passion/mahimahi:2.2.1/FRG83D/75603:user/release-keys PRIVATE_BUILD_DESC="passion-user 2.2.1 FRG83D 75603 release-keys"
# Extra leo overlay
PRODUCT_PACKAGE_OVERLAYS += vendor/cyanogen/products/overlay
# This file is used to install the enable RMNET and corresponding modules which dont get activated by normal module script
PRODUCT_COPY_FILES += \
vendor/cyanogen/prebuilt/leo/etc/init.d/01modules:system/etc/init.d/01modules
# Extra RIL settings
PRODUCT_PROPERTY_OVERRIDES += \
ro.ril.enable.managed.roaming=1 \
ro.ril.oem.nosim.ecclist=911,112,113,115,117,999,000,08,118,120,122,110,119,995 \
ro.ril.emc.mode=2
#
# Set ro.modversion
#
ifdef CYANOGEN_NIGHTLY
PRODUCT_PROPERTY_OVERRIDES += \
ro.modversion=CyanogenMod-7-$(shell date +%m%d%Y)-NIGHTLY-LEO
else
ifdef CYANOGEN_RELEASE
PRODUCT_PROPERTY_OVERRIDES += \
ro.modversion=CyanogenMod-7.0.0-RC0-LEO
else
PRODUCT_PROPERTY_OVERRIDES += \
ro.modversion=CyanogenMod-7.0.0-RC0-LEO-KANG
endif
endif
#
# Copy leo specific prebuilt files
#
PRODUCT_COPY_FILES += \
vendor/cyanogen/prebuilt/hdpi/media/bootanimation.zip:system/media/bootanimation.zip

31
tools/leoupdate Executable file
View File

@ -0,0 +1,31 @@
#!/bin/bash
export LOC="$PWD/out/target/product/leo"
mkdir -p "$LOC"/temp
cd "$LOC"/temp
echo "extract update.zip"
unzip -o -qq "$LOC"/$TARGET_PRODUCT-ota-$TARGET_BUILD_VARIANT.$LOGNAME.zip
echo "Making Leo Compatible Update script"
cd "$LOC"
cd "$LOC"/temp/META-INF/com/google/android
echo 'mount("yaffs2", "MTD", "boot", "/boot");' >> temp
echo 'package_extract_dir("boot", "/boot");' >> temp
grep -vw assert updater-script >> temp
rm -rf updater-script
grep -vw boot.img temp > updater-script
rm -rf temp
echo Zipping Package
cd "$LOC"/temp
rm -rf boot.img
cp -a "$LOC"/boot boot
rm -rf "$LOC"/$TARGET_PRODUCT-ota-$TARGET_BUILD_VARIANT.$LOGNAME.zip
zip -9yr "$LOC"/$TARGET_PRODUCT-ota-$TARGET_BUILD_VARIANT.$LOGNAME.zip * > /dev/null
cd "$LOC"
echo Cleanup...
rm -rf "$LOC"/temp
echo done

View File

@ -12,6 +12,7 @@ add_lunch_combo cyanogen_hero-eng
#add_lunch_combo cyanogen_heroc-eng
add_lunch_combo cyanogen_inc-eng
add_lunch_combo cyanogen_legend-eng
add_lunch_combo cyanogen_leo-eng
add_lunch_combo cyanogen_liberty-eng
add_lunch_combo cyanogen_one-eng
add_lunch_combo cyanogen_passion-eng
@ -20,4 +21,5 @@ add_lunch_combo cyanogen_supersonic-eng
add_lunch_combo cyanogen_vision-eng
add_lunch_combo cyanogen_z71-eng
PATH=$PATH:$PWD/vendor/cyanogen/tools ; export PATH