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 ...
Makefile: move BFD_ROOT_DIR to tools/gdb/MakefileBFD_ROOT_DIR is used only in tools/gdb/MakefileSigned-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
tools: convert makefiles to kbuild styleBefore this commit, makefiles under tools/ directorywere implemented with their own way.This commit refactors them by using "hostprogs-y" variable.Sever
tools: convert makefiles to kbuild styleBefore this commit, makefiles under tools/ directorywere implemented with their own way.This commit refactors them by using "hostprogs-y" variable.Several C sources have been added to wrap other C sourcesto simplify Makefile.For example, tools/crc32.c includes lib/crc32.cSigned-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
tools: Makefile: delete redundant linesHOSTOS is defined and exported at the top Makefile.Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
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>
makefiles: fixes for building build toolsCurrently, some of the tools instead set CC to be HOSTCC in order to re-usesome pattern rules -- but this fails when the user overrides CC on the makecomm
makefiles: fixes for building build toolsCurrently, some of the tools instead set CC to be HOSTCC in order to re-usesome pattern rules -- but this fails when the user overrides CC on the makecommand line. Also, the HOSTCFLAGS in tools/Makefile are currently notbeing used because config.mk overwrites them.This patch adds static pattern rules for files that have been requested tobe built with the native compiler using $(HOSTSRCS) and $(HOSTOBJS), andconverts the tools to use them.It restores easylogo to using the host compiler, which was broken by commit38d299c2db81bd889c601b5dfc12c4e83ef83333 (if this was an intentional change,please let me know -- but it seems to be a build tool).It restores -pedantic and the special flags for darwin and cygwin that wererequested in tools/makefile (but keeps the flags added by config.mk) --hopefully someone can test this on those platforms. It no longerconditionalizes -pedantic on not being darwin; it wasn't clear that that wasintentional, and unless there's a real problem it's just inviting people tocontribute non-pedantic patches to those files (I'm not a fan of -pedanticpersonally, but if it's on for one platform it should be on for all).HOST_LDFLAGS is renamed HOSTLDFLAGS for consistency with the previousHOST_CFLAGS to HOSTCFLAGS rename. A new HOSTCFLAGS_NOPED is made availablefor those files which currently cannot be built with -pedantic, and replacesthe old FIT_CFLAGS.imls now uses the cross compiler properly, rather than by trying toreconstruct CC using the typoed $(CROSS_COMPILER).envcrc.c is now dependency-processed unconditionally -- previously it wouldbe built without being on (HOST)SRCS if CONFIG_ENV_IS_EMBEDDED was notselected.Signed-off-by: Scott Wood <scottwood@freescale.com>
unify HOST_CFLAGS and HOSTCFLAGSThe top build system sets up HOSTCFLAGS a bit and exports it, but otherplaces use HOST_CFLAGS instead. Unify the two as HOSTCFLAGS so that thevalues stay in sync.
unify HOST_CFLAGS and HOSTCFLAGSThe top build system sets up HOSTCFLAGS a bit and exports it, but otherplaces use HOST_CFLAGS instead. Unify the two as HOSTCFLAGS so that thevalues stay in sync.Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Fixed some out-of-tree build issuesSigned-off-by: Wolfgang Denk <wd@denx.de>
Big white-space cleanup.This commit gets rid of a huge amount of silly white-space issues.Especially, all sequences of SPACEs followed by TAB characters getremoved (unless they appear in print st
Big white-space cleanup.This commit gets rid of a huge amount of silly white-space issues.Especially, all sequences of SPACEs followed by TAB characters getremoved (unless they appear in print statements).Also remove all embedded "vim:" and "vi:" statements which hideindentation problems.Signed-off-by: Wolfgang Denk <wd@denx.de>
Coding style cleanup
Add support for a saving build objects in a separate directory.Modifications are based on the linux kernel approach andsupport two use cases: 1) Add O= to the make command line 'make O=/tmp/bu
Add support for a saving build objects in a separate directory.Modifications are based on the linux kernel approach andsupport two use cases: 1) Add O= to the make command line 'make O=/tmp/build all' 2) Set environement variable BUILD_DIR to point to the desired location 'export BUILD_DIR=/tmp/build' 'make'The second approach can also be used with a MAKEALL script'export BUILD_DIR=/tmp/build''./MAKEALL'Command line 'O=' setting overrides BUILD_DIR environent variable.When none of the above methods is used the local build is performed andthe object files are placed in the source directory.
Fix Murray Jensen's mail address.Patch by Murray Jensen, 30 Jun 2005
Removed the file tools/gdb/astest.c
Removed tools/gdb from "make all" target. Added make target "gdbtools"in toplevel directory instead. Removed astest.c from tools/gdb becauseit is no longer relevant.
* Code cleanup: - remove trailing white space, trailing empty lines, C++ comments, etc. - split cmd_boot.c (separate cmd_bdinfo.c and cmd_load.c)* Patches by Kenneth Johansson, 25 Jun 2003: -
* Code cleanup: - remove trailing white space, trailing empty lines, C++ comments, etc. - split cmd_boot.c (separate cmd_bdinfo.c and cmd_load.c)* Patches by Kenneth Johansson, 25 Jun 2003: - major rework of command structure (work done mostly by Michal Cendrowski and Joakim Kristiansen)
Patches by Murray Jensen, 17 Jun 2003:- Hymod board database mods: add "who" field and new xilinx chip types- provide new "init_cmd_timeout()" function so code external to "common/main.c" can use
Patches by Murray Jensen, 17 Jun 2003:- Hymod board database mods: add "who" field and new xilinx chip types- provide new "init_cmd_timeout()" function so code external to "common/main.c" can use the "reset_cmd_timeout()" function before entering the main loop- add DTT support for adm1021 (new file dtt/adm1021.c; config slightly different. see include/configs/hymod.h for an example (requires CONFIG_DTT_ADM1021, CONFIG_DTT_SENSORS, and CFG_DTT_ADM1021 defined)- add new "eeprom_probe()" function which has similar args and behaves in a similar way to "eeprom_read()" etc.- add 8260 FCC ethernet loopback code (new "eth_loopback_test()" function which is enabled by defining CONFIG_ETHER_LOOPBACK_TEST)- gdbtools copyright update- ensure that set_msr() executes the "sync" and "isync" instructions after the "mtmsr" instruction in cpu/mpc8260/interrupts.c- 8260 I/O ports fix: Open Drain should be set last when configuring- add SIU IRQ defines for 8260- allow LDSCRIPT override and OBJCFLAGS initialization: change to config.mk to allow board configurations to override the GNU linker script, selected via the LDSCRIPT, make variable, and to give an initial value to the OBJCFLAGS make variable- 8260 i2c enhancement: o correctly extends the timeout depending on the size of all queued messages for both transmit and receive o will not continue with receive if transmit times out o ensures that the error callback is done for all queued tx and rx messages o correctly detects both tx and rx timeouts, only delivers one to the callback, and does not overwrite an earlier error o logic in i2c_probe now correct- add "vprintf()" function so that "panic()" function can be technically correct- many Hymod board changes
Fix problem with usage of "true" (undefined in current versions of bfd.h)
Initial revision