Commit Graph

19 Commits

Author SHA1 Message Date
Paul Fertser 0c10c224be treewide: remove AUTORELEASE
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>
2023-04-21 22:46:58 +02:00
Andre Heider e7d9c86503 treewide: refactor to use PKG_BUILD_FLAGS:=lto
See commit 07730ff3 "treewide: add support for "lto" in PKG_BUILD_FLAGS"
on the main repository.

Note: Some packages only added `-flto` to CFLAGS and not LDFLAGS. This
fixes it and properly enables LTO.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2023-04-08 08:38:54 +02:00
Sven Eckelmann 9af41ecd91 ap51-flash: update to version 2022.0
* Improve listing of ethernet devices under Linux
* Add support for modern Npcap DLLs
* Fix embedding of images with modern GCC versions
* coding style cleanups and refactoring
* added support for:

  - Datto AP440
  - Datto AP840
  - Datto AP840E
  - Datto TW420
  - Plasma Cloud PAX1800

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2022-03-28 19:55:41 -07:00
Sven Eckelmann 082d41f313 ap51-flash: use $(AUTORELEASE) for PKG_RELEASE
Use `$(AUTORELEASE)` variable rather than setting a PKG_RELEASE
on every commit manually.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2022-03-28 19:55:41 -07:00
Rosen Penev 700b4e5cc1
ap51-flash: run through shellcheck
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-07-10 15:30:03 -07:00
Rosen Penev 8126f4ed08
ap51-flash: Update to 2019.0.1
Added some size optimizations.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-10-30 10:26:11 -07:00
Sven Eckelmann bbb1ea7345 treewide: Change .*GPL.*+ licenses to SPDX compatible identifier
The CONTRIBUTING.md requests an (or multiple) SPDX identifier for GPL
licenses. But a lot of packages did use a different, non-SPDX style with a
"+" at the end instead of "-or-later".

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-09-10 07:45:15 +02:00
Sven Eckelmann 22062b10c6 ap51-flash: upgrade package to latest release 2019.0
* improved Zyxel firmware detection
* introduced optional MAC address filtering
* added support for:

  - Plasma Cloud PA300
  - Plasma Cloud PA1200
  - Plasma Cloud PA2200

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-09-01 16:34:23 +02:00
Rosen Penev d8bf44f032
ap51-flash: Update to 2018.0 and switch to tarball
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-07-16 10:01:43 -07:00
Sven Eckelmann 1c00bb9329 ap51-flash: Fix source repository URL
The URL git://dev.cloudtrax.com/ap51-flash.git is not the actual public
source repository URL for ap51-flash. It is not even accessible in the
moment. The official repository can now be found at github.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2017-12-15 13:26:11 +01:00
Sven Eckelmann bbf9b7f1f1 ap51-flash: Provide PKG_LICENSE* information
Signed-off-by: Sven Eckelmann <sven@narfation.org>
2017-12-07 12:11:12 +01:00
Sven Eckelmann fbd6b2ac3e ap51-flash: Update to version 2017-12-07
* Added support for new OpenMesh devices:
  - A42
  - A62
  - G200
  - D200
  - P60
* Fix size calculation for combined ext images
* Fixed build with musl

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2017-12-07 12:10:19 +01:00
Sven Eckelmann 8492fe21e7 ap51-flash: Remove FLASH_FROM_FILE preprocessor variable
ap51-flash doesn't know the FLASH_FROM_FILE preprocessor variable and thus
OpenWrt should not set it in its package Makefile.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2017-12-07 10:58:19 +01:00
Sven Eckelmann 6b11d0537e ap51-flash: Remove NO_LIBPCAP preprocessor variable
ap51-flash doesn't know the NO_LIBPCAP preprocessor variable and thus
OpenWrt should not set it in its package Makefile.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2017-12-07 10:58:19 +01:00
Sven Eckelmann e68554f879 ap51-flash: Remove OFLAGS from MAKE_FLAGS
Nothing in ap51-flash is using the variable OFLAGS. It should therefore not
be set.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2017-12-07 10:58:19 +01:00
Sven Eckelmann 269615e822 ap51-flash: Remove uIP workarounds
ap51-flash is no longer using uIP and thus these workarounds should no
longer be used.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2017-12-07 10:58:19 +01:00
Etienne Champetier 4006865ae8 treewide: run "make check FIXUP=1"
fix Makefile chmod (644)
replace MD5SUM with HASH
add PKG_MIRROR_HASH when PKG_SOURCE_PROTO:=git

(PKG_SOURCE_PROTO:=svn tarballs are not reproducible for now)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2017-08-29 21:41:14 -07:00
Florian Fainelli 31f77baa3a ap51-flash: Define IPPORT_TFTP where it is used
Defining IPPORT_TFTP on the pre-processor command line leads to the
following error for glibc-based toolchains:

mipsel-linux-gnu-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc
-fno-caller-saves -mips16 -minterlink-mips16
-I/local/users/fainelli/openwrt/trunk/staging_dir/target-mipsel-linux-gnu_glibc/usr/include
-I/local/users/fainelli/openwrt/trunk/staging_dir/target-mipsel-linux-gnu_glibc/include
-I/opt/toolchains/stbgcc-4.8-1.5/usr/include
-I/opt/toolchains/stbgcc-4.8-1.5/include  -Wall -Werror -W -g3
-std=gnu99 -Os -fno-strict-aliasing -DLINUX
-DREVISION_VERSION=\"2016-10-16\" -DFLASH_FROM_FILE -DNO_LIBPCAP
-D_GNU_SOURCE -UIPPORT_TFTP -DIPPORT_TFTP=69 -MD -c flash.c -o flash.o
<command-line>:0:13: error: expected identifier before numeric constant

Instead, move this where this gets used, in proto.c

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-04-12 18:03:54 -07:00
Russell Senior 5970e1395e utils/ap51-flash: import from old-packages and update
Signed-off-by: Russell Senior <russell@personaltelco.net>
2016-10-17 04:37:54 -07:00