Commit Graph

2 Commits

Author SHA1 Message Date
Adrian Schmutzler 70873b58fe fff-network: use upstream function to set local bit
OpenWrt provides a function to set the local-bit in IP addresses.

This removes our custom function macFlipLocalBit() and switches to
the upstream version.

Note that technically the upstream version _sets_ the local bit,
i.e. only works one way, while our version _toggled_ the status.

Since we always start from addresses without the local bit set,
this is irrelevant for the given cases, though.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2021-02-09 23:09:31 +01:00
Fabian Bläse 1faaec432a fff-network: Group network files by arch, not by target
OpenWrt only builds and installs a packet for each architecture.
If a package is already fully built and installed for a architecture,
it is not rebuilt.

Because we have two different BSPs building two different targets (BOARDs)
using the same architecture (ath79 and ar71xx, mips), the fff-network package
is not reinstalled when switching between those.

However, we have defined an install step, which copies the necessary network
files seperated by board. But because the package is not rebuilt when switching
targets, the wrong network files might be present in the package.

To resolve this issue, the network files are now seperated by ARCH instead of
the target (i.e. the BOARD variable).

Signed-off-by: Fabian Bläse <fabian@blaese.de>
Acked-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Acked-by: Robert Langhammer <rlanghammer@web.de>
[bump PKG_RELEASE]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-06-18 12:47:05 +02:00