mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-01-27 21:27:18 +01:00
build: purge DESCRIPTION
DESCRIPTION field has been deprecated since 2007, yet internal exporting causes intermittent package build failures due to the deprecation check, even with packages that don't have that fields set. Replace all DESCRIPTION exports with alternative variables defined through shexport and shvar helpers and remove the check. Fixes:547b127d("make kernel module packaging code reusable and use it in madwifi") Fixes:7558f028("DESCRIPTION:= is obselete, so complain if it is used and use TITLE if no description is set") Fixes:cc435322("build: optimize target metadata dump") Fixes:d081edf7("build: clean up and optimize ipkg control generator code") Signed-off-by: George Sapkin <george@sapk.in> Link: https://github.com/openwrt/openwrt/pull/21668 Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
parent
5f889eaacd
commit
87b72fefcb
4 changed files with 4 additions and 9 deletions
|
|
@ -212,7 +212,6 @@ define KernelPackage
|
||||||
TITLE:=$(TITLE)
|
TITLE:=$(TITLE)
|
||||||
SECTION:=kernel
|
SECTION:=kernel
|
||||||
CATEGORY:=Kernel modules
|
CATEGORY:=Kernel modules
|
||||||
DESCRIPTION:=$(DESCRIPTION)
|
|
||||||
EXTRA_DEPENDS:=kernel (=$(subst -rc,_rc,$(LINUX_VERSION))~$(LINUX_VERMAGIC)-r$(LINUX_RELEASE))
|
EXTRA_DEPENDS:=kernel (=$(subst -rc,_rc,$(LINUX_VERSION))~$(LINUX_VERMAGIC)-r$(LINUX_RELEASE))
|
||||||
VERSION:=$(subst -rc,_rc,$(LINUX_VERSION))$(if $(PKG_VERSION),.$(PKG_VERSION))-r$(if $(PKG_RELEASE),$(PKG_RELEASE),$(LINUX_RELEASE))
|
VERSION:=$(subst -rc,_rc,$(LINUX_VERSION))$(if $(PKG_VERSION),.$(PKG_VERSION))-r$(if $(PKG_RELEASE),$(PKG_RELEASE),$(LINUX_RELEASE))
|
||||||
PKGFLAGS:=$(PKGFLAGS)
|
PKGFLAGS:=$(PKGFLAGS)
|
||||||
|
|
|
||||||
|
|
@ -435,7 +435,7 @@ Installed-Size: 0
|
||||||
$(_endef)
|
$(_endef)
|
||||||
|
|
||||||
$$(PACK_$(1)) : export CONTROL=$$(Package/$(1)/CONTROL)
|
$$(PACK_$(1)) : export CONTROL=$$(Package/$(1)/CONTROL)
|
||||||
$$(PACK_$(1)) : export DESCRIPTION=$$(Package/$(1)/description)
|
$$(PACK_$(1)) : $(call shexport,Package/$(1)/description)
|
||||||
$$(PACK_$(1)) : export PATH=$$(TARGET_PATH_PKG)
|
$$(PACK_$(1)) : export PATH=$$(TARGET_PATH_PKG)
|
||||||
$$(PACK_$(1)) : export PKG_SOURCE_DATE_EPOCH:=$(PKG_SOURCE_DATE_EPOCH)
|
$$(PACK_$(1)) : export PKG_SOURCE_DATE_EPOCH:=$(PKG_SOURCE_DATE_EPOCH)
|
||||||
$$(PACK_$(1)) : export SOURCE_DATE_EPOCH:=$(PKG_SOURCE_DATE_EPOCH)
|
$$(PACK_$(1)) : export SOURCE_DATE_EPOCH:=$(PKG_SOURCE_DATE_EPOCH)
|
||||||
|
|
@ -493,7 +493,7 @@ ifeq ($(CONFIG_USE_APK),)
|
||||||
(cd $$(IDIR_$(1))/CONTROL; \
|
(cd $$(IDIR_$(1))/CONTROL; \
|
||||||
( \
|
( \
|
||||||
echo "$$$$CONTROL"; \
|
echo "$$$$CONTROL"; \
|
||||||
printf "Description: "; echo "$$$$DESCRIPTION" | sed -e 's,^[[:space:]]*, ,g'; \
|
printf "Description: "; echo "$$$$$(call shvar,Package/$(1)/description)" | sed -e 's,^[[:space:]]*, ,g'; \
|
||||||
) > control; \
|
) > control; \
|
||||||
chmod 644 control; \
|
chmod 644 control; \
|
||||||
( \
|
( \
|
||||||
|
|
|
||||||
|
|
@ -339,10 +339,6 @@ define BuildPackage
|
||||||
# default, so wget-ssl can explicitly provide @wget-any as well.
|
# default, so wget-ssl can explicitly provide @wget-any as well.
|
||||||
$(eval PROVIDES:=$(strip @$(1)-any $(PROVIDES)))
|
$(eval PROVIDES:=$(strip @$(1)-any $(PROVIDES)))
|
||||||
|
|
||||||
ifdef DESCRIPTION
|
|
||||||
$$(error DESCRIPTION:= is obsolete, use Package/PKG_NAME/description)
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifndef Package/$(1)/description
|
ifndef Package/$(1)/description
|
||||||
define Package/$(1)/description
|
define Package/$(1)/description
|
||||||
$(TITLE)
|
$(TITLE)
|
||||||
|
|
|
||||||
|
|
@ -359,7 +359,7 @@ endif
|
||||||
|
|
||||||
define BuildTargets/DumpCurrent
|
define BuildTargets/DumpCurrent
|
||||||
.PHONY: dumpinfo
|
.PHONY: dumpinfo
|
||||||
dumpinfo : export DESCRIPTION=$$(Target/Description)
|
dumpinfo: $(call shexport,Target/Description)
|
||||||
dumpinfo:
|
dumpinfo:
|
||||||
@echo 'Target: $(TARGETID)'; \
|
@echo 'Target: $(TARGETID)'; \
|
||||||
echo 'Target-Board: $(BOARD)'; \
|
echo 'Target-Board: $(BOARD)'; \
|
||||||
|
|
@ -376,7 +376,7 @@ define BuildTargets/DumpCurrent
|
||||||
echo 'Linux-Kernel-Arch: $(LINUX_KARCH)'; \
|
echo 'Linux-Kernel-Arch: $(LINUX_KARCH)'; \
|
||||||
$(if $(SUBTARGET),,$(if $(DEFAULT_SUBTARGET), echo 'Default-Subtarget: $(DEFAULT_SUBTARGET)'; )) \
|
$(if $(SUBTARGET),,$(if $(DEFAULT_SUBTARGET), echo 'Default-Subtarget: $(DEFAULT_SUBTARGET)'; )) \
|
||||||
echo 'Target-Description:'; \
|
echo 'Target-Description:'; \
|
||||||
echo "$$$$DESCRIPTION"; \
|
echo "$$$$$(call shvar,Target/Description);"; \
|
||||||
echo '@@'; \
|
echo '@@'; \
|
||||||
$(if $(DEFAULT_PROFILE),echo 'Target-Default-Profile: $(DEFAULT_PROFILE)';) \
|
$(if $(DEFAULT_PROFILE),echo 'Target-Default-Profile: $(DEFAULT_PROFILE)';) \
|
||||||
echo 'Default-Packages: $(DEFAULT_PACKAGES)'; \
|
echo 'Default-Packages: $(DEFAULT_PACKAGES)'; \
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue