diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-12-22 19:56:21 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-12-22 19:56:21 +0000 |
commit | 28b1b94a65f87fbbc2d48832b545f74aba0256b9 (patch) | |
tree | 00a6930e464f3ed261f76e55ce44e76f4d568f3a /include | |
parent | 9fca1b44bdd3fbbc2ccb4ff07884647b175c88c6 (diff) | |
download | upstream-28b1b94a65f87fbbc2d48832b545f74aba0256b9.tar.gz upstream-28b1b94a65f87fbbc2d48832b545f74aba0256b9.tar.bz2 upstream-28b1b94a65f87fbbc2d48832b545f74aba0256b9.zip |
build: reduce the size of package metadata a bit to keep package list files smaller
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34871 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r-- | include/package-defaults.mk | 1 | ||||
-rw-r--r-- | include/package-ipkg.mk | 19 | ||||
-rw-r--r-- | include/package.mk | 2 |
3 files changed, 10 insertions, 12 deletions
diff --git a/include/package-defaults.mk b/include/package-defaults.mk index a0f859c6e3..0505a43c4f 100644 --- a/include/package-defaults.mk +++ b/include/package-defaults.mk @@ -42,7 +42,6 @@ define Package/Default else PKGARCH:=$(BOARD) endif - PRIORITY:=optional DEFAULT:= MENU:= SUBMENU:= diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk index 5de51ebb58..b4b83fea5c 100644 --- a/include/package-ipkg.mk +++ b/include/package-ipkg.mk @@ -146,18 +146,17 @@ ifeq ($(DUMP),) for depend in $$(filter-out @%,$$(IDEPEND_$(1))); do \ DEPENDS=$$$${DEPENDS:+$$$$DEPENDS, }$$$${depend##+}; \ done; \ - echo "Depends: $$$$DEPENDS"; \ - echo "Provides: $(PROVIDES)"; \ + [ -z "$$$$DEPENDS" ] || echo "Depends: $$$$DEPENDS"; \ + $(if $(PROVIDES), echo "Provides: $(PROVIDES)"; ) \ echo "Source: $(SOURCE)"; \ - echo "SourceFile: $(PKG_SOURCE)"; \ - echo "SourceURL: $(PKG_SOURCE_URL)"; \ - echo "License: $(PKG_LICENSE)"; \ - echo "LicenseFiles: $(PKG_LICENSE_FILES)"; \ + $(if $(PKG_SOURCE), echo "SourceFile: $(PKG_SOURCE)"; ) \ + $(if $(PKG_SOURCE_URL), echo "SourceURL: $(PKG_SOURCE_URL)"; ) \ + $(if $(PKG_LICENSE), echo "License: $(PKG_LICENSE)"; ) \ + $(if $(PKG_LICENSE_FILES), echo "LicenseFiles: $(PKG_LICENSE_FILES)"; ) \ echo "Section: $(SECTION)"; \ - echo "Status: unknown $(if $(filter hold,$(PKG_FLAGS)),hold,ok) not-installed"; \ - echo "Essential: $(if $(filter essential,$(PKG_FLAGS)),yes,no)"; \ - echo "Priority: $(PRIORITY)"; \ - echo "Maintainer: $(MAINTAINER)"; \ + $(if $(filter hold,$(PKG_FLAGS)),echo "Status: unknown hold not-installed"; ) \ + $(if $(filter essential,$(PKG_FLAGS)), echo "Essential: yes"; ) \ + $(if $(MAINTAINER),echo "Maintainer: $(MAINTAINER)"; ) \ echo "Architecture: $(PKGARCH)"; \ echo "Installed-Size: 0"; \ echo -n "Description: "; $(SH_FUNC) getvar $(call shvar,Package/$(1)/description) | sed -e 's,^[[:space:]]*, ,g'; \ diff --git a/include/package.mk b/include/package.mk index c1fe088ece..99d2dd270e 100644 --- a/include/package.mk +++ b/include/package.mk @@ -215,7 +215,7 @@ define Package/$(1)/description endef endif - $(foreach FIELD, TITLE CATEGORY PRIORITY SECTION VERSION, + $(foreach FIELD, TITLE CATEGORY SECTION VERSION, ifeq ($($(FIELD)),) $$(error Package/$(1) is missing the $(FIELD) field) endif |