Root/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
8ifneq ($(DUMP),)
9
10dumpinfo: FORCE
11
12define Config/template
13Preconfig: $(1)
14Preconfig-Type: $(2)
15Preconfig-Default: $(3)
16Preconfig-Label: $(4)
17
18endef
19
20define Config
21  Preconfig/$(1) = $$(call Config/template,$(1),$(2),$(3),$(4))
22  preconfig_$$(1) += $(1)
23endef
24
25define 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)
33Depends: $(DEPENDS)
34Menu-Depends: $(MDEPENDS)
35Provides: $(PROVIDES)
36$(if $(VARIANT),Build-Variant: $(VARIANT)
37)$(if $(PKG_BUILD_DEPENDS),Build-Depends: $(PKG_BUILD_DEPENDS)
38)$(if $(HOST_BUILD_DEPENDS),Build-Depends/host: $(HOST_BUILD_DEPENDS)
39)$(if $(BUILD_TYPES),Build-Types: $(BUILD_TYPES)
40)Section: $(SECTION)
41Category: $(CATEGORY)
42Title: $(TITLE)
43Maintainer: $(MAINTAINER)
44Source: $(PKG_SOURCE)
45Type: $(if $(Package/$(1)/targets),$(Package/$(1)/targets),$(if $(PKG_TARGETS),$(PKG_TARGETS),ipkg))
46$(if $(KCONFIG),Kernel-Config: $(KCONFIG)
47)$(if $(BUILDONLY),Build-Only: $(BUILDONLY)
48)$(if $(HIDDEN),Hidden: $(HIDDEN)
49)Description: $(if $(Package/$(1)/description),$(Package/$(1)/description),$(TITLE))
50$(if $(URL),$(URL)
51)$(MAINTAINER)
52@@
53$(if $(Package/$(1)/config),Config:
54$(Package/$(1)/config)
55@@
56)$(foreach pc,$(preconfig_$(1)),
57$(Preconfig/$(pc))))
58endef
59
60define Feature/Default
61  TARGET_NAME:=
62  TARGET_TITLE:=
63  PRIORITY:=
64  NAME:=
65endef
66
67define Feature
68  $(eval $(Feature/Default))
69  $(eval $(Feature/$(1)))
70  $(if $(DUMP),$(call Dumpinfo/Feature,$(1)))
71endef
72
73define Dumpinfo/Feature
74$(info Feature: $(TARGET_NAME)_$(1)
75Target-Name: $(TARGET_NAME)
76Target-Title: $(TARGET_TITLE)
77Feature-Name: $(NAME)
78$(if $(PRIORITY),Feature-Priority: $(PRIORITY)
79)Feature-Description:
80$(Feature/$(1)/description)
81@@
82)
83endef
84
85endif
86

Archive Download this file



interactive