universal7885: compile dtbo from the kernel rather than prebuilt

This commit is contained in:
FuriousDroid 2024-03-18 00:01:58 -04:00 committed by roynatech2544
commit 98bc68a401
20 changed files with 217 additions and 24 deletions

View file

@ -1,4 +0,0 @@
ifneq ($(filter $(TARGET_DEVICE), a10 a10dd),)
LOCAL_PATH := $(call my-dir)
$(call add-radio-file,eureka_dtbo.img)
endif

Binary file not shown.

View file

@ -1,4 +0,0 @@
ifeq ($(TARGET_DEVICE),a20)
LOCAL_PATH := $(call my-dir)
$(call add-radio-file,eureka_dtbo.img)
endif

Binary file not shown.

View file

@ -1,4 +0,0 @@
ifeq ($(TARGET_DEVICE),a20e)
LOCAL_PATH := $(call my-dir)
$(call add-radio-file,eureka_dtbo.img)
endif

Binary file not shown.

View file

@ -1,4 +0,0 @@
ifeq ($(TARGET_DEVICE),a30)
LOCAL_PATH := $(call my-dir)
$(call add-radio-file,eureka_dtbo.img)
endif

Binary file not shown.

View file

@ -1,4 +0,0 @@
ifeq ($(TARGET_DEVICE),a30s)
LOCAL_PATH := $(call my-dir)
$(call add-radio-file,eureka_dtbo.img)
endif

Binary file not shown.

View file

@ -1,4 +0,0 @@
ifeq ($(TARGET_DEVICE),a40)
LOCAL_PATH := $(call my-dir)
$(call add-radio-file,eureka_dtbo.img)
endif

Binary file not shown.

View file

@ -0,0 +1,23 @@
# BOARD_CUSTOM_DTBOIMG_MK := $(PLATFORM_PATH)/kernel/dtbo.mk
INSTALLED_DTBIMAGE_TARGET := $(PRODUCT_OUT)/eureka_dtbo.img
MKDTIMG := $(HOST_OUT_EXECUTABLES)/mkdtimg$(HOST_EXECUTABLE_SUFFIX)
KERNEL_OUT := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ
DTBO_DIR := $(KERNEL_OUT)/arch/$(KERNEL_ARCH)/boot/dts/exynos/dtbo
DTBO_CFG := $(COMMON_PATH)/dtbo/$(TARGET_DEVICE).cfg
define build-dtboimage-target
$(call pretty,"Target dtbo image: $(INSTALLED_DTBIMAGE_TARGET)")
$(MKDTIMG) cfg_create $@ $(DTBO_CFG) -d $(DTBO_DIR)
$(hide) chmod a+r $@
endef
$(INSTALLED_DTBIMAGE_TARGET): $(MKDTIMG) $(INSTALLED_KERNEL_TARGET)
$(build-dtboimage-target)
.PHONY: dtbimage
dtbimage: $(INSTALLED_DTBIMAGE_TARGET)
INSTALLED_RADIOIMAGE_TARGET += $(INSTALLED_DTBIMAGE_TARGET)

View file

@ -0,0 +1,31 @@
# global options
id=/:board_id
rev=/:board_rev
exynos7884B-a10_kor_open_00.dtbo
custom0=0x00
custom1=0x02
exynos7884B-a10_eur_open_01.dtbo
custom0=0x05
custom1=0xff
exynos7884B-a10_swa_open_00.dtbo
custom0=0x00
custom1=0xff
exynos7884B-a10_eur_open_00.dtbo
custom0=0x00
custom1=0x04
exynos7884B-a10_kor_open_05.dtbo
custom0=0x05
custom1=0xff
exynos7884B-a10_sea_open_00.dtbo
custom0=0x00
custom1=0xff
exynos7884B-a10_kor_open_03.dtbo
custom0=0x03
custom1=0x04

View file

