summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>2012-10-14 21:29:16 +0200
committerBernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>2012-10-14 21:29:16 +0200
commitc7cbf99f48d5c1b91112eadb7a6f069353859fd4 (patch)
treeebeb142f62af1840b3a2929f4f337aee6a363029
parent6b847905e3f697a7519f617ace6efa0730576f7d (diff)
downloadtf700t-linaro_jb.tar.gz
Linaro-ize tf700t configs imported from CyanogenModlinaro_jb
Change-Id: I65b768d19284900f43474a7fa098948f8171941a Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
-rw-r--r--BoardConfig.mk11
-rw-r--r--device_tf700t.mk9
-rw-r--r--full_tf700t.mk3
3 files changed, 19 insertions, 4 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 48ffed2..27150f5 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -20,6 +20,10 @@ USE_CAMERA_STUB := false
# inherit from the proprietary version
-include vendor/asus/tf700t/BoardConfigVendor.mk
+TARGET_NO_KERNEL := false
+TARGET_USE_GATOR := true
+KERNEL_CONFIG := cyanogenmod_cardhu_defconfig
+
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
# Board naming
@@ -83,10 +87,6 @@ BOARD_USERDATAIMAGE_PARTITION_SIZE := 29850022707
BOARD_FLASH_BLOCK_SIZE := 4096
TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
-# Build kernel from source
-TARGET_KERNEL_SOURCE := kernel/asus/tf700t
-TARGET_KERNEL_CONFIG := cyanogenmod_cardhu_defconfig
-
# Custom Tools
TARGET_RELEASETOOL_OTA_FROM_TARGET_SCRIPT := device/asus/tf700t/releasetools/tf700t_ota_from_target_files
@@ -96,3 +96,6 @@ BOARD_HAS_NO_SELECT_BUTTON := true
BOARD_HAS_LARGE_FILESYSTEM := true
TARGET_RECOVERY_INITRC := device/asus/tf700t/recovery/init.rc
BOARD_HAS_SDCARD_INTERNAL := true
+
+TARGET_EXTRA_CFLAGS := $(call cc-ifversion, -ge, 46, $(call cc-option,-mtune=cortex-a9,$(call cc-option,-mtune=cortex-a8)) $(call cc-option,-mcpu=cortex-a9,$(call cc-option,-mcpu=cortex-a8)))
+TARGET_BOOTLOADER_TYPE := fastboot
diff --git a/device_tf700t.mk b/device_tf700t.mk
index 9e32a8a..7a0bd6d 100644
--- a/device_tf700t.mk
+++ b/device_tf700t.mk
@@ -19,10 +19,19 @@ $(call inherit-product, device/common/gps/gps_us_supl.mk)
$(call inherit-product-if-exists, vendor/asus/tf700t/tf700t-vendor.mk)
+ifeq ($(TARGET_PREBUILT_KERNEL),)
+TF700T_LOCAL_KERNEL := device/asus/tf700t/kernel
+$(TF700T_LOCAL_KERNEL): android_kernel
+ cp -f $(PRODUCT_OUT)/obj/kernel/arch/arm/boot/zImage $(TF700T_LOCAL_KERNEL)
+else
+TF700T_LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
+endif
+
DEVICE_PACKAGE_OVERLAYS += device/asus/tf700t/overlay
# Files needed for boot image
PRODUCT_COPY_FILES += \
+ $(TF700T_LOCAL_KERNEL):kernel \
$(LOCAL_PATH)/ramdisk/init.cardhu.rc:root/init.cardhu.rc \
$(LOCAL_PATH)/ramdisk/init.cardhu.keyboard.rc:root/init.cardhu.keyboard.rc \
$(LOCAL_PATH)/ramdisk/ueventd.cardhu.rc:root/ueventd.cardhu.rc \
diff --git a/full_tf700t.mk b/full_tf700t.mk
index 975d207..de7f398 100644
--- a/full_tf700t.mk
+++ b/full_tf700t.mk
@@ -18,6 +18,9 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
# Inherit from toro device
$(call inherit-product, device/asus/tf700t/device_tf700t.mk)
+# Inherit Linaro bits
+$(call inherit-product, device/linaro/common/common.mk)
+
# This is where we'd set a backup provider if we had one
#$(call inherit-product, device/sample/products/backup_overlay.mk)