fix up the download location for the updated mac80211 version (thx, swalker)
[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: $(DEPENDS)
34 Provides: $(PROVIDES)
35 $(if $(PKG_BUILD_DEPENDS),Build-Depends: $(PKG_BUILD_DEPENDS)
36 )$(if $(HOST_BUILD_DEPENDS),Build-Depends/host: $(HOST_BUILD_DEPENDS)
37 )$(if $(BUILD_TYPES),Build-Types: $(BUILD_TYPES)
38 )Section: $(SECTION)
39 Category: $(CATEGORY)
40 Title: $(TITLE)
41 Maintainer: $(MAINTAINER)
42 Source: $(PKG_SOURCE)
43 Type: $(if $(Package/$(1)/targets),$(Package/$(1)/targets),$(if $(PKG_TARGETS),$(PKG_TARGETS),ipkg))
44 $(if $(KCONFIG),Kernel-Config: $(KCONFIG)
45 )$(if $(BUILDONLY),Build-Only: $(BUILDONLY)
46 )Description: $(if $(Package/$(1)/description),$(Package/$(1)/description),$(TITLE))
47 $(if $(URL),$(URL)
48 )@@
49 $(if $(Package/$(1)/config),Config:
50 $(Package/$(1)/config)
51 @@
52 )$(foreach pc,$(preconfig_$(1)),
53 $(Preconfig/$(pc))))
54 endef
55
56 define Feature/Default
57 TARGET_NAME:=
58 TARGET_TITLE:=
59 PRIORITY:=
60 NAME:=
61 endef
62
63 define Feature
64 $(eval $(Feature/Default))
65 $(eval $(Feature/$(1)))
66 $(if $(DUMP),$(call Dumpinfo/Feature,$(1)))
67 endef
68
69 define Dumpinfo/Feature
70 $(info Feature: $(TARGET_NAME)_$(1)
71 Target-Name: $(TARGET_NAME)
72 Target-Title: $(TARGET_TITLE)
73 Feature-Name: $(NAME)
74 $(if $(PRIORITY),Feature-Priority: $(PRIORITY)
75 )Feature-Description:
76 $(Feature/$(1)/description)
77 @@
78 )
79 endef
80
81 endif
This page took 0.043081 seconds and 5 git commands to generate.