Allow compile flags to be used for depends. #1423
Merged
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.
GCC compile flags can be used to optimize the build for various Arm chipsets and their extensions (i.e. Crypto), currently CXXFLAGS and CFLAGS cannot be passed to the depends build on the command line. This is due to a mixture of native and cross-compile builds using the same flags.
This change allows CXXFLAGS and CFLAGS to be called for ARM and AARCH64 via the variable "GCCFLAGS"
Example Raspberry Pi 3B running AARCH64
sudo make HOST=aarch64-linux-gnu GCCFLAGS="-march=armv8-a+crypto -mtune=cortex-a53" QT_59=1 BDB_53=1
Example Raspberry Pi ZeroW running Raspbian
sudo make HOST=arm-linux-gnueabi GCCFLAGS="-march=armv6zk -mcpu=arm1176jzf-s -mtune=arm1176jzf-s -mfpu=vfp " QT_59=1 BDB_53=1
(Note: Armv6HF cannot be built using stock GCC so this builds as soft float and is run using Debian ArmEL multi-arched)
Additionally, indents have been added where missing on the updated .mk files