M
M
mrxakerrus2017-12-01 20:04:00
ARM
mrxakerrus, 2017-12-01 20:04:00

How to compile a SI project for armv5 processor?

describe in more detail if you don't mind

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2017-12-01
@jcmvbkbc

"Project" and armv5 is very vague.
First you need to understand what the project expects from the compiler. Namely: does the project need to be built for any OS, and if not, does it need the C library and start files. After that it will be possible to search for the correct compiler.
So, for example, if the device will have Linux, or if the project contains everything (like, for example, U-Boot or the Linux kernel) and it needs a bare compiler, then you can take a ready-made cross compiler. For example, on debian this can be done with the command apt-get install gcc-arm-linux-gnueabi.
Then everything depends on the build system of the project. You will need to tell it which compiler to use and pass an option to the compiler to force it to generate code for ARMv5. So, for example, if autoconf is there, configure it with the following options:
If it is Linux or U-Boot, pass CROSS_COMPILE=arm-linux-gnueabi- to them in the environment and configure for armv5 via menuconfig.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question