Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #
  2. # Copyright (C) 2009-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=ubi-utils
  9. PKG_REV:=7d2839b8dede3ae368780364b4a07473d2303219
  10. PKG_VERSION:=1.5.1
  11. PKG_RELEASE:=2
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=git://git.infradead.org/mtd-utils.git
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  16. PKG_SOURCE_VERSION:=$(PKG_REV)
  17. PKG_MIRROR_MD5SUM:=69b68adcfcbe786584771e5978534ab4
  18. PKG_INSTALL:=1
  19. PKG_BUILD_DEPENDS:=util-linux liblzo zlib
  20. PKG_LICENSE:=GPLv2
  21. PKG_LICENSE_FILES:=
  22. PKG_MAINTAINER:=John Crispin <[email protected]>
  23. PKG_BUILD_DIR:=$(BUILD_DIR)/ubi-utils/$(PKG_NAME)-$(PKG_VERSION)
  24. include $(INCLUDE_DIR)/package.mk
  25. define Package/ubi-utils
  26. TITLE:=Utilities for ubi info/debug
  27. SECTION:=utils
  28. CATEGORY:=Utilities
  29. URL:=http://www.linux-mtd.infradead.org/
  30. DEPENDS:=@NAND_SUPPORT
  31. endef
  32. define Package/ubi-utils/description
  33. Utilities for manipulating memory technology devices.
  34. endef
  35. MAKE_FLAGS += \
  36. DESTDIR="$(PKG_INSTALL_DIR)" \
  37. BUILDDIR="$(PKG_BUILD_DIR)" \
  38. LDLIBS+="$(LIBGCC_S)" \
  39. WITHOUT_XATTR=1 \
  40. WITHOUT_LZO=1
  41. define Package/ubi-utils/install
  42. $(INSTALL_DIR) $(1)/usr/sbin
  43. $(INSTALL_BIN) \
  44. $(PKG_INSTALL_DIR)/usr/sbin/{ubiattach,ubicrc32,ubiblock,ubidetach,ubiformat,ubimkvol} $(1)/usr/sbin/
  45. $(INSTALL_BIN) \
  46. $(PKG_INSTALL_DIR)/usr/sbin/{ubinfo,ubinize,ubirename,ubirmvol,ubirsvol,ubiupdatevol} $(1)/usr/sbin/
  47. endef
  48. $(eval $(call BuildPackage,ubi-utils))