1
0

Makefile 1.4 KB

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