public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Steven Scholz <steven.scholz@imc-berlin.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] tool to create environment on host?
Date: Wed, 25 May 2005 15:14:53 +0200	[thread overview]
Message-ID: <42947A4D.4070805@imc-berlin.de> (raw)
In-Reply-To: <4294507C.1050104@themalago.net>

Simon,

>>> is there a tool to create a binary environment block from a text file 
>>> on the host?
>>
>> No, not yet.
> 
> That would be *so* useful for our nightly builds...

Quick and Dirty Hack attached!

Good luck,

Steven


--
Index: tools/Makefile
===================================================================
RCS file: /cvsroot/u-boot/u-boot/tools/Makefile,v
retrieving revision 1.10
diff -u -r1.10 Makefile
--- tools/Makefile      28 Sep 2004 21:39:46 -0000      1.10
+++ tools/Makefile      25 May 2005 13:12:49 -0000
@@ -21,9 +21,9 @@
  # MA 02111-1307 USA
  #

-BINS   = img2srec$(SFX) mkimage$(SFX) envcrc$(SFX) gen_eth_addr$(SFX) 
bmp_logo$(SFX)
+BINS   = img2srec$(SFX) mkimage$(SFX) envcrc$(SFX) gen_eth_addr$(SFX) 
bmp_logo$(SFX) txt2env$(SFX)

-OBJS   = environment.o img2srec.o mkimage.o crc32.o envcrc.o gen_eth_addr.o 
bmp_logo.o
+OBJS   = environment.o img2srec.o mkimage.o crc32.o envcrc.o gen_eth_addr.o 
bmp_logo.o txt2env.o

  ifeq ($(ARCH),mips)
  BINS   += inca-swap-bytes$(SFX)
@@ -121,6 +121,9 @@
  envcrc$(SFX):  envcrc.o crc32.o environment.o
                 $(CC) $(CFLAGS) -o $@ $^

+txt2env$(SFX): txt2env.o crc32.o environment.o
+               $(CC) $(CFLAGS) -o $@ $^
+
  img2srec$(SFX):        img2srec.o
                 $(CC) $(CFLAGS) $(HOST_LDFLAGS) -o $@ $^
                 $(STRIP) $@
@@ -152,6 +155,9 @@
  envcrc.o:      envcrc.c
                 $(CC) -g $(CFLAGS) -c $<

+txt2env.o:     txt2env.c
+               $(CC) -g $(CFLAGS) -c $<
+
  crc32.o:       crc32.c
                 $(CC) -g $(CFLAGS) -c $<

-------------- next part --------------
A non-text attachment was scrubbed...
Name: txt2env.c
Type: text/x-csrc
Size: 5927 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20050525/c4485490/attachment.c 

  reply	other threads:[~2005-05-25 13:14 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-25  9:04 [U-Boot-Users] tool to create environment on host? Steven Scholz
2005-05-25  9:15 ` Wolfgang Denk
2005-05-25 10:16   ` Simon Poole
2005-05-25 13:14     ` Steven Scholz [this message]
2005-05-25 13:25     ` Wolfgang Denk
2005-05-25 14:31       ` Simon Poole
2005-05-25 15:06         ` Wolfgang Denk
2005-05-25 15:10           ` Simon Poole
2005-05-25 18:12           ` NZG
2005-05-25 19:56             ` Wolfgang Denk
2005-05-26  7:50               ` Steven Scholz
2005-05-26 10:32                 ` Wolfgang Denk
2005-05-25 12:23   ` Steven Scholz
2005-05-25 13:30     ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2005-05-25 13:19 Eisenhut, Daniel
2005-05-25 13:27 ` Steven Scholz
2005-05-25 18:28 Bob Peterson
2005-05-25 20:01 ` Wolfgang Denk
2005-06-08 16:41 ` Jeff Angielski
2005-05-26 15:41 Rune Torgersen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42947A4D.4070805@imc-berlin.de \
    --to=steven.scholz@imc-berlin.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox