include/package-dumpinfo.mk: don't duplicate source package information for every binary package
Eventually the BUILDONLY package flag could be replaced by simply creating a package Makefile without any BuildPackage calls. This will fail for now, as BuildPackage also causes the Makefile's compile target etc. to do something useful at all. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
This commit is contained in:
		| @@ -7,10 +7,17 @@ | |||||||
|  |  | ||||||
| ifneq ($(DUMP),) | ifneq ($(DUMP),) | ||||||
|  |  | ||||||
| dumpinfo: FORCE |  | ||||||
|  | define SOURCE_INFO | ||||||
|  | $(if $(PKG_BUILD_DEPENDS),Build-Depends: $(PKG_BUILD_DEPENDS) | ||||||
|  | )$(if $(HOST_BUILD_DEPENDS),Build-Depends/host: $(HOST_BUILD_DEPENDS) | ||||||
|  | )$(if $(BUILD_TYPES),Build-Types: $(BUILD_TYPES) | ||||||
|  | ) | ||||||
|  |  | ||||||
|  | endef | ||||||
|  |  | ||||||
| define Dumpinfo/Package | define Dumpinfo/Package | ||||||
| $(info Package: $(1) | $(info $(SOURCE_INFO)Package: $(1) | ||||||
| $(if $(MENU),Menu: $(MENU) | $(if $(MENU),Menu: $(MENU) | ||||||
| )$(if $(SUBMENU),Submenu: $(SUBMENU) | )$(if $(SUBMENU),Submenu: $(SUBMENU) | ||||||
| )$(if $(SUBMENUDEP),Submenu-Depends: $(SUBMENUDEP) | )$(if $(SUBMENUDEP),Submenu-Depends: $(SUBMENUDEP) | ||||||
| @@ -23,10 +30,7 @@ Menu-Depends: $(MDEPENDS) | |||||||
| Provides: $(PROVIDES) | Provides: $(PROVIDES) | ||||||
| $(if $(VARIANT),Build-Variant: $(VARIANT) | $(if $(VARIANT),Build-Variant: $(VARIANT) | ||||||
| $(if $(DEFAULT_VARIANT),Default-Variant: $(VARIANT) | $(if $(DEFAULT_VARIANT),Default-Variant: $(VARIANT) | ||||||
| ))$(if $(PKG_BUILD_DEPENDS),Build-Depends: $(PKG_BUILD_DEPENDS) | ))Section: $(SECTION) | ||||||
| )$(if $(HOST_BUILD_DEPENDS),Build-Depends/host: $(HOST_BUILD_DEPENDS) |  | ||||||
| )$(if $(BUILD_TYPES),Build-Types: $(BUILD_TYPES) |  | ||||||
| )Section: $(SECTION) |  | ||||||
| Category: $(CATEGORY) | Category: $(CATEGORY) | ||||||
| $(if $(filter nonshared,$(PKGFLAGS)),,Repository: $(if $(FEED),$(FEED),base) | $(if $(filter nonshared,$(PKGFLAGS)),,Repository: $(if $(FEED),$(FEED),base) | ||||||
| )Title: $(TITLE) | )Title: $(TITLE) | ||||||
| @@ -47,6 +51,10 @@ $(if $(Package/$(1)/config),Config: | |||||||
| $(Package/$(1)/config) | $(Package/$(1)/config) | ||||||
| @@ | @@ | ||||||
| )) | )) | ||||||
|  | SOURCE_INFO := | ||||||
| endef | endef | ||||||
|  |  | ||||||
|  | dumpinfo: FORCE | ||||||
|  | 	$(if $(SOURCE_INFO),$(info $(SOURCE_INFO))) | ||||||
|  |  | ||||||
| endif | endif | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Matthias Schiffer
					Matthias Schiffer