build: reduce the size of package metadata a bit to keep package list files smaller

SVN-Revision: 34871
This commit is contained in:
Felix Fietkau 2012-12-22 19:56:21 +00:00
parent 2b0a5e47dc
commit de707ac97e
3 changed files with 10 additions and 12 deletions

View file

@ -42,7 +42,6 @@ define Package/Default
else else
PKGARCH:=$(BOARD) PKGARCH:=$(BOARD)
endif endif
PRIORITY:=optional
DEFAULT:= DEFAULT:=
MENU:= MENU:=
SUBMENU:= SUBMENU:=

View file

@ -146,18 +146,17 @@ ifeq ($(DUMP),)
for depend in $$(filter-out @%,$$(IDEPEND_$(1))); do \ for depend in $$(filter-out @%,$$(IDEPEND_$(1))); do \
DEPENDS=$$$${DEPENDS:+$$$$DEPENDS, }$$$${depend##+}; \ DEPENDS=$$$${DEPENDS:+$$$$DEPENDS, }$$$${depend##+}; \
done; \ done; \
echo "Depends: $$$$DEPENDS"; \ [ -z "$$$$DEPENDS" ] || echo "Depends: $$$$DEPENDS"; \
echo "Provides: $(PROVIDES)"; \ $(if $(PROVIDES), echo "Provides: $(PROVIDES)"; ) \
echo "Source: $(SOURCE)"; \ echo "Source: $(SOURCE)"; \
echo "SourceFile: $(PKG_SOURCE)"; \ $(if $(PKG_SOURCE), echo "SourceFile: $(PKG_SOURCE)"; ) \
echo "SourceURL: $(PKG_SOURCE_URL)"; \ $(if $(PKG_SOURCE_URL), echo "SourceURL: $(PKG_SOURCE_URL)"; ) \
echo "License: $(PKG_LICENSE)"; \ $(if $(PKG_LICENSE), echo "License: $(PKG_LICENSE)"; ) \
echo "LicenseFiles: $(PKG_LICENSE_FILES)"; \ $(if $(PKG_LICENSE_FILES), echo "LicenseFiles: $(PKG_LICENSE_FILES)"; ) \
echo "Section: $(SECTION)"; \ echo "Section: $(SECTION)"; \
echo "Status: unknown $(if $(filter hold,$(PKG_FLAGS)),hold,ok) not-installed"; \ $(if $(filter hold,$(PKG_FLAGS)),echo "Status: unknown hold not-installed"; ) \
echo "Essential: $(if $(filter essential,$(PKG_FLAGS)),yes,no)"; \ $(if $(filter essential,$(PKG_FLAGS)), echo "Essential: yes"; ) \
echo "Priority: $(PRIORITY)"; \ $(if $(MAINTAINER),echo "Maintainer: $(MAINTAINER)"; ) \
echo "Maintainer: $(MAINTAINER)"; \
echo "Architecture: $(PKGARCH)"; \ echo "Architecture: $(PKGARCH)"; \
echo "Installed-Size: 0"; \ echo "Installed-Size: 0"; \
echo -n "Description: "; $(SH_FUNC) getvar $(call shvar,Package/$(1)/description) | sed -e 's,^[[:space:]]*, ,g'; \ echo -n "Description: "; $(SH_FUNC) getvar $(call shvar,Package/$(1)/description) | sed -e 's,^[[:space:]]*, ,g'; \

View file

@ -215,7 +215,7 @@ define Package/$(1)/description
endef endef
endif endif
$(foreach FIELD, TITLE CATEGORY PRIORITY SECTION VERSION, $(foreach FIELD, TITLE CATEGORY SECTION VERSION,
ifeq ($($(FIELD)),) ifeq ($($(FIELD)),)
$$(error Package/$(1) is missing the $(FIELD) field) $$(error Package/$(1) is missing the $(FIELD) field)
endif endif