summaryrefslogtreecommitdiff
path: root/package/mtd
diff options
context:
space:
mode:
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-05-10 19:06:22 +0000
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-05-10 19:06:22 +0000
commit2b42215e7af143bc9c1734cfc551e28a27a91af5 (patch)
tree723775516af9d2f501e52b4cbccb4b00f52ce5a9 /package/mtd
parentb631c3ba470d9999779ae551f361118ca8c330ea (diff)
Convert packages to new template
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3752 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mtd')
-rw-r--r--package/mtd/Config.in15
-rw-r--r--package/mtd/Makefile35
-rw-r--r--package/mtd/ipkg/mtd-static.control4
-rw-r--r--package/mtd/ipkg/mtd.control4
4 files changed, 13 insertions, 45 deletions
diff --git a/package/mtd/Config.in b/package/mtd/Config.in
deleted file mode 100644
index 5420dff561..0000000000
--- a/package/mtd/Config.in
+++ /dev/null
@@ -1,15 +0,0 @@
-config BR2_PACKAGE_MTD
- prompt "mtd............................... Update utility for trx firmware images"
- tristate
- default y
- help
- Update utility for trx firmware images.
-
-config BR2_PACKAGE_MTD_STATIC
- prompt "mtd-static........................ Update utility for trx firmware images (statically linked)"
- tristate
- default n
- help
- Update utility for trx firmware images (statically linked). To update
- from other firmware or older OpenWrt releases.
-
diff --git a/package/mtd/Makefile b/package/mtd/Makefile
index 61e7e74c23..381184b1d3 100644
--- a/package/mtd/Makefile
+++ b/package/mtd/Makefile
@@ -9,29 +9,20 @@ PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
include $(TOPDIR)/package/rules.mk
-$(eval $(call PKG_template,MTD,$(PKG_NAME),$(PKG_RELEASE),$(ARCH)))
-$(eval $(call PKG_template,MTD_STATIC,mtd-static,$(PKG_RELEASE),$(ARCH)))
-
-$(PKG_BUILD_DIR)/.prepared:
- mkdir -p $(PKG_BUILD_DIR)
- touch $@
-
-$(PKG_BUILD_DIR)/.configured:
- touch $@
-
-$(PKG_BUILD_DIR)/.built:
+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
$(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/mtd mtd.c
- $(TARGET_CC) -static $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/mtd-static mtd.c
- touch $@
+endef
-$(IPKG_MTD):
+define Package/mtd/install
install -d -m0755 $(IDIR_MTD)/sbin
install -m0755 $(PKG_BUILD_DIR)/mtd $(IDIR_MTD)/sbin
- $(RSTRIP) $(IDIR_MTD)/sbin/*
- $(IPKG_BUILD) $(IDIR_MTD) $(PACKAGE_DIR)
-
-$(IPKG_MTD_STATIC):
- install -d -m0755 $(IDIR_MTD_STATIC)/sbin
- install -m0755 $(PKG_BUILD_DIR)/mtd-static $(IDIR_MTD_STATIC)/sbin
- $(RSTRIP) $(IDIR_MTD_STATIC)/sbin/*
- $(IPKG_BUILD) $(IDIR_MTD_STATIC) $(PACKAGE_DIR)
+endef
diff --git a/package/mtd/ipkg/mtd-static.control b/package/mtd/ipkg/mtd-static.control
deleted file mode 100644
index ded243a8bc..0000000000
--- a/package/mtd/ipkg/mtd-static.control
+++ /dev/null
@@ -1,4 +0,0 @@
-Package: mtd-static
-Priority: optional
-Section: sys
-Description: Tool for modifying the flash chip (statically linked)
diff --git a/package/mtd/ipkg/mtd.control b/package/mtd/ipkg/mtd.control
deleted file mode 100644
index 3145581c9b..0000000000
--- a/package/mtd/ipkg/mtd.control
+++ /dev/null
@@ -1,4 +0,0 @@
-Package: mtd
-Priority: optional
-Section: sys
-Description: Tool for modifying the flash chip