kwboot: Boot Marvell Kirkwood SoCs over a serial link.
PATCH 1/1 kwboot: Boot Marvell Kirkwood SoCs over a serial link.
The kwboot program boots boards based on Marvell's Kirkwood platform via Xmodem over their integrated UART.
--- doc/kwboot.1 | 84 +++++++ tools/Makefile | 6 + tools/kwboot.c | 750 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 840 insertions(+) create mode 100644 doc/kwboot.1 create mode 100644 tools/kwboot.c
doc/kwboot.1 new file +84 -0
@@ -0,0 +1,84 @@ +.TH KWBOOT 1 "2012-03-05" + +.SH NAME +kwboot \- Boot Marvell Kirkwood SoCs over a serial link. +.SH SYNOPSIS +.B kwboot +.RB [ "-b \fIimage\fP" ] +.RB [ "-t" ] +.RB [...] +.RB [\fITTY\fP] +.SH "DESCRIPTION" + +The +.B kwboot +program boots boards based on Marvell's Kirkwood platform over their +integrated UART. Boot image files will typically contain a second +stage boot loader, such as U-Boot. The image file must conform to +Marvell's BootROM firmware image format (\fIkwbimage\fP), created +using a tool such as +.B mkimage. + +Following power-up or a system reset, system BootROM code polls the +UART for a brief period of time, sensing a handshake message which +initiates an image upload. This program sends this boot message until +it receives a positive acknowledgement. The image is transfered using +Xmodem. + +Additionally, this program implements a minimal terminal mode, which +can be used either standalone, or entered immediately following boot +image transfer completion. This is often useful to catch early boot +messages, or to manually interrupt a default boot procedure performed +by the second-stage loader. + +.SH "OPTIONS" + +.TP +.BI "\-b \fIimage\fP" +Handshake; then upload file \fIimage\fP over \fITTY\fP. + +Note that for the encapsulated boot code to be executed, \fIimage\fP +must be of type "UART boot" (0x69). Boot images of different types, +such as backup images of vendor firmware downloaded from flash memory +(type 0x8B), will not work (or not as expected). See \fB-p\fP for a +workaround. + +Unless \fB-q\fP is provided, this mode writes handshake status and +upload progress indication to stdout. + +.TP +.BI "\-p" +In combination with \fB-b\fP, patches the header in \fIimage\fP prior +to upload, to "UART boot" type. + +This option attempts on-the-fly conversion of some none-UART image +types, such as images which were originally formatted to be stored in +flash memory. + +Conversion is performed in-core. The contents of \fIimage\fP will not +be altered. + +.TP +.BI "\-t" +Run a terminal program, connecting standard input and output to +.RB \fITTY\fP. + +If used in combination with \fB-b\fP, terminal mode is entered +immediately following a successful image upload. + +If standard I/O streams connect to a console, this mode will terminate +after receiving 'ctrl-\\' followed by 'c' from console input. + +.TP +.BI "\-B \fIbaudrate\fP" +Adjust the baud rate on \fITTY\fP. Default rate is 115200. + +.SH "SEE ALSO" +.PP +\fBmkimage\fP(1) + +.SH "AUTHORS" + +Daniel Stodden <[email protected]> + +
tools/Makefile +6 -0
@@ -68,6 +68,7 @@ BIN_FILES-$(CONFIG_CMD_LOADS) += img2srec$(SFX) BIN_FILES-$(CONFIG_XWAY_SWAP_BYTES) += xway-swap-bytes$(SFX) BIN_FILES-y += mkenvimage$(SFX) BIN_FILES-y += mkimage$(SFX) +BIN_FILES-y += kwboot$(SFX) BIN_FILES-$(CONFIG_SMDK5250) += mksmdk5250spl$(SFX) BIN_FILES-$(CONFIG_MX28) += mxsboot$(SFX) BIN_FILES-$(CONFIG_NETCONSOLE) += ncb$(SFX)
@@ -101,6 +102,7 @@ OBJ_FILES-$(CONFIG_NETCONSOLE) += ncb.o NOPED_OBJ_FILES-y += os_support.o OBJ_FILES-$(CONFIG_SHA1_CHECK_UB_IMG) += ubsha1.o NOPED_OBJ_FILES-y += ublimage.o +OBJ_FILES-y += kwboot.o # Don't build by default #ifeq ($(ARCH),ppc)
@@ -234,6 +236,10 @@ $(obj)ncb$(SFX): $(obj)ncb.o $(obj)ubsha1$(SFX): $(obj)os_support.o $(obj)sha1.o $(obj)ubsha1.o $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^ +$(obj)kwboot$(SFX): $(obj)kwboot.o + $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^ + $(HOSTSTRIP) $@ + # Some of the tool objects need to be accessed from outside the tools directory $(obj)%.o: $(SRCTREE)/common/%.c $(HOSTCC) -g $(HOSTCFLAGS_NOPED) -c -o $@ $<
tools/kwboot.c new file +750 -0
750 lines not on this page · raw message
Signature · 1 line
1.7.9.5
PATCH 1/1 kwboot: Boot Marvell Kirkwood SoCs over a serial link.
Dear Daniel Stodden,
Quoted 11 lines · In message <[email protected]>…
The kwboot program boots boards based on Marvell's Kirkwood platform via Xmodem over their integrated UART.
Signed-off-by Daniel Stodden <[email protected]>--- doc/kwboot.1 | 84 +++++++ tools/Makefile | 6 + tools/kwboot.c | 750 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 840 insertions(+) create mode 100644 doc/kwboot.1 create mode 100644 tools/kwboot.c
Please run your patch through checkpatch, clean up, and resubmit. As is, checkpatch complains:
total: 217 errors, 477 warnings, 858 lines checked
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Another dream that failed. There's nothing sadder. -- Kirk, "This side of Paradise", stardate 3417.3
PATCH 1/1 kwboot: Boot Marvell Kirkwood SoCs over a serial link.
Hi.
Thanks for the instructions.
Latest kwboot patch follow here, fully reindented and thereby passing checkpatch without warnings.
Thanks,
Daniel
PATCH 1/1 kwboot: Boot Marvell Kirkwood SoCs over a serial link.
The kwboot program boots boards based on Marvell's Kirkwood platform via Xmodem over their integrated UART.
--- doc/kwboot.1 | 84 +++++++ tools/Makefile | 6 + tools/kwboot.c | 750 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 840 insertions(+) create mode 100644 doc/kwboot.1 create mode 100644 tools/kwboot.c
doc/kwboot.1 new file +84 -0
@@ -0,0 +1,84 @@ +.TH KWBOOT 1 "2012-03-05" + +.SH NAME +kwboot \- Boot Marvell Kirkwood SoCs over a serial link. +.SH SYNOPSIS +.B kwboot +.RB [ "-b \fIimage\fP" ] +.RB [ "-t" ] +.RB [...] +.RB [\fITTY\fP] +.SH "DESCRIPTION" + +The +.B kwboot +program boots boards based on Marvell's Kirkwood platform over their +integrated UART. Boot image files will typically contain a second +stage boot loader, such as U-Boot. The image file must conform to +Marvell's BootROM firmware image format (\fIkwbimage\fP), created +using a tool such as +.B mkimage. + +Following power-up or a system reset, system BootROM code polls the +UART for a brief period of time, sensing a handshake message which +initiates an image upload. This program sends this boot message until +it receives a positive acknowledgement. The image is transfered using +Xmodem. + +Additionally, this program implements a minimal terminal mode, which +can be used either standalone, or entered immediately following boot +image transfer completion. This is often useful to catch early boot +messages, or to manually interrupt a default boot procedure performed +by the second-stage loader. + +.SH "OPTIONS" + +.TP +.BI "\-b \fIimage\fP" +Handshake; then upload file \fIimage\fP over \fITTY\fP. + +Note that for the encapsulated boot code to be executed, \fIimage\fP +must be of type "UART boot" (0x69). Boot images of different types, +such as backup images of vendor firmware downloaded from flash memory +(type 0x8B), will not work (or not as expected). See \fB-p\fP for a +workaround. + +This mode writes handshake status and upload progress indication to +stdout. + +.TP +.BI "\-p" +In combination with \fB-b\fP, patches the header in \fIimage\fP prior +to upload, to "UART boot" type. + +This option attempts on-the-fly conversion of some none-UART image +types, such as images which were originally formatted to be stored in +flash memory. + +Conversion is performed in memory. The contents of \fIimage\fP will +not be altered. + +.TP +.BI "\-t" +Run a terminal program, connecting standard input and output to +.RB \fITTY\fP. + +If used in combination with \fB-b\fP, terminal mode is entered +immediately following a successful image upload. + +If standard I/O streams connect to a console, this mode will terminate +after receiving 'ctrl-\\' followed by 'c' from console input. + +.TP +.BI "\-B \fIbaudrate\fP" +Adjust the baud rate on \fITTY\fP. Default rate is 115200. + +.SH "SEE ALSO" +.PP +\fBmkimage\fP(1) + +.SH "AUTHORS" + +Daniel Stodden <[email protected]> + +
tools/Makefile +6 -0
@@ -68,6 +68,7 @@ BIN_FILES-$(CONFIG_CMD_LOADS) += img2srec$(SFX) BIN_FILES-$(CONFIG_XWAY_SWAP_BYTES) += xway-swap-bytes$(SFX) BIN_FILES-y += mkenvimage$(SFX) BIN_FILES-y += mkimage$(SFX) +BIN_FILES-y += kwboot$(SFX) BIN_FILES-$(CONFIG_SMDK5250) += mksmdk5250spl$(SFX) BIN_FILES-$(CONFIG_MX28) += mxsboot$(SFX) BIN_FILES-$(CONFIG_NETCONSOLE) += ncb$(SFX)
@@ -101,6 +102,7 @@ OBJ_FILES-$(CONFIG_NETCONSOLE) += ncb.o NOPED_OBJ_FILES-y += os_support.o OBJ_FILES-$(CONFIG_SHA1_CHECK_UB_IMG) += ubsha1.o NOPED_OBJ_FILES-y += ublimage.o +OBJ_FILES-y += kwboot.o # Don't build by default #ifeq ($(ARCH),ppc)
@@ -234,6 +236,10 @@ $(obj)ncb$(SFX): $(obj)ncb.o $(obj)ubsha1$(SFX): $(obj)os_support.o $(obj)sha1.o $(obj)ubsha1.o $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^ +$(obj)kwboot$(SFX): $(obj)kwboot.o + $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^ + $(HOSTSTRIP) $@ + # Some of the tool objects need to be accessed from outside the tools directory $(obj)%.o: $(SRCTREE)/common/%.c $(HOSTCC) -g $(HOSTCFLAGS_NOPED) -c -o $@ $<
tools/kwboot.c new file +750 -0
750 lines not on this page · raw message
Signature · 1 line
1.7.9.5
PATCH 1/1 kwboot: Boot Marvell Kirkwood SoCs over a serial link.
Hi Daniel,
Quoted 11 lines · Daniel Stodden
The kwboot program boots boards based on Marvell's Kirkwood platform via Xmodem over their integrated UART.
Signed-off-by Daniel Stodden <[email protected]>--- doc/kwboot.1 | 84 +++++++ tools/Makefile | 6 + tools/kwboot.c | 750 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 840 insertions(+) create mode 100644 doc/kwboot.1 create mode 100644 tools/kwboot.c
I'm wondering if this tool does the same thing as this one:
http://www.solinno.co.uk/public/kwuartboot/
If yes I can test it and give my comment on the patch.
Regards,
Luka
PATCH 1/1 kwboot: Boot Marvell Kirkwood SoCs over a serial link.
Quoted 15 lines · Luka Perkov
Hi Daniel,
Quoted 11 lines · Daniel Stodden
The kwboot program boots boards based on Marvell's Kirkwood platform via Xmodem over their integrated UART.
Signed-off-by Daniel Stodden <[email protected]>--- doc/kwboot.1 | 84 +++++++ tools/Makefile | 6 + tools/kwboot.c | 750 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 840 insertions(+) create mode 100644 doc/kwboot.1 create mode 100644 tools/kwboot.c
Quoted 5 lines
I'm wondering if this tool does the same thing as this one:
http://www.solinno.co.uk/public/kwuartboot/
If yes I can test it and give my comment on the patch.
Yup, same thing.
I used the above for a while. Obviously -- same startup spinner. |/-\ :).
Then decided I wanted this packaged in u-boot-tools.
Rewrote after after playing with various timings, moving to mmap(), kwbimage.h, adding term mode, etc.
It works pretty reliably for me. Let me know if not find sth. Especially if see more than a couple '+' chars popping up during upload (I never do, unless I deliberately scratch the TX line. Should propbably have tested with a longer cable.).
Thanks,
Daniel
PATCH 1/1 kwboot: Boot Marvell Kirkwood SoCs over a serial link.
In reply to Daniel StoddenHi Daniel,
I want to say that this works on my kirkwood board ib62x0. Nice work.
I have only a few suggestions...
Quoted 7 lines · Daniel Stodden
+.SH NAME
+kwboot \- Boot Marvell Kirkwood SoCs over a serial link. +.SH SYNOPSIS
+.B kwboot
+.RB [ "-b \fIimage\fP" ]
+.RB [ "-t" ]
+.RB [...]
Why not put here -p and all other stuff instad ... ?
doc/kwboot.1 line 59
Quoted 10 lines
+.BI "\-p"
doc/kwboot.1 new file +9
-0+In combination with \fB-b\fP, patches the header in \fIimage\fP prior +to upload, to "UART boot" type. + +This option attempts on-the-fly conversion of some none-UART image +types, such as images which were originally formatted to be stored in +flash memory. + +Conversion is performed in memory. The contents of \fIimage\fP will +not be altered.
I really like this -p feature :)
tools/Makefile BIN_FILES-$(CONFIG_CMD_LOADS) += img2srec$(SFX) · line 71
Quoted 7 lines
tools/Makefile +1
-0@@ -68,6 +68,7 @@ BIN_FILES-$(CONFIG_CMD_LOADS) += img2srec$(SFX) BIN_FILES-$(CONFIG_XWAY_SWAP_BYTES) += xway-swap-bytes$(SFX) BIN_FILES-y += mkenvimage$(SFX) BIN_FILES-y += mkimage$(SFX) +BIN_FILES-y += kwboot$(SFX)
Why not use something like:
BIN_FILES-$(CONFIG_KIRKWOOD) += kwboot$(SFX)
tools/Makefile OBJ_FILES-$(CONFIG_NETCONSOLE) += ncb.o · line 105
Quoted 4 lines
tools/Makefile +1
-0NOPED_OBJ_FILES-y += os_support.o OBJ_FILES-$(CONFIG_SHA1_CHECK_UB_IMG) += ubsha1.o NOPED_OBJ_FILES-y += ublimage.o +OBJ_FILES-y += kwboot.o
The same question here.
tools/Makefile $(obj)ncb$(SFX): $(obj)ncb.o · line 242
Quoted 4 lines
+$(obj)kwboot$(SFX): $(obj)kwboot.o
tools/Makefile +3
-0+ $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^ + $(HOSTSTRIP) $@ +
And here.
tools/kwboot.c line 8
Quoted 12 lines
index 0000000..fbec8b6
tools/kwboot.c new file +8
-0@@ -0,0 +1,750 @@ +/* +* Boot a Marvell Kirkwood SoC, with Xmodem over UART0. +* +* (c) 2012 Daniel Stodden <[email protected]> +* +* References: marvell.com, "88F6180, 88F6190, 88F6192, and 88F6281 +* Integrated Controller: Functional Specifications" December 2, +* 2008. Chapter 24.2 "BootROM Firmware".
^^
Are the spaces here on purpose?
...
tools/kwboot.c line 750
Quoted 10 lines
tools/kwboot.c new file +10
-0+ +/* +* Local variables: +* mode: C +* c-file-style: "Linux" +* c-basic-offset: 8 +* tab-width: 8 +* indent-tabs-mode: t +* End: +*/
Why not remove that completely?
Regards,
Luka
PATCH 1/1 kwboot: Boot Marvell Kirkwood SoCs over a serial link.
Quoted 15 lines · Luka Perkov
Hi Daniel,
I want to say that this works on my kirkwood board ib62x0. Nice work.
I have only a few suggestions...
Quoted 7 lines · Daniel Stodden
+.SH NAME
+kwboot \- Boot Marvell Kirkwood SoCs over a serial link. +.SH SYNOPSIS
+.B kwboot
+.RB [ "-b \fIimage\fP" ]
+.RB [ "-t" ]
+.RB [...]
Quoted 1 line
Why not put here -p and all other stuff instad ... ?
Good point. I used to have a couple more options which I later discarded, right now they'd all fit on a single line anyway.
Fixed.
Quoted 24 lines
doc/kwboot.1 line 59
Quoted 10 lines
+.BI "\-p"
doc/kwboot.1 new file +9
-0+In combination with \fB-b\fP, patches the header in \fIimage\fP prior +to upload, to "UART boot" type. + +This option attempts on-the-fly conversion of some none-UART image +types, such as images which were originally formatted to be stored in +flash memory. + +Conversion is performed in memory. The contents of \fIimage\fP will +not be altered.I really like this -p feature :)
tools/Makefile BIN_FILES-$(CONFIG_CMD_LOADS) += img2srec$(SFX) · line 71
Quoted 7 lines
tools/Makefile +1
-0@@ -68,6 +68,7 @@ BIN_FILES-$(CONFIG_CMD_LOADS) += img2srec$(SFX) BIN_FILES-$(CONFIG_XWAY_SWAP_BYTES) += xway-swap-bytes$(SFX) BIN_FILES-y += mkenvimage$(SFX) BIN_FILES-y += mkimage$(SFX) +BIN_FILES-y += kwboot$(SFX)Why not use something like:
Quoted 1 line
BIN_FILES-$(CONFIG_KIRKWOOD) += kwboot$(SFX)
Huh?
I don't know u-boot's build system very well, but normally CONFIG items are employed to keep the target lean. Where the best you could ask from down-config'd host toolset build would be to not accidentally miss sth? This is all host code.
Is building that conditionally really best current practice? If so, yeah, we sure can change that.
But would appreciate a clarification.
Quoted 28 lines
tools/Makefile OBJ_FILES-$(CONFIG_NETCONSOLE) += ncb.o · line 105
Quoted 4 lines
tools/Makefile +1
-0NOPED_OBJ_FILES-y += os_support.o OBJ_FILES-$(CONFIG_SHA1_CHECK_UB_IMG) += ubsha1.o NOPED_OBJ_FILES-y += ublimage.o +OBJ_FILES-y += kwboot.oThe same question here.
tools/Makefile $(obj)ncb$(SFX): $(obj)ncb.o · line 242
Quoted 4 lines
+$(obj)kwboot$(SFX): $(obj)kwboot.o
tools/Makefile +3
-0+ $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^ + $(HOSTSTRIP) $@ +And here.
tools/kwboot.c line 8
Quoted 12 lines
index 0000000..fbec8b6
tools/kwboot.c new file +8
-0@@ -0,0 +1,750 @@ +/* +* Boot a Marvell Kirkwood SoC, with Xmodem over UART0. +* +* (c) 2012 Daniel Stodden <[email protected]> +* +* References: marvell.com, "88F6180, 88F6190, 88F6192, and 88F6281 +* Integrated Controller: Functional Specifications" December 2, +* 2008. Chapter 24.2 "BootROM Firmware". ^^
Quoted 1 line
Are the spaces here on purpose?
Yup. :)
Quoted 14 lines
...
tools/kwboot.c line 750
Quoted 10 lines
tools/kwboot.c new file +10
-0+ +/* +* Local variables: +* mode: C +* c-file-style: "Linux" +* c-basic-offset: 8 +* tab-width: 8 +* indent-tabs-mode: t +* End: +*/ Why not remove that completely?
Yup, removed.
Cheers,
Daniel
PATCH 1/1 kwboot: Boot Marvell Kirkwood SoCs over a serial link.
In reply to Daniel StoddenQuoted 9 lines
-----Original Message-----
From: u-boot-bounces at lists.denx.de [mailto:u-boot- bounces at lists.denx.de] On Behalf Of Daniel Stodden
Sent: 24 April 2012 11:37
To: U-Boot
Subject: [U-Boot] [PATCH] kwboot: Boot Marvell Kirkwood SoCs over a serial link.
Hi Daniel
Pls maintain change log, each version information in the patch as per guidelines.
Regards..
Prafulla . . .
PATCH 1/1 kwboot: Boot Marvell Kirkwood SoCs over a serial link.
In reply to Daniel StoddenDear Daniel Stodden,
Quoted 12 lines · In message <1335325799.8304.15.camel@ramone> you wrote:
Quoted 4 lines
Why not use something like:
BIN_FILES-$(CONFIG_KIRKWOOD) += kwboot$(SFX)
Huh?
I don't know u-boot's build system very well, but normally CONFIG items are employed to keep the target lean. Where the best you could ask from down-config'd host toolset build would be to not accidentally miss sth? This is all host code.
Quoted 4 lines
Is building that conditionally really best current practice? If so, yeah, we sure can change that.
But would appreciate a clarification.
It makes no sense to build this tool on systems that will have no use for it - say, on Power architecture. It only costs build time.
Best regards,
Wolfgang Denk
Signature · 3 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
PATCH 1/1 kwboot: Boot Marvell Kirkwood SoCs over a serial link.
Hi Daniel,
Quoted 13 lines · Wolfgang Denk
Quoted 12 lines · In message <1335325799.8304.15.camel@ramone> you wrote:
Quoted 4 lines
Why not use something like:
BIN_FILES-$(CONFIG_KIRKWOOD) += kwboot$(SFX)
Huh?
I don't know u-boot's build system very well, but normally CONFIG items are employed to keep the target lean. Where the best you could ask from down-config'd host toolset build would be to not accidentally miss sth? This is all host code.
Quoted 7 lines
Quoted 4 lines
Is building that conditionally really best current practice? If so, yeah, we sure can change that.
But would appreciate a clarification.
It makes no sense to build this tool on systems that will have no use for it - say, on Power architecture. It only costs build time.
This is what I was talking about:
tools/Makefile +6 -0
@@ -72,6 +72,7 @@ BIN_FILES-$(CONFIG_SMDK5250) += mksmdk5250spl$(SFX) BIN_FILES-$(CONFIG_MX28) += mxsboot$(SFX) BIN_FILES-$(CONFIG_NETCONSOLE) += ncb$(SFX) BIN_FILES-$(CONFIG_SHA1_CHECK_UB_IMG) += ubsha1$(SFX) +BIN_FILES-$(CONFIG_KIRKWOOD) += kwboot$(SFX) # Source files which exist outside the tools directory EXT_OBJ_FILES-$(CONFIG_BUILD_ENVCRC) += common/env_embedded.o
@@ -101,6 +102,7 @@ OBJ_FILES-$(CONFIG_NETCONSOLE) += ncb.o NOPED_OBJ_FILES-y += os_support.o OBJ_FILES-$(CONFIG_SHA1_CHECK_UB_IMG) += ubsha1.o NOPED_OBJ_FILES-y += ublimage.o +OBJ_FILES-$(CONFIG_KIRKWOOD) += kwboot.o # Don't build by default #ifeq ($(ARCH),ppc)
@@ -234,6 +236,10 @@ $(obj)ncb$(SFX): $(obj)ncb.o $(obj)ubsha1$(SFX): $(obj)os_support.o $(obj)sha1.o $(obj)ubsha1.o $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^ +$(obj)kwboot$(SFX): $(obj)kwboot.o + $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^ + $(HOSTSTRIP) $@ + # Some of the tool objects need to be accessed from outside the tools directory $(obj)%.o: $(SRCTREE)/common/%.c $(HOSTCC) -g $(HOSTCFLAGS_NOPED) -c -o $@ $<
That worked for me. Please test this, merge it and resend patch v2.
When sending patch v2 please put me in CC because I don't look@the mailing list regularly...
Regards,
Luka