[packages] mtd-utils:

- make sure the parent virtual package is built, fixes missing opkg dependencies on install
	- replace underscores with dashes in the sub-package names


git-svn-id: svn://svn.openwrt.org/openwrt/packages@27612 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2011-07-15 11:03:21 +00:00
parent afb0dd4541
commit 4053bf95ea

View File

@ -71,7 +71,7 @@ FILES:= \
rfdformat
define PartGen
define Package/mtd-utils-$(1)
define Package/mtd-utils-$(subst _,-,$(1))
TITLE:=MTD $(1)
URL:=http://www.linux-mtd.infradead.org/
SECTION:=utils
@ -91,6 +91,10 @@ define Package/mtd-utils/description
Utilities for manipulating memory technology devices.
endef
define Package/mtd-utils/install
true
endef
$(foreach file,$(FILES),$(eval $(call PartGen,$(file))))
MAKE_FLAGS += \
@ -105,7 +109,7 @@ MAKE_FLAGS += \
endif
define PartInstall
define Package/mtd-utils-$(1)/install
define Package/mtd-utils-$(subst _,-,$(1))/install
$(INSTALL_DIR) \
$$(1)/usr/sbin
@ -118,4 +122,4 @@ endef
$(foreach file,$(FILES),$(eval $(call PartInstall,$(file))))
$(eval $(call BuildPackage,mtd-utils))
$(foreach file,$(FILES),$(eval $(call BuildPackage,mtd-utils-$(file))))
$(foreach file,$(FILES),$(eval $(call BuildPackage,mtd-utils-$(subst _,-,$(file)))))