Skip to content

Commit

Permalink
initial commit for A10
Browse files Browse the repository at this point in the history
  • Loading branch information
Quarx2k committed Apr 22, 2012
1 parent 1bce5bd commit 4dc1179
Show file tree
Hide file tree
Showing 70 changed files with 1,234 additions and 2 deletions.
18 changes: 18 additions & 0 deletions AndroidProducts.mk
@@ -0,0 +1,18 @@
#
# Copyright (C) 2011 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_MAKEFILES := \
$(LOCAL_DIR)/full_a10.mk
64 changes: 64 additions & 0 deletions BoardConfig.mk
@@ -0,0 +1,64 @@
#
# Copyright (C) 2012 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.
#
TARGET_BOOTLOADER_BOARD_NAME := a10
TARGET_BOARD_PLATFORM := exDroid

USE_CAMERA_STUB := false
BOARD_USES_GENERIC_AUDIO := false
TARGET_NO_BOOTLOADER := true
TARGET_NO_RADIOIMAGE := true

#CPU stuff
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_ARCH_VARIANT := armv7-a-neon
TARGET_GLOBAL_CFLAGS += -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
TARGET_GLOBAL_CPPFLAGS += -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
ARCH_ARM_HAVE_TLS_REGISTER := true

TARGET_CUSTOM_RELEASETOOL := ./device/allwinner/a10/releasetools/squisher

BOARD_HAVE_GPS := false
BOARD_HAVE_BLUETOOTH := false
TARGET_USES_CUSTOM_VIBRATOR_PATH := "/sys/class/timed_output/sun4i-vibrator/enable"
BOARD_HAS_SDCARD_INTERNAL := true

TARGET_USERIMAGES_USE_EXT4 := true
BOARD_BOOTIMAGE_PARTITION_SIZE := 33554432
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 33554432
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 268435456
BOARD_USERDATAIMAGE_PARTITION_SIZE := 1073741824
BOARD_FLASH_BLOCK_SIZE := 4096

#EGL stuff
BOARD_EGL_CFG := device/allwinner/a10/egl.cfg
USE_OPENGL_RENDERER := true
#BOARD_USE_SKIA_LCDTEXT := true

#Recovery Stuff
#TARGET_RECOVERY_UI_LIB := librecovery_ui_generic
#TARGET_RECOVERY_UPDATER_LIBS += librecovery_updater_generic
BOARD_CUSTOM_RECOVERY_KEYMAPPING := ../../device/allwinner/a10/recovery_keys.c
#BOARD_USE_LEGACY_TOUCHSCREEN := true
# Wifi stuff

#WPA_SUPPLICANT_VERSION := VER_0_8_X
#BOARD_WPA_SUPPLICANT_DRIVER := NL80211
#BOARD_HOSTAPD_DRIVER := NL80211
WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/8192cu.ko"
WIFI_DRIVER_MODULE_NAME := 8192cu
# Beware: set only prebuilt OR source+config
TARGET_PREBUILT_KERNEL := $(ANDROID_BUILD_TOP)/device/allwinner/a10/kernel
2 changes: 0 additions & 2 deletions README.md

This file was deleted.

60 changes: 60 additions & 0 deletions a10-blobs.mk
@@ -0,0 +1,60 @@
# Copyright (C) 2012 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.

# CM9 bootanimation
PRODUCT_COPY_FILES += \
device/allwinner/a10/prebuilt/bootanimation.zip:system/media/bootanimation.zip

# EGL Stuff
PRODUCT_COPY_FILES += \
device/allwinner/a10/prebuilt/lib/egl/libEGL_mali.so:system/lib/egl/libEGL_mali.so \
device/allwinner/a10/prebuilt/lib/egl/libGLESv1_CM_mali.so:system/lib/egl/libGLESv1_CM_mali.so \
device/allwinner/a10/prebuilt/lib/egl/libGLESv2_mali.so:system/lib/egl/libGLESv2_mali.so \
device/allwinner/a10/prebuilt/lib/hw/display.a10.so:system/lib/hw/display.a10.so \
device/allwinner/a10/prebuilt/lib/hw/gralloc.exDroid.so:system/lib/hw/gralloc.exDroid.so \
device/allwinner/a10/prebuilt/lib/hw/hwcomposer.exDroid.so:system/lib/hw/hwcomposer.exDroid.so \
device/allwinner/a10/prebuilt/lib/libMali.so:system/lib/libMali.so \
device/allwinner/a10/prebuilt/lib/libUMP.so:system/lib/libUMP.so \

# Camera
PRODUCT_COPY_FILES += \
device/allwinner/a10/prebuilt/lib/hw/camera.a10.so:system/lib/egl/hw/camera.a10.so

