Permalink
Browse files

defy-cm7-rc0

  • Loading branch information...
0 parents commit e04b7fb1d1556db2ea9c959e6513bb6bf2e3a36b @tpruvot committed Jun 4, 2011
Showing 351 changed files with 29,674 additions and 0 deletions.
@@ -0,0 +1,43 @@
+# 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.
+
+#
+# AndroidBoard.mk is a legacy mechanism to deal with a few
+# edge-cases that can't be managed otherwise. No new rules
+# should be added to this file.
+#
+
+LOCAL_PATH := $(call my-dir)
+
+include $(CLEAR_VARS)
+
+# Symlink keysym file that sholes looks for
+file := $(TARGET_OUT)/usr/keychars/qtouch-touchscreen.kcm.bin
+ALL_PREBUILT += $(file)
+$(file) : $(TARGET_OUT)/usr/keychars/qwerty.kcm.bin
+ @echo "Symlink: $@ -> qwerty.kcm.bin"
+ @mkdir -p $(dir $@)
+ @rm -rf $@
+ $(hide) ln -sf qwerty.kcm.bin $@
+
+file := $(TARGET_OUT)/usr/keychars/cpcap-key.kcm.bin
+ALL_PREBUILT += $(file)
+$(file) : $(TARGET_OUT)/usr/keychars/qwerty.kcm.bin
+ @echo "Symlink: $@ -> qwerty.kcm.bin"
+ @mkdir -p $(dir $@)
+ @rm -rf $@
+ $(hide) ln -sf qwerty.kcm.bin $@
+
+# include the non-open-source counterpart to this file
+-include vendor/motorola/jordan/AndroidBoardVendor.mk
@@ -0,0 +1,21 @@
+# 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 lists the product definition files that define
+# configurations which are actually buildable (e.g. through lunch)
+#
+
+PRODUCT_MAKEFILES := \
+ $(LOCAL_DIR)/jordan.mk
@@ -0,0 +1,96 @@
+# 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 sets variables that control the way modules are built
+# thorughout the system. It should not be used to conditionally
+# disable makefiles (the proper mechanism to control what gets
+# included in a build is to use PRODUCT_PACKAGES in a product
+# definition file).
+#
+
+# WARNING: This line must come *before* including the proprietary
+# variant, so that it gets overwritten by the parent (which goes
+# against the traditional rules of inheritance).
+
+USE_CAMERA_STUB := false
+BOARD_USES_GENERIC_AUDIO := false
+
+TARGET_NO_BOOTLOADER := true
+TARGET_NO_PREINSTALL := true
+TARGET_BOOTLOADER_BOARD_NAME := jordan
+
+#Board properties
+
+TARGET_BOARD_PLATFORM := omap3
+TARGET_CPU_ABI := armeabi-v7a
+TARGET_CPU_ABI2 := armeabi
+TARGET_ARCH_VARIANT := armv7-a-neon
+TARGET_GLOBAL_CFLAGS += -mtune=cortex-a8
+TARGET_GLOBAL_CPPFLAGS += -mtune=cortex-a8
+TARGET_OMAP3 := true
+OMAP_ENHANCEMENT := true
+COMMON_GLOBAL_CFLAGS += -DOMAP_ENHANCEMENT
+COMMON_GLOBAL_CFLAGS += -DTARGET_OMAP3
+
+
+# Wifi related defines
+BOARD_WPA_SUPPLICANT_DRIVER := CUSTOM
+BOARD_WPA_SUPPLICANT_PRIVATE_LIB := libCustomWifi
+WPA_SUPPLICANT_VERSION := VER_0_6_X
+BOARD_WLAN_DEVICE := tiwlan0
+#BOARD_SOFTAP_DEVICE := tiwlan0
+WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/tiwlan_drv.ko"
+BOARD_WLAN_TI_STA_DK_ROOT := system/wlan/ti/wilink_6_1
+WIFI_DRIVER_MODULE_ARG := ""
+WIFI_DRIVER_MODULE_NAME := "tiwlan_drv"
+WIFI_FIRMWARE_LOADER := "wlan_loader"
+
+
+BOARD_USE_FROYO_LIBCAMERA := true
+BOARD_USE_YUV422I_DEFAULT_COLORFORMAT := true
+BOARD_EGL_CFG := device/motorola/jordan/egl.cfg
+
+BOARD_HAVE_BLUETOOTH := true
+
+BOARD_BOOTIMAGE_MAX_SIZE := $(call image-size-from-data-size,0x00280000)
+BOARD_RECOVERYIMAGE_MAX_SIZE := $(call image-size-from-data-size,0x00500000)
+BOARD_SYSTEMIMAGE_MAX_SIZE := $(call image-size-from-data-size,0x07500000)
+BOARD_USERDATAIMAGE_MAX_SIZE := $(call image-size-from-data-size,0x04ac0000)
+BOARD_FLASH_BLOCK_SIZE := 131072
+
+#Recovery
+BOARD_CUSTOM_RECOVERY_KEYMAPPING:= ../../device/motorola/jordan/recovery_ui.c
+BOARD_HAS_NO_MISC_PARTITION := true
+BOARD_RECOVERY_IGNORE_BOOTABLES := true
+BOARD_DATA_DEVICE := /dev/block/mmcblk1p25
+BOARD_DATA_FILESYSTEM := ext3
+BOARD_SYSTEM_DEVICE := /dev/block/mmcblk1p21
+BOARD_SYSTEM_FILESYSTEM := ext3
+BOARD_CACHE_DEVICE := /dev/block/mmcblk1p24
+BOARD_CACHE_FILESYSTEM := ext3
+BOARD_HAS_SMALL_RECOVERY := true
+#TARGET_RECOVERY_UI_LIB := librecovery_ui_sholes librecovery_ui_generic
+#TARGET_RECOVERY_UPDATER_LIBS += librecovery_updater_generic
+
+HARDWARE_OMX := true
+BUILD_WITH_TI_AUDIO := 1
+BUILD_PV_VIDEO_ENCODERS := 1
+
+#BOARD_GPS_LIBRARIES := libgps
+#BOARD_USES_GPSSHIM := true
+#BOARD_GPS_NEEDS_XTRA := true
+#BOARD_GPS_BAD_AGPS := true
+
+BOARD_NO_RGBX_8888 := true
@@ -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
+# ************************************************
63 README
@@ -0,0 +1,63 @@
+CyanogenMod 7.1 for Motorola Defy (Android 2.3.4 AOSP)
+
+
+Download:
+=========
+
+repo init -u git://github.com/Quarx2k/android.git -b gingerbread
+
+or as alternative, automerged with quarx and cyanogen every 6 hours :
+
+repo init -u git://github.com/tpruvot/android.git -b gingerbread
+
+repo sync
+
+
+Download RomManager:
+====================
+
+mkdir vendor/cyanogen/proprietary
+cd vendor/cyanogen/proprietary
+wget http://mirror.kanged.net/recoveries/RomManager.apk
+
+RomManager is not compatible with Motorola Defy,
+you can remove it from rom build system because it needs a real Recovery Image
+
+
+Build:
+======
+
+optional :
+ export PLATFORM_DIR=$(pwd)
+ export ARCH=arm
+ export CROSS_COMPILE=arm-eabi-
+ export TARGET_OUT_INTERMEDIATES=out
+ export JAVA_HOME=/usr/lib/jvm/java-6-sun
+ export BOARD_USES_QCOM_HARDWARE=true
+ export PATH=$PLATFORM_DIR/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin:$JAVA_HOME/bin:$PATH
+ cd $PLATFORM_DIR
+
+ export CYANOGEN_NIGHTLY=true
+
+rm -rf out/target
+
+. build/envsetup.sh
+
+brunch jordan
+
+or...
+
+lunch cyanogen_jordan-eng
+mka bacon
+
+or (to skip recovery and boot image)
+
+mka out/target/product/jordan/system.img
+
+
+Links:
+======
+FAQ : http://forum.xda-developers.com/showthread.php?t=1065798
+
+Original Thread : http://forum.xda-developers.com/showthread.php?t=1033654
+
Oops, something went wrong.

0 comments on commit e04b7fb

Please sign in to comment.