Skip to content

Commit

Permalink
Move stingray board files to device/moto/stingray
Browse files Browse the repository at this point in the history
Change-Id: Ib23499a92adf886c46fc5429fd3a992d27d866fc
  • Loading branch information
colincross committed Jun 2, 2010
1 parent ae5ba0d commit 3fdd43a
Show file tree
Hide file tree
Showing 13 changed files with 214 additions and 0 deletions.
45 changes: 45 additions & 0 deletions AndroidBoard.mk
@@ -0,0 +1,45 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)

PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/vold.fstab:system/etc/vold.fstab

include $(CLEAR_VARS)

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)

include $(CLEAR_VARS)

target_hw_init_stingray_rc_file := $(TARGET_ROOT_OUT)/init.stingray.rc
target_hw_init_olympus_rc_file := $(TARGET_ROOT_OUT)/init.olympus.rc
target_hw_ueventd_stingray_rc_file := $(TARGET_ROOT_OUT)/ueventd.stingray.rc
target_hw_ueventd_olympus_rc_file := $(TARGET_ROOT_OUT)/ueventd.olympus.rc

$(target_hw_init_stingray_rc_file) : $(LOCAL_PATH)/init.stingray.rc | $(ACP)
$(transform-prebuilt-to-target)
$(target_hw_init_olympus_rc_file) : $(LOCAL_PATH)/init.stingray.rc | $(ACP)
$(transform-prebuilt-to-target)
$(target_hw_ueventd_stingray_rc_file) : $(LOCAL_PATH)/ueventd.stingray.rc | $(ACP)
$(transform-prebuilt-to-target)
$(target_hw_ueventd_olympus_rc_file) : $(LOCAL_PATH)/ueventd.stingray.rc | $(ACP)
$(transform-prebuilt-to-target)

ALL_PREBUILT += $(target_hw_init_stingray_rc_file) \
$(target_hw_init_olympus_rc_file) \
$(target_hw_ueventd_stingray_rc_file) \
$(target_hw_ueventd_olympus_rc_file)

include $(CLEAR_VARS)

COMMON_DIR := vendor/nvidia/common/

ifeq ($(wildcard $(COMMON_DIR)/TegraBoard.mk),$(COMMON_DIR)/TegraBoard.mk)
include $(COMMON_DIR)/TegraBoard.mk
endif
3 changes: 3 additions & 0 deletions AndroidProducts.mk
@@ -0,0 +1,3 @@
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/stingray_emu.mk \
$(LOCAL_DIR)/generic_stingray.mk
31 changes: 31 additions & 0 deletions BoardConfig.mk
@@ -0,0 +1,31 @@
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_CPU_SMP := true
TARGET_ARCH_VARIANT := armv7-a
ARCH_ARM_HAVE_TLS_REGISTER := true

TARGET_USERIMAGES_USE_EXT4 := true

# Wifi related defines
BOARD_WPA_SUPPLICANT_DRIVER := WEXT
WPA_SUPPLICANT_VERSION := VER_0_6_X
BOARD_WLAN_DEVICE := bcm4329
WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/bcm4329.ko"
WIFI_DRIVER_FW_STA_PATH := "/system/etc/firmware/fw_bcm4329.bin"
WIFI_DRIVER_FW_AP_PATH := "/system/etc/firmware/fw_bcm4329_apsta.bin"
WIFI_DRIVER_MODULE_ARG := "firmware_path=/system/etc/firmware/fw_bcm4329.bin nvram_path=/proc/calibration"
WIFI_DRIVER_MODULE_NAME := "bcm4329"

BOARD_USES_GENERIC_AUDIO := true
USE_CAMERA_STUB := true
USE_E2FSPROGS := true

BOARD_EGL_CFG := device/moto/stingray/egl.cfg
BOARD_KERNEL_CMDLINE := mem=448M@0M console=ttyS0,115200n8 tegrapart=mmcblk0=system:3600:10000:800,cache:13600:4000:800,userdata:17600:80000:800 debug

