Skip to content

Commit

Permalink
Massive jellybean initial commit
Browse files Browse the repository at this point in the history
- used KonstaT's and androidarmv6 repos as source (thanks)
  • Loading branch information
C3C0 committed Dec 30, 2012
1 parent 28c9de4 commit adbed8a
Show file tree
Hide file tree
Showing 62 changed files with 2,130 additions and 3,177 deletions.
65 changes: 38 additions & 27 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -21,71 +21,82 @@ USE_CAMERA_STUB := true
# Use the non-open-source parts, if they're present
-include vendor/zte/skate/BoardConfigVendor.mk

# CPU
TARGET_CPU_ABI := armeabi-v6l
TARGET_CPU_ABI2 := armeabi
TARGET_ARCH_VARIANT := armv6-vfp

TARGET_PREBUILT_RECOVERY_KERNEL := device/zte/skate/recovery_kernel
# Target and board properties
TARGET_NO_BOOTLOADER := true
TARGET_NO_RADIOIMAGE := true
BOARD_PROVIDES_LIBRIL := true
TARGET_BOARD_PLATFORM := msm7x27
TARGET_BOOTLOADER_BOARD_NAME := skate
TARGET_SPECIFIC_HEADER_PATH := device/zte/skate/include

# Recovery
BOARD_CUSTOM_GRAPHICS := ../../../device/zte/skate/recovery/graphics.c
BOARD_CUSTOM_RECOVERY_KEYMAPPING := ../../device/zte/skate/recovery/recovery_ui.c
TARGET_RECOVERY_INITRC := device/zte/skate/recovery/recovery.rc

# Kernel
TARGET_KERNEL_SOURCE := kernel/zte/skate
TARGET_KERNEL_CONFIG := skate_ics_defconfig
BUILD_KERNEL := true
TARGET_KERNEL_CONFIG := skate_jb_defconfig
TARGET_PREBUILT_RECOVERY_KERNEL := device/zte/skate/recovery_kernel
BOARD_KERNEL_BASE := 0x02600000
BOARD_KERNEL_CMDLINE := androidboot.hardware=skate console=null

TARGET_NO_BOOTLOADER := true
TARGET_NO_RADIOIMAGE := true
TARGET_BOARD_PLATFORM := msm7x27
TARGET_BOOTLOADER_BOARD_NAME := skate

# Wifi
WPA_SUPPLICANT_VERSION := VER_0_8_X
BOARD_WLAN_DEVICE := bcmdhd
BOARD_WPA_SUPPLICANT_DRIVER := WEXT
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd
WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/dhd.ko"
WIFI_DRIVER_FW_PATH_AP := "/system/etc/fw_4319.bin"
WIFI_DRIVER_FW_PATH_STA := "/system/etc/fw_4319_apsta.bin"
WIFI_DRIVER_FW_PATH_STA := "/system/etc/fw_4319.bin"
WIFI_DRIVER_FW_PATH_AP := "/system/etc/fw_4319_apsta.bin"
WIFI_DRIVER_MODULE_ARG := "firmware_path=/system/etc/fw_4319.bin,nvram_path=/system/etc/nv_4319.txt iface_name=wlan"
WIFI_DRIVER_MODULE_NAME := "dhd"

# Touchscreen
BOARD_USE_LEGACY_TOUCHSCREEN := true

# Bluetooth
BOARD_HAVE_BLUETOOTH := true
BOARD_HAVE_BLUETOOTH_BCM := true

BOARD_PROVIDES_LIBRIL := true

TARGET_SPECIFIC_HEADER_PATH := device/zte/skate/include

# USB mounting
TARGET_USE_CUSTOM_LUN_FILE_PATH := /sys/devices/platform/msm_hsusb/gadget/lun0/file
BOARD_UMS_LUNFILE := "/sys/devices/platform/msm_hsusb/gadget/lun0/file"

# Browser
WITH_JIT := true
HTTP := chrome

# Webkit
ENABLE_WEBGL := true
TARGET_FORCE_CPU_UPLOAD := true

# QCOM
BOARD_USES_QCOM_HARDWARE := true
COMMON_GLOBAL_CFLAGS += -DQCOM_HARDWARE -DREFRESH_RATE=60 -DQCOM_ICS_COMPAT -DICS_CAMERA_BLOB
BOARD_USES_QCOM_LIBS := true
COMMON_GLOBAL_CFLAGS += -DQCOM_HARDWARE -DQCOM_LEGACY_OMX
BOARD_NEEDS_MEMORYHEAPPMEM := true

