From 1ea726f64026f8974887950e4911d19da5f36f57 Mon Sep 17 00:00:00 2001 From: Frans Meulenbroeks Date: Thu, 25 Feb 2010 21:28:50 +0100 Subject: u-boot git: updated calamari SRCREV, add new functionality Ths commit is for calamari (MPC8636DS) only. It moves to the head of the mpc85xx git I also added several patches. These provide additional functionality w.r.t. expression handling, As they are not calamari specific I've put them in the u-boot-git directory. I did not want to apply them right away as I am not sure if they apply to all the various SRCREVs that are build with this recipe and I did want to break someone else's u-boot. The patches are also submitted upstream Signed-off-by: Frans Meulenbroeks --- ...c-also-support-environment-variables-as-a.patch | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 recipes/u-boot/u-boot-git/0006-cmd_itest.c-also-support-environment-variables-as-a.patch (limited to 'recipes/u-boot/u-boot-git/0006-cmd_itest.c-also-support-environment-variables-as-a.patch') diff --git a/recipes/u-boot/u-boot-git/0006-cmd_itest.c-also-support-environment-variables-as-a.patch b/recipes/u-boot/u-boot-git/0006-cmd_itest.c-also-support-environment-variables-as-a.patch new file mode 100644 index 0000000000..fc77736f8a --- /dev/null +++ b/recipes/u-boot/u-boot-git/0006-cmd_itest.c-also-support-environment-variables-as-a.patch @@ -0,0 +1,39 @@ +From 11e8b9d3df819406049b36bed2f3fcf43ddd7f12 Mon Sep 17 00:00:00 2001 +From: Frans Meulenbroeks +Date: Wed, 24 Feb 2010 15:33:29 +0100 +Subject: [PATCH] cmd_itest.c: also support environment variables as arguments + +Signed-off-by: Frans Meulenbroeks +--- + common/cmd_itest.c | 8 ++++++++ + 1 files changed, 8 insertions(+), 0 deletions(-) + +diff --git a/common/cmd_itest.c b/common/cmd_itest.c +index 58c5e7b..78a4082 100644 +--- a/common/cmd_itest.c ++++ b/common/cmd_itest.c +@@ -69,6 +69,10 @@ static long evalexp(char *s, int w) + long l = 0; + long *p; + ++ /* if the parameter starts with a $ replace it with the environment value */ ++ if (s[0] == '$') { ++ s = getenv(&s[1]); ++ } + /* if the parameter starts with a * then assume is a pointer to the value we want */ + if (s[0] == '*') { + p = (long *)simple_strtoul(&s[1], NULL, 16); +@@ -86,6 +90,10 @@ static long evalexp(char *s, int w) + + static char * evalstr(char *s) + { ++ /* if the parameter starts with a $ replace it with the environment value */ ++ if (s[0] == '$') { ++ s = getenv(&s[1]); ++ } + /* if the parameter starts with a * then assume a string pointer else its a literal */ + if (s[0] == '*') { + return (char *)simple_strtoul(&s[1], NULL, 16); +-- +1.5.4.3 + -- cgit v1.2.3