iwinfo: fix handling of accessing nl80211 interfaces via radio*
[openwrt/openwrt.git] / include / package-dumpinfo.mk
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 ifneq ($(DUMP),)
9
10 dumpinfo: FORCE
11
12 define Config/template
13 Preconfig: $(1)
14 Preconfig-Type: $(2)
15 Preconfig-Default: $(3)
16 Preconfig-Label: $(4)
17
18 endef
19
20 define Config
21 Preconfig/$(1) = $$(call Config/template,$(1),$(2),$(3),$(4))
22 preconfig_$$(1) += $(1)
23 endef
24
25 define Dumpinfo/Package
26 $(info Package: $(1)
27 $(if $(MENU),Menu: $(MENU)
28 )$(if $(SUBMENU),Submenu: $(SUBMENU)
29 )$(if $(SUBMENUDEP),Submenu-Depends: $(SUBMENUDEP)
30 )$(if $(DEFAULT),Default: $(DEFAULT)
31 )$(if $(findstring $(PREREQ_CHECK),1),Prereq-Check: 1
32 )Version: $(VERSION)
33 Depends: $(call PKG_FIXUP_DEPENDS,$(1),$(DEPENDS))
34 Menu-Depends: $(MDEPENDS)
35 Provides: $(PROVIDES)
36 $(if $(VARIANT),Build-Variant: $(VARIANT)
37 $(if $(DEFAULT_VARIANT),Default-Variant: $(VARIANT)
38 ))$(if $(PKG_BUILD_DEPENDS),Build-Depends: $(PKG_BUILD_DEPENDS)
39 )$(if $(HOST_BUILD_DEPENDS),Build-Depends/host: $(HOST_BUILD_DEPENDS)
40 )$(if $(BUILD_TYPES),Build-Types: $(BUILD_TYPES)
41 )Section: $(SECTION)
42 Category: $(CATEGORY)
43 Title: $(TITLE)
44 Maintainer: $(MAINTAINER)
45 $(if $(USERID),Require-User: $(USERID)
46 )Source: $(PKG_SOURCE)
47 Type: $(if $(Package/$(1)/targets),$(Package/$(1)/targets),$(if $(PKG_TARGETS),$(PKG_TARGETS),ipkg))
48 $(if $(KCONFIG),Kernel-Config: $(KCONFIG)
49 )$(if $(BUILDONLY),Build-Only: $(BUILDONLY)
50 )$(if $(HIDDEN),Hidden: $(HIDDEN)
51 )$(if $(FEED),Feed: $(FEED)
52 )Description: $(if $(Package/$(1)/description),$(Package/$(1)/description),$(TITLE))
53 $(if $(URL),$(URL)
54 )$(MAINTAINER)
55 @@
56 $(if $(Package/$(1)/config),Config:
57 $(Package/$(1)/config)
58 @@
59 )$(foreach pc,$(preconfig_$(1)),
60 $(Preconfig/$(pc))))
61 endef
62
63 define Feature/Default
64 TARGET_NAME:=
65 TARGET_TITLE:=
66 PRIORITY:=
67 NAME:=
68 endef
69
70 define Feature
71 $(eval $(Feature/Default))
72 $(eval $(Feature/$(1)))
73 $(if $(DUMP),$(call Dumpinfo/Feature,$(1)))
74 endef
75
76 define Dumpinfo/Feature
77 $(info Feature: $(TARGET_NAME)_$(1)
78 Target-Name: $(TARGET_NAME)
79 Target-Title: $(TARGET_TITLE)
80 Feature-Name: $(NAME)
81 $(if $(PRIORITY),Feature-Priority: $(PRIORITY)
82 )Feature-Description:
83 $(Feature/$(1)/description)
84 @@
85 )
86 endef
87
88 endif