Skip to content

Commit

Permalink
Global Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Quarx2k committed Jan 21, 2011
1 parent 28f613f commit 50d41e8
Show file tree
Hide file tree
Showing 18 changed files with 1,635 additions and 278 deletions.
8 changes: 5 additions & 3 deletions AndroidBoard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ LOCAL_MODULE := vold.fstab
LOCAL_SRC_FILES := $(LOCAL_MODULE)
include $(BUILD_PREBUILT)

ALL_PREBUILT += $(INSTALLED_KERNEL_TARGET)

# Install the features available on this device.
## OMX proprietaries
PRODUCT_COPY_FILES += \
Expand Down Expand Up @@ -39,6 +41,7 @@ device/lg/swift/proprietary/libmmipl.so:system/lib/libmmipl.so

PRODUCT_COPY_FILES += \
device/lg/swift/media_profiles.xml:/system/etc/media_profiles.xml \
device/lg/swift/vold.fstab:/system/etc/vold.fstab \
device/lg/swift/prebuilt/AutoVolumeControl.txt:system/etc/AutoVolumeControl.txt \
device/lg/swift/prebuilt/AudioFilter.csv:system/etc/AudioFilter.csv \
device/lg/swift/prebuilt/apns-conf.xml:system/etc/apns-conf.xml \
Expand Down Expand Up @@ -82,7 +85,7 @@ PROPRIETARY += lib/liblgdrmwbxml.so lib/libdll.so lib/libril-qcril-hook-oem.so
PROPRIETARY += lib/libcommondefs.so lib/libgps.so lib/libloc.so lib/libloc_api.so lib/libloc-rpc.so

#Wifi
PROPRIETARY += etc/wl/rtecdc.bin etc/wl/nvram.txt etc/wl/rtecdc-mfgtest.bin etc/wifi/wpa_supplicant.conf lib/modules/wireless.ko bin/wl bin/wpa_supplicant
PROPRIETARY += etc/wl/rtecdc.bin etc/wl/nvram.txt etc/wl/rtecdc-mfgtest.bin etc/wifi/wpa_supplicant.conf lib/modules/wireless.ko bin/wl bin/wpa_supplicant

#Linker
PROPRIETARY += bin/linker #bin/lgesystemd bin/lgdrmserver
Expand All @@ -94,7 +97,6 @@ PROPRIETARY += bin/BCM4325D1.hcd
PROPRIETARY += lib/egl/libEGL_adreno200.so lib/egl/libGLESv2_adreno200.so lib/egl/libGLESv1_CM_adreno200.so lib/egl/libq3dtools_adreno200.so lib/libgsl.so

#HW
PROPRIETARY += lib/hw/lights.swift.so
# lib/hw/sensors.swift.so
PROPRIETARY += lib/hw/lights.swift.so lib/hw/sensors.swift.so

PRODUCT_COPY_FILES += $(foreach i,$(PROPRIETARY),$(LOCAL_PATH)/proprietary/$(notdir $i):system/$i)
68 changes: 49 additions & 19 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
TARGET_BOARD_PLATFORM := msm7k
TARGET_BOARD_PLATFORM_GPU := qcom-adreno200
TARGET_ARCH_VARIANT := armv6-vfp
TARGET_CPU_ABI := armeabi-v6j
TARGET_CPU_ABI := armeabi-v6l
TARGET_CPU_ABI2 := armeabi
TARGET_BOOTLOADER_BOARD_NAME := swift

Expand All @@ -14,32 +14,62 @@ TARGET_NO_RECOVERY := true
TARGET_NO_KERNEL := true
TARGET_NO_RADIO := true

BOARD_KERNEL_CMDLINE := mem=214M console=tty0,115200n8 androidboot.hardware=swift uart.mode=arm11_uart_disable crash=off
BOARD_KERNEL_BASE := 0x00200000
BOARD_PAGE_SIZE := 0x00000800

