Yes, you're right, --prefix is โโthe way to work. Just use --prefix = / usr. You can check in which folder the make install install path will install your binary by setting to DESTDIR. For example, if you use --prefix = / usr and set DESTDIR = / home / me / arm / build / target_fs, then the binaries will be installed in the folder / home / me / arm / build / target _fs / usr. And if you just ran make install, then the binary will be installed in your prefix, that is, in "/ usr".
Since you are doing cross-compilation, I think it doesnโt matter which prefix you use, because in any case you will install in DESTDIR and then copy the binaries manually to your target.
source share