summaryrefslogtreecommitdiffstats
path: root/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Makefile: build all manuals in $(O)/docs/manualPeter Korsgaard2011-10-261-8/+4
| | | | | | Like Arnouts' patch originally did. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* manual: refactor the targets into GENDOC macro.Arnout Vandecappelle (Essensium/Mind)2011-10-251-33/+52
| | | | | | | | | Also add a clean target, give absolute path to a2x, add a dependency on the output file, and add to .PHONY. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> [Peter: build in docs/manual/<format>, fix clean targets] Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* manual: provide make targets to build the documentationThomas Petazzoni2011-10-251-1/+43
| | | | | | | | | | | | Special thanks for Yann E. Morin for giving input and suggestions to implement this. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: Luca Ceresoli <luca@lucaceresoli.net> Reviewed by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> Acked-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> [Peter: skip double mention of manual target in make help] Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* package: add configuration option to specify a local override fileThomas Petazzoni2011-09-291-0/+7
| | | | | | | | | | | | | | | | | The user can now create a custom local override file to override the source directory for various packages. An example override file: ZLIB_OVERRIDE_SRCDIR = /tmp/zlib STRACE_OVERRIDE_SRCDIR = /opt/strace-4.5.20 would tell Buildroot to use the zlib and strace source code from the specified directories, instead of download, extracting and patching the code has done usually by Buildroot. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* support: move package/gnuconfig to support/gnuconfigThomas Petazzoni2011-09-171-1/+1
| | | | | | | | | | | | The CONFIG_UPDATE macro is no longer defined in package/gnuconfig/gnuconfig.mk, but instead in package/Makefile.autotools.in. It it also changed a little bit to take the directory of the package sources as argument, and the AUTOTARGETS infrastructure is updated to use this macro. [Peter: drop echo in CONFIG_UPDATE] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* support: move kconfig stuff from package/config to support/kconfigThomas Petazzoni2011-09-171-1/+1
| | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* support: move scripts/ to a new support/ directoryThomas Petazzoni2011-09-171-3/+3
| | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* kickoff 2011.11 development cyclePeter Korsgaard2011-09-051-1/+1
| | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Update for 2011.082011.08Peter Korsgaard2011-08-311-1/+1
| | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Update for 2011.08-rc22011.08_rc2Peter Korsgaard2011-08-291-1/+1
| | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* barebox: add barebox-<n/x/menu>config and barebox-savedefconfig supportJean-Christophe PLAGNIOL-VILLARD2011-08-241-0/+4
| | | | | | [Peter: only activate if barebox is enabled, fix deps] Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: add linux/linux26-savedefconfig supportJean-Christophe PLAGNIOL-VILLARD2011-08-221-0/+1
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Update for 2011.08-rc12011.08_rc1Peter Korsgaard2011-08-041-1/+1
| | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* 'source' target should depend on 'dirs'Thomas De Schampheleire2011-08-041-1/+1
| | | | | | | | | | | | | | In the following command flow: make distclean make <board>_defconfig make source the dl directory would normally be created by the first wget download. If there are no such downloads, e.g. because you use a local download mirror (e.g. scp, file) or only use git/svn/hg/bzr repositories, the dl directory is not created automatically. This causes e.g. the 'pushd' command in the respective _DOWNLOAD commands to fail. This patch adds a dependency to the 'dirs' target to 'source', fixing this scenario. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* make help: sort defconfigs for make 3.82Danomi Mocelopolis2011-07-171-1/+1
| | | | | | | | | Closes #3985 The wildcard function in make 3.82 no longer sorts the output, so add an explicit sort so the defconfigs are listed in a sensible order. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Makefile: unbreak source-checkYann E. MORIN2011-07-151-4/+1
| | | | | | | | | | | 'source-check' breaks because the *_DEFCONFIG options are empty strings. There is an explicit check to avoid erroring-out when doing 'source', but not when doing 'source-check'. This patch set DL_MODE right from the first sub-make call. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Makefile.package.in: Add BR2_XZCAT for LZMA compression typeAllan W. Nielsen2011-07-121-0/+1
| | | | | | Signed-off-by: Allan W. Nielsen <a@awn.dk> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Remove unused variable definitionsThomas Petazzoni2011-06-121-10/+0
| | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* kickoff 2011.08 development cyclePeter Korsgaard2011-06-061-1/+1
| | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Update for 2011.052011.05Peter Korsgaard2011-05-271-1/+1
| | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Update for 2011.05-rc22011.05_rc2Peter Korsgaard2011-05-241-1/+1
| | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Update for 2011.05-rc12011.05_rc1Peter Korsgaard2011-05-181-1/+1
| | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Get rid of unneeded CFLAGSPeter Korsgaard2011-05-051-4/+4
| | | | | | | | Now that we use a wrapper for external toolchains (and internal ones default to the correct setting), we no longer need to explicitly pass sysroot/march/mtune/mabi/floating point mode in TARGET_CFLAGS. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Add toolchain wrapper for external toolchainsPeter Korsgaard2011-05-051-3/+1
| | | | | | | | | | | | | | | | Add a simple toolchain wrapper for external toolchains, which forces the correct sysroot/march/mtune/floating point options needed to use it with buildroot. With this in place the external toolchain behaves similar to the internal ones, and the special handling can be removed. This also means that the toolchain is usable outside buildroot without having to pass any special compiler flags. Also adjust the downloadable external toolchain support to install under HOST_DIR so it can be used after the temporary build files are removed. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Makefile: make help: show busybox/ctng/linux/uclibc-menuconfig if enabledPeter Korsgaard2011-04-251-1/+13
| | | | | | For this we need to read .config. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Makefile: remove outdated make targetsPeter Korsgaard2011-04-251-5/+0
| | | | | | | busybox and linux26 no longer have a -config target, and prepatch only makes sense for a very specific configuration (BR toolchain with GDB enabled). Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Makefile: remove extra quotes around host linker flags for cygwinPeter Korsgaard2011-04-041-1/+1
| | | | | | Closes #3541 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Fix ccache handlingThomas Petazzoni2011-04-021-1/+1
| | | | | | | | | | | | | | | | | | When ccache support is enabled and 'make silentoldconfig' is being started from the following rule: $(BUILD_DIR)/buildroot-config/auto.conf: $(CONFIG_DIR)/.config $(MAKE) $(EXTRAMAKEARGS) HOSTCC="$(HOSTCC_NOCCACHE)" HOSTCXX="$(HOSTCXX_NOCCACHE)" silentoldconfig then, the Makefile in package/config inherits from HOSTCC/HOSTCXX values with the ccache prefix. However, if we start from a cleaned build (after make clean), ccache is not compiled yet, so things break. To solve this, we pass a noccache variant of HOSTCC/HOSTCXX down to the package/config Makefile. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* hostcc/hostcxx: fix noccache variant settingMike Frysinger2011-03-281-2/+2
| | | | | | | | | | | The current code accidentally sets up HOSTCC_NOCCACHE and HOSTCXX_NOCCACHE only when the respective HOSTCC or HOSTCXX values are not set. So if you do something like: make HOSTCC=gcc menuconfig The build fails because HOSTCC_NOCCACHE is not set anywhere. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* kickoff 2011.05 development cyclePeter Korsgaard2011-03-011-1/+1
| | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Update for 2011.022011.02Peter Korsgaard2011-02-281-1/+1
| | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Update for 2011.02-rc22011.02_rc2Peter Korsgaard2011-02-241-1/+1
| | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Update for 2011.02-rc12011.02_rc1Peter Korsgaard2011-02-141-1/+1
| | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Makefile: remove dead code (TARGET_SKELETON_PATCH)Bjørn Forsman2011-02-141-3/+0
| | | | | | | TARGET_SKELETON_PATCH is no longer in use, so remove it. Signed-off-by: Bjørn Forsman <bjorn.forsman@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* initial support for Blackfin processorsMike Frysinger2011-02-071-0/+1
| | | | | | | [Peter: don't allow MMU on bfin] Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* toolchain: introduce HOST_DIR optionGustavo Zacarias2011-02-021-2/+2
| | | | | | | | | | | | Allow the user to define HOST_DIR in the config menu. This way when building an internal toolchain a separate (maybe shared) output directory may be defined and the toolchain can be used by multiple users and/or projects. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Makefile: savedefconfig: save in O= directory for out-of-tree buildsPeter Korsgaard2011-02-021-1/+1
| | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* make help: document ncurses, make V=1 and make O=<dir>Peter Korsgaard2011-02-011-0/+4
| | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Makefile: generate CMake toolchain-file in $(O)Bjørn Forsman2011-01-261-1/+16
| | | | | | | | | | A CMake toolchain-file makes it easy to develop CMake-based packages outside of Buildroot. Just give the toolchain-file to CMake via the -DCMAKE_TOOLCHAIN_FILE=... option. Signed-off-by: Bjørn Forsman <bjorn.forsman@gmail.com> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Remove .py or .pyc depending on Python configurationThomas Petazzoni2011-01-251-0/+6
| | | | | | | We do this at a global level since several packages can install Python modules. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Update copyright info for 2011Peter Korsgaard2011-01-131-1/+1
| | | | | | Happy newyear! Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* toolchain: do staging symlinkGustavo Zacarias2011-01-021-1/+3
| | | | | | | | | | Make an output/staging -> sysroot symlink just for compatibility purposes. This may be gone in the future so don't count on it, use $(STAGING_DIR) instead. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* binutils: make it a proper packageGustavo Zacarias2011-01-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | * Convert binutils to a proper autotargets package * Add version 2.21 and drop version 2.17 * Hook up packaged binutils for target gcc * Build tools are on HOST_DIR now so change it * Move cross/host gcc to HOST_DIR * Drop kludge from commit 3c77bab2eeace3ee675bd745ca335fa3dd1630bb This is fixed in the next commit "gcc: install copies of libgcc, libstdc++ and libgcj to the sysroot" - tested for arm & x86_64 targets. * TARGET_CROSS now pointed to HOST_DIR too [Peter: Config.in tweaks] Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Reset critical environment variablesDaniel Nyström2010-12-291-0/+6
| | | | | | | | | | | Reset them early in top-level Makefile to ensure they're keept unset all the way through the build process. This also removes the requirement of these variables being unset globally prior the build. Signed-off-by: Daniel Nyström <daniel.nystrom@timeterminal.se> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* toolchain: move sysroot to host dirGustavo Zacarias2010-12-281-2/+0
| | | | | | | | * Drop the BR2_STAGING_DIR option * Hardcode STAGING_DIR to $(HOST_DIR)/usr/TUPLE/sysroot Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* toolchain: add support for external toolchain profiles and downloadThomas Petazzoni2010-12-131-1/+2
| | | | | | | | | | | | | | | | | | | Instead of letting the user define all the details of his external toolchain, we define a set of profiles for well-known external toolchains (CodeSourcery ones only at the moment, can easily be extended with other toolchains). Once a profile has been choosen, the user is offered the choice of either letting Buildroot download and install the external toolchain, or (as before) to tell Buildroot where the toolchain is installed on the system. We of course provide a "custom profile", through which the user can configure Buildroot to use a custom external toolchain for which no profile is available. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* ccache: rework ccache managementThomas Petazzoni2010-12-081-6/+20
| | | | | | | | | | | | | | * ccache is now a normal package (both for the host and the target). * ccache option is now part of the "Build options" menu. It will automatically build ccache for the host before building anything, and will use it to cache builds for both host compilations and target compilations. * bump ccache to 3.1.3 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Makefile: document savedefconfig in 'make help', like it's done in LinuxPeter Korsgaard2010-12-071-0/+1
| | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* buildroot: kickoff 2011.02 development phasePeter Korsgaard2010-12-031-1/+1
| | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Update for 2010.112010.11Peter Korsgaard2010-11-301-1/+1
| | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>