#BOARD_WPA_SUPPLICANT_DRIVER := WEXT
#BOARD_WLAN_DEVICE := bcm4325
##WPA_SUPPLICANT_VERSION := VER_0_5_X
#WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/wireless.ko"
##WIFI_DRIVER_FW_STA_PATH := "/system/etc/wl/rtecdc.bin"
#WIFI_DRIVER_MODULE_ARG := "firmware_path=/system/etc/wl/rtecdc.bin nvram_path=/system/etc/wl/nvram.txt"
#WIFI_DRIVER_MODULE_NAME := "wireless"

BOARD_WPA_SUPPLICANT_DRIVER := WEXT
WPA_SUPPLICANT_VERSION := VER_0_6_X
BOARD_WLAN_DEVICE := bcm4329
WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/wireless.ko"
WIFI_DRIVER_FW_STA_PATH := "/system/etc/wl/rtecdc.bin"
WIFI_DRIVER_MODULE_ARG := "firmware_path=/system/etc/wl/rtecdc.bin nvram_path=/system/etc/wl/nvram.txt"
WIFI_DRIVER_MODULE_NAME := "wireless"
BOARD_WLAN_DEVICE := wlan0
WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/wireless.ko"
WIFI_DRIVER_MODULE_ARG := "firmware_path=/system/etc/wl/rtecdc.bin nvram_path=/system/etc/wl/nvram.txt"
WIFI_DRIVER_MODULE_NAME := wireless


USE_CAMERA_STUB := false

#Optimization
ENABLE_WTF_USE_ACCELERATED_COMPOSITING := true
ENABLE_JSC_JIT := true



BOARD_USES_QCOM_LIBS := true
BOARD_USES_QCOM_HARDWARE := true
BOARD_USE_NASTY_PTHREAD_CREATE_HACK := true
BOARD_HAVE_BLUETOOTH := true
BOARD_HAVE_BLUETOOTH_BCM := true
BOARD_HAVE_BLUETOOTH := true
BOARD_HAVE_BLUETOOTH_BCM := true
WITH_A2DP := true
TINY_TOOLBOX:=true
TINY_TOOLBOX :=true
BOARD_GPS_LIBRARIES := libloc_api
WITH_WINDOWS_MEDIA:=true
BOARD_HAVE_FM_RADIO := true
BUILD_PV_VIDEO_ENCODERS := true
BOARD_GPS_LIBRARIES := libloc_api
BOARD_USE_BROADCOM_FM_VOLUME_HACK := true

# fix this up by examining /proc/mtd on a running device
BOARD_BOOTIMAGE_PARTITION_SIZE := 0x00380000
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x00480000
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 0x08c60000
BOARD_USERDATAIMAGE_PARTITION_SIZE := 0x105c0000
BOARD_FLASH_BLOCK_SIZE := 131072

TARGET_HARDWARE_3D := false
USE_PV_WINDOWS_MEDIA := false
USE_CAMERA_STUB := false
TARGET_HARDWARE_3D := false
BOARD_USES_GENERIC_AUDIO := false
BOARD_USE_HTC_LIBSENSORS := false
TARGET_PREBUILT_KERNEL := device/lg/swift/kernel

BOARD_EGL_CFG := device/lg/swift/egl.cfg

#BUILD_PV_VIDEO_ENCODERS := true
#TARGET_HARDWARE_3D := false
#BOARD_USES_GENERIC_AUDIO := false
#BOARD_USE_HTC_LIBSENSORS := false
#TARGET_HARDWARE_3D := false
#BUILD_WITH_FULL_STAGEFRIGHT:=true
#BOARD_USE_NASTY_PTHREAD_CREATE_HACK := true



56 changes: 40 additions & 16 deletions full_swift.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ $(call inherit-product, device/common/gps/gps_us_supl.mk)
# Used by BusyBox
KERNEL_MODULES_DIR:=/system/lib/modules

ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/lg/swift/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif

PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel


include frameworks/base/data/sounds/AudioPackage4.mk

