diff options
author | Henryk Heisig <hyniu@o2.pl> | 2016-10-06 18:11:17 +0200 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2016-12-22 15:03:31 +0100 |
commit | 363c3e68acec79f25deae49d2a8ecc45ec752d78 (patch) | |
tree | 02fda6499ca3020cd189ddb13fec0c3bbbc4ebff /package/utils/adb/Makefile | |
parent | c8043137bbd323b1490ae8613eab915ba9c138ee (diff) | |
download | upstream-363c3e68acec79f25deae49d2a8ecc45ec752d78.tar.gz upstream-363c3e68acec79f25deae49d2a8ecc45ec752d78.tar.bz2 upstream-363c3e68acec79f25deae49d2a8ecc45ec752d78.zip |
adb: new package "Android Debug Bridge"
Signed-off-by: Henryk Heisig <hyniu@o2.pl>
Diffstat (limited to 'package/utils/adb/Makefile')
-rw-r--r-- | package/utils/adb/Makefile | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/package/utils/adb/Makefile b/package/utils/adb/Makefile new file mode 100644 index 0000000000..1e77bb7e8a --- /dev/null +++ b/package/utils/adb/Makefile @@ -0,0 +1,52 @@ +include $(TOPDIR)/rules.mk +#Based on adb package from AUR https://aur.archlinux.org/packages/adb/ , reused Makefile + +PKG_NAME:=adb +PKG_VERSION:=android.5.0.2_r1 +PKG_RELEASE:=1 + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://android.googlesource.com/platform/system/core +PKG_SOURCE_VERSION:=6fe92d1a3fb17545d82d020a3c995f32e6b71f9d +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_SOURCE_VERSION) +PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.xz +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR) +PKG_MAINTAINER:=Henryk Heisig <hyniu@o2.pl> + +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 + +define Package/bridge/description + 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 \ + CFLAGS="$(TARGET_CFLAGS)" \ + 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)) |