nvidia/tegra{124,210}/lp0: Directly include `stdint.h`
Use the compiler's `-include` switch to include `stdint.h` instead of adding coreboot's include paths. This avoids leaking other coreboot header files into lp0. Change-Id: I321c0a2fc4a2b3941990804db4e1a691e1bed8c6 Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32005 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
parent
ceb89fb454
commit
abe2f27acf
|
@ -34,7 +34,7 @@ all: tegra_lp0_resume.fw
|
||||||
tegra_lp0_resume.elf: tegra_lp0_resume.ld tegra_lp0_resume.c
|
tegra_lp0_resume.elf: tegra_lp0_resume.ld tegra_lp0_resume.c
|
||||||
$(CC) -marm -march=armv4t -mno-unaligned-access -nostdlib -static \
|
$(CC) -marm -march=armv4t -mno-unaligned-access -nostdlib -static \
|
||||||
-Os -fpie -Wl,--build-id=none -ggdb3 -T tegra_lp0_resume.ld \
|
-Os -fpie -Wl,--build-id=none -ggdb3 -T tegra_lp0_resume.ld \
|
||||||
-I ../../../../include -I ../../../../arch/arm/include \
|
-include ../../../../arch/arm/include/stdint.h \
|
||||||
-include ../../../../commonlib/include/commonlib/compiler.h \
|
-include ../../../../commonlib/include/commonlib/compiler.h \
|
||||||
-o $@ $(filter %.c,$+)
|
-o $@ $(filter %.c,$+)
|
||||||
|
|
||||||
|
|
|
@ -14,8 +14,6 @@
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
/* Function unit addresses. */
|
/* Function unit addresses. */
|
||||||
enum {
|
enum {
|
||||||
UP_TAG_BASE = 0X60000000,
|
UP_TAG_BASE = 0X60000000,
|
||||||
|
|
|
@ -34,7 +34,7 @@ all: tegra_lp0_resume.fw
|
||||||
tegra_lp0_resume.elf: tegra_lp0_resume.ld tegra_lp0_resume.c
|
tegra_lp0_resume.elf: tegra_lp0_resume.ld tegra_lp0_resume.c
|
||||||
$(CC) -marm -march=armv4t -mno-unaligned-access -nostdlib -static \
|
$(CC) -marm -march=armv4t -mno-unaligned-access -nostdlib -static \
|
||||||
-Os -fpie -Wl,--build-id=none -ggdb3 -T tegra_lp0_resume.ld \
|
-Os -fpie -Wl,--build-id=none -ggdb3 -T tegra_lp0_resume.ld \
|
||||||
-I ../../../../include -I ../../../../arch/arm/include \
|
-include ../../../../arch/arm/include/stdint.h \
|
||||||
-include ../../../../commonlib/include/commonlib/compiler.h \
|
-include ../../../../commonlib/include/commonlib/compiler.h \
|
||||||
-o $@ $(filter %.c,$+)
|
-o $@ $(filter %.c,$+)
|
||||||
|
|
||||||
|
|
|
@ -14,8 +14,6 @@
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
/* Function unit addresses. */
|
/* Function unit addresses. */
|
||||||
enum {
|
enum {
|
||||||
UP_TAG_BASE = 0x60000000,
|
UP_TAG_BASE = 0x60000000,
|
||||||
|
|
Loading…
Reference in New Issue