system/adb: Download the last version of microADB

commit aa9c64896c7d47478656928d4dcf9b1a5e346da7
Author: Xiang Xiao <xiaoxiang@xiaomi.com>
Date:   Sat Jan 22 16:41:23 2022 +0800

    remove NuttX special code

    since the new libuv porting for NuttX doesn't need the special process

    Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-03-03 02:39:11 +08:00 committed by Petro Karashchenko
parent 29374c96c3
commit 02a095bb76
2 changed files with 8 additions and 10 deletions

View File

@ -20,21 +20,19 @@
include $(APPDIR)/Make.defs include $(APPDIR)/Make.defs
ADB_DIR := $(APPDIR)/system/adb ADBD_URL ?= "https://github.com/spiriou/microADB/archive"
CONFIG_ADBD_URL ?= "https://github.com/spiriou/microADB.git" ADBD_VERSION ?= a1a12e2452eed9d8fdd008c05b4d93c992bfc0a7
CONFIG_ADBD_VERSION ?= b7025c67b866925d1e64c016a844a6a3392557a4
ADB_DIR := $(APPDIR)/system/adb
ADB_UNPACKNAME := microADB ADB_UNPACKNAME := microADB
ADB_UNPACKDIR := $(ADB_DIR)/$(ADB_UNPACKNAME) ADB_UNPACKDIR := $(ADB_DIR)/$(ADB_UNPACKNAME)
$(ADB_UNPACKDIR): $(ADB_UNPACKDIR):
@echo "Downloading: $(ADB_UNPACKNAME)" @echo "Downloading: $(ADB_UNPACKNAME)"
$(call DELDIR, "$@") $(Q) curl -O -L $(ADBD_URL)/$(ADBD_VERSION).zip
$(Q) mkdir "$@" $(Q) unzip -o $(ADBD_VERSION).zip
$(Q) cd "$@" && git init && \ $(call DELFILE, $(ADBD_VERSION).zip)
git remote add origin "$(CONFIG_ADBD_URL)" && \ $(call MOVEFILE, $(ADB_UNPACKNAME)-$(ADBD_VERSION), $(ADB_UNPACKDIR))
git fetch origin $(CONFIG_ADBD_VERSION) --depth=1 && \
git reset --hard FETCH_HEAD
# adb server app # adb server app

View File

@ -105,7 +105,7 @@ static const adb_service_ops_t logcat_ops =
.on_write_frame = alog_on_write, .on_write_frame = alog_on_write,
.on_ack_frame = alog_on_ack, .on_ack_frame = alog_on_ack,
.on_kick = alog_on_kick, .on_kick = alog_on_kick,
.close = alog_close .on_close = alog_close
}; };
static void logcat_on_data_available(uv_poll_t * handle, static void logcat_on_data_available(uv_poll_t * handle,