|
/usr/local/arm/bin/arm-linux-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -mshort-load-bytes -D__KERNEL__ -DTEXT_BASE=0x21f00000 -I/home/arm/linux/u-boot-1.1.6/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/local/arm/bin/../lib/gcc-lib/arm-linux/3.2/include -pipe -DCONFIG_ARM -D__ARM__ -march=armv4 -mapcs-32 -Wall -Wstrict-prototypes -c -o cmd_bootm.o cmd_bootm.c
cmd_bootm.c:470:1: directives may not be used inside a macro argument
cmd_bootm.c:469:9: unterminated argument list invoking macro "U_BOOT_CMD"
cmd_bootm.c:477: parse error before ')' token
make[1]: *** [cmd_bootm.o] Error 1
make[1]: Leaving directory `/home/arm/linux/u-boot-1.1.6/common'
make: *** [common/libcommon.a] Error 2
cmd_bootm.c中的代码:
U_BOOT_CMD(
bootm, CFG_MAXARGS, 1, do_bootm,
"bootm - boot application image from memory\n",
"[addr [arg ...]]\n - boot application image stored in memory\n"
"\tpassing arguments 'arg ...'; when booting a Linux kernel,\n"
"\t'arg' can be the address of an initrd image\n" (469)
#ifdef CONFIG_OF_FLAT_TREE (470)
"\tWhen booting a Linux kernel which requires a flat device-tree\n"
"\ta third argument is required which is the address of the of the\n"
"\tdevice-tree blob. To boot that kernel without an initrd image,\n"
"\tuse a '-' for the second argument. If you do not pass a third\n"
"\ta bd_info struct will be passed instead\n"
#endif
); (477)
U_BOOT_CMD命令的定义:
#define U_BOOT_CMD(name,maxargs,rep,cmd,usage,help) \
cmd_tbl_t __u_boot_cmd_##name Struct_Section = {#name, maxargs, rep, cmd, usage, help}
#else /* no long help info */ |
|