Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. include $(INCLUDE_DIR)/package.mk
  15. ifeq ($(CONFIG_BIG_ENDIAN),y)
  16. TARGET_CFLAGS+= -DHAVE_BIG_ENDIAN=1
  17. endif
  18. TARGET_CFLAGS+= -D_GNU_SOURCE
  19. define Package/adb
  20. SECTION:=utils
  21. CATEGORY:=Utilities
  22. TITLE:=Android Debug Bridge CLI tool
  23. URL:=http://tools.android.com/
  24. DEPENDS:=+zlib +libopenssl +libpthread
  25. endef
  26. define Package/adb/description
  27. Android Debug Bridge (adb) is a versatile command line tool that lets you communicate with an emulator instance or connected Android-powered device.
  28. endef
  29. # Nothing just to be sure
  30. #define Build/Configure
  31. #endef
  32. define Build/Compile
  33. $(MAKE) -C $(PKG_BUILD_DIR)/adb/ \
  34. $(TARGET_CONFIGURE_OPTS) \
  35. TARGET=Linux \
  36. CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
  37. LDFLAGS="$(TARGET_LDFLAGS)"
  38. endef
  39. define Package/adb/install
  40. $(INSTALL_DIR) $(1)/usr/bin
  41. $(INSTALL_BIN) $(PKG_BUILD_DIR)/adb/adb $(1)/usr/bin/
  42. endef
  43. $(eval $(call BuildPackage,adb))