S
S
Sergey Semenov2021-08-19 06:56:38
linux
Sergey Semenov, 2021-08-19 06:56:38

What does this command do: gcc -I my_dts -E -nostdinc -undef -D__DTS__ -x assembler-with-cpp -o system.dts system-top.dts?

Hello!
Can you please tell me what this command does?
gcc -I my_dts -E -nostdinc -undef -D__DTS__ -x assembler-with-cpp -o system.dts system-top.dts

What is my_dts? What kind of file will be the output?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
res2001, 2021-08-19
@res2001

my_dts is a subdirectory in the current directory where gcc will look for additional files that are used in the #include directive of the compiled file, because my_dts is the -I option. If there is no such directory, gcc will not report it in any way, but there may be some build errors.
The -E option causes the compilation to abort after being processed by the preprocessor.
Those. in this case just use the C preprocessor for dts files. DTS - device tree source. DTS files describe the hardware on which the OS is loaded. They are used, for example, in u-boot, in the Linux kernel, etc.
The output file is specified with the -o option.

A
Alexey Dmitriev, 2021-08-19
@SignFinder

Open man gcc https://www.opennet.ru/man.shtml?topic=gcc&categor...
and read about its keys.
If you don't find something, google specific keys.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question