[brcm63xx] add bcm63xx_spi based on reading shared/opensource/flash/spiflash.c from...
[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
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 Build-Depends: $(PKG_BUILD_DEPENDS)
36 Section: $(SECTION)
37 Category: $(CATEGORY)
38 Title: $(TITLE)
39 Maintainer: $(MAINTAINER)
40 Source: $(PKG_SOURCE)
41 Type: $(if $(Package/$(1)/targets),$(Package/$(1)/targets),$(if $(PKG_TARGETS),$(PKG_TARGETS),ipkg))
42 $(if $(KCONFIG),Kernel-Config: $(KCONFIG)
43 )$(if $(BUILDONLY),Build-Only: $(BUILDONLY)
44 )Description: $(if $(Package/$(1)/description),$(Package/$(1)/description),$(TITLE))
45 $(if $(URL),$(URL)
46 )@@
47 $(if $(Package/$(1)/config),Config:
48 $(Package/$(1)/config)
49 @@
50 )$(foreach pc,$(preconfig_$(1)),
51 $(Preconfig/$(pc))))
52 endef
53 endif
This page took 0.044301 seconds and 5 git commands to generate.