ntop / n2n

Peer-to-peer VPN
GNU General Public License v3.0
6.28k stars 943 forks source link

Add some crosscompiled binary outputs to the autobuild #850

Closed hamishcoleman closed 3 years ago

hamishcoleman commented 3 years ago

Hopefully this will also demonstrate how to do a cross compile with the makefiles.

The cross compile process is summarised as:

HOST_TRIPLET=arm-linux-gnueabi
sudo apt-get install binutils-$HOST_TRIPLET gcc-$HOST_TRIPLET
./autogen.sh
export CC=$HOST_TRIPLET-gcc
export AR=$HOST_TRIPLET-ar
./configure --host $HOST_TRIPLET
make
codecov-commenter commented 3 years ago

Codecov Report

Merging #850 (a5f482f) into dev (7d4ff08) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##              dev     #850   +/-   ##
=======================================
  Coverage   18.96%   18.96%           
=======================================
  Files          39       39           
  Lines        8247     8247           
=======================================
  Hits         1564     1564           
  Misses       6683     6683           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 7d4ff08...a5f482f. Read the comment docs.

Logan007 commented 3 years ago

This looks extremely good to me.

Do you want to a small section to doc/Building.md about cross-compilation? Basically your comment from above with one example system / run?

hamishcoleman commented 3 years ago

Documentation is always a good idea. I've added that.

What did you mean by "example system / run"? I think I have covered that with the arm-linux-gnueabi example I added, but wanted to be sure I understood you correctly.

Logan007 commented 3 years ago

Thank you very much!!