upgrade the ixp4xx ethernet driver to v0.3.1, split the Gateway 7001 support to two...
[openwrt.git] / package / mtd / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=mtd
13 PKG_RELEASE:=5
14
15 PKG_BUILD_DIR := $(KERNEL_BUILD_DIR)/$(PKG_NAME)
16
17 include $(INCLUDE_DIR)/package.mk
18
19 define Package/mtd
20 SECTION:=utils
21 CATEGORY:=Base system
22 TITLE:=Update utility for trx firmware images
23 DESCRIPTION:=\
24 This package contains an utility useful to upgrade from other firmware or \\\
25 older OpenWrt releases.
26 endef
27
28 define Build/Prepare
29 mkdir -p $(PKG_BUILD_DIR)
30 $(CP) ./src/* $(PKG_BUILD_DIR)/
31 endef
32
33 define Build/Compile
34 $(MAKE) -C $(PKG_BUILD_DIR) \
35 $(TARGET_CONFIGURE_OPTS) \
36 CFLAGS="$(TARGET_CFLAGS) -Dtarget_$(BOARD)=1"
37 endef
38
39 define Package/mtd/install
40 $(INSTALL_DIR) $(1)/sbin
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mtd $(1)/sbin/
42 endef
43
44 $(eval $(call BuildPackage,mtd))
This page took 0.044877 seconds and 5 git commands to generate.