source: packages/utils/mtd-utils/Makefile @ 20586

Last change on this file since 20586 was 20586, checked in by florian, 7 years ago

[package] fix mtd-utils compilation with 2.4 kernels (#6985)

File size: 1.1 KB
Line 
1#
2# Copyright (C) 2009-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=mtd-utils
11PKG_REV:=a2d010f8fca904fffa3c6e5a5d148cc96a37a08a
12PKG_VERSION:=20090227
13PKG_RELEASE:=1
14PKG_INSTALL:=1
15
16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17PKG_SOURCE_URL:=git://git.infradead.org/mtd-utils.git
18PKG_SOURCE_PROTO:=git
19PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
20PKG_SOURCE_VERSION:=$(PKG_REV)
21
22include $(INCLUDE_DIR)/package.mk
23
24define Package/mtd-utils
25  SECTION:=utils
26  CATEGORY:=Utilities
27  TITLE:=Utilities for flash info/debug
28  URL:=http://www.linux-mtd.infradead.org/
29  DEPENDS:=+zlib +liblzo +libuuid
30endef
31
32define Package/mtd-utils/description
33  Utilities for manipulating memory technology devices.
34endef
35
36MAKE_FLAGS += \
37        DESTDIR="$(PKG_INSTALL_DIR)" \
38        BUILDDIR="$(PKG_BUILD_DIR)" \
39        WITHOUT_XATTR=1
40
41ifeq ($(CONFIG_LINUX_2_4),y)
42MAKE_FLAGS += \
43        SUBDIRS=""
44endif
45
46define Package/mtd-utils/install
47        $(INSTALL_DIR) $(1)/usr/sbin
48        $(CP) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
49endef
50
51$(eval $(call BuildPackage,mtd-utils))
Note: See TracBrowser for help on using the repository browser.