Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. include $(TOPDIR)/rules.mk
  2. #Based on adb package from AUR https://aur.archlinux.org/packages/adb/ , reused Makefile
  3. PKG_NAME:=adb
  4. PKG_VERSION:=android.5.0.2_r1
  5. PKG_RELEASE:=3
  6. PKG_SOURCE_PROTO:=git
  7. PKG_SOURCE_URL:=https://android.googlesource.com/platform/system/core
  8. PKG_SOURCE_VERSION:=6fe92d1a3fb17545d82d020a3c995f32e6b71f9d
  9. PKG_MIRROR_HASH:=a9b4b86602dfc0d4fc9e1d0f78dc83e648a931fb04f5a4be9b1f0054a8cebf7e
  10. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_SOURCE_VERSION)
  11. PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.xz
  12. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
  13. PKG_MAINTAINER:=Henryk Heisig <hyniu@o2.pl>
  14. PKG_CPE_ID:=cpe:/a:google:android_debug_bridge
  15. include $(INCLUDE_DIR)/package.mk
  16. ifeq ($(CONFIG_BIG_ENDIAN),y)
  17. TARGET_CFLAGS+= -DHAVE_BIG_ENDIAN=1
  18. endif
  19. TARGET_CFLAGS+= -D_GNU_SOURCE
  20. define Package/adb
  21. SECTION:=utils
  22. CATEGORY:=Utilities
  23. TITLE:=Android Debug Bridge CLI tool
  24. URL:=http://tools.android.com/
  25. DEPENDS:=+zlib +libopenssl +libpthread
  26. endef
  27. define Package/adb/description
  28. Android Debug Bridge (adb) is a versatile command line tool that lets you communicate with an emulator instance or connected Android-powered device.
  29. endef
  30. # Nothing just to be sure
  31. #define Build/Configure
  32. #endef
  33. define Build/Compile
  34. $(MAKE) -C $(PKG_BUILD_DIR)/adb/ \
  35. $(TARGET_CONFIGURE_OPTS) \
  36. TARGET=Linux \
  37. CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
  38. LDFLAGS="$(TARGET_LDFLAGS)"
  39. endef
  40. define Package/adb/install
  41. $(INSTALL_DIR) $(1)/usr/bin
  42. $(INSTALL_BIN) $(PKG_BUILD_DIR)/adb/adb $(1)/usr/bin/
  43. endef
  44. $(eval $(call BuildPackage,adb))