- Aug 23, 2009
-
-
Mike Frysinger authored
Start a common header file for common linker script code (such as workarounds for older linkers) rather than doing this in the build system. As fallout, we no longer execute the linker every time config.mk is included by a build file (which can easily be 70+ times), but rather only execute it once. This also fixes a bug in the major version checking by creating a macro to easily compare versions and keep people from making the same common mistake (forgetting to check major and minor together). Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
- Aug 21, 2009
-
-
Wolfgang Denk authored
Commit f62fb999 fixed handling of all rodata sections by using a wildcard combined with calls to ld's builtin functions SORT_BY_ALIGNMENT() and SORT_BY_NAME(). Unfortunately these functions were only introduced with biunutils version 2.16, so the modification broke building with all tool chains using older binutils. This patch makes it work again. This is done by omitting the use of these functions for such old tool chains. This will result in slightly larger target binaries, as the rodata sections are no longer in optimal order alignment-wise which reauls in unused gaps, but the effect was found to be insignificant - especially compared to the fact that you cannot build U-Boot at all in the current state. As ld seems to have no support for conditionals we run the linker script through the C preprocessor which can be easily used to remove the unwanted function calls. Note that the C preprocessor must be run with the "-ansi" (or a "-std=") option to make sure all the system-specific predefined macros outside the reserved namespace are suppressed. Otherise, cpp might for example substitute "powerpc" to "1", thus corrupting for example "OUTPUT_ARCH(powerpc)" etc. Signed-off-by:
Wolfgang Denk <wd@denx.de> Cc: Mike Frysinger <vapier@gentoo.org>
-
Wolfgang Denk authored
For some time there have been repeated reports about build problems with some ARM (cross) tool chains. Especially issues about (in)compatibility with the tool chain provided runtime support library libgcc.a caused to add and support a private implementation of such runtime support code in U-Boot. A closer look at the code indicated that some of these issues are actually home-made. This patch attempts to clean up some of the most obvious problems and make building of U-Boot with different tool chains easier: - Even though all ARM systems basicy used the same compiler options to select a specific ABI from the tool chain, the code for this was distributed over all cpu/*/config.mk files. We move this one level up into lib_arm/config.mk instead. - So far, we only checked if "-mapcs-32" was supported by the tool chain; if yes, this was used, if not, "-mabi=apcs-gnu" was selected, no matter if the tool chain actually understood this option. There was no support for EABI conformant tool chains. This patch implements the following logic: 1) If the tool chain supports "-mabi=aapcs-linux -mno-thumb-interwork" we use these options (EABI conformant tool chain). 2) Otherwise, we check first if "-mapcs-32" is supported, and then check for "-mabi=apcs-gnu" If one test succeeds, we use the first found option. 3) In case 2), we also test if "-mno-thumb-interwork", and use this if the test succeeds. [For "-mabi=aapcs-linux" we set "-mno-thumb-interwork" mandatorily.] This way we use a similar logic for the compile options as the Linux kernel does. - Some EABI conformant tool chains cause external references to utility functions like raise(); such functions are provided in the new file lib_arm/eabi_compat.c Note that lib_arm/config.mk gets parsed several times, so we must make sure to add eabi_compat.o only once to the linker list. Signed-off-by:
Wolfgang Denk <wd@denx.de> Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Cc: Dirk Behme <dirk.behme@googlemail.com> Cc: Magnus Lilja <lilja.magnus@gmail.com> Cc: Tom Rix <Tom.Rix@windriver.com> Cc: Prafulla Wadaskar <prafulla@marvell.com> Acked-by:
Sergey Kubushyn <ksi@koi8.net> Tested-by:
Magnus Lilja <lilja.magnus@gmail.com> Tested-by:
Andrzej Wolski <awolski@poczta.fm> Tested-by:
Gaye Abdoulaye Walsimou <walsimou@walsimou.com> Tested-by:
Tom Rix <Tom.Rix@windriver.com> Tested-by:
Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
-
- Jul 20, 2009
-
-
Peter Tyser authored
This cleans up U-Boot's toplevel directory a bit and makes the architecture 'config.mk' file naming and location similar to board and cpu 'config.mk' files Signed-off-by:
Peter Tyser <ptyser@xes-inc.com>
-
- Jul 19, 2009
-
-
Shinya Kuribayashi authored
This variable is not unused anywhere. Signed-off-by:
Shinya Kuribayashi <skuribay@pobox.com>
-
- Jul 17, 2009
-
-
Shinya Kuribayashi authored
The following commit introduced $(PCI_CLOCK) reference so that we could tweak `PCI_66M' definition via an environment variable. > commit f046ccd1 > Author: Eran Liberty <liberty@freescale.com> > Date: Thu Jul 28 10:08:46 2005 -0500 > > * Patch by Eran Liberty > Add support for the Freescale MPC8349ADS board. But I suggest a removal of it for the following reasons: * In 2006, MPC8349ADS was merged into MPC8349EMDS port, and it seems that MPC8349EMDS port is PCI_66M free. * OTOH, PCI_66M is used by MPC832XEMDS an MPC8360EMDS ports, but they don't need $(PCI_CLOCK) environment variable at all. PCI_66M is automatically configured via $(BOARD)_config names with the help of $(findstring _66_,$@). * Unfortunately $(PCI_CLOCK) has been undocumented anywhere, so only a few people know the existence of it these days. * Keep config.mk independent from $(BOARD) as much as possible. Signed-off-by:
Shinya Kuribayashi <skuribay@pobox.com> Acked-by:
Kim Phillips <kim.phillips@freescale.com>
-
- Jun 14, 2009
-
-
Mike Frysinger authored
The Linux kernel has some helper rules which allow you to quickly produce some of the intermediary files from C source. Specifically, you can create .i files which is the preprocessed output and you can create .s files which is the assembler output. This is useful when you are trying to track down header/macro expansion errors or inline assembly errors. Signed-off-by:
Mike Frysinger <vapier@gentoo.org> Acked-by:
Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
-
Mike Frysinger authored
With our Blackfin boards, we like to build the compression routines with -O2 as our tests show a pretty good size/speed tradeoff. For the rest of U-Boot though, we want to stick with the default -Os as that is mostly control code. So in our case, we would add a line like so to the board specific config.mk file: CFLAGS_lib_generic += -O2 Now all files under lib_generic/ will have -O2 appended to their build. Signed-off-by:
Mike Frysinger <vapier@gentoo.org> Acked-by:
Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
-
- Jun 12, 2009
-
-
Jean-Christophe PLAGNIOL-VILLARD authored
as $(obj) is empty when in tree build %.s: %.S $(CPP) $(AFLAGS) -o $@ $< and $(obj)%.s: %.S $(CPP) $(AFLAGS) -o $@ $< are the same Signed-off-by:
Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Acked-by:
Mike Frysinger <vapier@gentoo.org>
-
- Jan 18, 2009
-
-
Mike Frysinger authored
The x86 based version of Darwin behaves the same quirky way as the powerpc Darwin, so only check HOSTOS when setting up Darwin workarounds. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
- Dec 08, 2008
-
-
Peter Tyser authored
Make should be using the bash shell by default which makes CONFIG_SHELL unnecessary Signed-off-by:
Peter Tyser <ptyser@xes-inc.com>
-
- Sep 12, 2008
-
-
Shinya Kuribayashi authored
__ARM__ is given by arm_config.mk automatically. Signed-off-by:
Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
-
- Sep 06, 2008
-
-
Shinya Kuribayashi authored
Signed-off-by:
Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
-
- Jun 26, 2008
-
-
Haavard Skinnemoen authored
When compile-testing on powerpc, I get errors like this: net/nfs.c:422: undefined reference to `__stack_chk_fail_local' This seems to be because -fstack-protector is on by default, so let's explicitly disable it on all architectures that support the option. The Ubuntu toolchain is affected by this problem, and according to Mike Frysinger, Gentoo has been running with SSP enabled for years. More and more distros are turning SSP on by default, so this problem is likely to get worse in the future. Also, powerpc just happens to be one of the arches I do compile-testing on. There may be other arches affected by this too. Signed-off-by:
Haavard Skinnemoen <hskinnemoen@atmel.com>
-
- May 20, 2008
-
-
Wolfgang Denk authored
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>
-
- May 03, 2008
-
-
Wolfgang Denk authored
Some config.mk files reference $(CC) to test for specific tool chain features, so make sure $(CC) gets set before including any such config files. This patch replaces commit b7166e05 ("ColdFire: Get information from the correct GCC"). Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Feb 22, 2008
-
-
Mike Frysinger authored
This bumps the autoconf.mk include step above board/cpu/arch/etc... so that those .mk files can have make if statements based on the current config. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
- Feb 14, 2008
-
-
Mike Frysinger authored
Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
- Feb 05, 2008
-
-
Mike Frysinger authored
Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
- Nov 21, 2007
-
-
Grant Likely authored
Use cpp and sed to postprocess config.h and import the defined values into include/autoconf.mk. autoconf.mk is then included by config.mk to give 'make' access to the board configuration. Doing this enables conditional compilation at the Makefile level instead of by wrapping every .c file with #ifdef/#endif wrappers. Signed-off-by:
Grant Likely <grant.likely@secretlab.ca>
-
- Nov 03, 2007
-
-
Shinya Kuribayashi authored
Signed-off-by:
Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
-
- Mar 09, 2007
-
-
Aubrey.Li authored
-
- Oct 28, 2006
-
-
Wolfgang Denk authored
-
- Oct 27, 2006
-
-
Haavard Skinnemoen authored
When passing the -g option to gcc, gcc automatically selects a suitable --g<format> option to pass on to the assembler. Thus, there's no point in forcing a specific debug option on the assembler using the -Wa mechanism. Signed-off-by:
Haavard Skinnemoen <hskinnemoen@atmel.com>
-
- Oct 24, 2006
-
-
Wolfgang Denk authored
Patch by Haavard Skinnemoen, 30 Aug 2006 In config.mk, -Wa,-gstabs is unconditionally appended to AFLAGS no matter what the target's preferred debugging format is. This patch simply replaces -gstabs with -g, so that the default debugging format for the architecture is used.
-
- Oct 08, 2006
-
-
Wolfgang Denk authored
Based on patch by Mike Frysinger, 20 Jun 2006
-
Wolfgang Denk authored
-
- Sep 07, 2006
-
-
Stefan Roese authored
- Add support for PPC440EPx & PPC440GRx - Add support for PPC440EP(x)/GR(x) NAND controller in cpu/ppc4xx directory - Add NAND boot functionality for Sequoia board, please see doc/README.nand-boot-ppc440 for details - This Sequoia NAND image doesn't support environment in NAND for now. This will be added in a short while. Patch by Stefan Roese, 07 Sep 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.
-
- May 17, 2006
-
-
Marian Balakowicz authored
-
- May 09, 2006
-
-
Marian Balakowicz authored
based on patch by Jate Sujjavanich.
-
- Apr 20, 2006
-
-
Heiko Schocher authored
relocate ichache_State to ram u-boot can run from internal flash Add EB+MCF-EV123 board support. Add m68k Boards to MAKEALL Patch from Jens Scharsig, 08 Aug 2005
-
- 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:
-
- Mar 06, 2006
-
-
Wolfgang Denk authored
-
- Feb 28, 2006
-
-
Markus Klotzbcher authored
-
- Feb 07, 2006
-
-
Markus Klotzbcher authored
done so far: * created zylonite board dir (based on lubbock) * extended some - but not all pxa sources and headers for Intel Monahans support (CONFIG_CPU_MONAHANS) * created Makefile zylonite target + MAKEALL entry * added some debug nonsense, remove later, grep for mk@tbd Status: compiles (eldk-4.0), and can be started with BDI, but runs forever and doesn't halt at breakpoints. Hmmm...
-
- Oct 04, 2005
-
-
Wolfgang Denk authored
Correct addessing errors in platform files. Split off common core module data from Integrator header files to include/armcoremodule.h. Patch by Peter Pearse, 04 Oct 2005
-
Wolfgang Denk authored
Import "cc-option" shell function from kernel and use it to get the correct ARM GCC options for individual CPUs Patch by Peter Pearse, 30 Jun 2005
-
- Jul 28, 2005
-
-
Eran Liberty authored
Add support for the Freescale MPC8349ADS board.
-
- Oct 09, 2004
-
-
Wolfgang Denk authored
- Introducing the concept of SoCs "./cpu/$(CPU)/$(SOC)" - creating subdirs for SoCs ./cpu/arm920t/imx and ./cpu/arm920t/s3c24x0 - moving SoC specific code out of cpu/arm920t/ into cpu/arm920t/$(SOC)/ - moving drivers/s3c24x0_i2c.c and drivers/serial_imx.c out of drivers/ into cpu/arm920t/$(SOC)/
-