firewall: clean up reference board #defines / add generic Arm #172
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is part of the generic Arm / SystemReady compatible project.
We have carried a few out of tree patches for Utopia which I want to get upstream to reduce our maintenance burden.
Generic ARM hosts do not use a hardware dataplane, so the setup is similar to the RPI, Turris and now the Banana Pi R4.
In parts of Utopia there are a lot of
#definesequences like this:and adding another statement (like
_PLATFORM_GENERICARM_) is just getting messy.I propose to replace it with a common
#definesuch as_GENERIC_LINUX_DATA_PATH_.The substitutions are:
I have revised the patchset to leave references to
_PLATFORM_RASPBERRYPI_alone due to:_PLATFORM_RASPBERRYPI_is used to avoid setting rules for the WAN or LAN side (because the RPI only has one Ethernet port), and in some cases it is difficult to untangle them_PLATFORM_RASPBERRYPI_The above platforms will need to add:
-D_GENERIC_LINUX_DATA_PATH_to their utopia bbappend, like this:
I will mark this PR as draft, please let me know any comments. I am happy to prepare pull requests for the other affected platforms (Banana Pi) in sync with ours.