Automatically compute and substitute current values for all $(AUTORELEASE) instances as this feature is deprecated and shouldn't be used. The following temporary change was made to the core: diff --git a/rules.mk b/rules.mk index 57d7995d4fa8..f16367de87a8 100644 --- a/rules.mk +++ b/rules.mk @@ -429,7 +429,7 @@ endef abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1)))) COMMITCOUNT = $(if $(DUMP),0,$(call commitcount)) -AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1)) +AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile)) all: FORCE: ; And this command used to fix affected packages: for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \ sed 's^.*/\([^/]*\)/Makefile^\1^';); do make package/$i/download done Signed-off-by: Paul Fertser <fercerpav@gmail.com>
53 lines
1.4 KiB
Makefile
53 lines
1.4 KiB
Makefile
#
|
|
# Copyright (C) 2016 Bruno Randolf (br1@einfach.org)
|
|
# 2019 Nick Hainke (vincent@systemli.org)
|
|
#
|
|
#
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=libuwifi
|
|
PKG_VERSION:=2020-03-10
|
|
PKG_RELEASE:=2
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL:=https://github.com/br101/libuwifi.git
|
|
PKG_SOURCE_VERSION:=0bfb8949c7a766555042f64be3d5ea9f8ed52690
|
|
PKG_MIRROR_HASH:=79be6f8b603bc76bae983ebd007a203c6ebfa069efbb233aaf09ccdff502310d
|
|
|
|
PKG_MAINTAINER:=Bruno Randolf <br1@einfach.org>, Nick Hainke <vincent@systemli.org>
|
|
PKG_LICENSE:=LGPL-3.0-only
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/libuwifi
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
DEPENDS:=+libradiotap +libnl-tiny
|
|
TITLE:=Userspace Wifi Library
|
|
endef
|
|
|
|
define Package/libuwifi/description
|
|
Library for parsing, generating and analyzing Wifi (WLAN 802.11) frames in userspace and related functions.
|
|
endef
|
|
|
|
MAKE_FLAGS += DEBUG=0 LIBNL=tiny BUILD_RADIOTAP=0
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/include/uwifi
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/include/uwifi/*.h $(1)/usr/include/uwifi
|
|
$(CP) $(PKG_BUILD_DIR)/linux/*.h $(1)/usr/include/uwifi
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_BUILD_DIR)/build/libuwifi.{a,so*} $(1)/usr/lib/
|
|
endef
|
|
|
|
define Package/libuwifi/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_BUILD_DIR)/build/libuwifi.so* $(1)/usr/lib/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libuwifi))
|