summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-05-18 18:10:00 +0300
committerTom Rini <trini@konsulko.com>2021-05-18 18:10:00 +0300
commit7a1638c263508f7ff67fc82af5ea8072dcb783e2 (patch)
treeac020306e87c134b562ab5314fee7d6f2768e670 /doc
parent52993fcb7672885ea827ef3f24927d650bca2e4e (diff)
parent87316da05f2fd49d3709275e64ef0c5980366ade (diff)
downloadu-boot-7a1638c263508f7ff67fc82af5ea8072dcb783e2.tar.xz
Merge tag 'efi-2021-07-rc3' of https://source.denx.de/u-boot/custodians/u-boot-efi
Pull request for efi-2021-07-rc3 Documentation: * add a man-page for the size command * add man-page for extension command to index Bug fixes: * avoid build failure due to missing SHA512 hardware acceleration * correct error handling in TCG2 protocol * don't let user disable capsule authentication * correct reading directories via UEFI API
Diffstat (limited to 'doc')
-rw-r--r--doc/usage/index.rst2
-rw-r--r--doc/usage/size.rst40
2 files changed, 42 insertions, 0 deletions
diff --git a/doc/usage/index.rst b/doc/usage/index.rst
index 528b3c745e..c1f9b6a53b 100644
--- a/doc/usage/index.rst
+++ b/doc/usage/index.rst
@@ -26,6 +26,7 @@ Shell commands
conitrace
echo
exception
+ extension
exit
false
fatinfo
@@ -38,6 +39,7 @@ Shell commands
pstore
qfw
sbi
+ size
true
scp03
reset
diff --git a/doc/usage/size.rst b/doc/usage/size.rst
new file mode 100644
index 0000000000..f0c35e4826
--- /dev/null
+++ b/doc/usage/size.rst
@@ -0,0 +1,40 @@
+.. SPDX-License-Identifier: GPL-2.0+
+
+size command
+============
+
+Synopsis
+--------
+
+::
+
+ size <interface> <dev[:part]> <filename>
+
+Description
+-----------
+
+The size command determines the size of a file and sets the environment variable
+filesize to this value. If filename points to a directory, the value is set to
+zero.
+
+If the command fails, the filesize environment variable is not changed.
+
+dev
+ device number
+
+part
+ partition number, defaults to 1
+
+filename
+ path to file
+
+Configuration
+-------------
+
+The size command is only available if CONFIG_CMD_FS_GENERIC=y.
+
+Return value
+------------
+
+The return value $? is set to 0 (true) if the command succeded and to 1 (false)
+otherwise.