# Codecs
PRODUCT_COPY_FILES += \
device/allwinner/a10/prebuilt/lib/libCedarA.so:system/lib/libCedarA.so \
device/allwinner/a10/prebuilt/lib/libcedarv.so:system/lib/libcedarv.so \
device/allwinner/a10/prebuilt/lib/libCedarX.so:system/lib/libCedarX.so \
device/allwinner/a10/prebuilt/lib/libcedarxbase.so:system/lib/libcedarxbase.so \
device/allwinner/a10/prebuilt/lib/libswdrm.so:system/lib/libswdrm.so \
device/allwinner/a10/prebuilt/lib/libcedarxosal.so:system/lib/libcedarxosal.so

# will be removed in future
PRODUCT_COPY_FILES += \
device/allwinner/a10/prebuilt/bin/wpa_supplicant:system/bin/wpa_supplicant \
device/allwinner/a10/prebuilt/lib/hw/lights.a10.so:system/lib/hw/lights.a10.so \
device/allwinner/a10/prebuilt/lib/hw/sensors.a10.so:system/lib/hw/sensors.a10.so

# Key maps
PRODUCT_COPY_FILES += \
device/allwinner/a10/prebuilt/usr/keylayout/hv_keypad.kl:system/usr/keylayout/hv_keypad.kl \
device/allwinner/a10/prebuilt/usr/keylayout/axp20-supplyer.kl:system/usr/keylayout/axp20-supplyer.kl \
device/allwinner/a10/prebuilt/usr/keylayout/sun4i-keyboard.kl:system/usr/keylayout/sun4i-keyboard.kl \
device/allwinner/a10/prebuilt/usr/idc/ft5x_ts.idc:system/usr/idc/ft5x_ts.idc \
device/allwinner/a10/prebuilt/usr/idc/gt80x.idc:system/usr/idc/gt80x.idc \
device/allwinner/a10/prebuilt/usr/idc/qwerty.idc:system/usr/idc/qwerty.idc \
device/allwinner/a10/prebuilt/usr/idc/qwerty2.idc:system/usr/idc/qwerty2.idc \
device/allwinner/a10/prebuilt/vendor/firmware/ft5206-1024X600.bin:system/vendor/firmware/ft5206-1024X600.bin

#end of a10-blobs.mk
81 changes: 81 additions & 0 deletions a10.mk
@@ -0,0 +1,81 @@
#
# Copyright (C) 2011 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_CHARACTERISTICS := tablet

## (3) Finally, the least specific parts, i.e. the non-GSM-specific aspects
PRODUCT_PROPERTY_OVERRIDES += \
ro.com.google.locationfeatures=1 \
ro.media.dec.jpeg.memcap=20000000 \
dalvik.vm.lockprof.threshold=500 \
ro.kernel.android.checkjni=0 \
dalvik.vm.checkjni=false \
dalvik.vm.dexopt-data-only=1 \
ro.vold.umsdirtyratio=20 \
net.dns1=8.8.8.8 \
net.dns2=8.8.4.4 \

# we have enough storage space to hold precise GC data
PRODUCT_TAGS += dalvik.gc.type-precise

DEVICE_PACKAGE_OVERLAYS := device/allwinner/a10/overlay

# Permissions
PRODUCT_COPY_FILES += \
frameworks/base/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
frameworks/base/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
frameworks/base/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
frameworks/base/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
frameworks/base/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/base/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
frameworks/base/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
frameworks/base/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
frameworks/base/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/base/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
frameworks/base/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
frameworks/base/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
frameworks/base/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:/system/etc/permissions/android.software.live_wallpaper.xml \

# Publish that we support the live wallpaper feature.
PRODUCT_PACKAGES += LiveWallpapers LiveWallpapersPicker MagicSmokeWallpapers HoloSpiralWallpaper
PRODUCT_PACKAGES += VisualizationWallpapers librs_jni

# Sensors

# ICS Camera
PRODUCT_PACKAGES += Camera camera.a10

# CM9 apps
PRODUCT_PACKAGES += Trebuchet FileManager com.android.future.usb.accessory

# EXT4 Support
PRODUCT_PACKAGES += make_ext4fs setup_fs e2fsck

# Audio stuff
PRODUCT_PACKAGES += audio.a2dp.default libaudioutils libtinyalsa

# copy all others kernel modules under the "modules" directory to system/lib/modules
PRODUCT_COPY_FILES += $(shell test -d device/allwinner/a10/prebuilt/lib/modules && \
find device/allwinner/a10/prebuilt/lib/modules -name '*.ko' \
-printf '%p:system/lib/modules/%f ')