# Graphics
BOARD_EGL_CFG := device/zte/skate/egl.cfg
USE_OPENGL_RENDERER := true
TARGET_NO_HW_VSYNC := true
BOARD_ADRENO_DECIDE_TEXTURE_TARGET := true
TARGET_USES_GENLOCK := true
TARGET_FORCE_CPU_UPLOAD := true
COMMON_GLOBAL_CFLAGS += -DQCOM_ICS_COMPAT -DQCOM_NO_SECURE_PLAYBACK

WITH_JIT := true
ENABLE_JSC_JIT := true
JS_ENGINE := v8
HTTP := chrome
ENABLE_WEBGL := true
# Bootanimation
TARGET_BOOTANIMATION_USE_RGB565 := true

# Fonts
SMALLER_FONT_FOOTPRINT := true

# FM Radio
BOARD_FM_DEVICE := si4708
BOARD_HAVE_FM_RADIO := true
BOARD_GLOBAL_CFLAGS += -DHAVE_FM_RADIO -DFM_RADIO
# Camera
TARGET_DISABLE_ARM_PIE := true
BOARD_USES_LEGACY_CAMERA := true

# dev: size erasesize name
# mtd0: 00500000 00020000 "recovery"
Expand Down
6 changes: 3 additions & 3 deletions audio_policy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Devices are designated by a string that corresponds to the enum in audio.h

