2005-07-21 00:27:08 +00:00
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME := mtd
|
2006-02-09 03:21:01 +00:00
|
|
|
PKG_RELEASE := 4
|
2005-07-21 00:27:08 +00:00
|
|
|
|
|
|
|
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
|
|
|
|
|
|
|
include $(TOPDIR)/package/rules.mk
|
|
|
|
|
2006-05-10 19:06:22 +00:00
|
|
|
define Package/mtd
|
|
|
|
SECTION:=base
|
|
|
|
CATEGORY:=Util
|
|
|
|
DEFAULT:=y
|
|
|
|
TITLE:=Update utility for trx firmware images
|
|
|
|
DESCRIPTION:=Update utility for trx firmware images. To update \\\
|
|
|
|
from other firmware or older OpenWrt releases.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2005-09-04 00:13:34 +00:00
|
|
|
$(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/mtd mtd.c
|
2006-05-10 19:06:22 +00:00
|
|
|
endef
|
2005-07-21 00:27:08 +00:00
|
|
|
|
2006-05-10 19:06:22 +00:00
|
|
|
define Package/mtd/install
|
2006-05-11 16:00:43 +00:00
|
|
|
install -d -m0755 $(1)/sbin
|
|
|
|
install -m0755 $(PKG_BUILD_DIR)/mtd $(1)/sbin
|
2006-05-10 19:06:22 +00:00
|
|
|
endef
|