summaryrefslogtreecommitdiffstats
path: root/tools/env
diff options
context:
space:
mode:
authorStefano Babic <sbabic@denx.de>2015-10-30 14:57:04 +0100
committerTom Rini <trini@konsulko.com>2015-11-18 08:47:03 -0500
commit2cb11b35e8b2b21a00b5d1c1c76404cb65d1ceb9 (patch)
tree48d0f163677c544eabdb1b0ce734204a8693715a /tools/env
parent74cc8b097d9aff8b8671396f66ece4cf2de0a36d (diff)
downloadtalos-obmc-uboot-2cb11b35e8b2b21a00b5d1c1c76404cb65d1ceb9.tar.gz
talos-obmc-uboot-2cb11b35e8b2b21a00b5d1c1c76404cb65d1ceb9.zip
Allow fw env tools to be available as library
Sometimes it can be useful to link the fw_ tools instead of having the fw_setenv/fw_printenv installed. Patch exports the tool as library and allowes to link it with own programs. Signed-off-by: Stefano Babic <sbabic@denx.de> CC: Tom Rini <trini@konsulko.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'tools/env')
-rw-r--r--tools/env/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/env/Makefile b/tools/env/Makefile
index 40164f7a35..38ad118d03 100644
--- a/tools/env/Makefile
+++ b/tools/env/Makefile
@@ -23,10 +23,12 @@ endif
always := fw_printenv
hostprogs-y := fw_printenv
-fw_printenv-objs := fw_env.o fw_env_main.o \
+lib-y += fw_env.o \
crc32.o ctype.o linux_string.o \
env_attr.o env_flags.o aes.o
+fw_printenv-objs := fw_env_main.o $(lib-y)
+
quiet_cmd_crosstools_strip = STRIP $^
cmd_crosstools_strip = $(STRIP) $^; touch $@
OpenPOWER on IntegriCloud