diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-10-26 11:06:48 +0100 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-10-27 13:53:00 +0100 |
commit | 8512fc5731df2268227e61f3fe220a1f96929a4b (patch) | |
tree | 23212ee848f919739e2ebb750b48c6636ee0da93 /License.txt | |
parent | 1894a7c64c0a417e76788ca297603f9c9dac1192 (diff) | |
download | edk2-8512fc5731df2268227e61f3fe220a1f96929a4b.zip edk2-8512fc5731df2268227e61f3fe220a1f96929a4b.tar.gz edk2-8512fc5731df2268227e61f3fe220a1f96929a4b.tar.bz2 |
BaseTools/tools_def: suppress GCC predefined macros in DTB compilation
The standard GCC preprocessor we use to preprocess device tree source
files has a whole bunch of macros predefined, among which
#define __linux 1
#define __linux__ 1
#define __gnu_linux__ 1
#define linux 1
This causes a property like 'linux,code' to be converted into '1,code'
which is obviously wrong. So let's get rid of all the predefined macros
by passing -undef to the preprocessor command line.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'License.txt')
0 files changed, 0 insertions, 0 deletions