#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <asm/unistd.h>
#include <asm/setup.h>
#include <asm/bootinfo.h>

void rtk_uboot_bootarg(void) {
	#ifdef CONFIG_UBOOT
	u32 prog_argc;
	char **prog_argv, *prog_envp;
	int i;
	
	prog_argc = fw_arg0;
	prog_argv = (char **)fw_arg1;
	prog_envp = (char *)fw_arg2;

	for (i=1; i<prog_argc; i++) {
		if (prog_argv[i]) {
			strlcat(arcs_cmdline, " ", COMMAND_LINE_SIZE);		
			strlcat(arcs_cmdline, prog_argv[i], COMMAND_LINE_SIZE);
		}
	}		
	#endif
}