mediatek: backport recent DTS improvements for MT7622 SoC
[openwrt/openwrt.git] / include / package-dumpinfo.mk
1 # SPDX-License-Identifier: GPL-2.0-only
2 #
3 # Copyright (C) 2006-2020 OpenWrt.org
4
5 ifneq ($(DUMP),)
6
7
8 define SOURCE_INFO
9 $(if $(PKG_BUILD_DEPENDS),Build-Depends: $(PKG_BUILD_DEPENDS)
10 )$(if $(HOST_BUILD_DEPENDS),Build-Depends/host: $(HOST_BUILD_DEPENDS)
11 )$(if $(BUILD_TYPES),Build-Types: $(BUILD_TYPES)
12 )
13
14 endef
15
16 define Dumpinfo/Package
17 $(info $(SOURCE_INFO)Package: $(1)
18 $(if $(MENU),Menu: $(MENU)
19 )$(if $(SUBMENU),Submenu: $(SUBMENU)
20 )$(if $(SUBMENUDEP),Submenu-Depends: $(SUBMENUDEP)
21 )$(if $(DEFAULT),Default: $(DEFAULT)
22 )$(if $(findstring $(PREREQ_CHECK),1),Prereq-Check: 1
23 )Version: $(VERSION)
24 Depends: $(call PKG_FIXUP_DEPENDS,$(1),$(DEPENDS))
25 Conflicts: $(CONFLICTS)
26 Menu-Depends: $(MDEPENDS)
27 Provides: $(PROVIDES)
28 $(if $(VARIANT),Build-Variant: $(VARIANT)
29 $(if $(DEFAULT_VARIANT),Default-Variant: $(VARIANT)
30 ))Section: $(SECTION)
31 Category: $(CATEGORY)
32 $(if $(filter nonshared,$(PKGFLAGS)),,Repository: $(if $(FEED),$(FEED),base)
33 )Title: $(TITLE)
34 Maintainer: $(MAINTAINER)
35 $(if $(USERID),Require-User: $(USERID)
36 )Source: $(PKG_SOURCE)
37 $(if $(LICENSE),License: $(LICENSE)
38 )$(if $(LICENSE_FILES),LicenseFiles: $(LICENSE_FILES)
39 )Type: $(if $(Package/$(1)/targets),$(Package/$(1)/targets),$(if $(PKG_TARGETS),$(PKG_TARGETS),ipkg))
40 $(if $(KCONFIG),Kernel-Config: $(KCONFIG)
41 )$(if $(BUILDONLY),Build-Only: $(BUILDONLY)
42 )$(if $(HIDDEN),Hidden: $(HIDDEN)
43 )Description: $(if $(Package/$(1)/description),$(Package/$(1)/description),$(TITLE))
44 $(if $(URL),$(URL)
45 )$(MAINTAINER)
46 @@
47 $(if $(Package/$(1)/config),Config:
48 $(Package/$(1)/config)
49 @@
50 ))
51 SOURCE_INFO :=
52 endef
53
54 dumpinfo: FORCE
55 $(if $(SOURCE_INFO),$(info $(SOURCE_INFO)))
56
57 endif