From b10bd624064f61377ac55e273996407443bfc97f Mon Sep 17 00:00:00 2001 From: Wiktor Kasz Date: Thu, 30 May 2013 13:09:12 +0200 Subject: [PATCH] Add I9505 support I9505 International Galaxy S4 LTE device tree --- BoardConfig.mk | 35 +++++++++++++++++++++++++++++++++++ README | 5 +++++ README.md | 3 +++ cm.dependencies | 19 +++++++++++++++++++ cm.mk | 16 ++++++++++++++++ device-proprietary-files.txt | 1 + device.mk | 24 ++++++++++++++++++++++++ extract-files.sh | 7 +++++++ full_i9505.mk | 35 +++++++++++++++++++++++++++++++++++ system.prop | 11 +++++++++++ vendorsetup.sh | 2 ++ 11 files changed, 158 insertions(+) create mode 100644 BoardConfig.mk create mode 100644 README create mode 100644 README.md create mode 100644 cm.dependencies create mode 100644 cm.mk create mode 100644 device-proprietary-files.txt create mode 100644 device.mk create mode 100644 extract-files.sh create mode 100644 full_i9505.mk create mode 100644 system.prop create mode 100644 vendorsetup.sh diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..ff278af --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,35 @@ +# Copyright (C) 2009 The CyanogenMod 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). +# + +# inherit from common JF +-include device/samsung/jf-common/BoardConfigCommon.mk + +# inherit from the proprietary version +-include vendor/samsung/i9505/BoardConfigVendor.mk + +# Assert +TARGET_OTA_ASSERT_DEVICE := jflte,jfltexx,i9505,GT-I9505 + +# Kernel +TARGET_KERNEL_CONFIG := jf_eur_defconfig +TARGET_KERNEL_VARIANT_CONFIG := cyanogen_jf_defconfig +TARGET_KERNEL_SELINUX_CONFIG := jfselinux_defconfig diff --git a/README b/README new file mode 100644 index 0000000..56c98fb --- /dev/null +++ b/README @@ -0,0 +1,5 @@ +Copyright 2013 - The CyanogenMod Project + +Device configuration for Samsung Galaxy S4 (International GT-I9505). + +My first Repo :) diff --git a/README.md b/README.md new file mode 100644 index 0000000..6a9e15b --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +android_device_samsung_i9505 +============================ +This is my first Repo. I hope it does good to the whole CyanogenMod community :) \ No newline at end of file diff --git a/cm.dependencies b/cm.dependencies new file mode 100644 index 0000000..d8fc3e1 --- /dev/null +++ b/cm.dependencies @@ -0,0 +1,19 @@ +[ + { + "repository": "android_device_samsung_qcom-common", + "target_path": "device/samsung/qcom-common" + }, + { + "repository": "android_device_samsung_msm8960-common", + "target_path": "device/samsung/msm8960-common" + }, + { + "repository": "android_device_samsung_jf-common", + "target_path": "device/samsung/jf-common" + }, + { + "repository": "android_kernel_samsung_jf", + "target_path": "kernel/samsung/jf" + } +] + diff --git a/cm.mk b/cm.mk new file mode 100644 index 0000000..6672af9 --- /dev/null +++ b/cm.mk @@ -0,0 +1,16 @@ +$(call inherit-product, device/samsung/i9505/full_i9505.mk) + +# Inherit some common CM stuff. +$(call inherit-product, vendor/cm/config/gsm.mk) + +# Enhanced NFC +$(call inherit-product, vendor/cm/config/nfc_enhanced.mk) + +# Inherit some common CM stuff. +$(call inherit-product, vendor/cm/config/common_full_phone.mk) + +PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=jfltexx TARGET_DEVICE=jflte BUILD_FINGERPRINT="samsung/jfltexx/jflte:4.2.2/JDQ39/I9505XXUAMDE:user/release-keys" PRIVATE_BUILD_DESC="jfltexx-user 4.2.2 JDQ39 I9505XXUAMDE release-keys" + +PRODUCT_DEVICE := i9505 +PRODUCT_NAME := cm_i9505 + diff --git a/device-proprietary-files.txt b/device-proprietary-files.txt new file mode 100644 index 0000000..755c891 --- /dev/null +++ b/device-proprietary-files.txt @@ -0,0 +1 @@ +# Add device specific blobs here diff --git a/device.mk b/device.mk new file mode 100644 index 0000000..f3681a2 --- /dev/null +++ b/device.mk @@ -0,0 +1,24 @@ +# +# Copyright (C) 2011 The CyanogenMod 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. +# + +## (2) Also get non-open-source specific aspects if available +$(call inherit-product-if-exists, vendor/samsung/i9505/i9505-vendor.mk) + +## common overlays +DEVICE_PACKAGE_OVERLAYS += device/samsung/jf-common/overlay-gsm + +# Inherit from jf-common +$(call inherit-product, device/samsung/jf-common/jf-common.mk) diff --git a/extract-files.sh b/extract-files.sh new file mode 100644 index 0000000..e60a97c --- /dev/null +++ b/extract-files.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +set -e + +export DEVICE=i9505 +export VENDOR=samsung +./../jf-common/extract-files.sh $@ diff --git a/full_i9505.mk b/full_i9505.mk new file mode 100644 index 0000000..91dadde --- /dev/null +++ b/full_i9505.mk @@ -0,0 +1,35 @@ +# 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. + +# +# This file is the build configuration for a full Android +# build for maguro hardware. This cleanly combines a set of +# device-specific aspects (drivers) with a device-agnostic +# product configuration (apps). Except for a few implementation +# details, it only fundamentally contains two inherit-product +# lines, full and maguro, hence its name. +# + + +# Inherit from those products. Most specific first. +$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk) +# Inherit from jfltetmo device +$(call inherit-product, device/samsung/i9505/device.mk) + +# Set those variables here to overwrite the inherited values. +PRODUCT_NAME := full_i9505 +PRODUCT_DEVICE := i9505 +PRODUCT_BRAND := samsung +PRODUCT_MANUFACTURER := samsung +PRODUCT_MODEL := GT-I9505 diff --git a/system.prop b/system.prop new file mode 100644 index 0000000..407871a --- /dev/null +++ b/system.prop @@ -0,0 +1,11 @@ +# system.prop for GT-I9505 +# + +# cannot take spaces +rild.libargs=-d /dev/smd0 + +# Fields for custom RIL +# MAX PROP NAME is 31 chars --| +ro.telephony.ril_class=SamsungQualcommUiccRIL +telephony.lteOnGsmDevice=1 + diff --git a/vendorsetup.sh b/vendorsetup.sh new file mode 100644 index 0000000..3c311c6 --- /dev/null +++ b/vendorsetup.sh @@ -0,0 +1,2 @@ +add_lunch_combo cm_i9505-eng +