This repository has been archived by the owner on Apr 28, 2021. It is now read-only.
forked from kb7sqi/device_motorola_motus
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
j_r0dd
committed
Jun 6, 2011
1 parent
db39af3
commit 5c32485
Showing
13 changed files
with
1,281 additions
and
15 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 |
---|---|---|
@@ -1,8 +1,26 @@ | ||
# 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. | ||
|
||
# | ||
# AndroidBoard.mk is a legacy mechanism to deal with a few | ||
# edge-cases that can't be managed otherwise. No new rules | ||
# should be added to this file. | ||
# | ||
|
||
LOCAL_PATH := $(call my-dir) | ||
|
||
include $(CLEAR_VARS) | ||
|
||
ALL_PREBUILT += $(INSTALLED_KERNEL_TARGET) | ||
|
||
# include the non-open-source counterpart to this file | ||
-include vendor/motorola/motus/AndroidBoardVendor.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 |
---|---|---|
@@ -1,2 +1,21 @@ | ||
# 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. | ||
|
||
# | ||
# This file lists the product definition files that define | ||
# configurations which are actually buildable (e.g. through lunch) | ||
# | ||
|
||
PRODUCT_MAKEFILES := \ | ||
$(LOCAL_DIR)/device_motus.mk | ||
$(LOCAL_DIR)/motus.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 |
---|---|---|
@@ -1,28 +1,113 @@ | ||
# 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. | ||
|
||
# | ||
# This file sets variables that control the way modules are built | ||
# thorughout the system. It should not be used to conditionally | ||
# disable makefiles (the proper mechanism to control what gets | ||
# included in a build is to use PRODUCT_PACKAGES in a product | ||
# definition file). | ||
# | ||
|
||
# WARNING: This line must come *before* including the proprietary | ||
# variant, so that it gets overwritten by the parent (which goes | ||
# against the traditional rules of inheritance). | ||
USE_CAMERA_STUB := true | ||
|
||
# inherit from the proprietary version | ||
-include vendor/motorola/motus/BoardConfigVendor.mk | ||
BOARD_CUSTOM_RECOVERY_KEYMAPPING:= ../../device/motorola/motus/recovery/recovery_ui.c | ||
|
||
TARGET_NO_BOOTLOADER := true | ||
# Hardware | ||
TARGET_BOARD_PLATFORM := msm7k | ||
TARGET_CPU_ABI := armeabi | ||
TARGET_ARCH_VARIANT := armv6j | ||
TARGET_CPU_ABI := armeabi-v6j | ||
TARGET_CPU_ABI2 := armeabi | ||
BOARD_VENDOR_USE_AKMD := akm8973 | ||
BOARD_USES_QCOM_LIBS := true | ||
TARGET_BOOTLOADER_BOARD_NAME := motus | ||
TARGET_NO_BOOTLOADER := true | ||
TARGET_OTA_ASSERT_DEVICE := motu,motus | ||
|
||
# Kernel | ||
TARGET_PREBUILT_KERNEL := device/motorola/motus/kernel | ||
BOARD_KERNEL_CMDLINE := no_console_suspend=1 console=null quiet | ||
BOARD_USE_USB_MASS_STORAGE_SWITCH := true | ||
|
||
# FM Radio | ||
BOARD_HAVE_FM_RADIO := true | ||
TARGET_GLOBAL_CFLAGS += -DHAVE_FM_RADIO | ||
TARGET_GLOBAL_CPPFLAGS += -DHAVE_FM_RADIO | ||
BOARD_USE_BROADCOM_FM_VOLUME_HACK := true | ||
|
||
# Browser JS engine | ||
JS_ENGINE := v8 | ||
|
||
# WiFi | ||
BOARD_WPA_SUPPLICANT_DRIVER := WEXT | ||
WPA_SUPPLICANT_VERSION := VER_0_5_X | ||
BOARD_WLAN_DEVICE := bcm4329 | ||
WIFI_DRIVER_MODULE_PATH := "/system/lib/dhd.ko" | ||
WIFI_DRIVER_MODULE_ARG := "firmware_path=/system/etc/wifi/sdio-g-cdc-reclaim-wme.bin nvram_path=/system/etc/wifi/nvram.txt" | ||
WIFI_DRIVER_MODULE_NAME := "dhd" | ||
|
||
BOARD_KERNEL_CMDLINE := no_console_suspend=1 console=null | ||
BOARD_KERNEL_BASE := 0x10000000 | ||
BOARD_PAGE_SIZE := 0x00000800 | ||
# Bluetooth | ||
BOARD_HAVE_BLUETOOTH := true | ||
BOARD_HAVE_BLUETOOTH_BCM := true | ||
|
||
# fix this up by examining /proc/mtd on a running device | ||
# # dev: size erasesize name | ||
#mtd0: 00300000 00020000 "boot" | ||
#mtd1: 0a140000 00020000 "system" | ||
#mtd2: 0bf00000 00020000 "userdata" | ||
#mtd3: 00040000 00020000 "misc" | ||
#mtd4: 00500000 00020000 "recovery" | ||
#mtd5: 06a00000 00020000 "cache" | ||
#mtd6: 00080000 00020000 "splash" | ||
|
||
BOARD_BOOTIMAGE_PARTITION_SIZE := 0x00300000 | ||
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x00500000 | ||
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 0x08ac0000 | ||
BOARD_USERDATAIMAGE_PARTITION_SIZE := 0x0df80000 | ||
BOARD_FLASH_BLOCK_SIZE := 131072 | ||
|
||
# TARGET_PREBUILT_KERNEL := device/motorola/motus/kernel | ||
TARGET_PREBUILT_RECOVERY_KERNEL := device/motorola/motus/recovery_kernel | ||
# System | ||
WITH_DEXPREOPT := false | ||
|
||
# Graphics | ||
# Use RGB565 surfaces until userspace drivers are upgraded | ||
BOARD_NO_RGBX_8888 := true | ||
BOARD_AVOID_DRAW_TEXTURE_EXTENSION := true | ||
TARGET_LIBAGL_USE_GRALLOC_COPYBITS := true | ||
BOARD_EGL_CFG := device/motorola/motus/egl.cfg | ||
TARGET_SF_NEEDS_REAL_DIMENSIONS := true | ||
|
||
# GPS | ||
BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := msm7k | ||
BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION := 3200 | ||
BOARD_VENDOR_QCOM_AMSS_VERSION := 3200 | ||
BOARD_USES_GPSSHIM := false | ||
|
||
# Audio | ||
BOARD_USES_GENERIC_AUDIO := false | ||
TARGET_PROVIDES_LIBAUDIO := true | ||
|
||
#BOARD_HAS_NO_SELECT_BUTTON := true | ||
# Vibrator | ||
BOARD_HAS_VIBRATOR_IMPLEMENTATION := ../../device/motorola/motus/vibrator.c | ||
|
||
# Recovery | ||
TARGET_RECOVERY_PRE_COMMAND := "setrecovery recovery" | ||
BOARD_CUSTOM_RECOVERY_KEYMAPPING:= ../../device/motorola/motus/recovery/recovery_ui.c | ||
|
||
TARGET_PREBUILT_RECOVERY_KERNEL := device/motorola/motus/recovery_kernel | ||
|
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,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 | ||
# ************************************************ |
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,9 @@ | ||
#!/system/xbin/busybox sh | ||
sleep 5 | ||
killall hciattach | ||
bt_init /system/etc/bt_init.config & | ||
sleep 7 | ||
chmod -R 0777 /sys/class/rfkill | ||
chmod 0777 /sys/class/rfkill/rfkill*/state | ||
chmod 0777 /sys/class/rfkill/rfkill*/type | ||
chown -R bluetooth.bluetooth /sys/class/rfkill |
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,8 @@ | ||
# dhcpcd configuration for Android Wi-Fi interface | ||
# See dhcpcd.conf(5) for details. | ||
|
||
interface eth0 | ||
timeout 10 | ||
#noarp | ||
# dhcpcd-run-hooks uses these options. | ||
option subnet_mask, routers, domain_name_servers |
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,2 @@ | ||
0 0 android | ||
0 1 qcom |
Oops, something went wrong.