Skip to content

Commit 4b6edf8

Browse files
committed
a3y17lte: Initial Device Tree
0 parents  commit 4b6edf8

File tree

11 files changed

+209
-0
lines changed

11 files changed

+209
-0
lines changed

.travis.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
sudo: required
2+
services:
3+
- docker
4+
before_install:
5+
- docker pull yshalsager/cyanogenmod:latest
6+
before_script:
7+
- cd $HOME && mkdir twrp
8+
- wget -q https://github.com/TwrpBuilder/twrp-sources/releases/download/omni_twrp-5.1.1-20180211/omni_twrp-5.1.1-20180211-norepo.tar.xz
9+
-O $HOME/twrp.tar.xz
10+
- tar -xJf twrp.tar.xz --directory $HOME/twrp/ && rm twrp.tar.xz
11+
script:
12+
- cd $HOME/twrp/ && git clone https://github.com/TwrpBuilder/android_device_a3y17lte.git device/samsung/a3y17lte
13+
- git clone https://github.com/TwrpBuilder/device_generic_twrpbuilder.git device/generic/twrpbuilder
14+
- rm -rf bootable/recovery && git clone https://github.com/omnirom/android_bootable_recovery.git bootable/recovery
15+
- |
16+
docker run --rm -i -e USER_ID=$(id -u) -e GROUP_ID=$(id -g) -v "$(pwd):/home/cmbuild/twrp/:rw,z" yshalsager/cyanogenmod bash << EOF
17+
cd /home/cmbuild/twrp/
18+
source build/envsetup.sh && lunch omni_a3y17lte-userdebug && make -j16 recoveryimage
19+
exit
20+
EOF
21+
after_success:
22+
- export version=$(cat bootable/recovery/variables.h | grep "define TW_MAIN_VERSION_STR" | cut -d '"' -f2)
23+
- cp $HOME/twrp/out/target/product/a3y17lte/recovery.img $HOME/twrp/TWRP-$version-a3y17lte-$(date +"%Y%m%d").img
24+
25+
deploy:
26+
skip_cleanup: true
27+
provider: releases
28+
api_key: "$GIT_OAUTH_TOKEN_TB"
29+
file_glob: true
30+
file: $HOME/twrp/*.img
31+
on:
32+
tags: false
33+
repo: TwrpBuilder/android_device_a3y17lte
34+
branch: master
35+
36+
branches:
37+
except:
38+
- /^(?i:untagged)-.*$/

Android.mk

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#
2+
# Copyright (C) 2018 The TwrpBuilder Open-Source Project
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
ifneq ($(filter a3y17lte,$(TARGET_DEVICE)),)
18+
19+
LOCAL_PATH := device/samsung/a3y17lte
20+
21+
include $(call all-makefiles-under,$(LOCAL_PATH))
22+
23+
endif

AndroidProducts.mk

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#
2+
# Copyright (C) 2018 The TwrpBuilder Open-Source Project
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
LOCAL_PATH := device/samsung/a3y17lte
18+
19+
PRODUCT_MAKEFILES := $(LOCAL_PATH)/omni_a3y17lte.mk

BoardConfig.mk

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#
2+
# Copyright (C) 2018 The TwrpBuilder Open-Source Project
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
LOCAL_PATH := device/samsung/a3y17lte
18+
19+
TARGET_BOARD_PLATFORM := exynos5
20+
TARGET_BOOTLOADER_BOARD_NAME := a3y17lte
21+
22+
# Recovery
23+
TARGET_USERIMAGES_USE_EXT4 := true
24+
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 39845888
25+
BOARD_FLASH_BLOCK_SIZE := 1000000
26+
BOARD_HAS_NO_REAL_SDCARD := true
27+
TW_EXCLUDE_SUPERSU := true
28+
include $(LOCAL_PATH)/kernel.mk
29+
BOARD_CUSTOM_BOOTIMG_MK := device/generic/twrpbuilder/seEnforcing.mk
30+
include device/generic/twrpbuilder/BoardConfig32.mk
31+

dt.img

476 KB
Binary file not shown.

kernel

14.4 MB
Binary file not shown.

kernel.mk

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#
2+
# Copyright (C) 2018 The TwrpBuilder Open-Source Project
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
# Kernel
18+
TARGET_PREBUILT_KERNEL := device/samsung/a3y17lte/kernel
19+
BOARD_KERNEL_CMDLINE := androidboot.selinux=permissive
20+
BOARD_KERNEL_BASE := 0x10000000
21+
BOARD_KERNEL_PAGESIZE := 2048
22+
BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x01000000 --tags_offset 0x00000100 --dt device/samsung/a3y17lte/dt.img

omni_a3y17lte.mk

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#
2+
# Copyright (C) 2018 The TwrpBuilder Open-Source Project
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
18+
19+
PRODUCT_COPY_FILES += device/samsung/a3y17lte/kernel:kernel
20+
21+
PRODUCT_DEVICE := a3y17lte
22+
PRODUCT_NAME := omni_a3y17lte
23+
PRODUCT_BRAND := samsung
24+
PRODUCT_MODEL := SM-A320FL
25+
PRODUCT_MANUFACTURER := samsung

recovery.fstab

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/boot emmc /dev/block/platform/13540000.dwmmc0/by-name/BOOT
2+
/cache ext4 /dev/block/platform/13540000.dwmmc0/by-name/CACHE
3+
/data ext4 /dev/block/platform/13540000.dwmmc0/by-name/USERDATA length=-16384
4+
/recovery emmc /dev/block/platform/13540000.dwmmc0/by-name/RECOVERY
5+
/system ext4 /dev/block/platform/13540000.dwmmc0/by-name/SYSTEM
6+
/efs emmc /dev/block/platform/13540000.dwmmc0/by-name/EFS flags=display="EFS";backup=1
7+
/radio emmc /dev/block/platform/13540000.dwmmc0/by-name/RADIO flags=display="Modem";backup=1
8+
/cpefs emmc /dev/block/platform/13540000.dwmmc0/by-name/CPEFS flags=display="CPEFS";backup=1
9+
10+
11+
/system_image emmc /dev/block/platform/13540000.dwmmc0/by-name/SYSTEM
12+
/cache_image emmc /dev/block/platform/13540000.dwmmc0/by-name/CACHE
13+
/radio_image emmc /dev/block/platform/13540000.dwmmc0/by-name/RADIO
14+
/hidden_image emmc /dev/block/platform/13540000.dwmmc0/by-name/HIDDEN
15+
16+
/external_sdcard vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1 flags=display="Micro SDcard";storage;wipeingui;removable
17+
/usb-otg vfat /dev/block/sdd1 /dev/block/sda flags=display="USB-OTG";storage;wipeingui;removable

stock/mke2fs.conf

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[defaults]
2+
base_features = sparse_super,filetype,resize_inode,dir_index,ext_attr
3+
blocksize = 4096
4+
inode_size = 256
5+
inode_ratio = 16384
6+
7+
[fs_types]
8+
ext2 = {
9+
10+
}
11+
ext3 = {
12+
features = has_journal
13+
}
14+
ext4 = {
15+
features = has_journal,extent,huge_file,flex_bg,uninit_bg,dir_nlink,extra_isize
16+
inode_size = 256
17+
}

0 commit comments

Comments
 (0)