DEVICE_PACKAGE_OVERLAYS += device/lg/swift/overlay
Expand All @@ -22,52 +32,66 @@ PRODUCT_PACKAGES += \
DSPManager \
Provision \
GoogleSearch \
LiveWallpapers \
LatinIME \
Stk \
copybit.swift \
TSCalibration \
hcitool \
Superuser

PRODUCT_PROPERTY_OVERRIDES += \
keyguard.no_require_sim=true \
ro.ril.hsxpa=1 \
ro.ril.gprsclass=10 \
ro.media.dec.jpeg.memcap=10000000 \
ro.com.android.dataroaming=false \
ro.setupwizard.enable_bypass=1 \
ro.com.android.dateformat=MM-dd-yyyy \
ro.rommanager.developerid=cyanogenmod \
ro.config.ringtone=DonMessWivIt.ogg

# Wifi and GSM
# Wifi
PRODUCT_PROPERTY_OVERRIDES += \
rild.libpath=/system/lib/libril-qc-1.so \
wifi.interface=wlan0
wifi.interface=wlan0 \
wifi.supplicant_scan_interval=15 \
ro.wifi.channels=14

# Time between scans in seconds. Keep it high to minimize battery drain.
# This only affects the case in which there are remembered access points,
# but none are in range.

# Ril Config
PRODUCT_PROPERTY_OVERRIDES += \
wifi.supplicant_scan_interval=15
rild.libpath=/system/lib/libril-qc-1.so \
rild.libargs=-d /dev/smd0 \
ro.ril.hsxpa=2 \
ro.ril.gprsclass=12 \
ro.telephony.default_network=0 \
ro.telephony.call_ring.multiple=false \
ro.telephony.call_ring.delay=5000 \
persist.rild.nitz_plmn= \
persist.rild.nitz_long_ons_0= \
persist.rild.nitz_long_ons_1= \
persist.rild.nitz_long_ons_2= \
persist.rild.nitz_long_ons_3= \
persist.rild.nitz_short_ons_0= \
persist.rild.nitz_short_ons_1= \
persist.rild.nitz_short_ons_2= \
persist.rild.nitz_short_ons_3= \
persist.cust.tel.adapt=1 \
persist.cust.tel.eons=1



# Enable Compcache by default on D/S
PRODUCT_PROPERTY_OVERRIDES += \
ro.compcache.default=0
ro.compcache.default=1

# density in DPI of the LCD of this board. This is used to scale the UI
# appropriately. If this property is not defined, the default value is 160 dpi.
PRODUCT_PROPERTY_OVERRIDES += \
ro.sf.lcd_density=160

# Default network type
# 0 => WCDMA Preferred.
PRODUCT_PROPERTY_OVERRIDES += \
ro.telephony.default_network=0

# Enable JIT by default
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.execution-mode=int:jit \
dalvik.vm.heapsize=24m

# The OpenGL ES API level that is natively supported by this device.
# This is a 16.16 fixed point number
PRODUCT_PROPERTY_OVERRIDES += \
Expand Down
Binary file added kernel
Binary file not shown.
5 changes: 3 additions & 2 deletions libaudio/Android.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ifeq ($(TARGET_BOOTLOADER_BOARD_NAME), swift)

ifneq ($(BUILD_TINY_ANDROID),true)

LOCAL_PATH := $(call my-dir)
Expand Down Expand Up @@ -48,10 +49,10 @@ LOCAL_CFLAGS += -fno-short-enums

LOCAL_STATIC_LIBRARIES += libaudiointerface
ifeq ($(BOARD_HAVE_BLUETOOTH),true)
LOCAL_SHARED_LIBRARIES += liba2dp
LOCAL_SHARED_LIBRARIES += liba2dp libbinder
endif

include $(BUILD_SHARED_LIBRARY)

endif # not BUILD_TINY_ANDROID
endif
endif
Loading

0 comments on commit 50d41e8

Please sign in to comment.