diff options
| author | Felix Fietkau <nbd@openwrt.org> | 2009-10-17 22:11:21 +0000 |
|---|---|---|
| committer | Felix Fietkau <nbd@openwrt.org> | 2009-10-17 22:11:21 +0000 |
| commit | 94cdcbde6d2fa931d27a239452ef794ab35f46ef (patch) | |
| tree | bff4cd1b0fa8e32e2ba5a9ac6c36c8c8bcc61e52 /include | |
| parent | f970dff78d3bbd1467857fc48beab43cb527447d (diff) | |
| download | upstream-94cdcbde6d2fa931d27a239452ef794ab35f46ef.tar.gz upstream-94cdcbde6d2fa931d27a239452ef794ab35f46ef.tar.bz2 upstream-94cdcbde6d2fa931d27a239452ef794ab35f46ef.zip | |
add experimental support for a new menuconfig submenu "Package features". allows selection between multiple packages providing the same feature, which affects dependencies of other packages. will be used e.g. for choosing between DirectFB and X.org for libraries like GTK2
SVN-Revision: 18056
Diffstat (limited to 'include')
| -rw-r--r-- | include/package-dumpinfo.mk | 30 | ||||
| -rw-r--r-- | include/package.mk | 2 |
2 files changed, 29 insertions, 3 deletions
diff --git a/include/package-dumpinfo.mk b/include/package-dumpinfo.mk index db8d9c11ca5..f48f31507a9 100644 --- a/include/package-dumpinfo.mk +++ b/include/package-dumpinfo.mk @@ -22,7 +22,7 @@ define Config preconfig_$$(1) += $(1) endef -define Dumpinfo +define Dumpinfo/Package $(info Package: $(1) $(if $(MENU),Menu: $(MENU) )$(if $(SUBMENU),Submenu: $(SUBMENU) @@ -51,5 +51,31 @@ $(Package/$(1)/config) @@ )$(foreach pc,$(preconfig_$(1)), $(Preconfig/$(pc)))) - endef +endef + +define Feature/Default + TARGET_NAME:= + TARGET_TITLE:= + PRIORITY:= + NAME:= +endef + +define Feature + $(eval $(Feature/Default)) + $(eval $(Feature/$(1))) + $(if $(DUMP),$(call Dumpinfo/Feature,$(1))) +endef + +define Dumpinfo/Feature +$(info Feature: $(TARGET_NAME)_$(1) +Target-Name: $(TARGET_NAME) +Target-Title: $(TARGET_TITLE) +Feature-Name: $(NAME) +$(if $(PRIORITY),Feature-Priority: $(PRIORITY) +)Feature-Description: +$(Feature/$(1)/description) +@@ +) +endef + endif diff --git a/include/package.mk b/include/package.mk index 7cfe6979377..4ee9d712917 100644 --- a/include/package.mk +++ b/include/package.mk @@ -176,7 +176,7 @@ endif $(call shexport,Package/$(1)/config) $(if $(DUMP), \ - $(Dumpinfo), \ + $(Dumpinfo/Package), \ $(foreach target, \ $(if $(Package/$(1)/targets),$(Package/$(1)/targets), \ $(if $(PKG_TARGETS),$(PKG_TARGETS), ipkg $(if $(CONFIG_DEBUG_DIR),debug)) \ |
