diff options
author | Stephen Warren <swarren@nvidia.com> | 2012-09-21 09:51:01 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-09-25 15:05:47 -0700 |
commit | 5cf41dccff9d1e8c297de6eae8422d3e322eebbc (patch) | |
tree | b26a97d6cea358c5a0ba3e51c74a5b44e4b6634c /common/Makefile | |
parent | d27b5f9398aba377ff2185fb4b8170eeca7c3b65 (diff) | |
download | u-boot-5cf41dccff9d1e8c297de6eae8422d3e322eebbc.zip u-boot-5cf41dccff9d1e8c297de6eae8422d3e322eebbc.tar.gz u-boot-5cf41dccff9d1e8c297de6eae8422d3e322eebbc.tar.bz2 |
cmd_part: add partition-related command
This implements the following:
part uuid mmc 0:1
-> print partition UUID
part uuid mmc 0:1 uuid
-> set environment variable to partition UUID
part list mmc 0
-> list the partitions on the specified device
"part uuid" can be useful when writing a bootcmd which searches all
known devices for something bootable, and then wants the kernel to
use the same partition as the root device, e.g.:
part uuid ${devtype} ${devnum}:${rootpart} uuid
setenv bootargs root=PARTUUID=${uuid} ...
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'common/Makefile')
-rw-r--r-- | common/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/Makefile b/common/Makefile index 482795e..b56df1d 100644 --- a/common/Makefile +++ b/common/Makefile @@ -136,6 +136,7 @@ COBJS-$(CONFIG_CMD_NAND) += cmd_nand.o COBJS-$(CONFIG_CMD_NET) += cmd_net.o COBJS-$(CONFIG_CMD_ONENAND) += cmd_onenand.o COBJS-$(CONFIG_CMD_OTP) += cmd_otp.o +COBJS-$(CONFIG_CMD_PART) += cmd_part.o ifdef CONFIG_PCI COBJS-$(CONFIG_CMD_PCI) += cmd_pci.o endif |