2005-07-21 03:27:08 +03:00
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME := mtd
|
2006-02-09 05:21:01 +02:00
|
|
|
PKG_RELEASE := 4
|
2005-07-21 03:27:08 +03:00
|
|
|
|
|
|
|
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
|
|
|
|
|
|
|
include $(TOPDIR)/package/rules.mk
|
|
|
|
|
2006-05-10 22:06:22 +03: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 03:13:34 +03:00
|
|
|
$(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/mtd mtd.c
|
2006-05-10 22:06:22 +03:00
|
|
|
endef
|
2005-07-21 03:27:08 +03:00
|
|
|
|
2006-05-10 22:06:22 +03:00
|
|
|
define Package/mtd/install
|
2006-05-11 19:00:43 +03:00
|
|
|
install -d -m0755 $(1)/sbin
|
|
|
|
install -m0755 $(PKG_BUILD_DIR)/mtd $(1)/sbin
|
2006-05-10 22:06:22 +03:00
|
|
|
endef
|
2006-05-31 16:00:11 +03:00
|
|
|
|
|
|
|
$(eval $(call BuildPackage,mtd))
|