openwrt/tools
Sander Vanheule cb38170f4c
firmware-utils: tplink-safeloader: refactor meta-partition padding
Because some padding values in the TP-Link safeloader image generation
were hardcoded, different values were sometimes used throughout a
factory image. TP-Link's upgrade images use the same value everywhere,
so let's do the same here.

Although a lot of TP-Link's safeloader images have padded partition
payloads, images for the EAP-series of AC devices don't. This padding is
therefore also made optional.

By replacing the type of the padding value byte with a wider datatype,
new values outside of the previously valid range become available. Use
these new values to denote that padding should not be performed.
Because char might be signed, also replace the char literals by a
numeric literal. Otherwise '\xff' might be sign extended to 0xffff.

This results in factory images differing by 1 byte for:
* C2600
* ARCHER-C5-V2
* ARCHERC9
* TLWA850REV2
* TLWA855REV1
* TL-WPA8630P-V2-EU
* TL-WPA8630P-V2-INT
* TL-WPA8630P-V2.1-EU
* TLWR1043NDV4
* TL-WR902AC-V1
* TLWR942NV1
* RE200-V2
* RE200-V3
* RE220-V2
* RE305-V1
* RE350-V1
* RE350K-V1
* RE355
* RE450
* RE450-V2
* RE450-V3
* RE500-V1
* RE650-V1

The following factory images no longer have padding, shrinking the
factory images by a few bytes for:
* EAP225-OUTDOOR-V1
* EAP225-V3
* EAP225-WALL-V2
* EAP245-V1
* EAP245-V3

Signed-off-by: Sander Vanheule <sander@svanheule.net>
2020-12-07 01:57:19 +01:00
..
autoconf
autoconf-archive
automake
b43-tools
bc tools/bc: use autoreconf to fix build failure on macOS with recent Xcode versions 2020-11-14 14:48:30 +01:00
bison tools/bison: update to 3.7.4 2020-11-21 18:49:08 +01:00
cbootimage treewide: update email address of Tomasz Maciej Nowak 2020-11-24 15:39:07 +01:00
cbootimage-configs treewide: update email address of Tomasz Maciej Nowak 2020-11-24 15:39:07 +01:00
ccache tools/ccache: update to 3.7.11 2020-08-23 19:40:51 +02:00
cmake tools/cmake: update to 3.18.5 2020-11-21 18:48:59 +01:00
coreutils tools/coreutils: update to 8.32 2020-08-30 22:21:34 +02:00
dosfstools
e2fsprogs
elftosb
expat tools/expat: update to 2.2.10 2020-11-21 18:48:39 +01:00
fakeroot tools/fakeroot: fix build on macOS with recent Xcode versions 2020-11-14 14:48:30 +01:00
findutils
firmware-utils firmware-utils: tplink-safeloader: refactor meta-partition padding 2020-12-07 01:57:19 +01:00
flex
flock tools/flock: add PKG_{VERSION,RELEASE} 2020-07-23 11:30:22 +02:00
genext2fs
gengetopt
gmp tools/gmp: update to 6.2.1 2020-11-21 18:49:17 +01:00
include
isl
kernel2minor
libelf tools/libelf: use autoreconf to fix build failure on macOS with recent Xcode versions 2020-11-14 14:48:30 +01:00
libressl tools/libressl: update to 3.2.1 2020-09-18 20:08:51 +02:00
libtool
lzma treewide: https for downloads.openwrt.org sources 2020-08-31 11:26:10 +01:00
lzma-old treewide: https for downloads.openwrt.org sources 2020-08-31 11:26:10 +01:00
m4
make-ext4fs
missing-macros treewide: remove empty default cases 2020-09-17 12:46:19 +02:00
mkimage tools/mkimage: create .itb file with read-access for group,other not just owner. 2020-07-23 14:25:10 -04:00
mklibs
mm-macros
mpc tools/mpc: update to 1.2.1 2020-11-21 18:49:27 +01:00
mpfr tools/mpfr: update to 4.1.0 2020-08-23 19:40:32 +02:00
mtd-utils tools: mtd-utils: Update to version 2.1.2 2020-08-26 23:29:35 +02:00
mtools
padjffs2 tools: drop PKG_VERSION for purely local packages 2020-07-23 10:54:33 +02:00
patch
patch-image rb532: drop target 2020-09-02 16:29:22 +02:00
patchelf
pkgconf
qemu
quilt
sdimage
sed
sparse
squashfs squashfs: Fix compile with GCC 10 2020-05-24 14:38:40 +02:00
squashfskit4 tools/squashfskit4: fix build on non-linux systems 2020-09-01 17:01:56 +02:00
sstrip tools/sstrip: update to latest version 2020-11-26 12:44:25 -10:00
tar
xz
zip
zlib
zstd tools: add zstd 2020-05-31 11:03:30 +02:00
Makefile tools: always create $STAGING_DIR/usr/{include,lib} 2020-11-27 14:46:13 +01:00