SPDX: Convert all of our single license tags to Linux Kernel styleWhen U-Boot started using SPDX tags we were among the early adopters andthere weren't a lot of other examples to borrow from. So
SPDX: Convert all of our single license tags to Linux Kernel styleWhen U-Boot started using SPDX tags we were among the early adopters andthere weren't a lot of other examples to borrow from. So we picked thearea of the file that usually had a full license text and replaced itwith an appropriate SPDX-License-Identifier: entry. Since then, theLinux Kernel has adopted SPDX tags and they place it as the very firstline in a file (except where shebangs are used, then it's second line)and with slightly different comment styles than us.In part due to community overlap, in part due to better tag visibilityand in part for other minor reasons, switch over to that style.This commit changes all instances where we have a single declaredlicense in the tag as both the before and after are identical in tagcontents. There's also a few places where I found we did not have a tagand have introduced one.Signed-off-by: Tom Rini <trini@konsulko.com>
show more ...
lzo: add a function to check the validity of the headerSigned-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>Reviewed-by: Tom Rini <trini@konsulko.com>Reviewed-by: Simon Glass <sjg@chromium.org>
lib/lzo: bugfix when input data is not compressedWhen the input data is not compressed at all,lzo1x_decompress_safe will fail, so call memcpy()instead.Signed-off-by: Joris Lijssens <joris.lijss
lib/lzo: bugfix when input data is not compressedWhen the input data is not compressed at all,lzo1x_decompress_safe will fail, so call memcpy()instead.Signed-off-by: Joris Lijssens <joris.lijssens@gmail.com>
lzo: Update dst_len even on errorThis allows the caller to easily detect how much of the destination bufferhas been used.Signed-off-by: Simon Glass <sjg@chromium.org>
lib: descend into sub directories only when it is necessarySigned-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
lib: convert makefiles to Kbuild styleSigned-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
lzo: correctly bounds-check output bufferThis checks the size of the output buffer and fails if it was going tooverflow the buffer during lzo decompression.Signed-off-by: Kees Cook <keescook@chr
lzo: correctly bounds-check output bufferThis checks the size of the output buffer and fails if it was going tooverflow the buffer during lzo decompression.Signed-off-by: Kees Cook <keescook@chromium.org>Acked-by: Simon Glass <sjg@chromium.org>
Add GPL-2.0+ SPDX-License-Identifier to source filesSigned-off-by: Wolfgang Denk <wd@denx.de>[trini: Fixup common/cmd_io.c]Signed-off-by: Tom Rini <trini@ti.com>
GCC4.6: Squash warning in lzo1x_decompress.clzo1x_decompress.c: In function ‘parse_header’:lzo1x_decompress.c:35:5: warning: variable ‘level’ set but not used[-Wunused-but-set-variable]Signed-o
GCC4.6: Squash warning in lzo1x_decompress.clzo1x_decompress.c: In function ‘parse_header’:lzo1x_decompress.c:35:5: warning: variable ‘level’ set but not used[-Wunused-but-set-variable]Signed-off-by: Marek Vasut <marek.vasut@gmail.com>Acked-by: Mike Frysinger <vapier@gentoo.org>
Switch from archive libraries to partial linkingBefore this commit, weak symbols were not overridden by non-weak symbolsfound in archive libraries when linking with recent versions ofbinutils. A
Switch from archive libraries to partial linkingBefore this commit, weak symbols were not overridden by non-weak symbolsfound in archive libraries when linking with recent versions ofbinutils. As stated in the System V ABI, "the link editor does notextract archive members to resolve undefined weak symbols".This commit changes all Makefiles to use partial linking (ld -r) insteadof creating library archives, which forces all symbols to participate inlinking, allowing non-weak symbols to override weak symbols as intended.This approach is also used by Linux, from which the gmake functioncmd_link_o_target (defined in config.mk and used in all Makefiles) isinspired.The name of each former library archive is preserved except forextensions which change from ".a" to ".o". This commit updatesreferences accordingly where needed, in particular in some linkerscripts.This commit reveals board configurations that exclude some features butinclude 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@gmail.com>
Rename lib_generic/ to lib/Now that the other architecture-specific lib directories have beenmoved out of the top-level directory there's not much reason to have the'_generic' suffix on the commo
Rename lib_generic/ to lib/Now that the other architecture-specific lib directories have beenmoved 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 <ptyser@xes-inc.com>