powerpc: Do not fail build if mkimage is not available
PATCH 1/1 powerpc: Do not fail build if mkimage is not available
This fixes the boot image wrapper script to not fail the kernel build if mkimage is not available.
As some distributions don't ship the mkimage program and some people are not interested in uboot images anyway, we don't want to fail the whole kernel build process because of this unneeded dependency.
Simply drop an error message, but don't fail the build.
---
Josh Boyer is working on merging mkimage into the kernel tree. Until that happened, please merge the patch below into the mainline kernel to avoid build breakage for people without installed uboot tools.
arch/powerpc/boot/wrapper +8 -0
@@ -195,6 +195,14 @@ if [ -n "$version" ]; then fi case "$platform" in +cuboot* | uboot) + if ! [ -x mkimage ]; then + echo "mkimage not available. Can not create $platform image." + exit 0 + fi +esac + +case "$platform" in uboot) rm -f "$ofile" mkimage -A ppc -O linux -T kernel -C gzip -a 00000000 -e 00000000 \
Quoted 1 line · Michael Buesch
+ if ! [ -x mkimage ]; then
What is this supposed to test?
Andreas.
Signature · 4 lines
Andreas Schwab, SuSE Labs, [email protected] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
Quoted 5 lines · On Wednesday 26 December 2007 15:47:05 Andreas Schwab wrote:
Quoted 1 line · Michael Buesch
+ if ! [ -x mkimage ]; then
What is this supposed to test?
from man test:
-x FILE
FILE exists and execute (or search) permission is granted
Signature · 1 line
Greetings Michael.
Quoted 8 lines · Michael Buesch
Quoted 5 lines · On Wednesday 26 December 2007 15:47:05 Andreas Schwab wrote:
Quoted 1 line · Michael Buesch
+ if ! [ -x mkimage ]; then
What is this supposed to test?
from man test:
You didn't answer my question.
Andreas.
Signature · 4 lines
Andreas Schwab, SuSE Labs, [email protected] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
Quoted 5 lines · On Wednesday 26 December 2007 16:33:57 Andreas Schwab wrote:
Quoted 3 lines · Michael Buesch
Quoted 2 lines · On Wednesday 26 December 2007 15:47:05 Andreas Schwab wrote:
Michael Buesch <[email protected]> writes:
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
+ if ! [ -x mkimage ]; then
What is this supposed to test?
from man test:
You didn't answer my question.
I'm not sure how I can make the manual text any clearer
-x FILE
FILE exists and execute (or search) permission is granted
It tests if the program exists and is executable.
Could you please be more specific about what you don't understand? That would help a lot not wasting my time.
Signature · 1 line
Greetings Michael.
Quoted 8 lines · Michael Buesch
Quoted 7 lines · On Wednesday 26 December 2007 16:33:57 Andreas Schwab wrote:
Quoted 5 lines · Michael Buesch
Quoted 4 lines · On Wednesday 26 December 2007 15:47:05 Andreas Schwab wrote:
Quoted 1 line · Michael Buesch
+ if ! [ -x mkimage ]; then
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
What is this supposed to test?
from man test:
You didn't answer my question.
I'm not sure how I can make the manual text any clearer
I know very well what it *does*, thank you. But that does mean that is does what it is *supposed* to do.
Quoted 2 lines
-x FILE
FILE exists and execute (or search) permission is granted
^^^^
Quoted 1 line
It tests if the program exists and is executable.
^^^^^^^
Observe the fine difference in the choice of words.
Quoted 1 line
That would help a lot not wasting my time.
How about testing your changes first?
Andreas.
Signature · 4 lines
Andreas Schwab, SuSE Labs, [email protected] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
Quoted 3 lines · On Wednesday 26 December 2007 16:56:57 Andreas Schwab wrote:
Quoted 1 line
That would help a lot not wasting my time.
How about testing your changes first?
Stop the bullshit, please.
I tested this and it obviously works very well for me. I even posted it for review on this list and nobody complained, including you.
But I see what you are complaining about, now.
It would also error out, if mkimage was installed (which is not the case for me. That's the whole reason for me making this patch!).
Are you OK with the new version I just sent?
Signature · 1 line
Greetings Michael.
Quoted 1 line · Michael Buesch
I tested this and it obviously works very well for me.
Obviously your tests were incomplete.
Quoted 2 lines
I even posted it for review on this list and nobody complained, including you.
??? I did point out an error in your patch just now.
Andreas.
Signature · 4 lines
Andreas Schwab, SuSE Labs, [email protected] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
Quoted 4 lines · On Wednesday 26 December 2007 17:08:55 Andreas Schwab wrote:
Quoted 2 lines
I even posted it for review on this list and nobody complained, including you.
??? I did point out an error in your patch just now.
I posted it for review a few days ago and the only response I got was "This is probably OK for now..." from Josh.
Signature · 1 line
Greetings Michael.
Quoted 8 lines · Michael Buesch
Quoted 4 lines · On Wednesday 26 December 2007 17:08:55 Andreas Schwab wrote:
Quoted 2 lines
I even posted it for review on this list and nobody complained, including you.
??? I did point out an error in your patch just now.
I posted it for review a few days ago and the only response I got was "This is probably OK for now..." from Josh.
And what does this have to do with me? I didn't see your mail at all.
Andreas.
Signature · 4 lines
Andreas Schwab, SuSE Labs, [email protected] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."