#include <command.h>
#include <asm/byteorder.h>
-#ifdef CFG_DEBUG
+#ifdef CONFIG_SYS_DEBUG
static void hexdump(unsigned char *buf, int len)
{
int i;
unsigned long size = images->ep - (unsigned long)param;
char *bootargs = getenv("bootargs");
+ if ((flag != 0) && (flag != BOOTM_STATE_OS_GO))
+ return 1;
+
/* Setup parameters */
memset(param, 0, size); /* Clear zero page */
strcpy(cmdline, bootargs);