summaryrefslogtreecommitdiffstats
path: root/qemu/roms/u-boot/common/cmd_part.c
diff options
context:
space:
mode:
authorRajithaY <rajithax.yerrumsetty@intel.com>2017-04-25 03:31:15 -0700
committerRajitha Yerrumchetty <rajithax.yerrumsetty@intel.com>2017-05-22 06:48:08 +0000
commitbb756eebdac6fd24e8919e2c43f7d2c8c4091f59 (patch)
treeca11e03542edf2d8f631efeca5e1626d211107e3 /qemu/roms/u-boot/common/cmd_part.c
parenta14b48d18a9ed03ec191cf16b162206998a895ce (diff)
Adding qemu as a submodule of KVMFORNFV
This Patch includes the changes to add qemu as a submodule to kvmfornfv repo and make use of the updated latest qemu for the execution of all testcase Change-Id: I1280af507a857675c7f81d30c95255635667bdd7 Signed-off-by:RajithaY<rajithax.yerrumsetty@intel.com>
Diffstat (limited to 'qemu/roms/u-boot/common/cmd_part.c')
-rw-r--r--qemu/roms/u-boot/common/cmd_part.c91
1 files changed, 0 insertions, 91 deletions
diff --git a/qemu/roms/u-boot/common/cmd_part.c b/qemu/roms/u-boot/common/cmd_part.c
deleted file mode 100644
index 14248548d..000000000
--- a/qemu/roms/u-boot/common/cmd_part.c
+++ /dev/null
@@ -1,91 +0,0 @@
-/*
- * Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved.
- *
- * made from cmd_ext2, which was:
- *
- * (C) Copyright 2004
- * esd gmbh <www.esd-electronics.com>
- * Reinhard Arlt <reinhard.arlt@esd-electronics.com>
- *
- * made from cmd_reiserfs by
- *
- * (C) Copyright 2003 - 2004
- * Sysgo Real-Time Solutions, AG <www.elinos.com>
- * Pavel Bartusek <pba@sysgo.com>
- *
- * SPDX-License-Identifier: GPL-2.0+
- */
-
-#include <common.h>
-#include <config.h>
-#include <command.h>
-#include <part.h>
-#include <vsprintf.h>
-
-#ifndef CONFIG_PARTITION_UUIDS
-#error CONFIG_PARTITION_UUIDS must be enabled for CONFIG_CMD_PART to be enabled
-#endif
-
-int do_part_uuid(int argc, char * const argv[])
-{
- int part;
- block_dev_desc_t *dev_desc;
- disk_partition_t info;
-
- if (argc < 2)
- return CMD_RET_USAGE;
- if (argc > 3)
- return CMD_RET_USAGE;
-
- part = get_device_and_partition(argv[0], argv[1], &dev_desc, &info, 0);
- if (part < 0)
- return 1;
-
- if (argc > 2)
- setenv(argv[2], info.uuid);
- else
- printf("%s\n", info.uuid);
-
- return 0;
-}
-
-int do_part_list(int argc, char * const argv[])
-{
- int ret;
- block_dev_desc_t *desc;
-
- if (argc != 2)
- return CMD_RET_USAGE;
-
- ret = get_device(argv[0], argv[1], &desc);
- if (ret < 0)
- return 1;
-
- print_part(desc);
-
- return 0;
-}
-
-int do_part(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
-{
- if (argc < 2)
- return CMD_RET_USAGE;
-
- if (!strcmp(argv[1], "uuid"))
- return do_part_uuid(argc - 2, argv + 2);
- else if (!strcmp(argv[1], "list"))
- return do_part_list(argc - 2, argv + 2);
-
- return CMD_RET_USAGE;
-}
-
-U_BOOT_CMD(
- part, 5, 1, do_part,
- "disk partition related commands",
- "uuid <interface> <dev>:<part>\n"
- " - print partition UUID\n"
- "part uuid <interface> <dev>:<part> <varname>\n"
- " - set environment variable to partition UUID\n"
- "part list <interface> <dev>\n"
- " - print a device's partition table"
-);