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 ...
flash: Fix spelling of "ERR_TIMOUT"checkpatch.pl complains about the spelling of ERR_TIMOUT. Since theerror is only used in a handful of files, we rename the error toERR_TIMEOUT.Signed-off-by:
flash: Fix spelling of "ERR_TIMOUT"checkpatch.pl complains about the spelling of ERR_TIMOUT. Since theerror is only used in a handful of files, we rename the error toERR_TIMEOUT.Signed-off-by: Mario Six <mario.six@gdsys.cc>Signed-off-by: Stefan Roese <sr@denx.de>
board_f: Rename initdram() to dram_init()This allows us to use the same DRAM init function on all archs. Add adummy function for arc, which does not use DRAM init here.Signed-off-by: Simon Glass
board_f: Rename initdram() to dram_init()This allows us to use the same DRAM init function on all archs. Add adummy function for arc, which does not use DRAM init here.Signed-off-by: Simon Glass <sjg@chromium.org>[trini: Dummy function on nios2]Signed-off-by: Tom Rini <trini@konsulko.com>
board_f: Drop return value from initdram()At present we cannot use this function as an init sequence call without awrapper, since it returns the RAM size. Adjust it to set the RAM size inglobal_d
board_f: Drop return value from initdram()At present we cannot use this function as an init sequence call without awrapper, since it returns the RAM size. Adjust it to set the RAM size inglobal_data instead, and return 0 on success.Signed-off-by: Simon Glass <sjg@chromium.org>Reviewed-by: Stefan Roese <sr@denx.de>
board_f: Drop board_type parameter from initdram()It looks like only cm5200 and tqm8xx use this feature, so we don't reallyneed it in generic code. Drop it and have the users access gd->board_type
board_f: Drop board_type parameter from initdram()It looks like only cm5200 and tqm8xx use this feature, so we don't reallyneed it in generic code. Drop it and have the users access gd->board_typedirectly.Signed-off-by: Simon Glass <sjg@chromium.org>Reviewed-by: Stefan Roese <sr@denx.de>
m68k: move CONFIG_SYS_TEXT_BASE to defconfig filesFor historical reason, CONFIG_SYS_TEXT_BASE has been specifiedin various ways:[1] by board/${VENDOR}/${BOARD}/config.mk[2] by CONFIG_SYS_EXTRA
m68k: move CONFIG_SYS_TEXT_BASE to defconfig filesFor historical reason, CONFIG_SYS_TEXT_BASE has been specifiedin various ways:[1] by board/${VENDOR}/${BOARD}/config.mk[2] by CONFIG_SYS_EXTRA_OPTIONS (This was "options" field of boards.cfg before Kconfig conversion)[3] by include/configs/${BOARD}.h[4] by configs/${BOARD}_defconfigMost of M68K boards use either [1] or [2], both of which we want todeprecate. Switch them into [4], which is the newest way (Kconfig).We still allow [3] too, because it is still used by many boards andwe expect much time for conversion.Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>Acked-by: Angelo Dureghello <angelo at sysam.it>Reviewed-by: Simon Glass <sjg@chromium.org>
Move console definitions into a new console.h fileThe console includes a global variable and several functions that are onlyused by a small subset of U-Boot files. Before adding more functions, mo
Move console definitions into a new console.h fileThe console includes a global variable and several functions that are onlyused by a small subset of U-Boot files. Before adding more functions, movethe definitions into their own header file.Signed-off-by: Simon Glass <sjg@chromium.org>
m68k: add architecture-specific u-boot.ldsAdd architecture-specific u-boot.lds and remove all board-specificu-boot.lds.All the .text customization that was board-specific have beenmoved inside
m68k: add architecture-specific u-boot.ldsAdd architecture-specific u-boot.lds and remove all board-specificu-boot.lds.All the .text customization that was board-specific have beenmoved inside the related include/configs, inside aLDS_BOARD_TEXT define.Signed-off-by: Angelo Dureghello <angelo@sysam.it>
MAINTAINERS: comment out blank M: fieldSince commit ddaf5c8f3030050fcd356a1e49e3ee8f8f52c6d4(patman: RunPipe() should not pipe stdout/stderr unless asked),Patman spits lots of "Invalid MAINTAINER
MAINTAINERS: comment out blank M: fieldSince commit ddaf5c8f3030050fcd356a1e49e3ee8f8f52c6d4(patman: RunPipe() should not pipe stdout/stderr unless asked),Patman spits lots of "Invalid MAINTAINERS address: '-'"error messages for patches with global changes.It takes too long for Patman to process them.Anyway, "M: -" does not carry any important information.Rather, it is just like a place holder in case of assigninga new board maintainer. Let's comment out.This commit can be reproduced by the following command:find . -name MAINTAINERS | xargs sed -i -e '/^M:[[:blank:]]*-$/s/^/#/'Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
kconfig: remove redundant "string" type in arch and board KconfigsNow the types of CONFIG_SYS_{ARCH, CPU, SOC, VENDOR, BOARD, CONFIG_NAME}are specified in arch/Kconfig.We can delete the ones in
kconfig: remove redundant "string" type in arch and board KconfigsNow the types of CONFIG_SYS_{ARCH, CPU, SOC, VENDOR, BOARD, CONFIG_NAME}are specified in arch/Kconfig.We can delete the ones in arch and board Kconfig files.This commit can be easily reproduced by the following command:find . -name Kconfig -a ! -path ./arch/Kconfig | xargs sed -i -e '/config[[:space:]]SYS_\(ARCH\|CPU\|SOC\|\VENDOR\|BOARD\|CONFIG_NAME\)/ { N s/\n[[:space:]]*string//}'Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Add board MAINTAINERS filesWe have switched to Kconfig and the boards.cfg file is going tobe removed. We have to retrieve the board status and maintainersinformation from it.The MAINTAINERS for
Add board MAINTAINERS filesWe have switched to Kconfig and the boards.cfg file is going tobe removed. We have to retrieve the board status and maintainersinformation from it.The MAINTAINERS format as in Linux Kernel would be nicebecause we can crib the scripts/get_maintainer.pl script.After some discussion, we chose to put a MAINTAINERS file under eachboard directory, not the top-level one because we want to collectrelevant information for a board into a single place.TODO:Modify get_maintainer.pl to scan multiple MAINTAINERS files.Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Suggested-by: Tom Rini <trini@ti.com>Acked-by: Simon Glass <sjg@chromium.org>
kconfig: add board Kconfig and defconfig filesThis commit adds: - arch/${ARCH}/Kconfig provide a menu to select target boards - board/${VENDOR}/${BOARD}/Kconfig or board/${BOARD}/Kconfig
kconfig: add board Kconfig and defconfig filesThis commit adds: - arch/${ARCH}/Kconfig provide a menu to select target boards - board/${VENDOR}/${BOARD}/Kconfig or board/${BOARD}/Kconfig set CONFIG macros to the appropriate values for each board - configs/${TARGET_BOARD}_defconfig default setting of each board(This commit was automatically generated by a conversion scriptbased on boards.cfg)In Linux Kernel, defconfig files are located underarch/${ARCH}/configs/ directory.It works in Linux Kernel since ARCH is always given from thecommand line for cross compile.But in U-Boot, ARCH is not given from the command line.Which means we cannot know ARCH until the board configuration is done.That is why all the "*_defconfig" files should be gathered into asingle directory ./configs/.Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Acked-by: Simon Glass <sjg@chromium.org>
m68k: convert makefiles to Kbuild styleSigned-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Cc: Jason Jin <Jason.jin@freescale.com>
Coding Style cleanup: replace leading SPACEs by TABsSigned-off-by: Wolfgang Denk <wd@denx.de>[trini: Drop changes for PEP 4 following python tools]Signed-off-by: Tom Rini <trini@ti.com>
Coding Style cleanup: remove trailing white spaceSigned-off-by: Wolfgang Denk <wd@denx.de>
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>
Replace __bss_end__ with __bss_endNote this is a tree-wide change affecting multiple architectures.At present we use __bss_start, but mostly __bss_end__. This seemsinconsistent and in a number o
Replace __bss_end__ with __bss_endNote this is a tree-wide change affecting multiple architectures.At present we use __bss_start, but mostly __bss_end__. This seemsinconsistent and in a number of places __bss_end is used instead.Change to use __bss_end for the BSS end symbol throughout U-Boot. Thismakes it possible to use the asm-generic/sections.h file on allarchs.Signed-off-by: Simon Glass <sjg@chromium.org>
Refactor linker-generated arraysRefactor linker-generated array code so that symbolswhich were previously linker-generated are now compiler-generated. This causes relocation records of typeR_ARM
Refactor linker-generated arraysRefactor linker-generated array code so that symbolswhich were previously linker-generated are now compiler-generated. This causes relocation records of typeR_ARM_ABS32 to become R_ARM_RELATIVE, which makescode which uses LGA able to run before relocation aswell as after.Note: this affects more than ARM targets, as linker-lists span possibly all target architectures, notablyPowerPC.Conflicts: arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds arch/arm/cpu/arm926ejs/spear/u-boot-spl.lds arch/arm/cpu/armv7/omap-common/u-boot-spl.lds board/ait/cam_enc_4xx/u-boot-spl.lds board/davinci/da8xxevm/u-boot-spl-da850evm.lds board/davinci/da8xxevm/u-boot-spl-hawk.lds board/vpac270/u-boot-spl.ldsSigned-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
common: Discard the __u_boot_cmd sectionThe command declaration now uses the new LG-array method to generatelist of commands. Thus the __u_boot_cmd section is now superseded andredundant and ther
common: Discard the __u_boot_cmd sectionThe command declaration now uses the new LG-array method to generatelist of commands. Thus the __u_boot_cmd section is now superseded andredundant and therefore can be removed. Also, remove externed symbolsassociated with this section from include/command.h .Signed-off-by: Marek Vasut <marex@denx.de>Cc: Joe Hershberger <joe.hershberger@gmail.com>Cc: Mike Frysinger <vapier@gentoo.org>
common: Add .u_boot_list into all linker filesAdd section for the linker-generated lists into all possible linkerfiles, so that everyone can easily use these lists. This is mostlya mechanical adj
common: Add .u_boot_list into all linker filesAdd section for the linker-generated lists into all possible linkerfiles, so that everyone can easily use these lists. This is mostlya mechanical adjustment.Signed-off-by: Marek Vasut <marex@denx.de>Cc: Joe Hershberger <joe.hershberger@gmail.com>Cc: Mike Frysinger <vapier@gentoo.org>
doc: cleanup - move board READMEs into respective board directoriesAlso drop a few files referring to no longer / not yet supportedboards.Signed-off-by: Wolfgang Denk <wd@denx.de>Cc: Prafulla W
doc: cleanup - move board READMEs into respective board directoriesAlso drop a few files referring to no longer / not yet supportedboards.Signed-off-by: Wolfgang Denk <wd@denx.de>Cc: Prafulla Wadaskar <prafulla@marvell.com>Cc: Stefan Roese <sr@denx.de>Cc: Kim Phillips <kim.phillips@freescale.com>Cc: Andy Fleming <afleming@gmail.com>Cc: Jason Jin <jason.jin@freescale.com>Cc: Stefano Babic <sbabic@denx.de>Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>Acked-by: Stefano Babic <sbabic@denx.de>Acked-by: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
ColdFire: Cleanup lds files for multiple defined symbolsLds files cleened to remove multiple defined section and modified tobe compliant with --gc-sections added for ColdFire platform in apreviou
ColdFire: Cleanup lds files for multiple defined symbolsLds files cleened to remove multiple defined section and modified tobe compliant with --gc-sections added for ColdFire platform in aprevious patch.Signed-off-by: Stany MARCEL <stany.marcel@novasys-ingenierie.com>Acked-by: Mike Frysinger <vapier@gentoo.org>
Remove calls to set_timer outside arch/There is no need to use set_timer(). Replace with appropriate use ofget_timer()Signed-off-by: Graeme Russ <graeme.russ@gmail.com>Acked-by: Wolfgang Denk <
Remove calls to set_timer outside arch/There is no need to use set_timer(). Replace with appropriate use ofget_timer()Signed-off-by: Graeme Russ <graeme.russ@gmail.com>Acked-by: Wolfgang Denk <wd@denx.de>
rename _end to __bss_end__Currently, _end is used for end of BSS section. We want _end to meanend of u-boot image, so we rename _end to __bss_end__ first.Signed-off-by: Po-Yu Chuang <ratbert@fa
rename _end to __bss_end__Currently, _end is used for end of BSS section. We want _end to meanend of u-boot image, so we rename _end to __bss_end__ first.Signed-off-by: Po-Yu Chuang <ratbert@faraday-tech.com>
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>
12