summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/asm-generic/u-boot.lds.h1
-rw-r--r--include/command.h6
-rw-r--r--include/partition.h2
3 files changed, 8 insertions, 1 deletions
diff --git a/include/asm-generic/u-boot.lds.h b/include/asm-generic/u-boot.lds.h
index a0ecf727ab..e8e9ce1276 100644
--- a/include/asm-generic/u-boot.lds.h
+++ b/include/asm-generic/u-boot.lds.h
@@ -9,3 +9,4 @@
*(.initcall.6) \
*(.initcall.7)
+#define U_BOOT_CMDS *(SORT_BY_NAME(.u_boot_cmd*))
diff --git a/include/command.h b/include/command.h
index 5482e06e2f..97c4ba06b8 100644
--- a/include/command.h
+++ b/include/command.h
@@ -60,6 +60,7 @@ extern cmd_tbl_t __u_boot_cmd_end;
/* common/command.c */
cmd_tbl_t *find_cmd(const char *cmd);
+void u_boot_cmd_usage(cmd_tbl_t *cmdtp);
#ifdef CONFIG_AUTO_COMPLETE
extern void install_auto_complete(void);
@@ -89,12 +90,15 @@ typedef void command_t (cmd_tbl_t *, int, int, char *[]);
* to include/cmd_confdefs.h
*/
+#define __stringify_1(x) #x
+#define __stringify(x) __stringify_1(x)
+
#define Struct_Section __attribute__ ((unused,section (".u_boot_cmd")))
#define U_BOOT_CMD_START(_name) \
const cmd_tbl_t __u_boot_cmd_##_name \
- Struct_Section = { \
+ __attribute__ ((unused,section (".u_boot_cmd_" __stringify(_name)))) = { \
.name = #_name,
#define U_BOOT_CMD_END \
diff --git a/include/partition.h b/include/partition.h
index 524bfe95f3..151235c3cc 100644
--- a/include/partition.h
+++ b/include/partition.h
@@ -6,6 +6,8 @@ struct device_d;
struct partition {
int num;
+ int readonly;
+
unsigned long offset;
struct device_d *physdev;