- May 12, 2011
-
-
Che-liang Chiou authored
GNU Makefile have two flavors of variables, recursively expanded that is defined by using '=', and simply expanded that is defined by using ':='. The bug is caused by using recursively expanded flavor for BIN and SREC. As you can see below, they are prepended by $(obj) twice. We can reproduce this bug with a simplified version of this Makefile: $ cat >Makefile <<\EOF obj := /path/to/obj/ ELF := hello_world BIN_rec = $(addsuffix .bin,$(ELF)) # recursively expanded BIN_sim := $(addsuffix .bin,$(ELF)) # simply expanded ELF := $(addprefix $(obj),$(ELF)) BIN_rec := $(addprefix $(obj),$(BIN_rec)) BIN_sim := $(addprefix $(obj),$(BIN_sim)) show: @echo BIN_rec=$(BIN_rec) @echo BIN_sim=$(BIN_sim) .PHONY: show EOF $ make show BIN_rec=/path/to/obj//path/to/obj/hello_world.bin BIN_sim=/path/to/obj/hello_world.bin Signed-off-by:
Che-Liang Chiou <clchiou@chromium.org>
-
- Apr 12, 2011
-
-
Wolfgang Denk authored
Rename STANDALONE_LOAD_ADDR into CONFIG_STANDALONE_LOAD_ADDR and allow that the architecture-specific default value gets overwritten by defining the value in the board header file. Signed-off-by:
Wolfgang Denk <wd@denx.de> Cc: Mike Frysinger <vapier@gentoo.org> Cc: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp> Cc: Daniel Hellstrom <daniel@gaisler.com> Cc: Tsi Chung Liew <tsi-chung.liew@freescale.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
-
- Nov 17, 2010
-
-
Sebastien Carlier authored
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@gmail.com>
-
- Oct 12, 2010
-
-
Peter Tyser authored
Using -fno-toplevel-reorder causes gcc to not reorder functions. This ensures that an application's entry point will be the first function in the application's source file. This change, along with commit 620bbba5 should cause a standalone application's entry point to be at the base of the compiled binary. Previously, the entry point could change depending on gcc version and flags. Note -fno-toplevel-reorder is only available in gcc version 4.2 or greater. Signed-off-by:
Peter Tyser <ptyser@xes-inc.com>
-
- Jun 29, 2010
-
-
Peter Tyser authored
Previously, standalone applications were compiled with gcc flags that produced relocatable executables on the PowerPC architecture (eg with the -mrelocatable and -fPIC flags). There's no reason for these applications to be fully relocatable at this time since no relocation fixups are performed on standalone applications. Additionally, removing the gcc relocation flags results in the entry point of applications residing at the base of the image. When a standalone application was relocatable, the entry point was generally located at an offset into the image which was confusing and prone to errors. This change moves the entry point of PowerPC standalone applications from 0x40004 (usually) to 0x40000. Signed-off-by:
Peter Tyser <ptyser@xes-inc.com> Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Dec 02, 2009
-
-
Sanjeev Premi authored
Some versions of 'make' do not handle trailing white-spaces properly. Trailing spaces in ELF causes a 'fake' source to be added to the variable COBJS; leading to build failure (listed below). The problem was found with GNU Make 3.80. Using text-function 'strip' as a workaround for the problem. make[1]: Entering directory `/home/sanjeev/u-boot/examples/standalone' arm-none-linux-gnueabi-gcc -g -Os -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x80e80000 -I/home/sanjeev/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/codesourcery/2009q1- 203/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/include -pipe -DCONFIG_ ARM -D__ARM__ -marm -mabi=aapcs-linux -mno-thumb-interwork -march=armv5 -Wall -Wstrict-prototypes -fno-stack-protector -g -Os -fno-common -ff ixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x80e80000 -I/home/sanje ev/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/co desourcery/2009q1-203/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/includ e -pipe -DCONFIG_ARM -D__ARM__ -marm -mabi=aapcs-linux -mno-thumb-inte rwork -march=armv5 -I.. -Bstatic -T u-boot.lds -Ttext 0x80e80000 -o .c arm-none-linux-gnueabi-gcc: no input files make[1]: *** [.c] Error 1 make[1]: Leaving directory `/home/sanjeev/u-boot/examples/standalone' make: *** [examples/standalone] Error 2 premi # Signed-off-by:
Sanjeev Premi <premi@ti.com> Fixed typo (s/ElF/ELF/). Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Oct 03, 2009
-
-
Mike Frysinger authored
Clean up the arch/cpu/board/config checks as well as redundant setting of srec/bin variables by using the kbuild VAR-$(...) style. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Mike Frysinger authored
Rather than maintain/extend the current ifeq($(ARCH)) mess that exists in the standalone Makefile, push the setting up of LOAD_ADDR out to the arch config.mk (and rename to STANDALONE_LOAD_ADDR in the process). This keeps the common code clean and lets the arch do whatever crazy crap it wants in its own area. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Mike Frysinger authored
Atmel DataFlashes by default operate with pages that are slightly bigger than normal binary sizes (i.e. many are 1056 byte pages rather than 1024 bytes). However, they also have a "power of 2" mode where the pages show up with the normal binary size. The latter mode is required in order to boot with a Blackfin processor, so many people wish to convert their DataFlashes on their development systems to this mode. This standalone application does just that. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
- Sep 15, 2009
-
-
Mike Frysinger authored
Clean up the arch/cpu/board/config checks as well as redundant setting of srec/bin variables by using the kbuild VAR-$(...) style. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
- Sep 04, 2009
-
-
Mike Frysinger authored
Rather than maintain/extend the current ifeq($(ARCH)) mess that exists in the standalone Makefile, push the setting up of LOAD_ADDR out to the arch config.mk (and rename to STANDALONE_LOAD_ADDR in the process). This keeps the common code clean and lets the arch do whatever crazy crap it wants in its own area. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Mike Frysinger authored
Atmel DataFlashes by default operate with pages that are slightly bigger than normal binary sizes (i.e. many are 1056 byte pages rather than 1024 bytes). However, they also have a "power of 2" mode where the pages show up with the normal binary size. The latter mode is required in order to boot with a Blackfin processor, so many people wish to convert their DataFlashes on their development systems to this mode. This standalone application does just that. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
- Aug 08, 2009
-
-
Michael Evans authored
The attached patch corrects an error in the examples/Makefile which causes the applications in the examples directory to hang on OMAP3 based boards. The current Makefile sets -Ttext during linking to 0x0c100000 which is outside of addressable SDRAM memory. The script corrects the existing ifeq...else...endif logic to look at the VENDOR tag rather than the CPU tag. The patch affects the following configs: omap3_beagle_config, omap3_overo_config, omap3_evm_config, omap3_pandora_config, omap3_zoom1_config and omap3_zoom2_config. Signed-off-by:
Michael Evans <horse_dung@hotmail.com> Edited commit message. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Jul 20, 2009
-
-
Peter Tyser authored
The current files in examples are all standalone application examples, so put them in their own subdirectory for organizational purposes Signed-off-by:
Peter Tyser <ptyser@xes-inc.com>
-
- Feb 23, 2009
-
-
Mike Frysinger authored
A forward port of the last version to work with the newer smc911x driver. I only have a board with a LAN9218 part on it, so that is the only one I've tested. But there isn't anything in this that would make it terribly chip specific afaik. Signed-off-by:
Mike Frysinger <vapier@gentoo.org> CC: Sascha Hauer <s.hauer@pengutronix.de> CC: Guennadi Liakhovetski <lg@denx.de> CC: Magnus Lilja <lilja.magnus@gmail.com> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
- Jan 24, 2009
-
-
Dirk Behme authored
Add common board, interrupt and system info code. Signed-off-by:
Dirk Behme <dirk.behme@googlemail.com>
-
- Aug 31, 2008
-
-
Nobuhiro Iwamatsu authored
Add support SH2/SH2A basic function. Signed-off-by:
Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> Signed-off-by:
Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
-
- Apr 08, 2008
-
-
Daniel Hellstrom authored
Signed-off-by:
Daniel Hellstrom <daniel@gaisler.com>
-
- Mar 04, 2008
-
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Mar 02, 2008
-
-
Woodruff, Richard authored
Fix alignment fault on ARM when running modules. With out an explicit linker file gcc4.2.1 will half word align __bss_start's value. The word dereference will crash hello_world. signed-off-by Richard Woodruff <r-woodruff2@ti.com>
-
- Feb 05, 2008
-
-
Mike Frysinger authored
Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Mike Frysinger authored
make smc91111_eeprom managment simpler by depending on the board configuration file rather than a hardcoded list of boards Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
- May 13, 2007
-
-
Nobuhiro Iwamatsu authored
Signed-off-by:
Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
-
- Mar 18, 2007
-
-
Aubrey Li authored
-
- Oct 24, 2006
-
-
Wolfgang Denk authored
Patch by Haavard Skinnemoen, 6 Sep 2006 16:23:02 +0200 This patch adds common infrastructure code for the Atmel AVR32 architecture. See doc/README.AVR32 for details. Signed-off-by:
Haavard Skinnemoen <hskinnemoen@atmel.com>
-
Wolfgang Denk authored
Based on patch by Haavard Skinnemoen, 29 Aug 2006 11:20:39 +0200
-
- Oct 08, 2006
-
-
Wolfgang Denk authored
Based on patch by Mike Frysinger, 20 Jun 2006
-
- Sep 01, 2006
-
-
Marian Balakowicz authored
Modifications are based on the linux kernel approach and support 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 and the object files are placed in the source directory.
-
Detlev Zundel authored
-
- Jun 08, 2006
-
-
Scott McNutt authored
-Fix asm/io.h macros -Eliminate use of CACHE_BYPASS in cpu code -Eliminate assembler warnings -Fix mini-app stubs and force no small data Patch by Scott McNutt, 08 Jun 2006
-
- Jun 02, 2006
-
-
Wolfgang Denk authored
-
- Apr 20, 2006
-
-
Heiko Schocher authored
Patch by Scott McNutt 11, Aug 2005 -Fix asm/io.h macros -Eliminate use of CACHE_BYPASS in cpu code -Eliminate assembler warnings -Fix mini-app stubs and force no small data
-
- Mar 12, 2006
-
-
Wolfgang Denk authored
- add support for Analog Devices Blackfin BF533 CPU - add support for the ADI BF533 Stamp uClinux board - add support for the ADI BF533 EZKit board Patches by Richard Klingler, June 11th 2005:
-
- Jan 26, 2006
-
-
Zachary P. Landau authored
-
- May 16, 2005
-
-
Wolfgang Denk authored
make port pins to trigger logic analyzer configurable
-
- May 07, 2005
-
-
Wolfgang Denk authored
(as standalone program, MPC8xx/PowerPC only)
-
- Jan 09, 2005
-
-
Wolfgang Denk authored
Add support for Wind River sbc405 board * Patch by Rainer Brestan, 12 Oct 2004: Make examples/Makefile more robust
-
- Oct 10, 2004
-
-
Wolfgang Denk authored
- Add support for Altera Nios-II processors. - Add support for Psyent PCI-5441 board. - Add support for Psyent PK1C20 board.
-
- Jul 10, 2004
-
-
Wolfgang Denk authored
Add support for WindRiver's SBC8560 board * Patch by Nicolas Lacressonniere, 24 Jun 2004 Small Bugs fixes for "at91rm9200dk" board: - Timing modifications for SPI DataFlash access - Fix NAND flash detection bug * Patch by Nicolas Lacressonniere, 24 Jun 2004: Add Support for Flash AT49BV6416 for AT91RM9200DK board
-
- May 19, 2004
-
-
Wolfgang Denk authored
Add Nios GDB/JTAG Console support: - Add stubs to support gdb via JTAG. - Add support for console over JTAG. - Minor cleanup.
-