2
0

Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=nand-utils
  7. PKG_REV:=d9076259b7f2654599bdf3416ec8ce0ad3b22610
  8. PKG_VERSION:=1.5.2
  9. PKG_RELEASE:=1
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:=git://git.infradead.org/mtd-utils.git
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  14. PKG_SOURCE_VERSION:=$(PKG_REV)
  15. PKG_INSTALL:=1
  16. PKG_LICENSE:=GPLv2
  17. PKG_LICENSE_FILES:=
  18. PKG_MAINTAINER:=Sergey Sergeev <[email protected]>
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/nand-utils
  21. TITLE:=Utilities for nand flash read/write/test
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. URL:=http://www.linux-mtd.infradead.org/
  25. DEPENDS:=@NAND_SUPPORT
  26. endef
  27. define Package/nand-utils/description
  28. Utilities for NAND devices.
  29. endef
  30. MAKE_FLAGS += \
  31. DESTDIR="$(PKG_INSTALL_DIR)" \
  32. BUILDDIR="$(PKG_BUILD_DIR)" \
  33. LDLIBS+="$(LIBGCC_S)" \
  34. WITHOUT_XATTR=1 \
  35. WITHOUT_LZO=1
  36. define Package/nand-utils/install
  37. $(INSTALL_DIR) $(1)/usr/sbin
  38. $(INSTALL_BIN) \
  39. $(PKG_INSTALL_DIR)/usr/sbin/{nanddump,nandwrite,nandtest,mtdinfo} $(1)/usr/sbin/
  40. endef
  41. $(eval $(call BuildPackage,nand-utils))