20 Feb, 2014

1 commit

  • Now we are ready to switch over to real Kbuild.

    This commit disables temporary scripts:
    scripts/{Makefile.build.tmp, Makefile.host.tmp}
    and enables real Kbuild scripts:
    scripts/{Makefile.build,Makefile.host,Makefile.lib}.

    This switch is triggered by the line in scripts/Kbuild.include
    -build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build.tmp obj
    +build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build obj

    We need to adjust some build scripts for U-Boot.
    But smaller amount of modification is preferable.

    Additionally, we need to fix compiler flags which are
    locally added or removed.

    In Kbuild, it is not allowed to change CFLAGS locally.
    Instead, ccflags-y, asflags-y, cppflags-y,
    CFLAGS_$(basetarget).o, CFLAGS_REMOVE_$(basetarget).o
    are prepared for that purpose.

    Signed-off-by: Masahiro Yamada
    Tested-by: Gerhard Sittig

    Masahiro Yamada
     

14 Jan, 2014

1 commit

  • Variable uncompressedSize references the space available, while outSizeFull is
    the actual expected uncompressed size. Using the wrong value causes LzmaDecode
    to return SZ_ERROR_INPUT_EOF. Problem was introduced in commit afca294. While
    at it add additional debug message.

    Signed-off-by: Antonios Vamporakis
    CC: Kees Cook
    CC: Simon Glass
    CC: Daniel Schwierzeck
    CC: Luka Perkov

    Antonios Vamporakis
     

18 Nov, 2013

1 commit


01 Nov, 2013

1 commit


04 Sep, 2013

1 commit

  • The output buffer size must be correctly passed to the lzma decoder or
    there is a risk of overflowing memory during decompression. Switching
    to the LZMA_FINISH_END mode means nothing is left in an unknown state
    once the buffer becomes full.

    Signed-off-by: Kees Cook
    Acked-by: Simon Glass

    Kees Cook
     

24 Jul, 2013

1 commit


07 Dec, 2012

1 commit

  • Updated code taken from latest lzma sdk release 9.20 at
    http://downloads.sourceforge.net/sevenzip/lzma920.tar.bz2

    This generates quite a lot of checkpatch warnings, but I guess we
    need to keep the code style as is to avoid a massive job each time we
    update this.

    Signed-off-by: Stefan Reinauer

    Signed-off-by: Simon Glass

    Stefan Reinauer
     

28 Mar, 2012

1 commit

  • Fix size_t printf format warnings:

    LzmaTools.c: In function 'lzmaBuffToBuffDecompress':
    LzmaTools.c:110:5: warning: format '%x' expects type 'unsigned int',
    but argument 2 has type 'SizeT'
    LzmaTools.c:111:5: warning: format '%x' expects type 'unsigned int',
    but argument 2 has type 'SizeT'

    Signed-off-by: Mike Frysinger

    Mike Frysinger
     

28 Oct, 2011

1 commit

  • LzmaTools.c: In function 'lzmaBuffToBuffDecompress':
    LzmaTools.c:70:5: warning: format '%lx' expects type 'long unsigned int', but
    argument 2 has type 'unsigned char *'
    LzmaTools.c:71:5: warning: format '%lx' expects type 'long unsigned int', but
    argument 2 has type 'unsigned char *'
    LzmaTools.c:72:5: warning: format '%lx' expects type 'long unsigned int', but
    argument 2 has type 'unsigned char *'
    LzmaTools.c:73:5: warning: format '%lx' expects type 'long unsigned int', but
    argument 2 has type 'unsigned char *'
    LzmaTools.c:74:5: warning: format '%lx' expects type 'long unsigned int', but
    argument 2 has type 'unsigned char *'
    LzmaTools.c:110:5: warning: format '%lx' expects type 'long unsigned int', but
    argument 2 has type 'SizeT'
    LzmaTools.c:111:5: warning: format '%lx' expects type 'long unsigned int', but
    argument 2 has type 'SizeT'

    Signed-off-by: Marek Vasut
    Cc: Wolfgang Denk
    Cc: Simon Glass
    Cc: Mike Frysinger

    Marek Vasut
     

05 Aug, 2011

1 commit


18 Nov, 2010

1 commit

  • Before this commit, weak symbols were not overridden by non-weak symbols
    found in archive libraries when linking with recent versions of
    binutils. As stated in the System V ABI, "the link editor does not
    extract archive members to resolve undefined weak symbols".

    This commit changes all Makefiles to use partial linking (ld -r) instead
    of creating library archives, which forces all symbols to participate in
    linking, allowing non-weak symbols to override weak symbols as intended.
    This approach is also used by Linux, from which the gmake function
    cmd_link_o_target (defined in config.mk and used in all Makefiles) is
    inspired.

    The name of each former library archive is preserved except for
    extensions which change from ".a" to ".o". This commit updates
    references accordingly where needed, in particular in some linker
    scripts.

    This commit reveals board configurations that exclude some features but
    include source files that depend these disabled features in the build,
    resulting in undefined symbols. Known such cases include:
    - disabling CMD_NET but not CMD_NFS;
    - enabling CONFIG_OF_LIBFDT but not CONFIG_QE.

    Signed-off-by: Sebastien Carlier

    Sebastien Carlier
     

13 Apr, 2010

1 commit

  • Now that the other architecture-specific lib directories have been
    moved out of the top-level directory there's not much reason to have the
    '_generic' suffix on the common lib directory.

    Signed-off-by: Peter Tyser

    Peter Tyser