summaryrefslogtreecommitdiff
path: root/lib/libfdt
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-10-27 18:47:40 +0300
committerSimon Glass <sjg@chromium.org>2019-11-05 04:15:32 +0300
commit0d76afc032977e77bd0f1dce94b30dce9785426f (patch)
tree087e99540a459cb123e7ecb1d7b4ba2f137f2266 /lib/libfdt
parent865989535038a2e5d11a18f2c3a67974f8328aee (diff)
downloadu-boot-0d76afc032977e77bd0f1dce94b30dce9785426f.tar.xz
fdt: Add Kconfig options to control code size
For better or worse libfdt recent grew a lot of code that checks the validity of the device tree in great detail. When using unsigned or unverified data this makes things safer, but it does add to code size. Add some controls to select the trade-off between safety and code size. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'lib/libfdt')
-rw-r--r--lib/libfdt/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libfdt/Makefile b/lib/libfdt/Makefile
index ef5b6e29d4..5d3ae4e2f1 100644
--- a/lib/libfdt/Makefile
+++ b/lib/libfdt/Makefile
@@ -22,4 +22,5 @@ obj-y += fdt_ro.o
# U-Boot own file
obj-y += fdt_region.o
-ccflags-y := -I$(srctree)/scripts/dtc/libfdt
+ccflags-y := -I$(srctree)/scripts/dtc/libfdt \
+ -DFDT_ASSUME_MASK=$(CONFIG_$(SPL_TPL_)OF_LIBFDT_ASSUME_MASK)