I have created a bare-bone Linux ARM system. It boots to a busybox shell without any issues on my ARM system.
Now I want to build a working gcc/glibc environment that I can use on my ARM system.
My development machine is x86. I have read tutorials talking about doing a "cross-compiler", but that does not seem what I want. Seem that is just a compiler that runs on x86, but can generate ARM binaries.
I need to create a compiler that runs on ARM and creates ARM binaries. But I need to build it on my x86 machine and then copy it over to my ARM one. Then going forward, I can extend the system by compiling natively on the ARM machine.
So, I probably need to use "cross-compiling" to create this gcc/glibc, but the result should be ARM for ARM and not a ARM for x86. Am I correct? Is it just a matter of playing around with the "taget", "host" variables?
All tutorials I have read shows how you build the system into an isolated target directory, but they don't explain what parts I need to copy to the target ARM system root.
dnf info gcc-c++-arm-linux-gnu
for debian like distros (Debian/Ubuntu etc) package calledgcc-8-arm-linux-gnueabihf
. There is nice how-to article (russian but code mostly). – Victor Gubin--target
. I believe you still need--build
and--host
. – jww