potter: switch to oss dtbTool

Change-Id: Iac9a00d6d446eeb689f331e77adbf616e9dea79e
This commit is contained in:
Vachounet
2017-08-20 16:26:52 +02:00
parent 697cef60c7
commit 0fd50c896e
4 changed files with 1125 additions and 5 deletions

View File

@@ -50,7 +50,7 @@ BOARD_KERNEL_CMDLINE += ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci lpm
BOARD_KERNEL_BASE := 0x80000000 BOARD_KERNEL_BASE := 0x80000000
BOARD_KERNEL_PAGESIZE := 2048 BOARD_KERNEL_PAGESIZE := 2048
BOARD_KERNEL_SEPARATED_DT := true BOARD_KERNEL_SEPARATED_DT := true
TARGET_CUSTOM_DTBTOOL := dtbTool_moto TARGET_CUSTOM_DTBTOOL := dtbTool_custom
BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x01000000 --tags_offset 0x00000100 BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x01000000 --tags_offset 0x00000100
TARGET_KERNEL_ARCH := arm TARGET_KERNEL_ARCH := arm
TARGET_KERNEL_CONFIG := potter_defconfig TARGET_KERNEL_CONFIG := potter_defconfig

View File

@@ -1,7 +1,17 @@
ifeq ($(BOARD_KERNEL_SEPARATED_DT),true)
LOCAL_PATH := $(call my-dir) LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := dtbTool_moto
LOCAL_PREBUILT_MODULE_FILE := $(LOCAL_PATH)/$(LOCAL_MODULE) LOCAL_SRC_FILES := \
LOCAL_MODULE_CLASS := EXECUTABLES dtbtool.c
LOCAL_MODULE_SUFFIX := $(HOST_EXECUTABLE_SUFFIX)
LOCAL_CFLAGS += \
-Wall
## Hybrid v1/v2 dtbTool. Use a different name to avoid conflicts with copies in device repos
LOCAL_MODULE := dtbTool_custom
LOCAL_MODULE_TAGS := optional
include $(BUILD_HOST_EXECUTABLE) include $(BUILD_HOST_EXECUTABLE)
endif

Binary file not shown.

1110
dtbtool/dtbtool.c Normal file

File diff suppressed because it is too large Load Diff