[oe-commits] Frans Meulenbroeks : u-boot: removed environment patches
git version control
git at git.openembedded.org
Tue Mar 2 09:06:32 UTC 2010
Module: openembedded.git
Branch: shr/unstable
Commit: 23009a6ecf56c342b3c3f9438630a5912428824b
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=23009a6ecf56c342b3c3f9438630a5912428824b
Author: Frans Meulenbroeks <fransmeulenbroeks at gmail.com>
Date: Mon Mar 1 20:50:48 2010 +0100
u-boot: removed environment patches
removed 0006-cmd_itest.c-also-support-environment-variables-as-a.patch
this one was rejected upstream as the functionality was already in hush
reworked 0007-cmd_setexpr-allow-memory-addresses-and-env-vars-in-e.patch
the setenv part was rejected upstream as the functionality was already in hush
took that part out of the patch.
u-boot-git.bb: bumped PR
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks at gmail.com>
---
...c-also-support-environment-variables-as-a.patch | 39 --------------------
...-allow-memory-addresses-and-env-vars-in-e.patch | 6 +---
recipes/u-boot/u-boot_git.bb | 3 +-
3 files changed, 2 insertions(+), 46 deletions(-)
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
deleted file mode 100644
index fc77736..0000000
--- a/recipes/u-boot/u-boot-git/0006-cmd_itest.c-also-support-environment-variables-as-a.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-From 11e8b9d3df819406049b36bed2f3fcf43ddd7f12 Mon Sep 17 00:00:00 2001
-From: Frans Meulenbroeks <fransmeulenbroeks at gmail.com>
-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 <fransmeulenbroeks at gmail.com>
----
- 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
-
diff --git a/recipes/u-boot/u-boot-git/0007-cmd_setexpr-allow-memory-addresses-and-env-vars-in-e.patch b/recipes/u-boot/u-boot-git/0007-cmd_setexpr-allow-memory-addresses-and-env-vars-in-e.patch
index 10fc473..1340865 100644
--- a/recipes/u-boot/u-boot-git/0007-cmd_setexpr-allow-memory-addresses-and-env-vars-in-e.patch
+++ b/recipes/u-boot/u-boot-git/0007-cmd_setexpr-allow-memory-addresses-and-env-vars-in-e.patch
@@ -32,7 +32,7 @@ diff --git a/common/cmd_setexpr.c b/common/cmd_setexpr.c
index f8b5d4d..a7c6f53 100644
--- a/common/cmd_setexpr.c
+++ b/common/cmd_setexpr.c
-@@ -28,10 +28,32 @@
+@@ -28,10 +28,28 @@
#include <config.h>
#include <command.h>
@@ -40,10 +40,6 @@ index f8b5d4d..a7c6f53 100644
+{
+ ulong *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 = (ulong *)simple_strtoul(&s[1], NULL, 16);
diff --git a/recipes/u-boot/u-boot_git.bb b/recipes/u-boot/u-boot_git.bb
index 3c65a1e..b63edbd 100644
--- a/recipes/u-boot/u-boot_git.bb
+++ b/recipes/u-boot/u-boot_git.bb
@@ -1,5 +1,5 @@
require u-boot.inc
-PR ="r41"
+PR ="r42"
FILESPATHPKG =. "u-boot-git:"
@@ -43,7 +43,6 @@ SRC_URI_calamari = " \
file://0003-cmd_i2c.c-reworked-subcommand-handling.patch;patch=1 \
file://0004-cmd_i2c.c-sorted-commands-alphabetically.patch;patch=1 \
file://0005-cmd_i2c.c-added-i2c-read-to-memory-function.patch;patch=1 \
- file://0006-cmd_itest.c-also-support-environment-variables-as-a.patch;patch=1 \
file://0007-cmd_setexpr-allow-memory-addresses-and-env-vars-in-e.patch;patch=1 \
"
More information about the Openembedded-commits
mailing list