Skip to content

Commit

Permalink
j7y17lte: build in sar model and general cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Astrako committed Jan 3, 2021
1 parent 508fd21 commit a57ea9b
Show file tree
Hide file tree
Showing 21 changed files with 42 additions and 2,262 deletions.
26 changes: 8 additions & 18 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -55,32 +55,29 @@ TARGET_KERNEL_CONFIG := exynos7870-j7y17lte_defconfig
TARGET_KERNEL_SOURCE := kernel/samsung/exynos7870

# Extracted with libbootimg
BOARD_CUSTOM_BOOTIMG := true
BOARD_CUSTOM_BOOTIMG_MK := $(DEVICE_PATH)/dtbhtool/mkbootimg.mk
BOARD_MKBOOTIMG_ARGS := --kernel_offset 0x00008000 --ramdisk_offset 0x01000000 --tags_offset 0x00000100
BOARD_MKBOOTIMG_ARGS := --kernel_offset 0x00008000 --ramdisk_offset 0x01000000 --tags_offset 0x00000100 --dt $(OUT_DIR)/target/product/j7y17lte/obj/KERNEL_OBJ/arch/$(TARGET_ARCH)/boot/dtb.img
BOARD_KERNEL_BASE := 0x10000000
BOARD_KERNEL_PAGESIZE := 2048
BOARD_KERNEL_IMAGE_NAME := Image
BOARD_KERNEL_SEPARATED_DT := true
TARGET_CUSTOM_DTBTOOL := dtbhtoolExynos
BOARD_KERNEL_IMAGE_NAME := Image dtb.img

# File systems
BOARD_HAS_LARGE_FILESYSTEM := true
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
TARGET_USERIMAGES_USE_EXT4 := true
TARGET_USERIMAGES_USE_F2FS := true

# LZMA support
LZMA_RAMDISK_TARGETS := recovery

TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/recovery.fstab
TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/recovery/root/etc/recovery.fstab

# Recovery
TARGET_RECOVERY_PIXEL_FORMAT := "ABGR_8888"

# System as root
BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
BOARD_SUPPRESS_SECURE_ERASE := true
AB_OTA_UPDATER := false

# TWRP specific build flags
TARGET_OTA_ASSERT_DEVICE := j7y17lte
TARGET_OTA_ASSERT_DEVICE := j7y17lte,j7y17ltexx,j7y17ltextc
RECOVERY_SDCARD_ON_DATA := true
TW_BRIGHTNESS_PATH := "/sys/class/backlight/panel/brightness"
TW_EXCLUDE_DEFAULT_USB_INIT := true
Expand All @@ -105,10 +102,3 @@ TW_INCLUDE_FUSE_NTFS := true

# Vendor separation
TARGET_COPY_OUT_VENDOR := vendor

# Android Verified Boot
BOARD_AVB_ENABLE := false
BOARD_BUILD_DISABLED_VBMETAIMAGE := true

# Include
TARGET_SPECIFIC_HEADER_PATH := $(DEVICE_PATH)/dtbhtool/include
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,14 @@ $ mkdir twrp ; cd twrp
$ repo init --depth=1 -u https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git -b twrp-9.0

# Clone my local repo
$ git clone https://github.com/samsungexynos7870/android_device_samsung_j7y17lte.git -b twrp device/samsung/j7y17lte
$ git clone https://github.com/samsungexynos7870/android_manifest_samsung_j7y17lte.git -b twrp .repo/local_manifests

# Sync
$ repo sync --no-repo-verify -c --force-sync --no-clone-bundle --no-tags --optimized-fetch --prune -j`nproc`

# Build
$ mv device/samsung/j7y17lte/build_twrp.sh .
$ . build_twrp.sh j7y17lte
$ source build/envsetup.sh ; lunch omni_j7y17lte-eng ; mka recoveryimage
```

## Credits
2020 @Astrako

Expand Down
15 changes: 0 additions & 15 deletions build_twrp.sh

This file was deleted.

69 changes: 0 additions & 69 deletions dtbhtool/Android.mk

This file was deleted.

102 changes: 0 additions & 102 deletions dtbhtool/bootimg.h

This file was deleted.

Loading

0 comments on commit a57ea9b

Please sign in to comment.