]> git.sur5r.net Git - u-boot/blobdiff - common/cmd_boot.c
Fix building tools alone with host compiler
[u-boot] / common / cmd_boot.c
index 72dacaaf7a786005cc78796061edd1cedb212ece..0afd93964d7af31dba01ada22b00a429326be1f8 100644 (file)
@@ -28,6 +28,8 @@
 #include <command.h>
 #include <net.h>
 
+#ifdef CONFIG_CMD_GO
+
 /* Allow ports to override the default behavior */
 __attribute__((weak))
 unsigned long do_go_exec (ulong (*entry)(int, char * const []), int argc, char * const argv[])
@@ -67,7 +69,7 @@ U_BOOT_CMD(
        "      passing 'arg' as arguments"
 );
 
-extern int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
+#endif
 
 U_BOOT_CMD(
        reset, 1, 0,    do_reset,