global_configuration {
attached_output_devices AUDIO_DEVICE_OUT_SPEAKER
attached_output_devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER
default_output_device AUDIO_DEVICE_OUT_SPEAKER
attached_input_devices AUDIO_DEVICE_IN_BUILTIN_MIC
}
Expand All @@ -26,13 +26,13 @@ audio_hw_modules {
sampling_rates 44100
channel_masks AUDIO_CHANNEL_OUT_STEREO
formats AUDIO_FORMAT_PCM_16_BIT
devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO
devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO
flags AUDIO_OUTPUT_FLAG_PRIMARY
}
}
inputs {
primary {
sampling_rates 8000|11025|16000|22050|24000|32000|44100|48000
sampling_rates 8000|11025|16000|22050|32000|44100
channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO
formats AUDIO_FORMAT_PCM_16_BIT
devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET|AUDIO_DEVICE_IN_WIRED_HEADSET
Expand Down
14 changes: 8 additions & 6 deletions cm.mk
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
# Correct boot animation size
TARGET_BOOTANIMATION_NAME := vertical-480x800

# Inherit device configuration
$(call inherit-product, device/zte/skate/skate.mk)

# Inherit some common CM stuff.
$(call inherit-product, vendor/cm/config/common_full_phone.mk)
# Correct bootanimation size for the screen
TARGET_SCREEN_HEIGHT := 800
TARGET_SCREEN_WIDTH := 480

# Inherit some common CM stuff.
$(call inherit-product, vendor/cm/config/gsm.mk)

PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=skate BUILD_ID=IML74K BUILD_FINGERPRINT=ZTE/N880E_ICS/atlas40:4.0.3/IML74K/20120531.102703:user/release-keys PRIVATE_BUILD_DESC="N880E_ICS-user 4.0.3 IML74K 20120531.102703 release-keys" BUILD_NUMBER=20120531.102703
# Inherit some common CM stuff.
$(call inherit-product, vendor/cm/config/common_mini_phone.mk)

PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=skate BUILD_ID=JRO03C BUILD_FINGERPRINT=ZTE/N880E_JB/atlas40:4.1.1/JRO03C/eng.songsy.20120718.233441:eng/test-keys PRIVATE_BUILD_DESC="N880E_JB-eng 4.1.1 JRO03C eng.songsy.20120718.233441 test-keys" BUILD_NUMBER=eng.songsy.20120718.233441

PRODUCT_NAME := cm_skate
PRODUCT_DEVICE := skate
Expand Down
81 changes: 48 additions & 33 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -21,60 +21,75 @@

DEVICE_PACKAGE_OVERLAYS := device/zte/skate/overlay
$(call inherit-product, device/common/gps/gps_eu_supl.mk)
$(call inherit-product, frameworks/native/build/phone-hdpi-512-dalvik-heap.mk)

PRODUCT_AAPT_CONFIG := normal hdpi
PRODUCT_AAPT_PREF_CONFIG := hdpi

# Graphics
PRODUCT_PACKAGES := \
lights.skate \
sensors.skate \
librpc \
SkateParts \
dexpreopt \
libcamera \
camera.msm7x27 \
make_ext4fs

# Display
PRODUCT_PACKAGES += \
libgenlock \
libmemalloc \
liboverlay \
libQcomUI \
libtilerenderer \
libopencorehw \
gralloc.msm7x27 \
copybit.msm7x27 \
hwcomposer.msm7x27
copybit.msm7x27

# Live Wallpapers
# OMX
PRODUCT_PACKAGES += \
LiveWallpapers \
LiveWallpapersPicker \
VisualizationWallpapers \
librs_jni
libmm-omxcore \
libOmxCore \
libstagefrighthw

# Camera
PRODUCT_PACKAGES += \
camera.msm7x27

# GPS
PRODUCT_PACKAGES += \
librpc

# Skate specific
PRODUCT_PACKAGES += \
lights.skate \
sensors.skate \
SkateParts

# Audio
PRODUCT_PACKAGES += \
audio.primary.skate \
audio_policy.skate \
audio.usb.default \
audio.a2dp.default \
libaudioutils

PRODUCT_TAGS += dalvik.gc.type-precise
DISABLE_DEXPREOPT := false
# Live Wallpapers
PRODUCT_PACKAGES += \
LiveWallpapersPicker \
librs_jni

# Other
PRODUCT_PACKAGES += \
make_ext4fs \
setup_fs \
dexpreopt

# for bugmailer
ifneq ($(TARGET_BUILD_VARIANT),user)
PRODUCT_PACKAGES += send_bug
PRODUCT_PACKAGES += send_bug

PRODUCT_COPY_FILES += \
system/extras/bugmailer/bugmailer.sh:system/bin/bugmailer.sh \
system/extras/bugmailer/send_bug:system/bin/send_bug
system/extras/bugmailer/bugmailer.sh:system/bin/bugmailer.sh \
system/extras/bugmailer/send_bug:system/bin/send_bug
endif

DISABLE_DEXPREOPT := false

PRODUCT_TAGS += dalvik.gc.type-precise

PRODUCT_COPY_FILES += \
device/common/gps/gps.conf_EU_SUPL:system/etc/gps.conf

# Enable repeatable keys in CWM
PRODUCT_PROPERTY_OVERRIDES += \
ro.cwm.enable_key_repeat=true

PRODUCT_COPY_FILES := \
device/zte/skate/init.qcom.bt.sh:system/etc/init.qcom.bt.sh \
device/zte/skate/init.skate.rc:root/init.skate.rc \
device/zte/skate/init.skate.usb.rc:root/init.skate.usb.rc \
device/zte/skate/ueventd.skate.rc:root/ueventd.skate.rc \
Expand All @@ -87,8 +102,6 @@ PRODUCT_COPY_FILES := \
device/zte/skate/audio_policy.conf:system/etc/audio_policy.conf \
device/zte/skate/prebuilt/synaptics-rmi4-ts.idc:system/usr/idc/synaptics-rmi4-ts.idc \
device/zte/skate/prebuilt/synaptics-rmi-touchscreen.idc:system/usr/idc/synaptics-rmi-touchscreen.idc \
device/zte/skate/prebuilt/start_usb0.sh:system/etc/start_usb0.sh \
device/zte/skate/prebuilt/gralloc.skate.so:system/lib/hw/gralloc.skate.so

# WiFi
PRODUCT_COPY_FILES += \
Expand All @@ -98,6 +111,7 @@ PRODUCT_COPY_FILES += \

# Bluetooth configuration files
PRODUCT_COPY_FILES += \
device/zte/skate/init.qcom.bt.sh:system/etc/init.qcom.bt.sh \
system/bluetooth/data/main.le.conf:system/etc/bluetooth/main.conf


Expand Down Expand Up @@ -126,4 +140,5 @@ PRODUCT_PROPERTY_OVERRIDES += \
ro.goo.rom=cm10skate
endif

$(call inherit-product, frameworks/native/build/phone-hdpi-512-dalvik-heap.mk)
$(call inherit-product-if-exists, vendor/zte/skate/skate-vendor.mk)
1 change: 0 additions & 1 deletion egl.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
0 0 android
0 1 adreno200
77 changes: 0 additions & 77 deletions include/device_perms.h

This file was deleted.

3 changes: 2 additions & 1 deletion include/linux/ashmem.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ struct ashmem_pin {
#define ASHMEM_GET_PIN_STATUS _IO(__ASHMEMIOC, 9)
#define ASHMEM_PURGE_ALL_CACHES _IO(__ASHMEMIOC, 10)
#define ASHMEM_CACHE_FLUSH_RANGE _IO(__ASHMEMIOC, 11)
#define ASHMEM_CACHE_CLEAN_RANGE _IO(__ASHMEMIOC, 12)
#define ASHMEM_CACHE_CLEAN_RANGE _IO(__ASHMEMIOC, 12)
#define ASHMEM_CACHE_INV_RANGE _IO(__ASHMEMIOC, 13)

int get_ashmem_file(int fd, struct file **filp, struct file **vm_file,
unsigned long *len);
Expand Down
Loading

0 comments on commit adbed8a

Please sign in to comment.