summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2010-03-16 16:44:08 -0700
committerJean-Baptiste Queru <jbq@google.com>2010-03-16 16:44:08 -0700
commit4176301641204a49978af0acd9c5ee162e0ae9b5 (patch)
tree887e7df134815bed8f5a80380ca7673f8a39b3e6
parent3b1132b2e5ffb4efe40636a1ac31ec0827811f17 (diff)
downloaddream-sapphire-4176301641204a49978af0acd9c5ee162e0ae9b5.tar.gz
Share common AndroidBoard files between dream and sapphire
Change-Id: Id78254be58b328f78fd55d05a8e454377919abf1
-rw-r--r--AndroidBoardCommon.mk48
-rw-r--r--h2w_headset.kl9
-rw-r--r--kernelbin0 -> 2153212 bytes
-rw-r--r--recovery/images/README18
-rw-r--r--recovery/images/bitmap_size.txt1
-rw-r--r--recovery/images/firmware_error.565bin0 -> 307200 bytes
-rw-r--r--recovery/images/icon_firmware_error.pngbin0 -> 8088 bytes
-rw-r--r--vold.fstab33
-rw-r--r--wlan.kobin0 -> 637312 bytes
9 files changed, 109 insertions, 0 deletions
diff --git a/AndroidBoardCommon.mk b/AndroidBoardCommon.mk
new file mode 100644
index 0000000..86daf0f
--- /dev/null
+++ b/AndroidBoardCommon.mk
@@ -0,0 +1,48 @@
+# 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.
+
+LOCAL_PATH := $(call my-dir)
+
+ifeq ($(TARGET_PREBUILT_KERNEL),)
+TARGET_PREBUILT_KERNEL := $(LOCAL_PATH)/kernel
+endif
+
+file := $(INSTALLED_KERNEL_TARGET)
+ALL_PREBUILT += $(file)
+$(file): $(TARGET_PREBUILT_KERNEL) | $(ACP)
+ $(transform-prebuilt-to-target)
+
+$(call add-radio-file,recovery/images/firmware_error.565)
+$(call add-radio-file,recovery/images/bitmap_size.txt)
+
+file := $(TARGET_OUT_KEYLAYOUT)/h2w_headset.kl
+ALL_PREBUILT += $(file)
+$(file) : $(LOCAL_PATH)/h2w_headset.kl | $(ACP)
+ $(transform-prebuilt-to-target)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE_CLASS := ETC
+LOCAL_MODULE := vold.fstab
+LOCAL_SRC_FILES := $(LOCAL_MODULE)
+include $(BUILD_PREBUILT)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := wlan.ko
+LOCAL_MODULE_TAGS := user
+LOCAL_MODULE_CLASS := ETC
+LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/modules
+LOCAL_SRC_FILES := $(LOCAL_MODULE)
+include $(BUILD_PREBUILT)
+
+-include vendor/htc/dream-sapphire/AndroidBoardCommonVendor.mk
diff --git a/h2w_headset.kl b/h2w_headset.kl
new file mode 100644
index 0000000..14f4382
--- /dev/null
+++ b/h2w_headset.kl
@@ -0,0 +1,9 @@
+key 107 ENDCALL WAKE_DROPPED
+key 113 MUTE
+key 114 VOLUME_DOWN
+key 115 VOLUME_UP
+key 163 MEDIA_NEXT
+key 164 MEDIA_PLAY_PAUSE
+key 165 MEDIA_PREVIOUS
+key 226 HEADSETHOOK WAKE
+key 231 CALL WAKE_DROPPED
diff --git a/kernel b/kernel
new file mode 100644
index 0000000..770909d
--- /dev/null
+++ b/kernel
Binary files differ
diff --git a/recovery/images/README b/recovery/images/README
new file mode 100644
index 0000000..9447250
--- /dev/null
+++ b/recovery/images/README
@@ -0,0 +1,18 @@
+This directory contains the firmware_install.565 and
+firmware_error.565 bitmaps shown when installing a radio or hboot
+update via OTA on this device.
+
+They were generated from the corresponding .png files by doing:
+
+ convert -gravity center -extent 320x480 -background black -depth 8 icon_firmware_install.png temp.rgb
+ rgb2565 -w 320 < temp.rgb > firmware_install.565
+
+ convert -gravity center -extent 320x480 -background black -depth 8 icon_firmware_error.png temp.rgb
+ rgb2565 -w 320 < temp.rgb > firmware_error.565
+
+(convert is part of ImageMagick; rgb2565 is built in the android
+source tree.)
+
+bitmap_size.txt contains the width, height, and depth of the bitmaps
+(320 x 480 x 16bpp).
+
diff --git a/recovery/images/bitmap_size.txt b/recovery/images/bitmap_size.txt
new file mode 100644
index 0000000..017e67a
--- /dev/null
+++ b/recovery/images/bitmap_size.txt
@@ -0,0 +1 @@
+320 480 16
diff --git a/recovery/images/firmware_error.565 b/recovery/images/firmware_error.565
new file mode 100644
index 0000000..f6303ff
--- /dev/null
+++ b/recovery/images/firmware_error.565
Binary files differ
diff --git a/recovery/images/icon_firmware_error.png b/recovery/images/icon_firmware_error.png
new file mode 100644
index 0000000..0c32c9e
--- /dev/null
+++ b/recovery/images/icon_firmware_error.png
Binary files differ
diff --git a/vold.fstab b/vold.fstab
new file mode 100644
index 0000000..a48b0ce
--- /dev/null
+++ b/vold.fstab
@@ -0,0 +1,33 @@
+# 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.
+
+
+## Vold 2.0 fstab for HTC Dream or Sapphire
+#
+## - San Mehat (san@android.com)
+##
+
+#######################
+## Regular device mount
+##
+## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
+## label - Label for the volume
+## mount_point - Where the volume will be mounted
+## part - Partition # (1 based), or 'auto' for first usable partition.
+## <sysfs_path> - List of sysfs paths to source devices
+######################
+
+# Mounts the first usable partition of the specified device
+dev_mount sdcard /mnt/sdcard auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
+
diff --git a/wlan.ko b/wlan.ko
new file mode 100644
index 0000000..602235b
--- /dev/null
+++ b/wlan.ko
Binary files differ