aboutsummaryrefslogtreecommitdiff
path: root/cmd/Makefile
diff options
context:
space:
mode:
authorMario Six <mario.six@gdsys.cc>2018-03-28 14:39:18 +0200
committerTom Rini <trini@konsulko.com>2018-04-06 20:45:44 -0400
commit55b255611597bcbec7bda5d09544e29580d54509 (patch)
tree8af75f25e77c65931f03f0304717258fde463b00 /cmd/Makefile
parent8354aa278120448e4fa54fb5982ac62994649bc2 (diff)
downloadu-boot-55b255611597bcbec7bda5d09544e29580d54509.zip
u-boot-55b255611597bcbec7bda5d09544e29580d54509.tar.gz
u-boot-55b255611597bcbec7bda5d09544e29580d54509.tar.bz2
cmd: Add command for calculating binary operations
This patch adds a command that enables the calculation of bit operations (AND, OR, XOR) on binary data from the command line. Memory locations as well as the contents of environment variables are eligible as sources and destination of the binary data used in the operations. The possible applications are manifold: Setting specific bits in registers using the regular read-OR-write pattern, masking out bits in bit values, implementation of simple OTP encryption using the XOR operation, etc. Signed-off-by: Mario Six <mario.six@gdsys.cc>
Diffstat (limited to 'cmd/Makefile')
-rw-r--r--cmd/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/Makefile b/cmd/Makefile
index 9a358e4..c4269ac 100644
--- a/cmd/Makefile
+++ b/cmd/Makefile
@@ -20,6 +20,7 @@ obj-$(CONFIG_SOURCE) += source.o
obj-$(CONFIG_CMD_SOURCE) += source.o
obj-$(CONFIG_CMD_BDI) += bdinfo.o
obj-$(CONFIG_CMD_BEDBUG) += bedbug.o
+obj-$(CONFIG_CMD_BINOP) += binop.o
obj-$(CONFIG_CMD_BLOCK_CACHE) += blkcache.o
obj-$(CONFIG_CMD_BMP) += bmp.o
obj-$(CONFIG_CMD_BOOTEFI) += bootefi.o