2016-10-06 16:11:17 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
#Based on adb package from AUR https://aur.archlinux.org/packages/adb/ , reused Makefile
|
|
|
|
|
|
|
|
PKG_NAME:=adb
|
2024-10-26 09:50:21 +00:00
|
|
|
PKG_SOURCE_VERSION:=6fe92d1a3fb17545d82d020a3c995f32e6b71f9d
|
|
|
|
PKG_VERSION:=5.0.2~$(call version_abbrev,$(PKG_SOURCE_VERSION))
|
2019-11-19 13:37:24 +00:00
|
|
|
PKG_RELEASE:=3
|
2016-10-06 16:11:17 +00:00
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
PKG_SOURCE_URL:=https://android.googlesource.com/platform/system/core
|
2024-10-26 09:50:21 +00:00
|
|
|
PKG_MIRROR_HASH:=2ff96b4342cd05f475083207a4927635548c6693771c12a24cfa99f175fdb10a
|
|
|
|
|
2016-10-06 16:11:17 +00:00
|
|
|
PKG_MAINTAINER:=Henryk Heisig <hyniu@o2.pl>
|
2023-09-18 20:53:14 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:google:android_debug_bridge
|
2016-10-06 16:11:17 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_BIG_ENDIAN),y)
|
|
|
|
TARGET_CFLAGS+= -DHAVE_BIG_ENDIAN=1
|
|
|
|
endif
|
|
|
|
TARGET_CFLAGS+= -D_GNU_SOURCE
|
|
|
|
|
|
|
|
define Package/adb
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=Android Debug Bridge CLI tool
|
|
|
|
URL:=http://tools.android.com/
|
|
|
|
DEPENDS:=+zlib +libopenssl +libpthread
|
|
|
|
endef
|
|
|
|
|
2017-10-27 19:27:53 +00:00
|
|
|
define Package/adb/description
|
2016-10-06 16:11:17 +00:00
|
|
|
Android Debug Bridge (adb) is a versatile command line tool that lets you communicate with an emulator instance or connected Android-powered device.
|
|
|
|
endef
|
|
|
|
|
|
|
|
# Nothing just to be sure
|
|
|
|
#define Build/Configure
|
|
|
|
#endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/adb/ \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
TARGET=Linux \
|
2017-02-13 02:29:53 +00:00
|
|
|
CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
|
2016-10-06 16:11:17 +00:00
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)"
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/adb/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/adb/adb $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,adb))
|