summaryrefslogtreecommitdiff
path: root/board/xilinx/common/Makefile
diff options
context:
space:
mode:
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>2019-04-10 12:38:10 +0530
committerMichal Simek <michal.simek@xilinx.com>2020-10-27 08:13:32 +0100
commitf1b97b5f18a8e03c534cb7dbde22cd23d5d753f7 (patch)
treedc3359215948a7c309d56c5ab16394bcee3e4e42 /board/xilinx/common/Makefile
parent3e315f31cc74e897aebb180aa43d572f5d289949 (diff)
downloadu-boot-f1b97b5f18a8e03c534cb7dbde22cd23d5d753f7.tar.gz
xilinx: cmd: Add support for FRU commands
This patch adds support for fru commands "fru capture" and "fru display". The fru capture parses the FRU table present at an address and stores in a structure for later use. The fru display prints the content of captured structured in a readable format. As of now, it supports only common header and board area of FRU. Also, it supports only English language code and ASCII8/BINARY formats. fru_data variable is placed to data section because fru parser can be called very early before bss is initialized. And also information needs to be shared that's why it is exported via header. Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'board/xilinx/common/Makefile')
-rw-r--r--board/xilinx/common/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/xilinx/common/Makefile b/board/xilinx/common/Makefile
index 3600da464b..212028478c 100644
--- a/board/xilinx/common/Makefile
+++ b/board/xilinx/common/Makefile
@@ -5,3 +5,6 @@
#
obj-y += board.o
+ifndef CONFIG_SPL_BUILD
+obj-$(CONFIG_CMD_FRU) += fru.o fru_ops.o
+endif