Skip to content
This repository was archived by the owner on Aug 24, 2022. It is now read-only.

Commit c210511

Browse files
committed
new compile option KERNELFLINGER_NO_XDCI
For CiV project, there is xDCI hardware. Disable code for xDCI to suppress unnecessary error message Signed-off-by: JianFeng,Zhou <[email protected]>
1 parent 6848559 commit c210511

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

libadb/Android.mk

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ include $(CLEAR_VARS)
44

55
LOCAL_MODULE := libadb-$(TARGET_BUILD_VARIANT)
66
LOCAL_CFLAGS := $(KERNELFLINGER_CFLAGS)
7+
8+
ifeq ($(KERNELFLINGER_XDCI_DISABLED),true)
9+
LOCAL_CFLAGS += -DKERNELFLINGER_XDCI_DISABLED
10+
endif
11+
712
LOCAL_STATIC_LIBRARIES := \
813
$(KERNELFLINGER_STATIC_LIBRARIES) \
914
libefiusb-$(TARGET_BUILD_VARIANT) \

libadb/adb.c

+2
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ static EFI_STATUS adb_tcp_start(start_callback_t start_cb,
386386
}
387387

388388
static transport_t ADB_TRANSPORT[] = {
389+
#ifndef KERNELFLINGER_XDCI_DISABLED
389390
{
390391
.name = "USB for adb",
391392
.start = adb_usb_start,
@@ -394,6 +395,7 @@ static transport_t ADB_TRANSPORT[] = {
394395
.read = usb_read,
395396
.write = usb_write
396397
},
398+
#endif
397399
{
398400
.name = "TCP for adb",
399401
.start = adb_tcp_start,

libfastboot/Android.mk

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ SHARED_CFLAGS := \
55
$(KERNELFLINGER_CFLAGS) \
66
-DTARGET_BOOTLOADER_BOARD_NAME=\"$(TARGET_BOOTLOADER_BOARD_NAME)\"
77

8+
ifeq ($(KERNELFLINGER_XDCI_DISABLED),true)
9+
SHARED_CFLAGS += -DKERNELFLINGER_XDCI_DISABLED
10+
endif
11+
812
SHARED_C_INCLUDES := $(LOCAL_PATH)/../include \
913
$(KERNELFLINGER_LOCAL_PATH)/avb
1014
SHARED_STATIC_LIBRARIES := \

libfastboot/fastboot_transport.c

+2
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ EFI_STATUS fastboot_tcp_read(void *buf, UINT32 size)
250250

251251
/* Transport */
252252
static transport_t FASTBOOT_TRANSPORT[] = {
253+
#ifndef KERNELFLINGER_XDCI_DISABLED
253254
{
254255
.name = "USB for fastboot",
255256
.start = fastboot_usb_start,
@@ -258,6 +259,7 @@ static transport_t FASTBOOT_TRANSPORT[] = {
258259
.read = fastboot_usb_read,
259260
.write = usb_write
260261
},
262+
#endif
261263
{
262264
.name = "TCP for fastboot",
263265
.start = fastboot_tcp_start,

0 commit comments

Comments
 (0)