summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeLines
* tools/Makefile: fix image.c dependancy locationJean-Christophe PLAGNIOL-VILLARD2009-04-04-1/+1
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* tools: add ncb to gitignoreMike Frysinger2009-04-04-0/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Delete now unused tools/Makefile.win32Peter Tyser2009-04-04-37/+0
| | | | Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* Add support for building native win32 toolsPeter Tyser2009-04-04-7/+207
| | | | | | | | | | | | | Add support for compiling the host tools in the tools directory using the MinGW toolchain. This produces executables which can be used on standard Windows computers without requiring cygwin. One must specify the MinGW compiler and strip utilities as if they were the host toolchain in order to build win32 executables, eg: make HOSTCC=i586-mingw32msvc-gcc HOSTSTRIP=i586-mingw32msvc-strip tools Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Simplify HOST_CFLAGS/HOST_LDFLAGS generationPeter Tyser2009-04-04-12/+5
| | | | Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Create generic build rulesPeter Tyser2009-04-04-46/+9
| | | | | | | Create a few generic build rules to replace the current method which has 1 build target for each file Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Use auto-generated object file dependenciesPeter Tyser2009-04-04-12/+12
| | | | | | | Files in the SRCS variable have their dependencies automatically generated so remove duplicate explicit dependencies Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Remove symlinks for remaining source filesPeter Tyser2009-04-04-36/+13
| | | | Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Dynamically generate libfdt object dependenciesPeter Tyser2009-04-04-7/+6
| | | | | | | Add the libfdt files to the SRCS variable so that they have their dependencies automatically generated Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Remove symlinks for fdt targetsPeter Tyser2009-04-04-30/+7
| | | | Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Add libfdt/ to the include search pathPeter Tyser2009-04-04-10/+6
| | | | | | | This change makes the process of symlinking libfdt_internal.h unnecessary Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools: Remove unecessary symlinking of zlib.hPeter Tyser2009-04-04-6/+1
| | | | | | | | crc32.c uses the zlib.h header in include/u-boot/zlib.h. The symlink was previously necessary to give U-Boot's version of zlib.h precedence over the host computer's version of zlib.h. Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Add tools/ to the include search pathPeter Tyser2009-04-04-6/+1
| | | | | | | This change makes the process of symlinking mkimage.h and fdt_host.h unnecessary Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Compile ncb when CONFIG_NETCONSOLEPeter Tyser2009-04-04-0/+2
| | | | | | Also conditionally add ncb.o to OBJ_FILES list Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Make gen_eth_addr dependent upon CONFIG_CMD_NETPeter Tyser2009-04-04-2/+2
| | | | Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Make envcrc dependent upon CONFIG_ENV_IS_EMBEDDEDPeter Tyser2009-04-04-2/+2
| | | | Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Make inca-swap-bytes dependent on CONFIG_INCA_IPPeter Tyser2009-04-04-5/+2
| | | | Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Make ubsha1 dependent upon CONFIG_SHA1_CHECK_UB_IMGPeter Tyser2009-04-04-2/+2
| | | | Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Make img2srec dependent upon CONFIG_CMD_LOADSPeter Tyser2009-04-04-2/+2
| | | | Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Build bmp_logo only when LCD or VIDEO logos are enabledPeter Tyser2009-04-04-3/+8
| | | | Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Split variable declarations into multiple linesPeter Tyser2009-04-04-33/+53
| | | | | | | | | | | | Split variable declarations into multiple lines and use the standard VAR-y convention. Also move object and binary variable declarations to after config.mk has been included to allow for these lists to utilize the CONFIG_XXX variables. These changes lay the groundwork for conditional compilation of files in the tools directory. Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Remove inappropriate double-tabsPeter Tyser2009-04-04-76/+77
| | | | Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* tools/Makefile: Remove HOSTARCH HOSTOS definesPeter Tyser2009-04-04-12/+0
| | | | | | | The values of HOSTARCH and HOSTOS which are exported from the top-level Makefile should be used Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* gen_eth_addr: Use POSIX rand() and srand()Peter Tyser2009-04-04-3/+3
| | | | | | | | | Replace random()/srandom() use with rand()/srand() to support compilation with the mingw toolchain. The rand()/srand() functions are generally more common and are functionally equivalent to the original random()/srandom() calls. Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* Standardize command usage messages with cmd_usage()Peter Tyser2009-01-28-7/+7
| | | | Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* easylogo: add optional gzip supportMike Frysinger2009-01-24-6/+92
| | | | | | | | Some images can be quite large, so add an option to compress the image data with gzip in the U-Boot image. Then at runtime, the board can decompress it with the normal zlib functions. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* ncb: use socklen_tMike Frysinger2009-01-16-1/+1
| | | | | | The recvfrom() function takes a socklen_t, not an int. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Fix a typo in fw_env.configMartin Michlmayr2008-12-15-1/+1
| | | | | Reported-by: Martin Michlmayr <tbm@cyrius.com> Signed-off-by: Wolfgang Denk <wd@denx.de>
* tools/netconsole: new script for working with netconsole over UDPMike Frysinger2008-12-10-0/+42
| | | | | | | | | | While the doc/README.NetConsole does have a snippet for people to create their own netcat script, it's a lot easier to make a simple dedicated script and tell people to use it. Also spruce it up a bit to make it user friendly. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* rename CFG_ macros to CONFIG_SYSJean-Christophe PLAGNIOL-VILLARD2008-10-18-62/+62
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Adds two more ethernet interface to 83xxrichardretanubun2008-10-18-0/+6
| | | | | | | | | Added as a convenience for other platforms that uses MPC8360 (has 8 UCC). Six eth interface is chosen because the platform I am using combines UCC1&2 and UCC3&4 as 1000 Eth and the other four UCCs as 10/100 Eth. Signed-off-by: Richard Retanubun <RichardRetanubun@RugggedCom.com> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
* rename CFG_ENV macros to CONFIG_ENVJean-Christophe PLAGNIOL-VILLARD2008-09-10-26/+26
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* rename CFG_ENV_IS_IN_FLASH in CONFIG_ENV_IS_IN_FLASHJean-Christophe PLAGNIOL-VILLARD2008-09-10-3/+3
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* rename environment.c in env_embedded.c to reflect is functionalityJean-Christophe PLAGNIOL-VILLARD2008-09-10-7/+7
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* fw_env: add NAND supportGuennadi Liakhovetski2008-09-09-264/+611
| | | | | | | | Add support for environment in NAND with automatic NOR / NAND recognition, including unaligned environment, bad-block skipping, redundant environment copy. Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
* fw_env.c: fix build problems with MTD_VERSION=oldWolfgang Denk2008-09-02-1/+2
| | | | | | (as needed to support old 2.4 Linux kernel based releases) Signed-off-by: Wolfgang Denk <wd@denx.de>
* Add 'license' command to U-Boot command lineHarald Welte2008-08-18-0/+60
| | | | | | | | | | | | | | | The 'license' command includes the U-Boot license (GPLv2) into the actual bootloader binary. The license text can be shown interactively at the U-Boot commandline. For products where the commandline can actually be accessed by the end user, this helps to prevent inadvertent GPL violations, since the GPLv2 license text can no longer be 'forgotten' to be included into the product. The 'license' command can be enabled by CONFIG_CMD_LICENSE. Signed-off-by: Harald Welte <laforge@openmoko.org>
* tools/gitignore: update to all generated filesJean-Christophe PLAGNIOL-VILLARD2008-07-15-0/+3
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Code cleanup: fix old style assignment ambiguities like "=-" etc.Wolfgang Denk2008-07-14-3/+3
| | | | Signed-off-by: Wolfgang Denk <wd@denx.de>
* Fixed some out-of-tree build issuesWolfgang Denk2008-07-11-1/+1
| | | | Signed-off-by: Wolfgang Denk <wd@denx.de>
* Add logos for RRvision boardGary Jennejohn2008-07-02-0/+0
| | | | Signed-off-by: Gary Jennejohn <garyj@denx.de>
* Merging Stelian Pop AT91 patchesJean-Christophe PLAGNIOL-VILLARD2008-05-24-0/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge branch 'testing-V2' Conflicts: board/atmel/at91cap9adk/Makefile Fixing copyright board/atmel/at91sam9260ek/Makefile Fixing copyright board/atmel/at91sam9260ek/u-boot.lds Delete no more needed ld script Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * Use custom logo for Atmel boardsStelian Pop2008-05-10-0/+4
| | | | | | | | | | | | | | This patch adds a custom vendor logo for the Atmel AT91 boards. Signed-off-by: Stelian Pop <stelian@popies.net> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | Big white-space cleanup.Wolfgang Denk2008-05-21-6/+6
| | | | | | | | | | | | | | | | | | | | | | This commit gets rid of a huge amount of silly white-space issues. Especially, all sequences of SPACEs followed by TAB characters get removed (unless they appear in print statements). Also remove all embedded "vim:" and "vi:" statements which hide indentation problems. Signed-off-by: Wolfgang Denk <wd@denx.de>
* | Propagate Error Status to the Shell on fw_printenv ErrorsGrant Erickson2008-05-09-21/+29
| | | | | | | | | | | | | | | | | | | | | | | | Changed implementation such that fw_printenv returns failure status when one or more specified variables do not exist or when incorrect command syntax is used. This aids scripting fw_printenv such that the script can key of the return status rather than relying on standard error "scraping". Signed-off-by: Grant Erickson <gerickson@nuovations.com> Signed-off-by: Wolfgang Denk <wd@denx.de>
* | Fix Compilation Errors with 'tools/env/fw_printenv'Grant Erickson2008-05-09-1/+1
|/ | | | | | | | | | | | | | | | In the current top-of-tree, 1.3.3.-rc2, the optional tool 'tools/env/fw_printenv' fails to compile for two reasons: 1) The header watchdog.h cannot be found. 2) The header zlib.h is picked up from the tool chain rather than the project causing a prototype conflict for crc32. This patch addresses both of these issues. Platforms Tested On: - AMCC "Kilauea" Signed-off-by: Grant Erickson <gerickson@nuovations.com>
* mkimage: make mmap() checks consistentMike Frysinger2008-05-03-13/+9
| | | | | | | | | | The mmap() related code is full of inconsistent casts/constants when it comes to error checking, and may break when building on some systems (like ones that do not implicitly define the caddr_t type). Let's just avoid the whole mess by writing the code nice and clean in the first place. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Update .gitignore for zlib.hKumar Gala2008-04-29-0/+1
| | | | Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* Memory footprint optimizationsBartlomiej Sieka2008-04-24-3/+3
| | | | | | | | | | As suggested by Wolfgang Denk: - image printing functions: - remove wrappers - remove indentation prefix from functions' signatures - merge getenv_verify and getenv_autostart into one parametrized function Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
* crc32: use uint32_t rather than unsigned longMike Frysinger2008-04-24-5/+10
| | | | | | | | | | | | | The envcrc.c does sizeof(unsigned long) when calculating the crc, but this is done with the build toolchain instead of the target tool chain, so if the build is a 64bit system but the target is 32bits, the size will obviously be wrong. This converts all unsigned long stuff related to crc32 to uint32_t types. Compile tested only: output of ./tools/envcrc when run on a 32bit build system matches that of a 64bit build system. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>