From 4053bf95ea08a5138656ed2ce027d0b7840625e8 Mon Sep 17 00:00:00 2001 From: jow Date: Fri, 15 Jul 2011 11:03:21 +0000 Subject: [PATCH] [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 --- utils/mtd-utils/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/utils/mtd-utils/Makefile b/utils/mtd-utils/Makefile index 63711d9a4..ce1c93d9b 100644 --- a/utils/mtd-utils/Makefile +++ b/utils/mtd-utils/Makefile @@ -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))))) -- 2.11.0