Skip to content
This repository was archived by the owner on Aug 24, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions libadb/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ include $(CLEAR_VARS)

LOCAL_MODULE := libadb-$(TARGET_BUILD_VARIANT)
LOCAL_CFLAGS := $(KERNELFLINGER_CFLAGS)

ifeq ($(KERNELFLINGER_XDCI_DISABLED),true)
LOCAL_CFLAGS += -DKERNELFLINGER_XDCI_DISABLED
endif

LOCAL_STATIC_LIBRARIES := \
$(KERNELFLINGER_STATIC_LIBRARIES) \
libefiusb-$(TARGET_BUILD_VARIANT) \
Expand Down
2 changes: 2 additions & 0 deletions libadb/adb.c
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ static EFI_STATUS adb_tcp_start(start_callback_t start_cb,
}

static transport_t ADB_TRANSPORT[] = {
#ifndef KERNELFLINGER_XDCI_DISABLED
{
.name = "USB for adb",
.start = adb_usb_start,
Expand All @@ -394,6 +395,7 @@ static transport_t ADB_TRANSPORT[] = {
.read = usb_read,
.write = usb_write
},
#endif
{
.name = "TCP for adb",
.start = adb_tcp_start,
Expand Down
4 changes: 4 additions & 0 deletions libfastboot/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ SHARED_CFLAGS := \
$(KERNELFLINGER_CFLAGS) \
-DTARGET_BOOTLOADER_BOARD_NAME=\"$(TARGET_BOOTLOADER_BOARD_NAME)\"

ifeq ($(KERNELFLINGER_XDCI_DISABLED),true)
SHARED_CFLAGS += -DKERNELFLINGER_XDCI_DISABLED
endif

SHARED_C_INCLUDES := $(LOCAL_PATH)/../include \
$(KERNELFLINGER_LOCAL_PATH)/avb
SHARED_STATIC_LIBRARIES := \
Expand Down
2 changes: 2 additions & 0 deletions libfastboot/fastboot_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ EFI_STATUS fastboot_tcp_read(void *buf, UINT32 size)

/* Transport */
static transport_t FASTBOOT_TRANSPORT[] = {
#ifndef KERNELFLINGER_XDCI_DISABLED
{
.name = "USB for fastboot",
.start = fastboot_usb_start,
Expand All @@ -258,6 +259,7 @@ static transport_t FASTBOOT_TRANSPORT[] = {
.read = fastboot_usb_read,
.write = usb_write
},
#endif
{
.name = "TCP for fastboot",
.start = fastboot_tcp_start,
Expand Down