Answer the question
In order to leave comments, you need to log in
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
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.
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 questionAsk a Question
731 491 924 answers to any question