summaryrefslogtreecommitdiffstats
path: root/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Release v2014.04.0v2014.04.0Sascha Hauer2014-04-041-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/env'Sascha Hauer2014-03-071-1/+19
|\
| * defaultenv: Allow multiple defaultenvironment overlaysSascha Hauer2014-02-281-1/+2
| | | | | | | | | | | | | | | | | | | | We can compile barebox for multiple boards at once, but currently they all share a single default environment. This patch adds a defaultenv_append() which boards can call to customize the default environment during runtime. Each board now generate default environment snippets using bbenv-y and add them during runtime with defaultenv_append() Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * make: Add bbenv-y target to generate default environment filesSascha Hauer2014-02-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a target to generate environment files from directories. These are compiled into the barebox binary. use it as: bbenv-$(CONFIG_SOMETHING) += my-environment The directory containing the files to compile into the binary should be named my-environment. This can be accessed in C code later as: extern unsigned char __bbenv_my_environment_start[]; extern unsigned char __bbenv_my_environment_end[]; Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Kconfig: Select default compression typeSascha Hauer2014-02-191-0/+17
| | | | | | | | | | | | | | | | | | | | Instead of asking explicitly for the default environment compression type ask for the in-barebox default compression type. This also adds a DEFAULT_COMPRESSION_SUFFIX make variable which can be used together with the wildcard rules for compressed files to generate compressed files without explicitly support each compression type. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Release v2014.03.0v2014.03.0Sascha Hauer2014-03-071-1/+1
|/ | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Release v2014.02.0v2014.02.0Sascha Hauer2014-02-031-2/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Release v2014.01.0v2014.01.0Sascha Hauer2014-01-071-3/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Makefile: fix endless make when 'make barebox.s'Du Huanpeng2013-12-191-2/+2
| | | | | | | | add the same target barebox.s (with a lowercase 's') to make both work with barebox.S and barebox.s. Signed-off-by: Du Huanpeng <u74147@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Release v2013.12.0v2013.12.0Sascha Hauer2013-12-061-2/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Release v2013.11.0v2013.11.0Sascha Hauer2013-11-071-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Release v2013.10.0v2013.10.0Sascha Hauer2013-10-071-2/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/misc'Sascha Hauer2013-09-051-3/+3
|\
| * small tweeks to build system for compatibility on MacOS XDarren Garnier2013-09-031-3/+3
| | | | | | | | | | Signed-off-by: Darren Garnier <dgarnier@reinrag.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Release v2013.09.0v2013.09.0Sascha Hauer2013-09-041-1/+1
|/ | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Release v2013.08.0v2013.08.0Sascha Hauer2013-08-051-2/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/multi-image'Sascha Hauer2013-07-011-0/+10
|\
| * Add multi images supportSascha Hauer2013-07-011-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds the make infrastructure to build multiple SoC or board specific images from a single barebox binary. The basic idea is that we no longer have a single pbl, but instead multiple pbls, one per image if necessary. Each pbl is defined by its entry function so that each pbl can do exactly what a given board needs. Additionally the pbls together with a self extracting barebox binary can be encapsulated in specific image formats. squashed in build fixes from Lucas Stach for make version >= 3.82: Split Multimage Makefile rule in explicit and implicit parts Fixes build with make version >=3.82 Frome the make 3.82 NEWS file: * WARNING: Backward-incompatibility! In previous versions of make it was acceptable to list one or more explicit targets followed by one or more pattern targets in the same rule and it worked "as expected". However, this was not documented as acceptable and if you listed any explicit targets AFTER the pattern targets, the entire rule would be mis-parsed. This release removes this ability completely: make will generate an error message if you mix explicit and pattern targets in the same rule. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Lucas Stach <dev@lynxeye.de>
* | Merge branch 'for-next/misc'Sascha Hauer2013-07-011-1/+1
|\ \
| * | Makefile: make silent module build more silentSascha Hauer2013-06-211-1/+1
| |/ | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / Release v2013.07.0v2013.07.0Sascha Hauer2013-07-011-1/+1
|/ | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/marvell'Sascha Hauer2013-06-021-1/+1
|\ | | | | | | | | Conflicts: arch/arm/Makefile
| * arm: integrate kwbimage in the image generationThomas Petazzoni2013-05-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a ARCH_MVEBU platform is selected, generate barebox.kwb and barebox.kwbuart images from barebox.bin, using kwbimage. barebox.kwb is generated by executing kwbimage on the board kwbimage.cfg file, and is therefore designed to be booted from the default boot media of the board, as defined by kwbimage.cfg (typically a NAND flash or SPI flash). barebox.kwbuart is generated by executing kwbimage on the board kwbimage.cfg file, but by overriding the boot media to be UART. This image is suitable for usage with the kwbtool and is generally useful for recovery purposes. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Tested-by: Gregory CLEMENT <gregory.clement@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Squashed this fixup: arm: ensure the build doesn't fail when kwbimage lacks the binary blob mach-mvebu images for Armada 370 and Armada XP SoC require a DDR3 training code which should be extracted from existing bootable images for the relevant board. When such binary blob has not been extracted, the build of the .kwb and .kwbuart images will fail. This is annoying as it makes the build of all Armada 370/XP defconfig fail, which can be a problem for automated builds. This proposal makes the failure of kwbimage not a fatal failure for the build process, and shows a warning. The user therefore sees: ==================================================================== KWB barebox.kwb Didn't find the file 'plathome-openblocks-ax3-binary.0' in '/home/thomas/projets/barebox' which is mandatory to generate the image This file generally contains the DDR3 training code, and should be extracted from an existing bootable image for your board. See 'kwbimage -x' to extract it from an existing image. Could not create image WARNING: Couldn't create KWB image due to previous errors. KWBUART barebox.kwbuart Didn't find the file 'plathome-openblocks-ax3-binary.0' in '/home/thomas/projets/barebox' which is mandatory to generate the image This file generally contains the DDR3 training code, and should be extracted from an existing bootable image for your board. See 'kwbimage -x' to extract it from an existing image. Could not create image WARNING Couldn't create KWB image due to previous errors. ==================================================================== The only drawback is that barebox-flash-image, which normally points to barebox.kwb, becomes a stale symbolic link. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Release v2013.06.0v2013.06.0Sascha Hauer2013-06-021-1/+1
|/ | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/remove-config-h'Sascha Hauer2013-05-061-6/+12
|\
| * Makefile: Create empty <config.h> if this header file is not needed by boardAlexander Shiyan2013-04-091-6/+12
| | | | | | | | | | | | | | | | Patch creates empty <config.h> if this header is not needed by board. This will allow to remove many empty config.h files from boards. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/misc'Sascha Hauer2013-05-061-3/+0
|\ \
| * | Makefile: drop duplicate definition of cmd_objcopyJan Luebbe2013-04-191-3/+0
| |/ | | | | | | | | | | | | | | This command is already defined in scripts/Makefile.lib, which is included from Makefile. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / Release v2013.05.0v2013.05.0Sascha Hauer2013-05-061-1/+1
|/ | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/oftree'Sascha Hauer2013-04-041-1/+1
|\
| * ARM: Initial dts supportSascha Hauer2013-03-121-1/+1
| | | | | | | | | | | | | | | | - Add rules to generate dtb files in arch/arm/dts/ - add an initcall which unflattens and probes the internal devicetree - Add skeleton devicetree Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/misc'Sascha Hauer2013-04-041-59/+2
|\ \
| * | Make: update setlocalversion from the kernelSascha Hauer2013-03-091-59/+2
| |/ | | | | | | | | | | | | | | | | | | This syncs the localversion generation with the kernel. At least one effect is that a barebox built from a tar archive no longer marks itself as dirty. Also it moves some stuff from a scary Makefile to a not-so-scary shell script. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / Release v2013.04.0v2013.04.0Sascha Hauer2013-04-041-1/+1
|/ | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Release v2013.03.0v2013.03.0Sascha Hauer2013-03-041-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Release v2013.02.0v2013.02.0Sascha Hauer2013-02-041-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Makefile: move cmd_check_file_size to Makefile.libJean-Christophe PLAGNIOL-VILLARD2013-01-201-11/+0
| | | | | | | so we can use to check pbl Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Release v2013.01.0v2013.01.0Sascha Hauer2013-01-091-2/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/misc'Sascha Hauer2012-12-071-108/+3
|\
| * Makefile: move ctags and cscope support to a shell scriptAntony Pavlov2012-12-031-108/+3
| | | | | | | | | | | | | | The scripts/tags.sh file copied from linux-3.6. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Release v2012.12.0v2012.12.0Sascha Hauer2012-12-071-1/+1
|/ | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/misc'Sascha Hauer2012-11-161-3/+3
|\ | | | | | | | | | | | | Conflicts: commands/Makefile Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * make make -s more silentSascha Hauer2012-10-171-3/+3
| | | | | | | | | | | | | | use $(kecho) instead of echo to not output messages with make -s Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Release v2012.11.0v2012.11.0Sascha Hauer2012-11-161-1/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Makefile: disable CDPATHWolfram Sang2012-10-251-0/+3
| | | | | | | | | | | | | | | | | | CDPATH has sideeffects when generating barebox_default_env.h (printing the directory name into the header file), causing a build failure. Disable it for the build. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Makefile: Add missing force for barebox-flash-imageSascha Hauer2012-10-121-1/+1
|/ | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/defaultenv-deps'Sascha Hauer2012-10-031-1/+1
|\
| * environment generation: Fix dependenciesSascha Hauer2012-09-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The dependencies for generating the environment do not work properly: - If files are removed from the defaultenv, a subsequent make will not update the default environment. - If CONFIG_DEFAULT_ENVIRONMENT_PATH changes, the default environment also will not be regenerated. This patch fixes this by introducing a cmd_env which has the content of $(ENV_FILES) in the command so that the if_changed mechanism recognizes a change when $(ENV_FILE) changes. This also results in a nice " ENV " string in the build process. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/omap'Sascha Hauer2012-10-031-1/+1
|\ \ | | | | | | | | | | | | Conflicts: Makefile
| * | scripts: add tool to create image for SPI boot on AM35xxJan Luebbe2012-10-021-1/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Booting from SPI on an AM35xx (and possibly other TI SOCs) requires a special format: - 32 bit image size in big-endian - 32 bit load address in big-endian - binary image converted from little- to big-endian The mk-am35xx-spi-image tool converts barebox.bin to this format. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>