mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
Convert packages to new template
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3752 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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)))
|
||||
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
|
||||
|
||||
$(PKG_BUILD_DIR)/.prepared:
|
||||
mkdir -p $(PKG_BUILD_DIR)
|
||||
touch $@
|
||||
|
||||
$(PKG_BUILD_DIR)/.configured:
|
||||
touch $@
|
||||
|
||||
$(PKG_BUILD_DIR)/.built:
|
||||
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
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
Package: mtd-static
|
||||
Priority: optional
|
||||
Section: sys
|
||||
Description: Tool for modifying the flash chip (statically linked)
|
||||
@@ -1,4 +0,0 @@
|
||||
Package: mtd
|
||||
Priority: optional
|
||||
Section: sys
|
||||
Description: Tool for modifying the flash chip
|
||||
Reference in New Issue
Block a user