mirror of
https://github.com/S3NEO/android_device_samsung_matissewifi.git
synced 2024-10-31 19:37:29 +00:00
klte: Stop using custom mkbootimg
Change-Id: I94f2965d3cf20d3a02c432fdb33e9c1bb9b96e81
This commit is contained in:
parent
9b3651cc89
commit
de62fe9331
2 changed files with 0 additions and 51 deletions
|
@ -18,7 +18,6 @@
|
|||
TARGET_OTA_ASSERT_DEVICE := kltexx,kltelra,kltetmo,kltecan,klteatt,klteub,klteacg,klte,kltekor,klteskt,kltektt
|
||||
|
||||
# Kernel
|
||||
BOARD_CUSTOM_BOOTIMG_MK := device/samsung/klte/mkbootimg.mk
|
||||
TARGET_KERNEL_VARIANT_CONFIG := msm8974pro_sec_klte_eur_defconfig
|
||||
|
||||
# Init
|
||||
|
|
50
mkbootimg.mk
50
mkbootimg.mk
|
@ -1,50 +0,0 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
## Don't change anything under here. The variables are named G2_whatever
|
||||
## on purpose, to avoid conflicts with similarly named variables at other
|
||||
## parts of the build environment
|
||||
|
||||
## Imported from the original makefile...
|
||||
G2_DTS_NAMES := msm8974
|
||||
|
||||
G2_DTS_FILES = $(wildcard $(TOP)/$(TARGET_KERNEL_SOURCE)/arch/arm/boot/dts/msm8974pro/msm8974pro-ac-sec-kkor*.dts) $(wildcard $(TOP)/$(TARGET_KERNEL_SOURCE)/arch/arm/boot/dts/msm8974pro/msm8974pro-ac-sec-k-*.dts)
|
||||
G2_DTS_FILE = $(lastword $(subst /, ,$(1)))
|
||||
DTB_FILE = $(addprefix $(KERNEL_OUT)/arch/arm/boot/,$(patsubst %.dts,%.dtb,$(call G2_DTS_FILE,$(1))))
|
||||
ZIMG_FILE = $(addprefix $(KERNEL_OUT)/arch/arm/boot/,$(patsubst %.dts,%-zImage,$(call G2_DTS_FILE,$(1))))
|
||||
KERNEL_ZIMG = $(KERNEL_OUT)/arch/arm/boot/zImage
|
||||
|
||||
define append-g2-dtb
|
||||
mkdir -p $(KERNEL_OUT)/arch/arm/boot;\
|
||||
$(foreach G2_DTS_NAME, $(G2_DTS_NAMES), \
|
||||
$(foreach d, $(G2_DTS_FILES), \
|
||||
cat $(KERNEL_ZIMG) $(call DTB_FILE,$(d)) > $(call ZIMG_FILE,$(d));))
|
||||
endef
|
||||
|
||||
|
||||
## Build and run dtbtool
|
||||
DTBTOOL := $(HOST_OUT_EXECUTABLES)/dtbToolCM$(HOST_EXECUTABLE_SUFFIX)
|
||||
INSTALLED_DTIMAGE_TARGET := $(PRODUCT_OUT)/dt.img
|
||||
|
||||
$(INSTALLED_DTIMAGE_TARGET): $(DTBTOOL) $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr $(INSTALLED_KERNEL_TARGET)
|
||||
@echo -e ${CL_CYN}"Start DT image: $@"${CL_RST}
|
||||
$(call append-g2-dtb)
|
||||
$(call pretty,"Target dt image: $(INSTALLED_DTIMAGE_TARGET)")
|
||||
$(hide) $(DTBTOOL) -o $(INSTALLED_DTIMAGE_TARGET) -s $(BOARD_KERNEL_PAGESIZE) -p $(KERNEL_OUT)/scripts/dtc/ $(KERNEL_OUT)/arch/arm/boot/
|
||||
@echo -e ${CL_CYN}"Made DT image: $@"${CL_RST}
|
||||
|
||||
|
||||
## Overload bootimg generation: Same as the original, + --dt arg
|
||||
$(INSTALLED_BOOTIMAGE_TARGET): $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_FILES) $(INSTALLED_DTIMAGE_TARGET)
|
||||
$(call pretty,"Target boot image: $@")
|
||||
$(hide) $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_ARGS) $(BOARD_MKBOOTIMG_ARGS) --dt $(INSTALLED_DTIMAGE_TARGET) --output $@
|
||||
$(hide) $(call assert-max-image-size,$@,$(BOARD_BOOTIMAGE_PARTITION_SIZE),raw)
|
||||
@echo -e ${CL_CYN}"Made boot image: $@"${CL_RST}
|
||||
|
||||
## Overload recoveryimg generation: Same as the original, + --dt arg
|
||||
$(INSTALLED_RECOVERYIMAGE_TARGET): $(MKBOOTIMG) $(INSTALLED_DTIMAGE_TARGET) \
|
||||
$(recovery_ramdisk) \
|
||||
$(recovery_kernel)
|
||||
$(call build-recoveryimage-target, $@)
|
||||
$(hide) $(MKBOOTIMG) $(INTERNAL_RECOVERYIMAGE_ARGS) $(BOARD_MKBOOTIMG_ARGS) --dt $(INSTALLED_DTIMAGE_TARGET) --output $@
|
||||
$(hide) $(call assert-max-image-size,$@,$(BOARD_RECOVERYIMAGE_PARTITION_SIZE),raw)
|
||||
@echo -e ${CL_CYN}"Made recovery image: $@"${CL_RST}
|
Loading…
Reference in a new issue