From c151bcf637fe894250c1d9905684178a8c7d253d Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Mon, 11 Apr 2011 18:49:38 -0700 Subject: Initial tuna build Change-Id: I940a39a432d5489661e8aa57a9792a6e9b39b9c9 --- Android.mk | 28 +++ AndroidProducts.mk | 18 ++ BoardConfig.mk | 54 ++++++ CleanSpec.mk | 49 +++++ device.mk | 56 ++++++ egl.cfg | 3 + full_tuna.mk | 35 ++++ init.tuna.rc | 17 ++ kernel | Bin 0 -> 2724268 bytes media_profiles.xml | 203 +++++++++++++++++++++ .../apps/Launcher2/res/layout/all_apps.xml | 20 ++ ueventd.tuna.rc | 0 vendorsetup.sh | 17 ++ 13 files changed, 500 insertions(+) create mode 100644 Android.mk create mode 100644 AndroidProducts.mk create mode 100644 BoardConfig.mk create mode 100644 CleanSpec.mk create mode 100644 device.mk create mode 100644 egl.cfg create mode 100644 full_tuna.mk create mode 100644 init.tuna.rc create mode 100644 kernel create mode 100644 media_profiles.xml create mode 100644 overlay/packages/apps/Launcher2/res/layout/all_apps.xml create mode 100644 ueventd.tuna.rc create mode 100755 vendorsetup.sh 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..5137bf4 --- /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_tuna.mk diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..9469192 --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,54 @@ +# +# 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. +# + +# These two variables are set first, so they can be overridden +# by BoardConfigVendor.mk +BOARD_USES_GENERIC_AUDIO := true +USE_CAMERA_STUB := true + +# Use the non-open-source parts, if they're present +-include vendor/samsung/tuna/BoardConfigVendor.mk + +TARGET_CPU_ABI := armeabi-v7a +TARGET_CPU_ABI2 := armeabi +TARGET_CPU_SMP := true +TARGET_ARCH_VARIANT := armv7-a-neon +ARCH_ARM_HAVE_TLS_REGISTER := true + +BOARD_HAVE_BLUETOOTH := false +TARGET_NO_BOOTLOADER := true +TARGET_NO_RECOVERY := true + +BOARD_KERNEL_BASE := 0x80000000 + +TARGET_NO_RADIOIMAGE := true +TARGET_BOARD_PLATFORM := omap4 +TARGET_BOOTLOADER_BOARD_NAME := tuna + +BOARD_EGL_CFG := device/samsung/tuna/egl.cfg + +#BOARD_USES_HGL := true +#BOARD_USES_OVERLAY := true +USE_OPENGL_RENDERER := true + +TARGET_USERIMAGES_USE_EXT4 := true +BOARD_SYSTEMIMAGE_PARTITION_SIZE := 268435456 +#BOARD_SYSTEMIMAGE_PARTITION_SIZE := 16777216 +BOARD_USERDATAIMAGE_PARTITION_SIZE := 536870912 +BOARD_FLASH_BLOCK_SIZE := 4096 + +#TARGET_PROVIDES_INIT_RC := true +#TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true diff --git a/CleanSpec.mk b/CleanSpec.mk new file mode 100644 index 0000000..b84e1b6 --- /dev/null +++ b/CleanSpec.mk @@ -0,0 +1,49 @@ +# 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/*) + +# ************************************************ +# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST +# ************************************************ diff --git a/device.mk b/device.mk new file mode 100644 index 0000000..614b84e --- /dev/null +++ b/device.mk @@ -0,0 +1,56 @@ +# +# 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 to ALL tuna devices, and +# are also specific to tuna devices +# +# Everything in this directory will become public + +ifeq ($(TARGET_PREBUILT_KERNEL),) +LOCAL_KERNEL := device/samsung/tuna/kernel +else +LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL) +endif + +DEVICE_PACKAGE_OVERLAYS := device/samsung/tuna/overlay + +# PRODUCT_PACKAGES := \ +# liblights.tuna + +PRODUCT_COPY_FILES := \ + $(LOCAL_KERNEL):kernel \ + device/samsung/tuna/init.tuna.rc:root/init.tuna.rc \ + device/samsung/tuna/ueventd.tuna.rc:root/ueventd.tuna.rc \ + device/samsung/tuna/media_profiles.xml:system/etc/media_profiles.xml + +# HACK: copy panda init for now to boot on both boards +PRODUCT_COPY_FILES += \ + device/ti/panda/init.omap4pandaboard.rc:root/init.omap4pandaboard.rc + +PRODUCT_PROPERTY_OVERRIDES := \ + hwui.render_dirty_regions=false + +PRODUCT_CHARACTERISTICS := tablet,nosdcard + +PRODUCT_TAGS += dalvik.gc.type-precise + +PRODUCT_PACKAGES += \ + librs_jni \ + com.android.future.usb.accessory + +$(call inherit-product, frameworks/base/build/tablet-dalvik-heap.mk) +$(call inherit-product-if-exists, vendor/ti/proprietary/omap4/ti-omap4-vendor.mk) +$(call inherit-product-if-exists, vendor/samsung/tuna/device-vendor.mk) diff --git a/egl.cfg b/egl.cfg new file mode 100644 index 0000000..a6f606e --- /dev/null +++ b/egl.cfg @@ -0,0 +1,3 @@ +0 0 android +0 1 POWERVR_SGX540_120 + diff --git a/full_tuna.mk b/full_tuna.mk new file mode 100644 index 0000000..0e4aa5b --- /dev/null +++ b/full_tuna.mk @@ -0,0 +1,35 @@ +# 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 toro 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 toro, hence its name. +# + +# Inherit from those products. Most specific first. +$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.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 tuna device +$(call inherit-product, device/samsung/tuna/device.mk) + +# Set those variables here to overwrite the inherited values. +PRODUCT_NAME := full_tuna +PRODUCT_DEVICE := tuna +PRODUCT_BRAND := Android +PRODUCT_MODEL := Full AOSP on Tuna diff --git a/init.tuna.rc b/init.tuna.rc new file mode 100644 index 0000000..653e24e --- /dev/null +++ b/init.tuna.rc @@ -0,0 +1,17 @@ +on boot + mount debugfs /sys/kernel/debug /sys/kernel/debug + chmod 0666 /dev/pvrsrvkm + +on fs + mount ext4 /dev/block/platform/omap/omap_hsmmc.0/by-name/system /system wait ro + mount ext4 /dev/block/platform/omap/omap_hsmmc.0/by-name/userdata /data wait noatime nosuid nodev + mount ext4 /dev/block/platform/omap/omap_hsmmc.0/by-name/cache /cache wait noatime nosuid nodev + +# take a wakelock on boot until PM is working + write /sys/power/wake_lock hack + +service pvrsrvinit /vendor/bin/pvrsrvinit + class core + user root + group root + oneshot diff --git a/kernel b/kernel new file mode 100644 index 0000000..c10ede2 Binary files /dev/null and b/kernel differ diff --git a/media_profiles.xml b/media_profiles.xml new file mode 100644 index 0000000..e57951d --- /dev/null +++ b/media_profiles.xml @@ -0,0 +1,203 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/overlay/packages/apps/Launcher2/res/layout/all_apps.xml b/overlay/packages/apps/Launcher2/res/layout/all_apps.xml new file mode 100644 index 0000000..f9761f1 --- /dev/null +++ b/overlay/packages/apps/Launcher2/res/layout/all_apps.xml @@ -0,0 +1,20 @@ + + + + + + + diff --git a/ueventd.tuna.rc b/ueventd.tuna.rc new file mode 100644 index 0000000..e69de29 diff --git a/vendorsetup.sh b/vendorsetup.sh new file mode 100755 index 0000000..7e697e0 --- /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_tuna-userdebug -- cgit v1.1