* [U-Boot-Users] [Patch] Creation of version_autogenerated.h only triggered for new and different contents...
@ 2007-06-29 13:00 Carsten Schlote
2007-06-29 14:15 ` Mike Frysinger
2007-07-01 12:47 ` Grant Likely
0 siblings, 2 replies; 5+ messages in thread
From: Carsten Schlote @ 2007-06-29 13:00 UTC (permalink / raw)
To: u-boot
Hi,
below a simple patch for the make rule, which creates the
version_autogenerated.h file. Instead of just updating this file any
time make is started, now the file is checked for different contents. If
it differs, the version header is updated, otherwise not.
This saves unnessesary rebuilds of several files in the tree.
Regards
Carsten
---------
diff --git a/Makefile b/Makefile
index c52b21b..7999870 100755
--- a/Makefile
+++ b/Makefile
@@ -290,11 +290,13 @@ $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin
cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin >
$(obj)u-boot-nand.bin
version:
- @echo -n "#define U_BOOT_VERSION \"U-Boot " >
$(VERSION_FILE); \
- echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE); \
+ @echo -n "#define U_BOOT_VERSION \"U-Boot " >
$(VERSION_FILE).tmp; \
+ echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE).tmp; \
echo -n $(shell $(CONFIG_SHELL)
$(TOPDIR)/tools/setlocalversion \
- $(TOPDIR)) >> $(VERSION_FILE); \
- echo "\"" >> $(VERSION_FILE)
+ $(TOPDIR)) >> $(VERSION_FILE).tmp; \
+ echo "\"" >> $(VERSION_FILE).tmp
+ @diff --brief $(VERSION_FILE) $(VERSION_FILE).tmp || cp
$(VERSION_FILE).tmp $(VERSION_FILE)
+ @rm $(VERSION_FILE).tmp
gdbtools:
$(MAKE) -C tools/gdb all || exit 1
^ permalink raw reply related [flat|nested] 5+ messages in thread* [U-Boot-Users] [Patch] Creation of version_autogenerated.h only triggered for new and different contents...
2007-06-29 13:00 [U-Boot-Users] [Patch] Creation of version_autogenerated.h only triggered for new and different contents Carsten Schlote
@ 2007-06-29 14:15 ` Mike Frysinger
2007-07-01 8:21 ` Carsten Schlote
2007-07-01 12:47 ` Grant Likely
1 sibling, 1 reply; 5+ messages in thread
From: Mike Frysinger @ 2007-06-29 14:15 UTC (permalink / raw)
To: u-boot
On Friday 29 June 2007, Carsten Schlote wrote:
> below a simple patch for the make rule, which creates the
> version_autogenerated.h file. Instead of just updating this file any
> time make is started, now the file is checked for different contents. If
> it differs, the version header is updated, otherwise not.
>
> This saves unnessesary rebuilds of several files in the tree.
your e-mail client munged the patch ... but ignoring that, ive posted a patch
for this issue before, but no one seems to respond
http://article.gmane.org/gmane.comp.boot-loaders.u-boot/29424
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20070629/82a47a2c/attachment.pgp
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] [Patch] Creation of version_autogenerated.h only triggered for new and different contents...
2007-06-29 14:15 ` Mike Frysinger
@ 2007-07-01 8:21 ` Carsten Schlote
0 siblings, 0 replies; 5+ messages in thread
From: Carsten Schlote @ 2007-07-01 8:21 UTC (permalink / raw)
To: u-boot
Hi
> for this issue before, but no one seems to respond
That's my problem as well :-( And this is just one of many trivial
changes that could be done to improve things...
Maybe we should wait for u2boot and check if this development handles
things correctly.
Regards
Carsten
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] [Patch] Creation of version_autogenerated.h only triggered for new and different contents...
2007-06-29 13:00 [U-Boot-Users] [Patch] Creation of version_autogenerated.h only triggered for new and different contents Carsten Schlote
2007-06-29 14:15 ` Mike Frysinger
@ 2007-07-01 12:47 ` Grant Likely
2007-07-01 15:47 ` Carsten Schlote
1 sibling, 1 reply; 5+ messages in thread
From: Grant Likely @ 2007-07-01 12:47 UTC (permalink / raw)
To: u-boot
On 6/29/07, Carsten Schlote <schlote@vahanus.net> wrote:
> Hi,
>
> below a simple patch for the make rule, which creates the
> version_autogenerated.h file. Instead of just updating this file any
> time make is started, now the file is checked for different contents. If
> it differs, the version header is updated, otherwise not.
>
> This saves unnessesary rebuilds of several files in the tree.
>
> Regards
> Carsten
Looks good to me. I'll apply it to my tree, but I need a
signed-off-by line from you first.
Cheers,
g.
>
>
> ---------
>
> diff --git a/Makefile b/Makefile
> index c52b21b..7999870 100755
> --- a/Makefile
> +++ b/Makefile
> @@ -290,11 +290,13 @@ $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin
> cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin >
> $(obj)u-boot-nand.bin
>
> version:
> - @echo -n "#define U_BOOT_VERSION \"U-Boot " >
> $(VERSION_FILE); \
> - echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE); \
> + @echo -n "#define U_BOOT_VERSION \"U-Boot " >
> $(VERSION_FILE).tmp; \
> + echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE).tmp; \
> echo -n $(shell $(CONFIG_SHELL)
> $(TOPDIR)/tools/setlocalversion \
> - $(TOPDIR)) >> $(VERSION_FILE); \
> - echo "\"" >> $(VERSION_FILE)
> + $(TOPDIR)) >> $(VERSION_FILE).tmp; \
> + echo "\"" >> $(VERSION_FILE).tmp
> + @diff --brief $(VERSION_FILE) $(VERSION_FILE).tmp || cp
> $(VERSION_FILE).tmp $(VERSION_FILE)
> + @rm $(VERSION_FILE).tmp
>
> gdbtools:
> $(MAKE) -C tools/gdb all || exit 1
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely at secretlab.ca
(403) 399-0195
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-07-01 15:47 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-29 13:00 [U-Boot-Users] [Patch] Creation of version_autogenerated.h only triggered for new and different contents Carsten Schlote
2007-06-29 14:15 ` Mike Frysinger
2007-07-01 8:21 ` Carsten Schlote
2007-07-01 12:47 ` Grant Likely
2007-07-01 15:47 ` Carsten Schlote
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox