mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-04 23:25:01 +02:00
DESCRIPTION:= is obselete, so complain if it is used and use TITLE if no description is set
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9307 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
be51d215c7
commit
525838efb5
@ -30,7 +30,6 @@ define Package/Default
|
||||
SUBMENU:=
|
||||
SUBMENUDEP:=
|
||||
TITLE:=
|
||||
DESCRIPTION:=
|
||||
KCONFIG:=
|
||||
endef
|
||||
|
||||
|
@ -80,14 +80,15 @@ define BuildPackage
|
||||
$(eval $(Package/Default))
|
||||
$(eval $(Package/$(1)))
|
||||
|
||||
# <HACK> Support obsolete DESCRIPTION field
|
||||
ifdef DESCRIPTION
|
||||
$$(error DESCRIPTION:= is obselete, use Package/PKG_NAME/description)
|
||||
endif
|
||||
|
||||
ifndef Package/$(1)/description
|
||||
define Package/$(1)/description
|
||||
$(TITLE)$(subst \,
|
||||
,\ $(DESCRIPTION))
|
||||
$(TITLE)
|
||||
endef
|
||||
endif
|
||||
# </HACK>
|
||||
|
||||
$(foreach FIELD, TITLE CATEGORY PRIORITY SECTION VERSION,
|
||||
ifeq ($($(FIELD)),)
|
||||
|
Loading…
Reference in New Issue
Block a user