summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadan Ankapura <mankapur@sta.samsung.com>2012-08-03 17:19:26 -0700
committerJean-Baptiste Queru <jbq@google.com>2012-08-06 15:53:25 -0700
commit5ff5ce799946b4105569bcda594514caddf1827b (patch)
tree235b177a5f890cf23507f1348903c2798706793e
parent07dded0b26e83207389231025ec4d5a1d51faa47 (diff)
downloadtoroplus-5ff5ce799946b4105569bcda594514caddf1827b.tar.gz
initial commit towards aosp toroplus
Bug: 6940653 Change-Id: I7a24c103e485eb9c989c2e37e3d04a5e3a278770 Signed-off-by: Madan Ankapura <mankapur@sta.samsung.com>
-rw-r--r--Android.mk28
-rw-r--r--AndroidProducts.mk18
-rw-r--r--BoardConfig.mk24
-rw-r--r--CleanSpec.mk52
-rw-r--r--board-info.txt1
-rw-r--r--device.mk28
-rw-r--r--full_toroplus.mk39
-rw-r--r--overlay/frameworks/base/core/res/res/xml/power_profile.xml58
-rw-r--r--overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml21
-rw-r--r--overlay/frameworks/base/packages/SystemUI/res/values/config.xml28
-rw-r--r--recovery.fstab12
-rw-r--r--system.prop10
-rwxr-xr-xvendorsetup.sh17
13 files changed, 336 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
new file mode 100644
index 0000000..b66f4ca
--- /dev/null
+++ b/Android.mk
@@ -0,0 +1,28 @@
+#
+# Copyright (C) 2011 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.
+#
+
+# 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)
+
+# if some modules are built directly from this directory (not subdirectories),
+# their rules should be written here.
+
+include $(call all-makefiles-under,$(LOCAL_PATH))
diff --git a/AndroidProducts.mk b/AndroidProducts.mk
new file mode 100644
index 0000000..543e54d
--- /dev/null
+++ b/AndroidProducts.mk
@@ -0,0 +1,18 @@
+#
+# Copyright (C) 2011 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.
+#
+
+PRODUCT_MAKEFILES := \
+ $(LOCAL_DIR)/full_toroplus.mk
diff --git a/BoardConfig.mk b/BoardConfig.mk
new file mode 100644
index 0000000..2eff643
--- /dev/null
+++ b/BoardConfig.mk
@@ -0,0 +1,24 @@
+# Copyright (C) 2011 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.
+
+# Use the non-open-source part, if present
+-include vendor/samsung/toroplus/BoardConfigVendor.mk
+
+# Use the open-source board-info file if none was set by the vendor
+# config.
+TARGET_BOARD_INFO_FILE ?= device/samsung/toroplus/board-info.txt
+
+# Use the part that is common between all tunas
+include device/samsung/tuna/BoardConfig.mk
+
diff --git a/CleanSpec.mk b/CleanSpec.mk
new file mode 100644
index 0000000..08fde87
--- /dev/null
+++ b/CleanSpec.mk
@@ -0,0 +1,52 @@
+# Copyright (C) 2011 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, rm -rf $(TARGET_OUT_VENDOR)/lib/libsecril-client.so)
+$(call add-clean-step, rm -rf $(TARGET_OUT_VENDOR)/lib/hw/gps.omap4.hspa.so)
+$(call add-clean-step, rm -rf $(TARGET_OUT_VENDOR)/etc/gps.sirfgps.hspa.conf)
+# ************************************************
+# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
+# ************************************************
diff --git a/board-info.txt b/board-info.txt
new file mode 100644
index 0000000..6fcd60b
--- /dev/null
+++ b/board-info.txt
@@ -0,0 +1 @@
+require board=tuna
diff --git a/device.mk b/device.mk
new file mode 100644
index 0000000..e93ab6e
--- /dev/null
+++ b/device.mk
@@ -0,0 +1,28 @@
+# Copyright (C) 2011 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.
+
+# This file includes all definitions that apply only to maguro devices
+#
+# Anything that is generic to all tuna products should go in the tuna directory
+#
+# Everything in this directory will become public
+
+DEVICE_PACKAGE_OVERLAYS := device/samsung/toroplus/overlay
+
+# These are the hardware-specific features
+PRODUCT_COPY_FILES := \
+ frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml
+
+$(call inherit-product, device/samsung/tuna/device.mk)
+$(call inherit-product-if-exists, vendor/samsung/toroplus/device-vendor.mk)
diff --git a/full_toroplus.mk b/full_toroplus.mk
new file mode 100644
index 0000000..cd9b790
--- /dev/null
+++ b/full_toroplus.mk
@@ -0,0 +1,39 @@
+# Copyright (C) 2011 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.
+
+#
+# This file is the build configuration for a full Android
+# build for maguro hardware. This cleanly combines a set of
+# device-specific aspects (drivers) with a device-agnostic
+# product configuration (apps). Except for a few implementation
+# details, it only fundamentally contains two inherit-product
+# lines, full and maguro, hence its name.
+#
+
+# Get the long list of APNs
+PRODUCT_COPY_FILES := device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml
+
+# Inherit from those products. Most specific first.
+$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
+# This is where we'd set a backup provider if we had one
+#$(call inherit-product, device/sample/products/backup_overlay.mk)
+# Inherit from maguro device
+$(call inherit-product, device/samsung/toroplus/device.mk)
+
+# Set those variables here to overwrite the inherited values.
+PRODUCT_NAME := full_toroplus
+PRODUCT_DEVICE := toroplus
+PRODUCT_BRAND := Android
+PRODUCT_MODEL := Full AOSP on Toroplus
+PRODUCT_RESTRICT_VENDOR_FILES := true
diff --git a/overlay/frameworks/base/core/res/res/xml/power_profile.xml b/overlay/frameworks/base/core/res/res/xml/power_profile.xml
new file mode 100644
index 0000000..8f54426
--- /dev/null
+++ b/overlay/frameworks/base/core/res/res/xml/power_profile.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+**
+** Copyright 2011, 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.
+*/
+-->
+
+<device name="Android">
+ <!-- All values are in mA except as noted -->
+ <item name="none">0</item>
+ <item name="screen.on">200</item> <!-- min brite -->
+ <item name="bluetooth.active">150</item>
+ <item name="bluetooth.on">1</item>
+ <item name="bluetooth.at">1</item> <!-- TBD -->
+ <item name="screen.full">160</item> <!-- 360 max on calendar -->
+ <item name="wifi.on">1</item>
+ <item name="wifi.active">150</item>
+ <item name="wifi.scan">200</item>
+ <item name="dsp.audio">150</item>
+ <item name="dsp.video">200</item>
+ <item name="radio.active">260</item>
+ <item name="gps.on">55</item>
+ <item name="battery.capacity">1750</item>
+ <item name="radio.scanning">90</item> <!-- TBD -->
+ <array name="radio.on"> <!-- 1 entry per signal strength bin, TBD -->
+ <value>5.0</value>
+ <value>5.0</value>
+ </array>
+ <array name="cpu.speeds">
+ <value>350000</value>
+ <value>700000</value>
+ <value>920000</value>
+ <value>1200000</value>
+ </array>
+ <!-- Power consumption in suspend -->
+ <item name="cpu.idle">7</item>
+ <!-- Power consumption due to wake lock held -->
+ <item name="cpu.awake">22</item>
+ <!-- Power consumption at different speeds -->
+ <array name="cpu.active">
+ <value>120</value>
+ <value>228</value>
+ <value>299</value>
+ <value>397</value>
+ </array>
+</device>
diff --git a/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml b/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
new file mode 100644
index 0000000..9071372
--- /dev/null
+++ b/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
@@ -0,0 +1,21 @@
+<?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.
+ */
+-->
+<resources>
+ <bool name="def_wifi_on">true</bool>
+</resources>
diff --git a/overlay/frameworks/base/packages/SystemUI/res/values/config.xml b/overlay/frameworks/base/packages/SystemUI/res/values/config.xml
new file mode 100644
index 0000000..2d01872
--- /dev/null
+++ b/overlay/frameworks/base/packages/SystemUI/res/values/config.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 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.
+*/
+-->
+
+<!-- These resources are around just to allow their values to be customized
+ for different hardware and product builds. -->
+<resources>
+
+ <!-- When true, show 1/2G networks as 3G. -->
+ <bool name="config_showMin3G">true</bool>
+
+</resources>
+
diff --git a/recovery.fstab b/recovery.fstab
new file mode 100644
index 0000000..6e33ce7
--- /dev/null
+++ b/recovery.fstab
@@ -0,0 +1,12 @@
+# mount point fstype device
+
+/sdcard vfat /dev/block/sda1
+/system ext4 /dev/block/platform/omap/omap_hsmmc.0/by-name/system
+/cache ext4 /dev/block/platform/omap/omap_hsmmc.0/by-name/cache
+/data ext4 /dev/block/platform/omap/omap_hsmmc.0/by-name/userdata
+/misc emmc /dev/block/platform/omap/omap_hsmmc.0/by-name/misc
+/boot emmc /dev/block/platform/omap/omap_hsmmc.0/by-name/boot
+/recovery emmc /dev/block/platform/omap/omap_hsmmc.0/by-name/recovery
+/sbl emmc /dev/block/platform/omap/omap_hsmmc.0/by-name/sbl
+/xloader emmc /dev/block/platform/omap/omap_hsmmc.0/by-name/xloader
+/radio emmc /dev/block/platform/omap/omap_hsmmc.0/by-name/radio
diff --git a/system.prop b/system.prop
new file mode 100644
index 0000000..128bb1b
--- /dev/null
+++ b/system.prop
@@ -0,0 +1,10 @@
+#
+# system.prop for maguro
+#
+
+rild.libpath=/vendor/lib/libsec-ril.so
+rild.libargs=-d /dev/ttys0
+telephony.lteOnCdmaDevice=1
+
+# Ril sends only one RIL_UNSOL_CALL_RING, so set call_ring.multiple to false
+ro.telephony.call_ring.multiple=0
diff --git a/vendorsetup.sh b/vendorsetup.sh
new file mode 100755
index 0000000..15f903c
--- /dev/null
+++ b/vendorsetup.sh
@@ -0,0 +1,17 @@
+#
+# Copyright (C) 2011 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.
+#
+
+add_lunch_combo full_toroplus-userdebug