OpenWRT Cross Compiling: Difference between revisions

mNo edit summary
mNo edit summary
Line 22: Line 22:
**make test
**make test
**make dist
**make dist
*OpenSSL Cross Compiling
*OpenSSL Cross Compiling (make sure the appropriate version of Perl is selected via perlbrew, above)
**https://stackoverflow.com/questions/15539062/cross-compiling-of-openssl-for-linux-arm-v5te-linux-gnueabi-toolchain
**Links;
**./Configure LIST
***https://stackoverflow.com/questions/15539062/cross-compiling-of-openssl-for-linux-arm-v5te-linux-gnueabi-toolchain
***https://wiki.openssl.org/index.php/Compilation_and_Installation
***For ARM infor and --prefix and --openssldir info: https://stackoverflow.com/questions/15539062/cross-compiling-of-openssl-for-linux-arm-v5te-linux-gnueabi-toolchain
***https://centos.pkgs.org/7/epel-x86_64/binutils-arm-linux-gnu-2.27-9.el7.1.x86_64.rpm.html
***https://pkgs.org/search/?q=binutils-arm-linux-gnu
**wget OpenSSL URL ( https://www.openssl.org/source/ )
**./Configure LIST ( linux-armv4 )
**./Configure linux-armv4 ( ./config is equivalent to ./Configure x86_64 )
**--prefix=/WhatEverPathForCompiledFiles/
**--openssldir=/usr/ (that's where OpenWRT puts openssl, /usr/bin/ )
**make
**make depend
**make dist, err, make tar (for OpenSSL, but it doesn't work of course);
***Key piece of information for doing it manually: https://stackoverflow.com/questions/1506462/what-files-did-make-install-copy-and-where and https://stackoverflow.com/questions/11307465/destdir-and-prefix-of-make
***make install DESTDIR=
**Header files should be in /usr/include
**Header files should be in /usr/include
*Compiling
*Compiling
**file NameOfBinary: Shows information about binary file (opkg install file)
**file NameOfBinary: Shows information about binary file (opkg install file)
**
**Shared VS Non-Shared, Static VS Shared, .a VS .so ( using the shared switch, as in ./Configure XYZ shared
***Static: EVERYTHING in a single binary / executable file
***Shared: Dependencies located in other files
 
 
...quitting for now because the instructions at https://openwrt.org/docs/guide-developer/build-system/use-buildsystem#selecting_a_specific_major_revision are a pathetic joke.  Go ahead, try them, see if it works.  Nope....