$(call inherit-product, build/target/product/full_base.mk)
# Should be after the full_base include, which loads languages_full
PRODUCT_LOCALES += mdpi

PRODUCT_NAME := full_a10
PRODUCT_DEVICE := A10
40 changes: 40 additions & 0 deletions cm.mk
@@ -0,0 +1,40 @@
#
# Copyright (C) 2011 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.
#

$(call inherit-product, device/allwinner/a10/full_a10.mk)
# Inherit some common CM9 stuff.
$(call inherit-product, vendor/cm/config/common_full_tablet_wifionly.mk)
$(call inherit-product, device/allwinner/a10/a10-blobs.mk)

## Device identifier. This must come after all inclusions
PRODUCT_NAME := cm_a10
PRODUCT_BRAND := Allwinner
PRODUCT_DEVICE := a10
PRODUCT_MODEL := A10
PRODUCT_MANUFACTURER := Allwinner
PRODUCT_RELEASE_NAME := A10

UTC_DATE := $(shell date +%s)
DATE := $(shell date +%Y%m%d)

PRODUCT_BUILD_PROP_OVERRIDES += \
PRODUCT_NAME=${PRODUCT_MODEL}_${PRODUCT_SFX} \
TARGET_DEVICE=a10 \
BUILD_FINGERPRINT=softwinners/crane_Novo704FC_E3_SC3017/crane-Novo704FC_E3-SC3017:4.0.3/IML74K/20120306:eng/release-keys \
PRIVATE_BUILD_DESC="crane_Novo704FC_E3_SC3017-eng 4.0.3 IML74K 20120306 release-keys" \
BUILD_NUMBER=${DATE} \
BUILD_VERSION_TAGS=release-keys \
TARGET_BUILD_TYPE=eng
2 changes: 2 additions & 0 deletions egl.cfg
@@ -0,0 +1,2 @@
0 0 android
0 1 mali
32 changes: 32 additions & 0 deletions full_a10.mk
@@ -0,0 +1,32 @@
# Copyright (C) 2012 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.

# Inherit from those products. Most specific first.
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
$(call inherit-product, device/allwinner/a10/a10.mk)
$(call inherit-product, frameworks/base/build/tablet-dalvik-heap.mk)
$(call inherit-product-if-exists, vendor/allwinner/a10/a10-vendor.mk)

# Set those variables here to overwrite the inherited values.
PRODUCT_NAME := full_a10
PRODUCT_DEVICE := a10
PRODUCT_BRAND := Allwinner
PRODUCT_MODEL := A10
PRODUCT_MANUFACTURER := Allwinner






Binary file added kernel
Binary file not shown.
64 changes: 64 additions & 0 deletions overlay/frameworks/base/core/res/res/values/config.xml
@@ -0,0 +1,64 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 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.
*/
-->

<!-- These resources are around just to allow their values to be customized
for different hardware and product builds. -->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- If true, the screen can be rotated via the accelerometer in all 4
rotations as the default behavior. -->
<bool name="config_allowAllRotations">true</bool>

<!-- Indicate whether the SD card is accessible without removing the battery. -->
<bool name="config_batterySdCardAccessibility">true</bool>

<!-- Diable lockscreen rotation by default -->
<bool name="config_enableLockScreenRotation">true</bool>

<!-- Component name of the service providing network location support. -->
<string name="config_networkLocationProvider">com.google.android.location.NetworkLocationProvider</string>

<!-- Component name of the service providing geocoder API support. -->
<string name="config_geocodeProvider">com.google.android.location.GeocodeProvider</string>

<!-- The default iface on which to monitor data use -->
<string name="config_datause_iface">wlan0</string>

<!-- Flag indicating whether the current device is "voice capable".
If true, this means that the device supports circuit-switched
(i.e. voice) phone calls over the telephony network, and is
allowed to display the in-call UI while a cellular voice call is
active. This can be overridden to false for "data only" devices
which can't make voice calls and don't support any in-call UI.
Note: this flag is subtly different from the
PackageManager.FEATURE_TELEPHONY system feature, which is
available on *any* device with a telephony radio, even if the
device is data-only. -->
<bool name="config_voice_capable">false</bool>

<!-- Flag indicating whether the current device allows sms service.
If true, this means that the device supports both sending and
receiving sms via the telephony network.
This can be overridden to false for "data only" devices
which can't send and receive sms message.
Note: Disable SMS also disable voicemail waiting sms,
cell broadcasting sms, and MMS. -->
<bool name="config_sms_capable">false</bool>
</resources>

0 comments on commit 4dc1179

Please sign in to comment.