1. 28 Mar, 2015 1 commit
    • Brian McFarland's avatar
      Patch to mkenvimage to handle text files with length that exceed env size · 80ee0196
      Brian McFarland authored
      The current head revision of mkenvimage
      (e72be894) will prevent you from creating
      an env image from a text file that is larger than the env length specified
      by the '-s' option.  That doesn't make sense given that the tool now allows
      comments and blank lines.  This patch removes that limitation and allows
      longer text files to be used.
      
      I don't have time / desire at the moment to figure out "patman" and could
      really care less if this is adopted up stream.  Just figured I would share
      in case anybody else finds it useful enough to take time to do a proper
      patch.
      
      >From 39ff30190c2bf687861f4b4b33230f1944fb64f9 Mon Sep 17 00:00:00 2001
      From: Brian McFarland <bmcfarland@rldrake.com>
      Date: Thu, 12 Mar 2015 11:37:19 -0400
      Subject: [PATCH] In mkenvimage, removed the check that prevented using a
       source text file larger than the output environment image.  Instead, the main
       parsing loop checks to see if the environment buffer is full, and quits if it
       is.  After the main parse loop, a second loop swallows comments and
       whitespace until either the EOF is reached or more env vars are found, in
       which case an error will be thrown.
      80ee0196
  2. 10 Nov, 2014 1 commit
  3. 16 Aug, 2013 1 commit
  4. 24 Jul, 2013 1 commit
  5. 20 Jul, 2012 1 commit
  6. 08 Jul, 2012 1 commit
  7. 02 Jul, 2012 1 commit
    • Andreas Bießmann's avatar
      tools/mkenvimage.c: fix basename(3) usage · 558cd995
      Andreas Bießmann authored
      Use the POSIX variant of basename due to BSD systems (e.g. OS X) do not provide
      GNU version of basename(3). It is save to use the POSIX variant here cause we do
      never use argv[0] later on which may be modified by the basename(3) POSIX
      variant.
      On systems providing GNU variant the GNU variant should be used since string.h
      is included before libgen.h. Therefore let the _GNU_SOURCE as is.
      
      This patch fixes following warning (on OS X):
      ---8<---
      mkenvimage.c: In function ‘main’:
      mkenvimage.c:105: warning: implicit declaration of function ‘basename’
      mkenvimage.c:105: warning: assignment makes pointer from integer without a cast
      --->8---
      Signed-off-by: default avatarAndreas Bießmann <andreas.devel@googlemail.com>
      cc: Keith Mok <ek9852@gmail.com>
      558cd995
  8. 10 Apr, 2012 1 commit
    • Dirk Behme's avatar
      mkenvimage: Fix compiler warning · 1ebff63f
      Dirk Behme authored
      Fix the compiler warning
      
      mkenvimage.c: In function ‘main’:
      mkenvimage.c:218: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘unsigned int’
      mkenvimage.c:226: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘unsigned int’
      
      introduced with the commit
      
      mkenvimage: Use mmap() when reading from a regular file
      6ee39f80Signed-off-by: default avatarDirk Behme <dirk.behme@googlemail.com>
      CC: David Wagner <david.wagner@free-electrons.com>
      CC: Anatolij Gustschin <agust@denx.de>
      CC: Mike Frysinger <vapier@gentoo.org>
      Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
      Acked-by: default avatarDavid Wagner <deubeuliou@gmail.com>
      1ebff63f
  9. 27 Mar, 2012 7 commits
  10. 26 Mar, 2012 1 commit
  11. 05 Jan, 2012 2 commits
  12. 22 Dec, 2011 1 commit
  13. 20 Dec, 2011 3 commits
  14. 22 Nov, 2011 1 commit