DESCRIPTION:= is obselete, so complain if it is used and use TITLE if no description is set
SVN-Revision: 9307
This commit is contained in:
parent
92c40922e9
commit
7558f0281f
2 changed files with 5 additions and 5 deletions
|
@ -30,7 +30,6 @@ define Package/Default
|
||||||
SUBMENU:=
|
SUBMENU:=
|
||||||
SUBMENUDEP:=
|
SUBMENUDEP:=
|
||||||
TITLE:=
|
TITLE:=
|
||||||
DESCRIPTION:=
|
|
||||||
KCONFIG:=
|
KCONFIG:=
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
|
@ -80,14 +80,15 @@ define BuildPackage
|
||||||
$(eval $(Package/Default))
|
$(eval $(Package/Default))
|
||||||
$(eval $(Package/$(1)))
|
$(eval $(Package/$(1)))
|
||||||
|
|
||||||
# <HACK> Support obsolete DESCRIPTION field
|
ifdef DESCRIPTION
|
||||||
|
$$(error DESCRIPTION:= is obselete, use Package/PKG_NAME/description)
|
||||||
|
endif
|
||||||
|
|
||||||
ifndef Package/$(1)/description
|
ifndef Package/$(1)/description
|
||||||
define Package/$(1)/description
|
define Package/$(1)/description
|
||||||
$(TITLE)$(subst \,
|
$(TITLE)
|
||||||
,\ $(DESCRIPTION))
|
|
||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
# </HACK>
|
|
||||||
|
|
||||||
$(foreach FIELD, TITLE CATEGORY PRIORITY SECTION VERSION,
|
$(foreach FIELD, TITLE CATEGORY PRIORITY SECTION VERSION,
|
||||||
ifeq ($($(FIELD)),)
|
ifeq ($($(FIELD)),)
|
||||||
|
|
Loading…
Reference in a new issue