commit 03dd976ae6a8dda1bc9ef470a887a94899430c6f Author: codeworkx Date: Sun Jun 5 17:40:52 2011 +0200 initial push diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..0d414a2 --- /dev/null +++ b/Android.mk @@ -0,0 +1,25 @@ +# 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. + +LOCAL_PATH := $(call my-dir) + +ifeq ($(TARGET_DEVICE),galaxys2) + +ifneq ($(TARGET_SIMULATOR),true) +include $(call all-makefiles-under,$(LOCAL_PATH)) +endif + +endif + + diff --git a/AndroidBoard.mk b/AndroidBoard.mk new file mode 100644 index 0000000..f24dce6 --- /dev/null +++ b/AndroidBoard.mk @@ -0,0 +1,8 @@ +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) + +ALL_PREBUILT += $(INSTALLED_KERNEL_TARGET) + +# include the non-open-source counterpart to this file +-include vendor/samsung/galaxys2/AndroidBoardVendor.mk diff --git a/AndroidProducts.mk b/AndroidProducts.mk new file mode 100644 index 0000000..4383c47 --- /dev/null +++ b/AndroidProducts.mk @@ -0,0 +1,29 @@ +# +# Copyright (C) 2008 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 should set PRODUCT_MAKEFILES to a list of product makefiles +# to expose to the build system. LOCAL_DIR will already be set to +# the directory containing this file. +# +# This file may not rely on the value of any variable other than +# LOCAL_DIR; do not use any conditionals, and do not look up the +# value of any variable that isn't set in this file or in a file that +# it includes. +# + +PRODUCT_MAKEFILES := \ + $(LOCAL_DIR)/full_galaxys2.mk diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..4a6c80b --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,101 @@ +# 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. + +# BoardConfig.mk +# +# Product-specific compile-time definitions. +# + +# Set this up here so that BoardVendorConfig.mk can override it +BOARD_USES_GENERIC_AUDIO := false +BOARD_USES_LIBSECRIL_STUB := true + +# Use the non-open-source parts, if they're present +-include vendor/samsung/galaxys2/BoardConfigVendor.mk + +TARGET_CPU_ABI := armeabi-v7a +TARGET_CPU_ABI2 := armeabi +TARGET_ARCH_VARIANT := armv7-a-neon +ARCH_ARM_HAVE_TLS_REGISTER := true +TARGET_GLOBAL_CFLAGS += -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp +TARGET_GLOBAL_CPPFLAGS += -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp + +TARGET_NO_BOOTLOADER := true +TARGET_NO_RADIOIMAGE := true + +TARGET_PROVIDES_INIT := true +TARGET_PROVIDES_INIT_TARGET_RC := true +TARGET_BOARD_PLATFORM := s5pv310 +TARGET_BOOTLOADER_BOARD_NAME := c1 +TARGET_RECOVERY_INITRC := device/samsung/c1-common/recovery.rc + +BOARD_MOBILEDATA_INTERFACE_NAME = "pdp0" + +# Camera +USE_CAMERA_STUB := false +ifeq ($(USE_CAMERA_STUB),false) +BOARD_CAMERA_LIBRARIES := libcamera +endif + +# Bluetooth +BOARD_HAVE_BLUETOOTH := true +BOARD_HAVE_BLUETOOTH_BCM := true + +# FM Radio +BOARD_HAVE_FM_RADIO := true +BOARD_GLOBAL_CFLAGS += -DHAVE_FM_RADIO +BOARD_FM_DEVICE := si4709 + +# FIXME +BOARD_NAND_PAGE_SIZE := 4096 -s 128 +# FIXME +BOARD_KERNEL_PAGESIZE := 4096 +BOARD_KERNEL_BASE := 0x40000000 +BOARD_KERNEL_CMDLINE := console=ttySAC2,115200 consoleblank=0 +TARGET_PREBUILT_KERNEL := device/samsung/galaxys2/kernel + +BOARD_BOOTIMAGE_PARTITION_SIZE := 8388608 +BOARD_SYSTEMIMAGE_PARTITION_SIZE := 536870912 +# FIXME +BOARD_USERDATAIMAGE_PARTITION_SIZE := 8388608 +# FIXME +BOARD_FLASH_BLOCK_SIZE := 4096 + +# Connectivity - Wi-Fi +WPA_SUPPLICANT_VERSION := VER_0_6_X +BOARD_WPA_SUPPLICANT_DRIVER := WEXT +BOARD_WLAN_DEVICE := bcm4330 +WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/dhd.ko" +WIFI_DRIVER_FW_STA_PATH := "system/vendor/firmware/bcm4330_sta.bin" +WIFI_DRIVER_FW_AP_PATH := "" +WIFI_DRIVER_MODULE_NAME := "dhd" +WIFI_DRIVER_MODULE_ARG := "firmware_path=/system/vendor/firmware/bcm4330_sta.bin nvram_path=/system/vendor/firmware/nvram_net.txt" + +# Vold +BOARD_VOLD_EMMC_SHARES_DEV_MAJOR := true + +# Recovery +TARGET_USERIMAGES_USE_EXT4 := true +BOARD_HAS_NO_SELECT_BUTTON := true +BOARD_USES_MMCUTILS := true +BOARD_HAS_NO_MISC_PARTITION := true + +BOARD_CUSTOM_BOOTIMG_MK := device/samsung/c1-common/shbootimg.mk +TARGET_RECOVERY_PRE_COMMAND="echo 1 > /cache/.startrecovery; sync;" + +# assert +TARGET_OTA_ASSERT_DEVICE := galaxys2,GT-I9100 + +# Include aries specific stuff +-include device/samsung/c1-common/Android.mk diff --git a/CleanSpec.mk b/CleanSpec.mk new file mode 100644 index 0000000..8b8bd1c --- /dev/null +++ b/CleanSpec.mk @@ -0,0 +1,60 @@ +# 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/*) +$(call add-clean-step, find $(PRODUCT_OUT) -name "*.apk" | xargs rm) + +# ************************************************ +# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST +# ************************************************ +$(call add-clean-step, rm -rf $(TARGET_OUT)/build.prop) +$(call add-clean-step, rm -rf $(OUT_DIR)/target/product/galaxys2/obj/SHARED_LIBRARIES/libaudio_intermediates) +$(call add-clean-step, rm -rf $(OUT_DIR)/target/product/galaxys2/obj/SHARED_LIBRARIES/libaudio_intermediates) +$(call add-clean-step, rm -rf $(OUT_DIR)/target/product/galaxys2/obj/STATIC_LIBRARIES/libasound_intermediates) +$(call add-clean-step, rm -rf $(OUT_DIR)/target/product/galaxys2/obj/EXECUTABLES/alsa_*) +$(call add-clean-step, rm -rf $(OUT_DIR)/target/product/galaxys2/system/bin/alsa_*) +$(call add-clean-step, rm -rf $(OUT_DIR)/target/product/galaxys2/system/etc/asound.conf) +$(call add-clean-step, rm -rf $(OUT_DIR)/target/product/galaxys2/system/usr/share/alsa) +$(call add-clean-step, rm -rf $(OUT_DIR)/target/product/galaxys2/obj/PACKAGING/systemimage_intermediates) +$(call add-clean-step, rm -rf $(OUT_DIR)/target/product/galaxys2/obj/SHARED_LIBRARIES/libaudio_intermediates) diff --git a/Si4709_driver.ko b/Si4709_driver.ko new file mode 100644 index 0000000..f884783 Binary files /dev/null and b/Si4709_driver.ko differ diff --git a/board-info.txt b/board-info.txt new file mode 100644 index 0000000..6a06b50 --- /dev/null +++ b/board-info.txt @@ -0,0 +1,3 @@ +require board=c1 +require version-bootloader=I9100XWKE7 +require version-baseband=I9100XWKE7 diff --git a/bthid.ko b/bthid.ko new file mode 100644 index 0000000..d81cf3d Binary files /dev/null and b/bthid.ko differ diff --git a/cifs.ko b/cifs.ko new file mode 100644 index 0000000..e4ec3ee Binary files /dev/null and b/cifs.ko differ diff --git a/dhd.ko b/dhd.ko new file mode 100644 index 0000000..518bc04 Binary files /dev/null and b/dhd.ko differ diff --git a/extract-files.sh b/extract-files.sh new file mode 100755 index 0000000..0119f87 --- /dev/null +++ b/extract-files.sh @@ -0,0 +1,75 @@ +#!/bin/sh + +# 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. + +DEVICE=galaxys2 +COMMON=c1-common +MANUFACTURER=samsung + +mkdir -p ../../../vendor/$MANUFACTURER/$DEVICE/proprietary +mkdir -p ../../../vendor/$MANUFACTURER/$COMMON/proprietary + +# galaxys2 + + +# c1-common + + + +(cat << EOF) | sed s/__DEVICE__/$DEVICE/g | sed s/__MANUFACTURER__/$MANUFACTURER/g > ../../../vendor/$MANUFACTURER/$DEVICE/$DEVICE-vendor-blobs.mk +# 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. + +# Prebuilt libraries that are needed to build open-source libraries +PRODUCT_COPY_FILES := \\ + +# All the blobs necessary for galaxys2 devices +PRODUCT_COPY_FILES += \\ + +EOF + + +(cat << EOF) | sed s/__COMMON__/$COMMON/g | sed s/__MANUFACTURER__/$MANUFACTURER/g > ../../../vendor/$MANUFACTURER/$COMMON/c1-vendor-blobs.mk +# 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. + +# All the blobs necessary for galaxys devices +PRODUCT_COPY_FILES += \\ + +EOF + +./setup-makefiles.sh diff --git a/full_galaxys2.mk b/full_galaxys2.mk new file mode 100644 index 0000000..331b6ec --- /dev/null +++ b/full_galaxys2.mk @@ -0,0 +1,37 @@ +# 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 is the build configuration for a full Android +# build for crespo hardware. This cleanly combines a set of +# device-specific aspects (drivers) with a device-agnostic +# product configuration (apps). +# + +# Inherit from those products. Most specific first. +$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk) +# This is where we'd set a backup provider if we had one +#$(call inherit-product, device/sample/products/backup_overlay.mk) +$(call inherit-product, device/samsung/galaxys2/galaxys2.mk) +$(call inherit-product, $(SRC_TARGET_DIR)/product/full.mk) + +# Galaxy S uses high-density artwork where available +PRODUCT_LOCALES += hdpi + +# Discard inherited values and use our own instead. +PRODUCT_NAME := full_galaxys2 +PRODUCT_DEVICE := galaxys2 +PRODUCT_BRAND := samsung +PRODUCT_MANUFACTURER := samsung +PRODUCT_MODEL := GT-I9100 diff --git a/galaxys2.mk b/galaxys2.mk new file mode 100644 index 0000000..8761e33 --- /dev/null +++ b/galaxys2.mk @@ -0,0 +1,153 @@ +# 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. + + +# This file is the device-specific product definition file for +# crespo. It lists all the overlays, files, modules and properties +# that are specific to this hardware: i.e. those are device-specific +# drivers, configuration files, settings, etc... + +# Note that crespo is not a fully open device. Some of the drivers +# aren't publicly available in all circumstances, which means that some +# of the hardware capabilities aren't present in builds where those +# drivers aren't available. Such cases are handled by having this file +# separated into two halves: this half here contains the parts that +# are available to everyone, while another half in the vendor/ hierarchy +# augments that set with the parts that are only relevant when all the +# associated drivers are available. Aspects that are irrelevant but +# harmless in no-driver builds should be kept here for simplicity and +# transparency. There are two variants of the half that deals with +# the unavailable drivers: one is directly checked into the unreleased +# vendor tree and is used by engineers who have access to it. The other +# is generated by setup-makefile.sh in the same directory as this files, +# and is used by people who have access to binary versions of the drivers +# but not to the original vendor tree. Be sure to update both. + + +# These is the hardware-specific overlay, which points to the location +# of hardware-specific resource overrides, typically the frameworks and +# application settings that are stored in resourced. +DEVICE_PACKAGE_OVERLAYS := device/samsung/c1-common/overlay + +# These are the hardware-specific configuration files +PRODUCT_COPY_FILES := \ + device/samsung/c1-common/asound.conf:system/etc/asound.conf \ + device/samsung/c1-common/gps.conf:system/etc/gps.conf \ + device/samsung/c1-common/nvram_net.txt:system/etc/nvram_net.txt \ + device/samsung/c1-common/sirfgps.conf:system/etc/sirfgps.conf \ + device/samsung/c1-common/vold.fstab:system/etc/vold.fstab \ + device/samsung/c1-common/egl.cfg:system/lib/egl/egl.cfg + +# Init files +PRODUCT_COPY_FILES += \ + device/samsung/c1-common/init.c1.rc:root/init.c1.rc \ + device/samsung/c1-common/ueventd.c1.rc:root/ueventd.c1.rc + +# Prebuilt kl keymaps +PRODUCT_COPY_FILES += \ + device/samsung/c1-common/keylayout/AVRCP.kl:system/usr/keylayout/AVRCP.kl \ + device/samsung/c1-common/keylayout/Broadcom_Bluetooth_HID.kl:system/usr/keylayout/Broadcom_Bluetooth_HID.kl \ + device/samsung/c1-common/keylayout/qwerty.kl:system/usr/keylayout/qwerty.kl \ + device/samsung/c1-common/keylayout/sec_jack.kl:system/usr/keylayout/sec_jack.kl \ + device/samsung/c1-common/keylayout/sec_key.kl:system/usr/keylayout/sec_key.kl \ + device/samsung/c1-common/keylayout/sec_touchkey.kl:system/usr/keylayout/sec_touchkey.kl + +# configuration files +PRODUCT_COPY_FILES += \ + device/samsung/c1-common/media_profiles.xml:system/etc/media_profiles.xml + +# apns config file +PRODUCT_COPY_FILES += \ + vendor/cyanogen/prebuilt/common/etc/apns-conf.xml:system/etc/apns-conf.xml + +# These are the hardware-specific features +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.camera.front.xml:system/etc/permissions/android.hardware.camera.front.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.xml:system/etc/permissions/android.hardware.location.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.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \ + frameworks/base/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.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.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 + +# The OpenGL ES API level that is natively supported by this device. +# This is a 16.16 fixed point number +PRODUCT_PROPERTY_OVERRIDES := \ + ro.opengles.version=131072 + +# These are the hardware-specific settings that are stored in system properties. +# Note that the only such settings should be the ones that are too low-level to +# be reachable from resources or other mechanisms. +PRODUCT_PROPERTY_OVERRIDES += \ + wifi.interface=eth0 \ + wifi.supplicant_scan_interval=20 \ + ro.telephony.ril_class=samsung \ + mobiledata.interfaces=pdp0,eth0,gprs,ppp0 \ + dalvik.vm.heapsize=32m \ + persist.service.usb.setting=0 \ + dev.sfbootcomplete=0 + +# enable Google-specific location features, +# like NetworkLocationProvider and LocationCollector +PRODUCT_PROPERTY_OVERRIDES += \ + ro.com.google.locationfeatures=1 \ + ro.com.google.networklocation=1 + +# Extended JNI checks +# The extended JNI checks will cause the system to run more slowly, but they can spot a variety of nasty bugs +# before they have a chance to cause problems. +# Default=true for development builds, set by android buildsystem. +PRODUCT_PROPERTY_OVERRIDES += \ + ro.kernel.android.checkjni=0 \ + dalvik.vm.checkjni=false + +# we have enough storage space to hold precise GC data +PRODUCT_TAGS += dalvik.gc.type-precise + +# Screen density is actually considered a locale (since it is taken into account +# the the build-time selection of resources). The product definitions including +# this file must pay attention to the fact that the first entry in the final +# PRODUCT_LOCALES expansion must not be a density. +PRODUCT_LOCALES := hdpi + +# kernel modules +PRODUCT_COPY_FILES += \ + device/samsung/galaxys2/dhd.ko:system/lib/modules/dhd.ko \ + device/samsung/galaxys2/cifs.ko:system/lib/modules/cifs.ko \ + device/samsung/galaxys2/bthid.ko:system/lib/modules/bthid.ko \ + device/samsung/galaxys2/j4fs.ko:system/lib/modules/j4fs.ko \ + device/samsung/galaxys2/vibrator.ko:system/lib/modules/vibrator.ko \ + device/samsung/galaxys2/gspca_main.ko:system/lib/modules/gspca_main.ko \ + device/samsung/galaxys2/Si4709_driver.ko:system/lib/modules/Si4709_driver.ko \ + device/samsung/galaxys2/scsi_wait_scan.ko:system/lib/modules/scsi_wait_scan.ko + +ifeq ($(TARGET_PREBUILT_KERNEL),) + LOCAL_KERNEL := device/samsung/galaxys2/kernel +else + LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL) +endif + +PRODUCT_COPY_FILES += \ + $(LOCAL_KERNEL):kernel + +# See comment at the top of this file. This is where the other +# half of the device-specific product definition file takes care +# of the aspects that require proprietary drivers that aren't +# commonly available +$(call inherit-product-if-exists, vendor/samsung/galaxys2/galaxys2-vendor.mk) diff --git a/gspca_main.ko b/gspca_main.ko new file mode 100644 index 0000000..8166178 Binary files /dev/null and b/gspca_main.ko differ diff --git a/j4fs.ko b/j4fs.ko new file mode 100644 index 0000000..a2093d6 Binary files /dev/null and b/j4fs.ko differ diff --git a/kernel b/kernel new file mode 100755 index 0000000..c9aae6e Binary files /dev/null and b/kernel differ diff --git a/recovery.fstab b/recovery.fstab new file mode 100644 index 0000000..784e523 --- /dev/null +++ b/recovery.fstab @@ -0,0 +1,12 @@ +# mount point fstype device + +/boot emmc /dev/block/mmcblk0p5 +/recovery emmc /dev/block/mmcblk0p6 + +/cache ext4 /dev/block/mmcblk0p7 +/system ext4 /dev/block/mmcblk0p9 +/data ext4 /dev/block/mmcblk0p10 + +/ums ext4 /dev/block/mmcblk0p11 +/sdcard vfat /dev/block/ +/emmc vfat /dev/block/ diff --git a/scsi_wait_scan.ko b/scsi_wait_scan.ko new file mode 100644 index 0000000..2b97730 Binary files /dev/null and b/scsi_wait_scan.ko differ diff --git a/setup-makefiles.sh b/setup-makefiles.sh new file mode 100755 index 0000000..39f50c0 --- /dev/null +++ b/setup-makefiles.sh @@ -0,0 +1,111 @@ +#!/bin/sh + +# 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. + +DEVICE=galaxys2 +COMMON=c1-common +MANUFACTURER=samsung + +mkdir -p ../../../vendor/$MANUFACTURER/$DEVICE + +(cat << EOF) | sed s/__DEVICE__/$DEVICE/g | sed s/__MANUFACTURER__/$MANUFACTURER/g | sed s/__COMMON__/$COMMON/g > ../../../vendor/$MANUFACTURER/$DEVICE/$DEVICE-vendor.mk +# 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. + +# Live wallpaper packages and Themes +PRODUCT_PACKAGES := \\ + LiveWallpapers \\ + LiveWallpapersPicker \\ + MagicSmokeWallpapers \\ + VisualizationWallpapers \\ + librs_jni + +# Publish that we support the live wallpaper feature. +PRODUCT_COPY_FILES := \\ + packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:/system/etc/permissions/android.software.live_wallpaper.xml + +# Pick up overlay for features that depend on non-open-source files +DEVICE_PACKAGE_OVERLAYS := vendor/__MANUFACTURER__/c1-common/overlay + +\$(call inherit-product, vendor/__MANUFACTURER__/__DEVICE__/__DEVICE__-vendor-blobs.mk) +\$(call inherit-product, vendor/__MANUFACTURER__/__COMMON__/c1-vendor-blobs.mk) +EOF + + +(cat << EOF) | sed s/__DEVICE__/$DEVICE/g | sed s/__MANUFACTURER__/$MANUFACTURER/g > ../../../vendor/$MANUFACTURER/$DEVICE/BoardConfigVendor.mk +# 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. + +BOARD_GPS_LIBRARIES := libgps + +USE_CAMERA_STUB := false + +BOARD_USES_GENERIC_AUDIO := false + +BOARD_USES_LIBSECRIL_STUB := false + +BOARD_NO_PAGE_FLIPPING := false +BOARD_NO_32BPP := false + +EOF + + +mkdir -p ../../../vendor/$MANUFACTURER/$COMMON/overlay/packages/apps/Launcher2/res/layout +(cat << EOF) | sed s/__DEVICE__/$DEVICE/g | sed s/__MANUFACTURER__/$MANUFACTURER/g > ../../../vendor/$MANUFACTURER/$COMMON/overlay/packages/apps/Launcher2/res/layout/all_apps.xml + + + + + + + + + +EOF diff --git a/vendorsetup.sh b/vendorsetup.sh new file mode 100644 index 0000000..1098e00 --- /dev/null +++ b/vendorsetup.sh @@ -0,0 +1,23 @@ +# +# Copyright (C) 2008 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 is executed by build/envsetup.sh, and can use anything +# defined in envsetup.sh. +# +# In particular, you can add lunch options with the add_lunch_combo +# function: add_lunch_combo generic-eng + +add_lunch_combo full_galaxys2-eng diff --git a/vibrator.ko b/vibrator.ko new file mode 100644 index 0000000..f4c49bf Binary files /dev/null and b/vibrator.ko differ