* [PATCH 0/3] 3 new patches for the self-hosted-image work
@ 2011-12-01 9:21 Dexuan Cui
2011-12-01 9:21 ` [PATCH 1/3] make: expand MAKEFLAGS before we re-exec after rebuilding makefiles Dexuan Cui
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Dexuan Cui @ 2011-12-01 9:21 UTC (permalink / raw)
To: openembedded-core
The following changes since commit d7cd934376ae1edaf7055ec635eb3c85fdbf58b3:
squashfs-tools: fix PR, those should start with 'r' (2011-11-30 23:37:44 +0000)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib dcui/self-hosted-v4
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dcui/self-hosted-v4
Dexuan Cui (3):
make: expand MAKEFLAGS before we re-exec after rebuilding makefiles.
task-self-hosted: install sudo, tun.ko, iptables, libgl and libgl-dev
into the target
runqemu-ifup, runqemu-internal: be wiser when locating the network
tools
meta/recipes-core/tasks/task-self-hosted.bb | 14 +++++--
.../make/make-3.82/expand_MAKEFLAGS.patch | 39 ++++++++++++++++++++
meta/recipes-devtools/make/make_3.82.bb | 4 ++-
scripts/runqemu-ifup | 8 +++--
scripts/runqemu-internal | 3 +-
5 files changed, 59 insertions(+), 9 deletions(-)
create mode 100644 meta/recipes-devtools/make/make-3.82/expand_MAKEFLAGS.patch
--
1.7.6
^ permalink raw reply [flat|nested] 10+ messages in thread* [PATCH 1/3] make: expand MAKEFLAGS before we re-exec after rebuilding makefiles.
2011-12-01 9:21 [PATCH 0/3] 3 new patches for the self-hosted-image work Dexuan Cui
@ 2011-12-01 9:21 ` Dexuan Cui
2011-12-01 9:22 ` Koen Kooi
2011-12-01 9:21 ` [PATCH 2/3] task-self-hosted: install sudo, tun.ko, iptables, libgl and libgl-dev into the target Dexuan Cui
2011-12-01 9:21 ` [PATCH 3/3] runqemu-ifup, runqemu-internal: be wiser when locating the network tools Dexuan Cui
2 siblings, 1 reply; 10+ messages in thread
From: Dexuan Cui @ 2011-12-01 9:21 UTC (permalink / raw)
To: openembedded-core
This patch was got from the upstream cvs repo of make to fix the bug of
make-3.82: http://savannah.gnu.org/bugs/?30723
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
---
.../make/make-3.82/expand_MAKEFLAGS.patch | 39 ++++++++++++++++++++
meta/recipes-devtools/make/make_3.82.bb | 4 ++-
2 files changed, 42 insertions(+), 1 deletions(-)
create mode 100644 meta/recipes-devtools/make/make-3.82/expand_MAKEFLAGS.patch
diff --git a/meta/recipes-devtools/make/make-3.82/expand_MAKEFLAGS.patch b/meta/recipes-devtools/make/make-3.82/expand_MAKEFLAGS.patch
new file mode 100644
index 0000000..4184937
--- /dev/null
+++ b/meta/recipes-devtools/make/make-3.82/expand_MAKEFLAGS.patch
@@ -0,0 +1,39 @@
+Upstream-Status: Inappropriate [The fix is already in upstream cvs repo, but not in the stable release]
+
+When working on the self-hosted-image work, I found in the target
+"bitbake eglibc-initial -c install" always failed:
+
+make[1]: Entering directory `/raid/pe2/build/tmp/work/i586-poky-linux/eglibc-initial-2.13-r18+svnr14157/eglibc-2_13/libc'
+/usr/bin/install -c -m 644 include/limits.h /usr/include/limits.h
+/usr/bin/install: cannot remove `/usr/include/limits.h': Permission denied
+make[1]: *** [/usr/include/limits.h] Error 1
+make[1]: Leaving directory `/raid/pe2/build/tmp/work/i586-poky-linux/eglibc-initial-2.13-r18+svnr14157/eglibc-2_13/libc'
+make: *** [install-headers] Error 2
+ERROR: oe_runmake faile
+
+Debugging shows the install_root variable in eglibc's makefiles is strangely
+reset at some place.
+
+Further investigation shows this is a bug of make-3.82:
+
+http://savannah.gnu.org/bugs/?30723
+http://cvs.savannah.gnu.org/viewvc/make/main.c?root=make&r1=1.243&r2=1.244
+http://old.nabble.com/-bug--30723--implicit-re-executing-of-subdirs-breaks-$(origin)-with-make-3.82-td29394353.html
+
+The patch was got from the second link above(the upstream cvs repo of make).
+
+Thu Dec 1 16:05:59 CST 2011
+Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
+
+diff -Nru make-3.82.orig//main.c make-3.82/main.c
+--- make-3.82.orig//main.c 2010-07-19 15:10:53.000000000 +0800
++++ make-3.82/main.c 2011-12-01 16:04:11.818522186 +0800
+@@ -2093,7 +2093,7 @@
+ const char *pv = define_makeflags (1, 1);
+ char *p = alloca (sizeof ("MAKEFLAGS=") + strlen (pv) + 1);
+ sprintf (p, "MAKEFLAGS=%s", pv);
+- putenv (p);
++ putenv (allocated_variable_expand (p));
+ }
+
+ if (ISDB (DB_BASIC))
diff --git a/meta/recipes-devtools/make/make_3.82.bb b/meta/recipes-devtools/make/make_3.82.bb
index 61fbb32..bea3339 100644
--- a/meta/recipes-devtools/make/make_3.82.bb
+++ b/meta/recipes-devtools/make/make_3.82.bb
@@ -1,8 +1,10 @@
-PR = "r0"
+PR = "r1"
LICENSE="GPLv3&LGPLv2"
LIC_FILES_CHKSUM = "file://tests/COPYING;md5=d32239bcb673463ab874e80d47fae504 \
file://glob/COPYING.LIB;md5=4a770b67e6be0f60da244beb2de0fce4"
require make.inc
+SRC_URI += "file://expand_MAKEFLAGS.patch"
+
SRC_URI[md5sum] = "1a11100f3c63fcf5753818e59d63088f"
SRC_URI[sha256sum] = "e2c1a73f179c40c71e2fe8abf8a8a0688b8499538512984da4a76958d0402966"
--
1.7.6
^ permalink raw reply related [flat|nested] 10+ messages in thread* Re: [PATCH 1/3] make: expand MAKEFLAGS before we re-exec after rebuilding makefiles.
2011-12-01 9:21 ` [PATCH 1/3] make: expand MAKEFLAGS before we re-exec after rebuilding makefiles Dexuan Cui
@ 2011-12-01 9:22 ` Koen Kooi
2011-12-01 10:44 ` Richard Purdie
0 siblings, 1 reply; 10+ messages in thread
From: Koen Kooi @ 2011-12-01 9:22 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 1029 bytes --]
Op 1 dec. 2011, om 10:21 heeft Dexuan Cui het volgende geschreven:
> This patch was got from the upstream cvs repo of make to fix the bug of
> make-3.82: http://savannah.gnu.org/bugs/?30723
>
> Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
> ---
> .../make/make-3.82/expand_MAKEFLAGS.patch | 39 ++++++++++++++++++++
> meta/recipes-devtools/make/make_3.82.bb | 4 ++-
> 2 files changed, 42 insertions(+), 1 deletions(-)
> create mode 100644 meta/recipes-devtools/make/make-3.82/expand_MAKEFLAGS.patch
>
> diff --git a/meta/recipes-devtools/make/make-3.82/expand_MAKEFLAGS.patch b/meta/recipes-devtools/make/make-3.82/expand_MAKEFLAGS.patch
> new file mode 100644
> index 0000000..4184937
> --- /dev/null
> +++ b/meta/recipes-devtools/make/make-3.82/expand_MAKEFLAGS.patch
> @@ -0,0 +1,39 @@
> +Upstream-Status: Inappropriate [The fix is already in upstream cvs repo, but not in the stable release]
Isn't 'backport' a better description than 'inappropriate'?
regards,
Koen
[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 169 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/3] make: expand MAKEFLAGS before we re-exec after rebuilding makefiles.
2011-12-01 9:22 ` Koen Kooi
@ 2011-12-01 10:44 ` Richard Purdie
2011-12-02 2:11 ` Cui, Dexuan
0 siblings, 1 reply; 10+ messages in thread
From: Richard Purdie @ 2011-12-01 10:44 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Thu, 2011-12-01 at 10:22 +0100, Koen Kooi wrote:
> Op 1 dec. 2011, om 10:21 heeft Dexuan Cui het volgende geschreven:
>
> > This patch was got from the upstream cvs repo of make to fix the bug of
> > make-3.82: http://savannah.gnu.org/bugs/?30723
> >
> > Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
> > ---
> > .../make/make-3.82/expand_MAKEFLAGS.patch | 39 ++++++++++++++++++++
> > meta/recipes-devtools/make/make_3.82.bb | 4 ++-
> > 2 files changed, 42 insertions(+), 1 deletions(-)
> > create mode 100644 meta/recipes-devtools/make/make-3.82/expand_MAKEFLAGS.patch
> >
> > diff --git a/meta/recipes-devtools/make/make-3.82/expand_MAKEFLAGS.patch b/meta/recipes-devtools/make/make-3.82/expand_MAKEFLAGS.patch
> > new file mode 100644
> > index 0000000..4184937
> > --- /dev/null
> > +++ b/meta/recipes-devtools/make/make-3.82/expand_MAKEFLAGS.patch
> > @@ -0,0 +1,39 @@
> > +Upstream-Status: Inappropriate [The fix is already in upstream cvs repo, but not in the stable release]
>
> Isn't 'backport' a better description than 'inappropriate'?
Agreed, I've taken this patch but changed the patch status to backport.
Cheers,
Richard
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/3] make: expand MAKEFLAGS before we re-exec after rebuilding makefiles.
2011-12-01 10:44 ` Richard Purdie
@ 2011-12-02 2:11 ` Cui, Dexuan
0 siblings, 0 replies; 10+ messages in thread
From: Cui, Dexuan @ 2011-12-02 2:11 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
Richard Purdie wrote on 2011-12-01:
> On Thu, 2011-12-01 at 10:22 +0100, Koen Kooi wrote:
>> Op 1 dec. 2011, om 10:21 heeft Dexuan Cui het volgende geschreven:
>>
>>> This patch was got from the upstream cvs repo of make to fix the
>>> bug of
>>> make-3.82: http://savannah.gnu.org/bugs/?30723
>>>
>>> Signed-off-by: Dexuan Cui <dexuan.cui@intel.com> ---
>>> .../make/make-3.82/expand_MAKEFLAGS.patch | 39
>>> ++++++++++++++++++++ meta/recipes-devtools/make/make_3.82.bb
>>> | 4 ++- 2 files changed, 42 insertions(+), 1 deletions(-) create
>>> mode 100644 meta/recipes-devtools/make/make-3.82/expand_MAKEFLAGS.patch
>>>
>>> diff --git
>>> a/meta/recipes-devtools/make/make-3.82/expand_MAKEFLAGS.patch
>>> b/meta/recipes-devtools/make/make-3.82/expand_MAKEFLAGS.patch new file
>>> mode 100644 index 0000000..4184937 --- /dev/null +++
>>> b/meta/recipes-devtools/make/make-3.82/expand_MAKEFLAGS.patch @@ -0,0
>>> +1,39 @@ +Upstream-Status: Inappropriate [The fix is already in
>>> upstream +cvs repo, but not in the stable release]
>>
>> Isn't 'backport' a better description than 'inappropriate'?
>
> Agreed, I've taken this patch but changed the patch status to backport.
Thanks a lot, Richard and Koen!
Thanks,
-- Dexuan
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 2/3] task-self-hosted: install sudo, tun.ko, iptables, libgl and libgl-dev into the target
2011-12-01 9:21 [PATCH 0/3] 3 new patches for the self-hosted-image work Dexuan Cui
2011-12-01 9:21 ` [PATCH 1/3] make: expand MAKEFLAGS before we re-exec after rebuilding makefiles Dexuan Cui
@ 2011-12-01 9:21 ` Dexuan Cui
2011-12-01 10:45 ` Richard Purdie
2011-12-01 9:21 ` [PATCH 3/3] runqemu-ifup, runqemu-internal: be wiser when locating the network tools Dexuan Cui
2 siblings, 1 reply; 10+ messages in thread
From: Dexuan Cui @ 2011-12-01 9:21 UTC (permalink / raw)
To: openembedded-core
sudo, kernel-module-tun and iptables are needed by runqemu.
strace has appeared in RDEPENDS_task-self-hosted-debug, so let's remove it
from RDEPENDS_task-self-hosted-extended.
install libglu and libgl-dev rather than mesa-dri and mesa-dri-dev due to the
recent commit "mesa: package gl/egl/osmesa to separate packages".
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
---
meta/recipes-core/tasks/task-self-hosted.bb | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/meta/recipes-core/tasks/task-self-hosted.bb b/meta/recipes-core/tasks/task-self-hosted.bb
index c218f43..b3a68b4 100644
--- a/meta/recipes-core/tasks/task-self-hosted.bb
+++ b/meta/recipes-core/tasks/task-self-hosted.bb
@@ -3,7 +3,7 @@
#
DESCRIPTION = "Create Basic Image Tasks"
-PR = "r0"
+PR = "r1"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
@@ -142,8 +142,8 @@ RDEPENDS_task-self-hosted-extended = "\
rpm \
screen \
setserial \
- strace \
subversion \
+ sudo \
sysstat \
tar \
gzip \
@@ -159,13 +159,19 @@ RDEPENDS_task-self-hosted-extended = "\
zip \
zlib \
cpio \
+ iptables \
+ kernel-module-tun \
+ kernel-module-iptable-raw \
+ kernel-module-iptable-nat \
+ kernel-module-iptable-mangle \
+ kernel-module-iptable-filter \
"
RDEPENDS_task-self-hosted-graphics = "\
python-pygtk \
- mesa-dri \
- mesa-dri-dev \
+ libgl \
+ libgl-dev \
libglu \
libglu-dev \
libsdl \
--
1.7.6
^ permalink raw reply related [flat|nested] 10+ messages in thread* Re: [PATCH 2/3] task-self-hosted: install sudo, tun.ko, iptables, libgl and libgl-dev into the target
2011-12-01 9:21 ` [PATCH 2/3] task-self-hosted: install sudo, tun.ko, iptables, libgl and libgl-dev into the target Dexuan Cui
@ 2011-12-01 10:45 ` Richard Purdie
0 siblings, 0 replies; 10+ messages in thread
From: Richard Purdie @ 2011-12-01 10:45 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Thu, 2011-12-01 at 17:21 +0800, Dexuan Cui wrote:
> sudo, kernel-module-tun and iptables are needed by runqemu.
> strace has appeared in RDEPENDS_task-self-hosted-debug, so let's remove it
> from RDEPENDS_task-self-hosted-extended.
> install libglu and libgl-dev rather than mesa-dri and mesa-dri-dev due to the
> recent commit "mesa: package gl/egl/osmesa to separate packages".
>
> Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
> Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
> ---
> meta/recipes-core/tasks/task-self-hosted.bb | 14 ++++++++++----
> 1 files changed, 10 insertions(+), 4 deletions(-)
Merged to master, thanks.
Richard
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 3/3] runqemu-ifup, runqemu-internal: be wiser when locating the network tools
2011-12-01 9:21 [PATCH 0/3] 3 new patches for the self-hosted-image work Dexuan Cui
2011-12-01 9:21 ` [PATCH 1/3] make: expand MAKEFLAGS before we re-exec after rebuilding makefiles Dexuan Cui
2011-12-01 9:21 ` [PATCH 2/3] task-self-hosted: install sudo, tun.ko, iptables, libgl and libgl-dev into the target Dexuan Cui
@ 2011-12-01 9:21 ` Dexuan Cui
2011-12-01 10:48 ` Richard Purdie
2 siblings, 1 reply; 10+ messages in thread
From: Dexuan Cui @ 2011-12-01 9:21 UTC (permalink / raw)
To: openembedded-core
When working on the self-hosted-image work, I found the PATH variable in the
Level-1 target doesn't have /sbin and /usr/sbin, so "runqemu" can't
run properly since the tools are installeld at
/sbin/ifconfig
/sbin/route
/usr/sbin/iptables
The patch is used to fix the issue by setting a temp PATH when running which.
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
---
scripts/runqemu-ifup | 8 +++++---
scripts/runqemu-internal | 3 ++-
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/scripts/runqemu-ifup b/scripts/runqemu-ifup
index 870cb6b..9e697a8 100755
--- a/scripts/runqemu-ifup
+++ b/scripts/runqemu-ifup
@@ -64,7 +64,9 @@ if [ $STATUS -ne 0 ]; then
exit 1
fi
-IFCONFIG=`which ifconfig 2> /dev/null`
+PATH_TMP="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin"
+
+IFCONFIG=`{ PATH=$PATH:$PATH_TMP; which ifconfig 2> /dev/null; }`
if [ "x$IFCONFIG" = "x" ]; then
# better than nothing...
IFCONFIG=/sbin/ifconfig
@@ -74,7 +76,7 @@ if [ ! -x "$IFCONFIG" ]; then
exit 1
fi
-ROUTE=`which route`
+ROUTE=`{ PATH=$PATH:$PATH_TMP; which route 2>/dev/null; }`
if [ "x$ROUTE" = "x" ]; then
# better than nothing...
ROUTE=/sbin/route
@@ -84,7 +86,7 @@ if [ ! -x "$ROUTE" ]; then
exit 1
fi
-IPTABLES=`which iptables 2> /dev/null`
+IPTABLES=`{ PATH=$PATH:$PATH_TMP; which iptables 2> /dev/null; }`
if [ "x$IPTABLES" = "x" ]; then
IPTABLES=/sbin/iptables
fi
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index 2968ed9..3214fde 100755
--- a/scripts/runqemu-internal
+++ b/scripts/runqemu-internal
@@ -141,7 +141,8 @@ if [ ! -d "$LOCKDIR" ]; then
chmod 777 $LOCKDIR
fi
-IFCONFIG=`which ifconfig 2> /dev/null`
+PATH_TMP="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin"
+IFCONFIG=`{ PATH=$PATH:$PATH_TMP; which ifconfig 2> /dev/null; }`
if [ -z "$IFCONFIG" ]; then
IFCONFIG=/sbin/ifconfig
fi
--
1.7.6
^ permalink raw reply related [flat|nested] 10+ messages in thread* Re: [PATCH 3/3] runqemu-ifup, runqemu-internal: be wiser when locating the network tools
2011-12-01 9:21 ` [PATCH 3/3] runqemu-ifup, runqemu-internal: be wiser when locating the network tools Dexuan Cui
@ 2011-12-01 10:48 ` Richard Purdie
2011-12-02 2:10 ` Cui, Dexuan
0 siblings, 1 reply; 10+ messages in thread
From: Richard Purdie @ 2011-12-01 10:48 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Thu, 2011-12-01 at 17:21 +0800, Dexuan Cui wrote:
> When working on the self-hosted-image work, I found the PATH variable in the
> Level-1 target doesn't have /sbin and /usr/sbin, so "runqemu" can't
> run properly since the tools are installeld at
> /sbin/ifconfig
> /sbin/route
> /usr/sbin/iptables
>
> The patch is used to fix the issue by setting a temp PATH when running which.
>
> Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
> ---
> scripts/runqemu-ifup | 8 +++++---
> scripts/runqemu-internal | 3 ++-
> 2 files changed, 7 insertions(+), 4 deletions(-)
>
> diff --git a/scripts/runqemu-ifup b/scripts/runqemu-ifup
> index 870cb6b..9e697a8 100755
> --- a/scripts/runqemu-ifup
> +++ b/scripts/runqemu-ifup
> @@ -64,7 +64,9 @@ if [ $STATUS -ne 0 ]; then
> exit 1
> fi
>
> -IFCONFIG=`which ifconfig 2> /dev/null`
> +PATH_TMP="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin"
> +
> +IFCONFIG=`{ PATH=$PATH:$PATH_TMP; which ifconfig 2> /dev/null; }`
> if [ "x$IFCONFIG" = "x" ]; then
> # better than nothing...
> IFCONFIG=/sbin/ifconfig
I don't really like this, its getting hard to understand whats going on.
Can we abstract this to a function which tries PATH, then tries our own
PATH_TMP? This would reduce code duplication and makes it clearer what
the code is doing...
Cheers,
Richard
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH 3/3] runqemu-ifup, runqemu-internal: be wiser when locating the network tools
2011-12-01 10:48 ` Richard Purdie
@ 2011-12-02 2:10 ` Cui, Dexuan
0 siblings, 0 replies; 10+ messages in thread
From: Cui, Dexuan @ 2011-12-02 2:10 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
Richard Purdie wrote on 2011-12-01:
> On Thu, 2011-12-01 at 17:21 +0800, Dexuan Cui wrote:
>> When working on the self-hosted-image work, I found the PATH
>> variable in the
>> Level-1 target doesn't have /sbin and /usr/sbin, so "runqemu" can't
>> run properly since the tools are installeld at /sbin/ifconfig
>> /sbin/route /usr/sbin/iptables
>>
>> The patch is used to fix the issue by setting a temp PATH when running
>> which.
>>
>> Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
>> ---
>> scripts/runqemu-ifup | 8 +++++---
>> scripts/runqemu-internal | 3 ++-
>> 2 files changed, 7 insertions(+), 4 deletions(-)
>> diff --git a/scripts/runqemu-ifup b/scripts/runqemu-ifup index
>> 870cb6b..9e697a8 100755
>> --- a/scripts/runqemu-ifup
>> +++ b/scripts/runqemu-ifup
>> @@ -64,7 +64,9 @@ if [ $STATUS -ne 0 ]; then
>> exit 1
>> fi
>> -IFCONFIG=`which ifconfig 2> /dev/null`
>> +PATH_TMP="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin"
>> +
>> +IFCONFIG=`{ PATH=$PATH:$PATH_TMP; which ifconfig 2> /dev/null; }`
>> if [ "x$IFCONFIG" = "x" ]; then
>> # better than nothing...
>> IFCONFIG=/sbin/ifconfig
>
> I don't really like this, its getting hard to understand whats going on.
> Can we abstract this to a function which tries PATH, then tries our
> own PATH_TMP? This would reduce code duplication and makes it clearer
> what the code is doing...
Good suggestion!
I'll re-make the patch and re-send it out.
BTW, since I'll be on leave later today, I might not be able to finish this today.
I discussed with Saul and he could kindly help me to finish this. :-)
Thanks,
-- Dexuan
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2011-12-02 2:19 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-01 9:21 [PATCH 0/3] 3 new patches for the self-hosted-image work Dexuan Cui
2011-12-01 9:21 ` [PATCH 1/3] make: expand MAKEFLAGS before we re-exec after rebuilding makefiles Dexuan Cui
2011-12-01 9:22 ` Koen Kooi
2011-12-01 10:44 ` Richard Purdie
2011-12-02 2:11 ` Cui, Dexuan
2011-12-01 9:21 ` [PATCH 2/3] task-self-hosted: install sudo, tun.ko, iptables, libgl and libgl-dev into the target Dexuan Cui
2011-12-01 10:45 ` Richard Purdie
2011-12-01 9:21 ` [PATCH 3/3] runqemu-ifup, runqemu-internal: be wiser when locating the network tools Dexuan Cui
2011-12-01 10:48 ` Richard Purdie
2011-12-02 2:10 ` Cui, Dexuan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox