-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Koushik K. Dutta
authored and
Koushik K. Dutta
committed
Aug 21, 2009
0 parents
commit 858282b
Showing
19 changed files
with
910 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
LOCAL_PATH := $(call my-dir) | ||
|
||
# kernel binary | ||
# | ||
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) | ||
|
||
# keyboard layouts | ||
# | ||
PRODUCT_COPY_FILES += \ | ||
$(LOCAL_PATH)/trout-keypad-v3.kl:system/usr/keylayout/trout-keypad-v3.kl \ | ||
$(LOCAL_PATH)/trout-keypad-qwertz.kl:system/usr/keylayout/trout-keypad-qwertz.kl \ | ||
$(LOCAL_PATH)/h2w_headset.kl:system/usr/keylayout/h2w_headset.kl | ||
|
||
# default apns list | ||
# | ||
PRODUCT_COPY_FILES += \ | ||
$(LOCAL_PATH)/apns.xml:system/etc/apns-conf.xml | ||
|
||
# keyboard maps | ||
# | ||
include $(CLEAR_VARS) | ||
LOCAL_SRC_FILES := trout-keypad-v3.kcm | ||
include $(BUILD_KEY_CHAR_MAP) | ||
|
||
include $(CLEAR_VARS) | ||
LOCAL_SRC_FILES := trout-keypad-qwertz.kcm | ||
include $(BUILD_KEY_CHAR_MAP) | ||
|
||
# board specific init.rc | ||
# | ||
PRODUCT_COPY_FILES += \ | ||
$(LOCAL_PATH)/init.sapphire.rc:root/init.sapphire.rc | ||
|
||
# prebuilt wifi driver | ||
# | ||
PRODUCT_COPY_FILES += \ | ||
$(LOCAL_PATH)/wlan.ko:system/lib/modules/wlan.ko | ||
|
||
# vold.conf | ||
# | ||
# | ||
PRODUCT_COPY_FILES += \ | ||
$(LOCAL_PATH)/vold.conf:system/etc/vold.conf | ||
|
||
# htc proprietary code | ||
# | ||
proprietary := $(LOCAL_PATH)/proprietary | ||
|
||
PRODUCT_COPY_FILES += \ | ||
$(proprietary)/libhtc_ril.so:system/lib/libhtc_ril.so \ | ||
$(proprietary)/libaudioeq.so:system/lib/libaudioeq.so \ | ||
$(proprietary)/libqcamera.so:system/lib/libqcamera.so \ | ||
$(proprietary)/libgps.so:obj/lib/libgps.so \ | ||
$(proprietary)/libgps.so:system/lib/libgps.so \ | ||
$(proprietary)/libOmxCore.so:obj/lib/libOmxCore.so \ | ||
$(proprietary)/libOmxCore.so:system/lib/libOmxCore.so \ | ||
$(proprietary)/libhgl.so:system/lib/libhgl.so \ | ||
$(proprietary)/libhtc_acoustic.so:system/lib/libhtc_acoustic.so \ | ||
$(proprietary)/libjni_pinyinime.so:system/lib/libjni_pinyinime.so \ | ||
$(proprietary)/libmm-adspsvc.so:system/lib/libmm-adspsvc.so \ | ||
$(proprietary)/libOmxH264Dec.so:system/lib/libOmxH264Dec.so \ | ||
$(proprietary)/libOmxMpeg4Dec.so:system/lib/libOmxMpeg4Dec.so \ | ||
$(proprietary)/libOmxVidEnc.so:system/lib/libOmxVidEnc.so \ | ||
$(proprietary)/libopencorehw.so:system/lib/libopencorehw.so \ | ||
$(proprietary)/libpvasf.so:system/lib/libpvasf.so \ | ||
$(proprietary)/libpvasfreg.so:system/lib/libpvasfreg.so \ | ||
$(proprietary)/libspeech.so:system/lib/libspeech.so \ | ||
$(proprietary)/sensors.sapphire.so:system/lib/hw/sensors.sapphire.so \ | ||
$(proprietary)/copybit.msm7k.so:system/lib/hw/copybit.msm7k.so \ | ||
$(proprietary)/brf6300.bin:system/etc/firmware/brf6300.bin \ | ||
$(proprietary)/akmd:system/bin/akmd \ | ||
$(proprietary)/AudioFilter.csv:system/etc/AudioFilter.csv | ||
|
||
PRODUCT_COPY_FILES += \ | ||
$(proprietary)/AudioPara4.csv:system/etc/AudioPara4.csv \ | ||
$(proprietary)/gps.conf:system/etc/gps.conf | ||
|
||
PRODUCT_COPY_FILES += \ | ||
$(proprietary)/tiwlan.ini:system/etc/wifi/tiwlan.ini \ | ||
$(proprietary)/Fw1251r1c.bin:system/etc/wifi/Fw1251r1c.bin | ||
|
||
PRODUCT_COPY_FILES += \ | ||
$(proprietary)/lights.msm7k.so:system/lib/hw/lights.msm7k.so \ | ||
$(proprietary)/AudioPreProcess.csv:system/etc/AudioPreProcess.csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
PRODUCT_MAKEFILES := \ | ||
$(LOCAL_DIR)/htc_sapphire.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
# Dream uses HTC's bootloader, not one from source | ||
# | ||
TARGET_BOARD_PLATFORM := msm7k | ||
TARGET_CPU_ABI := armeabi | ||
|
||
TARGET_NO_BOOTLOADER := true | ||
BOARD_WPA_SUPPLICANT_DRIVER := CUSTOM | ||
BOARD_WLAN_TI_STA_DK_ROOT := system/wlan/ti/sta_dk_4_0_4_32 | ||
|
||
# Kernel/Bootloader machine name | ||
# | ||
TARGET_BOOTLOADER_BOARD_NAME := sapphire | ||
HAVE_CUSTOM_WIFI_DRIVER_2 := true | ||
|
||
# BOARD_USES_GENERIC_AUDIO := true | ||
|
||
BOARD_GPS_LIBRARIES := libgps librpc | ||
|
||
# Flash Partition size limits for build sanity checking | ||
# | ||
BOARD_BOOTIMAGE_MAX_SIZE := 2621440 | ||
BOARD_RECOVERYIMAGE_MAX_SIZE := 5242880 | ||
BOARD_SYSTEMIMAGE_MAX_SIZE := 70778880 | ||
BOARD_USERDATAIMAGE_MAX_SIZE := 78381056 | ||
|
||
# Erase Unit size | ||
# | ||
BOARD_FLASH_BLOCK_SIZE := 131072 | ||
|
||
BOARD_HAVE_BLUETOOTH := true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
---- build configuration ---- | ||
|
||
You can configure to build for HTC Dream (aka T-Mobile G1) by putting | ||
the following in your buildspec.mk file at the root of the source tree: | ||
|
||
TARGET_PRODUCT := htc_sapphire | ||
|
||
If you wish to override the included prebuilt kernel image, add: | ||
|
||
TARGET_PREBUILD_KERNEL := /path/to/kernel/arch/arm/boot/zImage | ||
|
||
---- proprietary files ---- | ||
|
||
The HTC Dream device includes a small number of proprietary binary | ||
files that are necessary for Android to work correctly on it. | ||
|
||
They can be obtained from your Dream device by running the | ||
extract-files.sh script in this directory. It will create the | ||
proprietary subdirectory, and use adb (which will need to be in | ||
your path) to copy the files from your device. You will need to | ||
enable USB Debugging (under Settings/Applications/Development) | ||
for this to work. | ||
|
Oops, something went wrong.