From b648bfc212c0e62dae47b8f09a0c4e49bbd89106 Mon Sep 17 00:00:00 2001 From: Holger Brunck Date: Mon, 4 Jul 2011 21:52:52 +0000 Subject: km/common: simplify debug environment The debug environment which is stored in textfiles in the scripts directory was reworked. Two usecase are now present which can be executed simply from the default environment: run develop: this configures the environment to setup the rootfs via nfs run ramfs: this configures the environment to setup the rootfs in ram Each architecture now has a "arch" variable which is used to load the architecture specific debug scripts and to set the rootpath for NFS. Signed-off-by: Holger Brunck Signed-off-by: Valentin Longchamp cc: Heiko Schocher cc: Wolfgang Denk --- include/configs/km/keymile-common.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'include/configs/km/keymile-common.h') diff --git a/include/configs/km/keymile-common.h b/include/configs/km/keymile-common.h index c40a541..c0df6d8 100644 --- a/include/configs/km/keymile-common.h +++ b/include/configs/km/keymile-common.h @@ -159,10 +159,14 @@ #define CONFIG_KM_DEF_ENV_BOOTTARGETS \ "subbootcmds=ubiattach ubicopy cramfsloadfdt cramfsloadkernel " \ "flashargs add_default addpanic boot\0" \ - "debug_env=" \ - "tftp 200000 " CONFIG_KM_ARCH_DBG_FILE " && " \ + "develop=" \ + "tftp 200000 scripts/develop-${arch}.txt && " \ "env import -t 200000 ${filesize} && " \ - "run debug_env_common\0" \ + "run setup_debug_env\0" \ + "ramfs=" \ + "tftp 200000 scripts/ramfs-${arch}.txt && " \ + "env import -t 200000 ${filesize} && " \ + "run setup_debug_env\0" \ "" /* -- cgit v1.1