You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
777 B
39 lines
777 B
19 years ago
|
#
|
||
|
# Copyright (C) 2006 OpenWrt.org
|
||
|
#
|
||
|
# This is free software, licensed under the GNU General Public License v2.
|
||
|
# See /LICENSE for more information.
|
||
|
#
|
||
20 years ago
|
# $Id$
|
||
|
|
||
|
include $(TOPDIR)/rules.mk
|
||
|
|
||
19 years ago
|
PKG_NAME:=mtd
|
||
|
PKG_RELEASE:=4
|
||
20 years ago
|
|
||
|
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
||
|
|
||
19 years ago
|
include $(INCLUDE_DIR)/package.mk
|
||
20 years ago
|
|
||
19 years ago
|
define Package/mtd
|
||
19 years ago
|
SECTION:=utils
|
||
|
CATEGORY:=Base system
|
||
|
DEFAULT:=y
|
||
|
TITLE:=Update utility for trx firmware images
|
||
|
DESCRIPTION:=\
|
||
|
This package contains an utility useful to upgrade from other firmware or \\\
|
||
|
older OpenWrt releases.
|
||
19 years ago
|
endef
|
||
|
|
||
19 years ago
|
define Build/Prepare
|
||
|
mkdir -p $(PKG_BUILD_DIR)
|
||
|
$(CP) ./src/* $(PKG_BUILD_DIR)/
|
||
|
endef
|
||
|
|
||
19 years ago
|
define Package/mtd/install
|
||
19 years ago
|
install -d -m0755 $(1)/sbin
|
||
19 years ago
|
install -m0755 $(PKG_BUILD_DIR)/mtd $(1)/sbin/
|
||
19 years ago
|
endef
|
||
19 years ago
|
|
||
|
$(eval $(call BuildPackage,mtd))
|