package-dumpinfo.mk 1.7 KB

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