@ -0,0 +1,31 @@
# global options
id=/:board_id
rev=/:board_rev
exynos7884B-a10_kor_open_00.dtbo
custom0=0x00
custom1=0x02
exynos7884B-a10_eur_open_01.dtbo
custom0=0x05
custom1=0xff
exynos7884B-a10_swa_open_00.dtbo
custom0=0x00
custom1=0xff
exynos7884B-a10_eur_open_00.dtbo
custom0=0x00
custom1=0x04
exynos7884B-a10_kor_open_05.dtbo
custom0=0x05
custom1=0xff
exynos7884B-a10_sea_open_00.dtbo
custom0=0x00
custom1=0xff
exynos7884B-a10_kor_open_03.dtbo
custom0=0x03
custom1=0x04

View file

@ -0,0 +1,59 @@
# global options
id=/:board_id
rev=/:board_rev
exynos7884B-a20_aus_xsa_01.dtbo
custom0=0x01
custom1=0x02
exynos7884B-a20_swa_open_01.dtbo
custom0=0x01
custom1=0x02
exynos7884B-a20_aus_xsa_00.dtbo
custom0=0x00
custom1=0x00
exynos7884B-a20_can_single_05.dtbo
custom0=0x05
custom1=0xff
exynos7884B-a20_cis_ser_01.dtbo
custom0=0x01
custom1=0x02
exynos7884B-a20_can_single_03.dtbo
custom0=0x03
custom1=0x04
exynos7884B-a20_cis_ser_03.dtbo
custom0=0x03
custom1=0xff
exynos7884B-a20_sea_xtc_00.dtbo
custom0=0x00
custom1=0x00
exynos7884B-a20_sea_xtc_01.dtbo
custom0=0x01
custom1=0x02
exynos7884B-a20_aus_xsa_03.dtbo
custom0=0x03
custom1=0xff
exynos7884B-a20_swa_open_03.dtbo
custom0=0x03
custom1=0xff
exynos7884B-a20_cis_ser_00.dtbo
custom0=0x00
custom1=0x00
exynos7884B-a20_swa_open_00.dtbo
custom0=0x00
custom1=0x00
exynos7884B-a20_sea_xtc_03.dtbo
custom0=0x03
custom1=0xff

View file

@ -0,0 +1,11 @@
# global options
id=/:board_id
rev=/:board_rev
exynos7884B-a20e_eur_open_03.dtbo
custom0=0x03
custom1=0xff
exynos7884B-a20e_eur_open_00.dtbo
custom0=0x00
custom1=0x02

View file

@ -0,0 +1,27 @@
# global options
id=/:board_id
rev=/:board_rev
exynos7904-a30_cis_open_02.dtbo
custom0=0x02
custom1=0xff
exynos7904-a30_swa_open_01.dtbo
custom0=0x01
custom1=0x01
exynos7904-a30_cis_open_01.dtbo
custom0=0x01
custom1=0x01
exynos7904-a30_swa_open_02.dtbo
custom0=0x02
custom1=0xff
exynos7904-a30_cis_open_00.dtbo
custom0=0x00
custom1=0x00
exynos7904-a30_swa_open_00.dtbo
custom0=0x00
custom1=0x00

View file

@ -0,0 +1,20 @@
# global options
id=/:board_id
rev=/:board_rev
exynos7904-a30s_eur_open_01.dtbo
custom0=0x01
custom1=0x01
exynos7904-a30s_eur_open_02.dtbo
custom0=0x02
custom1=0x02
exynos7904-a30s_eur_open_00.dtbo
custom0=0x00
custom1=0x00
exynos7904-a30s_eur_open_03.dtbo
custom0=0x03
custom1=0xff

View file

@ -0,0 +1,15 @@
# global options
id=/:board_id
rev=/:board_rev
exynos7904-a40_kor_skt_00.dtbo
custom0=0x00
custom1=0xff
exynos7904-a40_eur_open_01.dtbo
custom0=0x01
custom1=0xff
exynos7904-a40_eur_open_00.dtbo
custom0=0x00
custom1=0x00