Skip to content

Commit 501802b

Browse files
committed
android_boot_bridge: Update to the newer Sony ELF changes
* Header structure modified * libcutils dependencies reordered Change-Id: I1d79d3443e03092f95a4df416e6a88a00c0262c4
1 parent 10f92cc commit 501802b

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

bbootimg_bridge/Android.mk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ LOCAL_MODULE_TAGS := eng
1414

1515
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
1616
LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_UNSTRIPPED)
17-
LOCAL_STATIC_LIBRARIES := libcutils libc libmultirom_static libbootimg
17+
LOCAL_STATIC_LIBRARIES := libc libmultirom_static libbootimg libcutils
1818
LOCAL_FORCE_STATIC_EXECUTABLE := true
1919

20+
LOCAL_CFLAGS := -DDEBUG_KMSG
21+
2022
include $(BUILD_EXECUTABLE)

bbootimg_bridge/bbootimg_bridge.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ int bbootimg_bridge(const char* import_path, const char* export_path)
8383
}
8484

8585
strcpy((char*)img.hdr.cmdline, cmdline);
86-
img.hdr_elf->cmd_size = strlen(cmdline);
86+
img.hdr_info->cmdline_size = strlen(cmdline);
8787

8888
strcpy(tmp, export_path);
8989
strcat(tmp, ".new");

0 commit comments

Comments
 (0)