diff options
author | Daniel Hillenbrand <daniel.hillenbrand@codeworkx.de> | 2012-06-22 23:59:41 +0200 |
---|---|---|
committer | Daniel Hillenbrand <daniel.hillenbrand@codeworkx.de> | 2012-06-23 00:05:52 +0200 |
commit | 5da1224da23049dd11a72b56a8886fc278d4150c (patch) | |
tree | c2aaf90afc7d46e414007b96ba1516c31793cfa2 | |
download | device_samsung_p3110-5da1224da23049dd11a72b56a8886fc278d4150c.zip device_samsung_p3110-5da1224da23049dd11a72b56a8886fc278d4150c.tar.gz device_samsung_p3110-5da1224da23049dd11a72b56a8886fc278d4150c.tar.bz2 |
initial commit
-rw-r--r-- | Android.mk | 30 | ||||
-rw-r--r-- | AndroidProducts.mk | 18 | ||||
-rw-r--r-- | BoardConfig.mk | 27 | ||||
-rw-r--r-- | CleanSpec.mk | 60 | ||||
-rw-r--r-- | board-info.txt | 3 | ||||
-rw-r--r-- | cm.dependencies | 14 | ||||
-rw-r--r-- | cm.mk | 40 | ||||
-rwxr-xr-x | extract-files.sh | 43 | ||||
-rw-r--r-- | full_p3110.mk | 26 | ||||
-rw-r--r-- | overlay/frameworks/base/core/res/res/values/config.xml | 69 | ||||
-rw-r--r-- | p3110.mk | 24 | ||||
-rw-r--r-- | proprietary-common-files.txt | 71 | ||||
-rw-r--r-- | proprietary-p3110-files.txt | 2 | ||||
-rw-r--r-- | recovery.fstab | 14 | ||||
-rwxr-xr-x | setup-makefiles.sh | 148 | ||||
-rw-r--r-- | system.prop | 6 |
16 files changed, 595 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..8aface1 --- /dev/null +++ b/Android.mk @@ -0,0 +1,30 @@ +# +# Copyright (C) 2012 The CyanogenMod 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. +# + +# WARNING: Everything listed here will be built on ALL platforms, +# including x86, the emulator, and the SDK. Modules must be uniquely +# named (liblights.tuna), and must build everywhere, or limit themselves +# to only building on ARM if they include assembly. Individual makefiles +# are responsible for having their own logic, for fine-grained control. + +LOCAL_PATH := $(call my-dir) + +ifeq ($(TARGET_DEVICE),p3110) + +COMMON_P31XX_DIRS := liblights +include $(foreach common_dirs,$(COMMON_P31XX_DIRS),device/samsung/p3100/$(common_dirs)/Android.mk) + +endif diff --git a/AndroidProducts.mk b/AndroidProducts.mk new file mode 100644 index 0000000..c56f2d5 --- /dev/null +++ b/AndroidProducts.mk @@ -0,0 +1,18 @@ +# +# Copyright (C) 2012 The CyanogenMod 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. +# + +PRODUCT_MAKEFILES := \ + $(LOCAL_DIR)/full_p3110.mk diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..0e07051 --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,27 @@ +# +# Copyright (C) 2012 The CyanogenMod 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. +# + +# Include p31xx BoardConfigCommon +-include device/samsung/p3100/BoardConfigCommon.mk + +TARGET_BOARD_INFO_FILE := device/samsung/p3110/board-info.txt + +# Inline kernel building +TARGET_KERNEL_SOURCE := kernel/samsung/espresso10 +TARGET_KERNEL_CONFIG := cyanogenmod_p3110_defconfig + +# assert +TARGET_OTA_ASSERT_DEVICE := p3110,GT-P3110,espressowifi,espressowifixx diff --git a/CleanSpec.mk b/CleanSpec.mk new file mode 100644 index 0000000..e238b61 --- /dev/null +++ b/CleanSpec.mk @@ -0,0 +1,60 @@ +# Copyright (C) 2007 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. +# + +# If you don't need to do a full clean build but would like to touch +# a file or delete some intermediate files, add a clean step to the end +# of the list. These steps will only be run once, if they haven't been +# run before. +# +# E.g.: +# $(call add-clean-step, touch -c external/sqlite/sqlite3.h) +# $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/STATIC_LIBRARIES/libz_intermediates) +# +# Always use "touch -c" and "rm -f" or "rm -rf" to gracefully deal with +# files that are missing or have been moved. +# +# Use $(PRODUCT_OUT) to get to the "out/target/product/blah/" directory. +# Use $(OUT_DIR) to refer to the "out" directory. +# +# If you need to re-do something that's already mentioned, just copy +# the command and add it to the bottom of the list. E.g., if a change +# that you made last week required touching a file and a change you +# made today requires touching the same file, just copy the old +# touch step and add it to the end of the list. +# +# ************************************************ +# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST +# ************************************************ + +# For example: +#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/AndroidTests_intermediates) +#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/core_intermediates) +#$(call add-clean-step, find $(OUT_DIR) -type f -name "IGTalkSession*" -print0 | xargs -0 rm -f) +#$(call add-clean-step, rm -rf $(PRODUCT_OUT)/data/*) +$(call add-clean-step, find $(PRODUCT_OUT) -name "*.apk" | xargs rm) + +# ************************************************ +# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST +# ************************************************ +$(call add-clean-step, rm -rf $(TARGET_OUT)/build.prop) +$(call add-clean-step, rm -rf $(OUT_DIR)/target/product/p3110/obj/SHARED_LIBRARIES/libaudio_intermediates) +$(call add-clean-step, rm -rf $(OUT_DIR)/target/product/p3110/obj/SHARED_LIBRARIES/libaudio_intermediates) +$(call add-clean-step, rm -rf $(OUT_DIR)/target/product/p3110/obj/STATIC_LIBRARIES/libasound_intermediates) +$(call add-clean-step, rm -rf $(OUT_DIR)/target/product/p3110/obj/EXECUTABLES/alsa_*) +$(call add-clean-step, rm -rf $(OUT_DIR)/target/product/p3110/system/bin/alsa_*) +$(call add-clean-step, rm -rf $(OUT_DIR)/target/product/p3110/system/etc/asound.conf) +$(call add-clean-step, rm -rf $(OUT_DIR)/target/product/p3110/system/usr/share/alsa) +$(call add-clean-step, rm -rf $(OUT_DIR)/target/product/p3110/obj/PACKAGING/systemimage_intermediates) +$(call add-clean-step, rm -rf $(OUT_DIR)/target/product/p3110/obj/SHARED_LIBRARIES/libaudio_intermediates) diff --git a/board-info.txt b/board-info.txt new file mode 100644 index 0000000..5fc3714 --- /dev/null +++ b/board-info.txt @@ -0,0 +1,3 @@ +require board=espresso +require version-bootloader=P3110XWALE2 +require version-baseband=P3110XWALE2 diff --git a/cm.dependencies b/cm.dependencies new file mode 100644 index 0000000..e971f5f --- /dev/null +++ b/cm.dependencies @@ -0,0 +1,14 @@ +[ + { + "repository": "android_device_samsung_p3100", + "target_path": "device/samsung/p3100" + }, + { + "repository": "android_kernel_samsung_espresso10", + "target_path": "kernel/samsung/espresso10" + }, + { + "repository": "android_packages_apps_SamsungServiceMode", + "target_path": "packages/apps/SamsungServiceMode" + } +] @@ -0,0 +1,40 @@ +# +# Copyright (C) 2012 The CyanogenMod 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. +# + +## Specify phone tech before including full_phone +$(call inherit-product, vendor/cm/config/gsm.mk) + +# Release name +PRODUCT_RELEASE_NAME := p3110 + +# Boot animation +TARGET_BOOTANIMATION_NAME := horizontal-1024x600 + +# Inherit some common CM stuff. +$(call inherit-product, vendor/cm/config/common_full_tablet_wifionly.mk) + +# Inherit device configuration +$(call inherit-product, device/samsung/p3110/full_p3110.mk) + +## Device identifier. This must come after all inclusions +PRODUCT_DEVICE := p3110 +PRODUCT_NAME := cm_p3110 +PRODUCT_BRAND := samsung +PRODUCT_MODEL := GT-P3110 +PRODUCT_MANUFACTURER := samsung + +#Set build fingerprint / ID / Prduct Name ect. +PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=espressowifixx TARGET_DEVICE=espressowifi BUILD_FINGERPRINT=samsung/espressowifixx/espressowifi:4.0.3/IML74K/P3110XWALD2:user/release-keys PRIVATE_BUILD_DESC="espressowifixx-user 4.0.3 IML74K P3110XWALD2 release-keys" diff --git a/extract-files.sh b/extract-files.sh new file mode 100755 index 0000000..562c507 --- /dev/null +++ b/extract-files.sh @@ -0,0 +1,43 @@ +#!/bin/sh + +# Copyright (C) 2012 The CyanogenMod 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. + +# This file is generated by device/common/generate-blob-scripts.sh - DO NOT EDIT + +VENDOR=samsung +COMMON=p31xx +DEVICE=p3110 +COMMONBASE=../../../vendor/$VENDOR/$COMMON/common +DEVICEBASE=../../../vendor/$VENDOR/$COMMON/$DEVICE + +echo "Pulling common files..." +for FILE in `cat proprietary-common-files.txt | grep -v ^# | grep -v ^$`; do + DIR=`dirname $FILE` + if [ ! -d $COMMONBASE/$DIR ]; then + mkdir -p $COMMONBASE/$DIR + fi + adb pull /$FILE $COMMONBASE/$FILE +done + +echo "Pulling device specific files..." +for FILE in `cat proprietary-$DEVICE-files.txt | grep -v ^# | grep -v ^$`; do + DIR=`dirname $FILE` + if [ ! -d $DEVICEBASE/$DIR ]; then + mkdir -p $DEVICEBASE/$DIR + fi + adb pull /$FILE $DEVICEBASE/$FILE +done + +./setup-makefiles.sh diff --git a/full_p3110.mk b/full_p3110.mk new file mode 100644 index 0000000..9327587 --- /dev/null +++ b/full_p3110.mk @@ -0,0 +1,26 @@ +# +# Copyright (C) 2012 The CyanogenMod 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. +# + +# Inherit from those products. Most specific first. +$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk) +$(call inherit-product, device/samsung/p3110/p3110.mk) + +# Discard inherited values and use our own instead. +PRODUCT_NAME := full_p3110 +PRODUCT_DEVICE := p3110 +PRODUCT_BRAND := samsung +PRODUCT_MANUFACTURER := samsung +PRODUCT_MODEL := GT-P3110 diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml new file mode 100644 index 0000000..fe56b16 --- /dev/null +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -0,0 +1,69 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** Copyright 2012, 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. +*/ +--> + +<!-- These resources are around just to allow their values to be customized + for different hardware and product builds. --> +<resources> + + <!-- This device is not "voice capable"; it's data-only. --> + <bool name="config_voice_capable">false</bool> + + <!-- This device does not allow sms service. --> + <bool name="config_sms_capable">false</bool> + + <!-- The default iface on which to monitor data use --> + <string name="config_datause_iface">eth0</string> + + <!-- XXXXX NOTE THE FOLLOWING RESOURCES USE THE WRONG NAMING CONVENTION. + Please don't copy them, copy anything else. --> + + <!-- This string array should be overridden by the device to present a list of network + attributes. This is used by the connectivity manager to decide which networks can coexist + based on the hardware --> + <!-- An Array of "[Connection name],[ConnectivityManager connection type], + [associated radio-type],[priority],[restoral-timer(ms)],[dependencyMet] --> + <!-- the 5th element "resore-time" indicates the number of milliseconds to delay + before automatically restore the default connection. Set -1 if the connection + does not require auto-restore. --> + <!-- the 6th element indicates boot-time dependency-met value. --> + <string-array translatable="false" name="networkAttributes"> + <item>"wifi,1,1,1,-1,true"</item> + <item>"bluetooth,7,7,0,-1,true"</item> + <item>"wifi_p2p,13,1,0,-1,true"</item> + </string-array> + + <!-- This string array should be overridden by the device to present a list of radio + attributes. This is used by the connectivity manager to decide which networks can coexist + based on the hardware --> + <!-- An Array of "[ConnectivityManager connectionType], + [# simultaneous connection types]" --> + <string-array translatable="false" name="radioAttributes"> + <item>"1,1"</item> + <item>"7,1"</item> + </string-array> + + <!-- Array of ConnectivityManager.TYPE_xxxx values allowable for tethering --> + <!-- Common options are [1, 4] for TYPE_WIFI and TYPE_MOBILE_DUN or + <!== [0,1,5,7] for TYPE_MOBILE, TYPE_WIFI, TYPE_MOBILE_HIPRI and TYPE_BLUETOOTH --> + <integer-array translatable="false" name="config_tether_upstream_types"> + <item>1</item> + <item>7</item> + </integer-array> + +</resources> diff --git a/p3110.mk b/p3110.mk new file mode 100644 index 0000000..ba81f4a --- /dev/null +++ b/p3110.mk @@ -0,0 +1,24 @@ +# +# Copyright (C) 2012 The CyanogenMod 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. +# + +$(call inherit-product, device/samsung/p3100/p31xx-common.mk) + +LOCAL_PATH := device/samsung/p3110 + +DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay + +# Use the non-open-source parts, if they're present +$(call inherit-product, vendor/samsung/p31xx/p3110-vendor.mk) diff --git a/proprietary-common-files.txt b/proprietary-common-files.txt new file mode 100644 index 0000000..1c092d4 --- /dev/null +++ b/proprietary-common-files.txt @@ -0,0 +1,71 @@ +system/bin/geomagneticd +system/bin/gpsd +system/bin/orientationd +system/etc/audio/LVVEFS_Rx_Configuration.txt +system/etc/audio/LVVEFS_Tx_Configuration.txt +system/etc/audio/Rx_ControlParams_BLUETOOTH_HEADSET.txt +system/etc/audio/Rx_ControlParams_EARPIECE_WIDEBAND.txt +system/etc/audio/Rx_ControlParams_SPEAKER_WIDEBAND.txt +system/etc/audio/Rx_ControlParams_WIRED_HEADPHONE_WIDEBAND.txt +system/etc/audio/Rx_ControlParams_WIRED_HEADSET_WIDEBAND.txt +system/etc/audio/Tx_ControlParams_BLUETOOTH_HEADSET.txt +system/etc/audio/Tx_ControlParams_EARPIECE_WIDEBAND.txt +system/etc/audio/Tx_ControlParams_SPEAKER_WIDEBAND.txt +system/etc/audio/Tx_ControlParams_WIRED_HEADPHONE_WIDEBAND.txt +system/etc/audio/Tx_ControlParams_WIRED_HEADSET_WIDEBAND.txt +system/etc/wifi/bcmdhd_apsta.bin +system/etc/wifi/bcmdhd_mfg.bin +system/etc/wifi/bcmdhd_p2p.bin +system/etc/wifi/bcmdhd_sta.bin +system/etc/wifi/nvram_mfg.txt +system/etc/wifi/nvram_net.txt +system/lib/hw/audio.primary.piranha.so +system/lib/hw/audio_policy.piranha.so +system/lib/hw/camera.omap4.so +system/lib/hw/gps.omap4.so +system/lib/hw/sensors.omap4.so +system/lib/libI420colorconvert.so +system/lib/libOMX.TI.DUCATI1.MISC.SAMPLE.so +system/lib/libOMX.TI.DUCATI1.VIDEO.CAMERA.so +system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.secure.so +system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.so +system/lib/libOMX.TI.DUCATI1.VIDEO.H264E.so +system/lib/libOMX.TI.DUCATI1.VIDEO.MPEG4E.so +system/lib/libOMX_Core.so +system/lib/libQmageDecoder.so +system/lib/lib_SamsungRec_V01003.so +system/lib/lib_Samsung_Resampler.so +system/lib/lib_Samsung_SB_AM_for_ICS_v03002.so +system/lib/lib_SoundAlive_for_ICS_V01012.so +system/lib/libaudiopolicy_sec.so +system/lib/libcontrolcsc.so +system/lib/libdomx.so +system/lib/libion.so +system/lib/liblibSoundAlive_VSP_ver305.so +system/lib/liblvvefs.so +system/lib/libmm_osal.so +system/lib/libril.so +system/lib/libsamsungRecord.so +system/lib/libsamsungSoundbooster.so +system/lib/libsec-ril.so +system/lib/libsecnativefeature.so +system/lib/libsecril-client.so +system/lib/libsoundalive.so +system/lib/libtinyalsa.so +system/lib/libtiutils.so +system/vendor/bin/pvrsrvinit +system/vendor/firmware/BCM4330.hcd +system/vendor/firmware/ducati-m3.bin +system/vendor/lib/egl/libEGL_POWERVR_SGX540_120.so +system/vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so +system/vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so +system/vendor/lib/hw/gralloc.omap4.so +system/vendor/lib/libIMGegl.so +system/vendor/lib/libPVRScopeServices.so +system/vendor/lib/libglslcompiler.so +system/vendor/lib/libpvr2d.so +system/vendor/lib/libpvrANDROID_WSEGL.so +system/vendor/lib/libsrv_init.so +system/vendor/lib/libsrv_um.so +system/vendor/lib/libusc.so + diff --git a/proprietary-p3110-files.txt b/proprietary-p3110-files.txt new file mode 100644 index 0000000..1040d27 --- /dev/null +++ b/proprietary-p3110-files.txt @@ -0,0 +1,2 @@ +system/lib/libril.so +system/lib/libsecril-client.so diff --git a/recovery.fstab b/recovery.fstab new file mode 100644 index 0000000..673990a --- /dev/null +++ b/recovery.fstab @@ -0,0 +1,14 @@ +# mount point fstype device + +/system ext4 /dev/block/mmcblk0p9 +/cache ext4 /dev/block/mmcblk0p7 +/data ext4 /dev/block/mmcblk0p10 length=-16384 +/efs ext4 /dev/block/mmcblk0p1 +/misc emmc misc +/boot emmc /dev/block/mmcblk0p5 +/recovery emmc /dev/block/mmcblk0p6 +/bootloader emmc /dev/block/mmcblk0p2 +/preload ext4 /dev/block/mmcblk0p11 + +/emmc datamedia /dev/null +/sdcard vfat /dev/block/mmcblk1p1 diff --git a/setup-makefiles.sh b/setup-makefiles.sh new file mode 100755 index 0000000..5dc628c --- /dev/null +++ b/setup-makefiles.sh @@ -0,0 +1,148 @@ +#!/bin/sh + +# Copyright (C) 2012 The CyanogenMod 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. + +VENDOR=samsung +COMMON=p31xx +DEVICE=p3110 +OUTDIR=vendor/$VENDOR/$COMMON +COMMONMAKEFILE=../../../$OUTDIR/$COMMON-vendor-blobs.mk +DEVICEMAKEFILE=../../../$OUTDIR/$DEVICE-vendor-blobs.mk + +mkdir -p ../../../vendor/$VENDOR/$DEVICE + +(cat << EOF) > $COMMONMAKEFILE +# Copyright (C) 2012 The CyanogenMod 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. + +# This file is generated by device/$VENDOR/$DEVICE/setup-makefiles.sh + +PRODUCT_COPY_FILES += \\ +EOF + +LINEEND=" \\" +COUNT=`cat proprietary-common-files.txt | grep -v ^# | grep -v ^$ | wc -l | awk {'print $1'}` +for FILE in `cat proprietary-common-files.txt | grep -v ^# | grep -v ^$`; do + COUNT=`expr $COUNT - 1` + if [ $COUNT = "0" ]; then + LINEEND="" + fi + echo " $OUTDIR/common/$FILE:$FILE$LINEEND" >> $COMMONMAKEFILE +done + +(cat << EOF) > $DEVICEMAKEFILE +# Copyright (C) 2012 The CyanogenMod 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. + +# This file is generated by device/$VENDOR/$DEVICE/setup-makefiles.sh + +PRODUCT_COPY_FILES += \\ +EOF + +LINEEND=" \\" +COUNT=`cat proprietary-$DEVICE-files.txt | grep -v ^# | grep -v ^$ | wc -l | awk {'print $1'}` +for FILE in `cat proprietary-$DEVICE-files.txt | grep -v ^# | grep -v ^$`; do + COUNT=`expr $COUNT - 1` + if [ $COUNT = "0" ]; then + LINEEND="" + fi + echo " $OUTDIR/common/$FILE:$FILE$LINEEND" >> $DEVICEMAKEFILE +done + +(cat << EOF) | sed s/__COMMON__/$COMMON/g | sed s/__DEVICE__/$DEVICE/g | sed s/__VENDOR__/$VENDOR/g > ../../../vendor/$VENDOR/$COMMON/$DEVICE-vendor.mk +# Copyright (C) 2012 The CyanogenMod 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. + +# Pick up overlay for features that depend on non-open-source files +DEVICE_PACKAGE_OVERLAYS := vendor/samsung/__COMMON__/overlay + +\$(call inherit-product, vendor/samsung/__COMMON__/__DEVICE__-vendor-blobs.mk) +EOF + +(cat << EOF) | sed s/__COMMON__/$COMMON/g | sed s/__DEVICE__/$DEVICE/g | sed s/__VENDOR__/$VENDOR/g > ../../../vendor/$VENDOR/$COMMON/$COMMON-vendor.mk +# Copyright (C) 2012 The CyanogenMod 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. + +# Pick up overlay for features that depend on non-open-source files +DEVICE_PACKAGE_OVERLAYS := vendor/__VENDOR__/__COMMON__/overlay + +\$(call inherit-product, vendor/__VENDOR__/__COMMON__/__COMMON__-vendor-blobs.mk) +EOF + +(cat << EOF) | sed s/__COMMON__/$COMMON/g | sed s/__DEVICE__/$DEVICE/g | sed s/__VENDOR__/$VENDOR/g > ../../../vendor/$VENDOR/$COMMON/BoardConfigVendor.mk +# Copyright (C) 2012 The CyanogenMod 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. + +# This file is generated by device/__MANUFACTURER__/__DEVICE__/setup-makefiles.sh + +USE_CAMERA_STUB := false +BOARD_USES_GENERIC_AUDIO := false + +EOF diff --git a/system.prop b/system.prop new file mode 100644 index 0000000..c13b75b --- /dev/null +++ b/system.prop @@ -0,0 +1,6 @@ +# +# system.prop for espresso +# +rild.libpath=/vendor/lib/libsec-ril.so +rild.libargs=-d /dev/ttys0 +telephony.lteOnCdmaDevice=0 |