diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..85c5eac --- /dev/null +++ b/Android.mk @@ -0,0 +1,23 @@ +# +# Copyright (C) 2018 The TwrpBuilder 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. +# + +ifneq ($(filter nokia_8110_4g,$(TARGET_DEVICE)),) + +LOCAL_PATH := device/Nokia/Argon/ + +include $(call all-makefiles-under,$(LOCAL_PATH)) + +endif diff --git a/AndroidProducts.mk b/AndroidProducts.mk new file mode 100644 index 0000000..bb66485 --- /dev/null +++ b/AndroidProducts.mk @@ -0,0 +1,18 @@ +# +# +# 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 := device/Nokia/Argon/ + +PRODUCT_MAKEFILES := $(LOCAL_PATH)/cm.mk diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..fb34fbe --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,51 @@ +# +# 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. +# +TARGET_ARCH := arm +TARGET_ARCH_VARIANT := armv7-a-neon +TARGET_CPU_ABI := armeabi-v7a +TARGET_CPU_ABI2 := armeabi +TARGET_CPU_VARIANT := cortex-a7 +LOCAL_PATH := device/Nokia/Argon +TARGET_BOARD_PLATFORM := msm8909 +TARGET_BOOTLOADER_BOARD_NAME := Argon + +# Recovery +TARGET_RECOVERY_PIXEL_FORMAT := "RGB_565" +#TARGET_USES_QCOM_BSP := true +TARGET_USERIMAGES_USE_EXT4 := true +BOARD_RECOVERYIMAGE_PARTITION_SIZE := 26214400 +BOARD_FLASH_BLOCK_SIZE := 0 +BOARD_HAS_NO_REAL_SDCARD := true +BOARD_SUPPRESS_SECURE_ERASE := true +BOARD_HAS_NO_MISC_PARTITION := true +BOARD_RECOVERY_SWIPE := true +BOARD_USES_MMCUTILS := true +BOARD_SUPPRESS_EMMC_WIPE := true +TARGET_SCREEN_HEIGHT := 320 +TARGET_SCREEN_WIDTH := 240 +BOARD_USE_NTFS_3G := false +TARGET_RECOVERY_FSTAB := device/Nokia/Argon/rootdir/etc/recovery.fstab +TARGET_PLATFORM_DEVICE_BASE := /devices/soc.0/ +BOARD_HAS_LOW_RESOLUTION := true +TARGET_COMMON_NAME := Argon + + + +#kernel +TARGET_PREBUILT_KERNEL := $(LOCAL_PATH)/kernel +BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci lpm_levels.sleep_disabled=1 earlyprintk androidboot.selinux=permissive +BOARD_KERNEL_BASE := 0x80000000 +BOARD_KERNEL_PAGESIZE := 2048 +BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x01000000 --tags_offset 0x00000100 + diff --git a/README.md b/README.md index 6e282e3..bb91f0e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ -# android_device_nokia_8110 -Device tree for Nokia 8110 4G (Specify for TWRP) +# android_device_nokia_Argon +Device tree for Nokia 8110 4G (Specify for CWM-Philz Touch Recovery) + + +Based on Project Pris recovery repo : https://gitlab.com/project-pris/recovery diff --git a/cm.mk b/cm.mk new file mode 100644 index 0000000..28c9c6e --- /dev/null +++ b/cm.mk @@ -0,0 +1,22 @@ +# +# Copyright (C) 2018 The TwrpBuilder 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. +# + +$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk) +PRODUCT_DEVICE := Argon +PRODUCT_NAME := cm_Argon +PRODUCT_BRAND := Nokia +PRODUCT_MODEL := TA-1059 +PRODUCT_MANUFACTURER := nokia diff --git a/device_Argon.mk b/device_Argon.mk new file mode 100644 index 0000000..b67bcbf --- /dev/null +++ b/device_Argon.mk @@ -0,0 +1,24 @@ +$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk) + +# The gps config appropriate for this device +#$(call inherit-product, device/common/gps/gps_us_supl.mk) <- Disable it to use this Part-Source or ERROR 1. + +$(call inherit-product-if-exists, vendor/Nokia/Argon/Argon-vendor.mk) + +DEVICE_PACKAGE_OVERLAYS += device/Argon/Argon/overlay + +LOCAL_PATH := device/Nokia/Argon +ifeq ($(TARGET_PREBUILT_KERNEL),) + LOCAL_KERNEL := $(LOCAL_PATH)/kernel +else + LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL) +endif + +PRODUCT_COPY_FILES += + $(LOCAL_KERNEL):kernel + +$(call inherit-product, build/target/product/full.mk) + +PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0 +PRODUCT_NAME := full_Argon +PRODUCT_DEVICE := Argon diff --git a/kernel b/kernel new file mode 100644 index 0000000..4b5ecdc Binary files /dev/null and b/kernel differ diff --git a/vendorsetup.sh b/vendorsetup.sh new file mode 100644 index 0000000..1c43f38 --- /dev/null +++ b/vendorsetup.sh @@ -0,0 +1,30 @@ +# +# Copyright (c) 2012, The Linux Foundation. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are +# met: +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above +# copyright notice, this list of conditions and the following +# disclaimer in the documentation and/or other materials provided +# with the distribution. +# * Neither the name of The Linux Foundation nor the names of its +# contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT +# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS +# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# + +add_lunch_combo cm_Argon-eng