COMMON_DIR := vendor/nvidia/common/
TARGET_TEGRA_VERSION := ap20

ifeq ($(wildcard $(COMMON_DIR)/TegraConfig.mk),$(COMMON_DIR)/TegraConfig.mk)
include $(COMMON_DIR)/TegraConfig.mk
endif
49 changes: 49 additions & 0 deletions 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
# ************************************************
Binary file added bcm4329.ko
Binary file not shown.
22 changes: 22 additions & 0 deletions device.mk
@@ -0,0 +1,22 @@
#
# Copyright (C) 2010 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_PROPERTY_OVERRIDES := \
wifi.interface=eth0 \
wifi.supplicant_scan_interval=15

PRODUCT_COPY_FILES += \
device/moto/stingray/bcm4329.ko:system/lib/modules/bcm4329.ko
2 changes: 2 additions & 0 deletions egl.cfg
@@ -0,0 +1,2 @@
0 0 android
0 1 tegra
9 changes: 9 additions & 0 deletions generic_stingray.mk
@@ -0,0 +1,9 @@
$(call inherit-product, $(SRC_TARGET_DIR)/product/generic.mk)
$(call inherit-product, device/moto/stingray/device.mk)
$(call inherit-product-if-exists, vendor/moto/stingray/stingray-vendor.mk)

# Overrides
PRODUCT_DEVICE := stingray
PRODUCT_LOCALES += en_US
PRODUCT_MODEL := Motorola Stingray
PRODUCT_NAME := stingray
27 changes: 27 additions & 0 deletions init.stingray.rc
@@ -0,0 +1,27 @@
on early-init
mount debugfs debugfs /sys/kernel/debug

on fs
mount ext4 /dev/block/platform/sdhci-tegra.3/by-name/system /system wait ro
mount ext2 /dev/block/platform/sdhci-tegra.3/by-name/userdata /data wait noatime
mount ext2 /dev/block/platform/sdhci-tegra.3/by-name/cache /cache wait noatime

on boot
mkdir /data/misc/wifi 0770 wifi wifi
mkdir /data/misc/wifi/sockets 0770 wifi wifi
mkdir /data/misc/dhcp 0770 dhcp dhcp
chown dhcp dhcp /data/misc/dhcp

service wpa_supplicant /system/bin/wpa_supplicant \
-Dwext -ieth0 -c/data/misc/wifi/wpa_supplicant.conf
# we will start as root and wpa_supplicant will switch to user wifi
# after setting up the capabilities required for WEXT
# user wifi
# group wifi inet keystore
socket wpa_eth0 dgram 660 wifi wifi
disabled
oneshot

service dhcpcd /system/bin/dhcpcd -ABKL
disabled
oneshot
Binary file added kernel
Binary file not shown.
7 changes: 7 additions & 0 deletions stingray_emu.mk
@@ -0,0 +1,7 @@
$(call inherit-product, $(SRC_TARGET_DIR)/product/large_emu_hw.mk)

# Overrides
PRODUCT_DEVICE := stingray
PRODUCT_LOCALES += en_US
PRODUCT_MODEL := Motorola Stingray
PRODUCT_NAME := stingray_emu
4 changes: 4 additions & 0 deletions ueventd.stingray.rc
@@ -0,0 +1,4 @@
/dev/nvos 0666 system system
/dev/nvrm 0666 system system
/dev/knvmap 0666 system system
/dev/nvmap 0666 system system
15 changes: 15 additions & 0 deletions vold.fstab
@@ -0,0 +1,15 @@
## Vold 2.0 fstab for Harmony

#######################
## 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/sdhci-tegra.1/mmc_host/mmc0
/devices/platform/sdhci-tegra.3/mmc_host/mmc0

0 comments on commit 3fdd43a

Please sign in to comment.