Commit eb7e5087 authored by Varun Wadekar's avatar Varun Wadekar
Browse files

Tegra: introduce backend support to compile libfdt



This patch includes the following files from libc to
compile libfdt:

* memchr.c
* memcmp.c
* strrchr.c

The BUILD_PLAT macro is evaluated earlier to allow libfdt
installation to the right directory.
Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
Change-Id: Ie43fcf701dc051670e6372e21b3a84a6416c1735
parent 8d51439e
...@@ -55,15 +55,15 @@ ENABLE_STACK_PROTECTOR := strong ...@@ -55,15 +55,15 @@ ENABLE_STACK_PROTECTOR := strong
# Enable SDEI # Enable SDEI
SDEI_SUPPORT := 1 SDEI_SUPPORT := 1
# modify BUILD_PLAT to point to SoC specific build directory
BUILD_PLAT := ${BUILD_BASE}/${PLAT}/${TARGET_SOC}/${BUILD_TYPE}
include plat/nvidia/tegra/common/tegra_common.mk include plat/nvidia/tegra/common/tegra_common.mk
include ${SOC_DIR}/platform_${TARGET_SOC}.mk include ${SOC_DIR}/platform_${TARGET_SOC}.mk
$(eval $(call add_define,ENABLE_TEGRA_WDT_LEGACY_FIQ_HANDLING)) $(eval $(call add_define,ENABLE_TEGRA_WDT_LEGACY_FIQ_HANDLING))
$(eval $(call add_define,RELOCATE_BL32_IMAGE)) $(eval $(call add_define,RELOCATE_BL32_IMAGE))
# modify BUILD_PLAT to point to SoC specific build directory
BUILD_PLAT := $(abspath ${BUILD_BASE})/${PLAT}/${TARGET_SOC}/${BUILD_TYPE}
# platform cflags (enable signed comparisons, disable stdlib) # platform cflags (enable signed comparisons, disable stdlib)
TF_CFLAGS += -nostdlib TF_CFLAGS += -nostdlib
...@@ -71,11 +71,14 @@ TF_CFLAGS += -nostdlib ...@@ -71,11 +71,14 @@ TF_CFLAGS += -nostdlib
override LIBC_SRCS := $(addprefix lib/libc/, \ override LIBC_SRCS := $(addprefix lib/libc/, \
aarch64/setjmp.S \ aarch64/setjmp.S \
assert.c \ assert.c \
memchr.c \
memcmp.c \
memcpy.c \ memcpy.c \
memmove.c \ memmove.c \
memset.c \ memset.c \
printf.c \ printf.c \
putchar.c \ putchar.c \
strrchr.c \
strlen.c \ strlen.c \
snprintf.c) snprintf.c)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment