summaryrefslogtreecommitdiffstats
path: root/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Makefile: use absolute path for TOPDIRPeter Korsgaard2009-11-301-1/+2
| | | | | | | | | Reported by mr_claus on IRC. This ensure DL_DIR is always an absolute path, like it was before the build dir reorganization - Fixes vim (patch) build. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Makefile: cleanup *clean targetsPeter Korsgaard2009-11-201-27/+14
| | | | | | | | | | | | | | As discussed on the list, fixup the *clean targets, so we now have: clean: remove all generated files (E.G. everything in output/) distclean: same as clean, but also remove the kconfig build and .config Also tweak 'make help' output to match. This also merges the two different clean / distclean targets we had depending on if there was a .config present or not (most variables are not defined for !.config case, so E.G. the clean target ends up being a noop). Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* buildroot; move defconfigs to configs/ and print in helpPeter Korsgaard2009-10-041-3/+6
| | | | | | | | | | As discussed earlier on the mailing list. It simplifies code, gives more sensible error message on typos and makes the defconfigs easier to find for users. Furthermore, update documentation to match. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Makefile: add rand/allyes/allno package config targetsPeter Korsgaard2009-10-041-2/+32
| | | | | | | | Similar to the normal targets, but only affects the BR2_PACKAGE_* options. E.G. handy for keeping your current toolchain config while testing (random) packages. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Makefile: update help textPeter Korsgaard2009-10-041-6/+7
| | | | | | | | | get rid of the removed saveconfig/getconfig targets, and instead document randconfig/defconfig/allyesconfig/allnoconfig. Furthermore, get rid of the unused tags target. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Makefile: reinstate /etc/br-versionPeter Korsgaard2009-09-301-0/+4
| | | | | | Got lost in the recent cleanup, but is handy to know BR version. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Makefile: be more quiet when make -s is usedPeter Korsgaard2009-09-301-0/+3
| | | | | | Somehow got lost in the recent reorganisation. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Makefile: Remove ancient 'sourceball' targetMichael Roth2009-09-231-9/+0
| | | | | Signed-off-by: Michael Roth <mroth@nessie.de> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Remove unneeded trailing slash from TOPDIRMichael Roth2009-09-231-1/+1
| | | | | Signed-off-by: Michael Roth <mroth@nessie.de> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Move download directory 'dl' back to the top hierachy of buildrootMichael Roth2009-09-231-2/+2
| | | | | Signed-off-by: Michael Roth <mroth@nessie.de> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* rename TOOL_BUILD_DIR to TOOLCHAIN_DIRMichael Roth2009-09-231-4/+4
| | | | | | | | To reflect the new output directory hierachy rename the Makefile variable TOOL_BUILD_DIR to TOOLCHAIN_DIR. Signed-off-by: Michael Roth <mroth@nessie.de> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Rename the output directoriesThomas Petazzoni2009-09-161-5/+5
| | | | | | | | | | | | | | | | | | | In the output directory, we now have - build/ where all the packages are built - images/ where the final kernel and rootfs images are stored - staging/ the staging directory (containing the development files and libraries compiled for the target) - target/ which contains the target root filesystem - host/ which contains all the host programs - stamps/ which contains the stamps files Therefore, the build_ARCH and toolchain_build_ARCH have been removed. People willing to use the same Buildroot sources to compile for different architectures are invited to use the O= command line option for out-of-tree compilation. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Remove BR2_TOPDIR_PREFIX and BR2_TOPDIR_SUFFIXThomas Petazzoni2009-09-161-10/+1
| | | | | | The same effect can be done using out-of-tree build with O= Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* By default, put the output in an output/ directoryThomas Petazzoni2009-09-161-9/+6
| | | | | | | Instead of putting all the build-related stuff as a mess in the Buildroot sources, group them in an output/ directory. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Remove the BOARD/LOCAL featureThomas Petazzoni2009-09-161-15/+0
| | | | | | | | | | This can be achieved by adding a new target in target/device/, and I will later propose a mechanism to add external boards and packages, so that our users not willing to get their target-specific or package-specific things merged can keep them cleanly separated from Buildroot tree. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Remove the "project" featureThomas Petazzoni2009-09-161-33/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The "project" feature was designed to allow to several projects to be built inside the same Buildroot source tree and allowing the toolchain and non-configurable packages to be shared between the different projects on the same architecture. While being interesting in theory, this feature adds a level of complexity to Buildroot, both from an user perspective and from a developer perspective, while one of the main Buildroot strengh is to be simple. Moreover, this feature is only seldomly used by our users. From a user-level perspective, this for example allows to remove the project_build_ARCH directory, which was very confusing. The autotools-stamps directory is also removed, since these stamps are back at their normal location. Description of the changes involved : * project/, directory removed * Makefile - Don't include project/Makefile.in and project/project.mk anymore - Grab a copy of the contents of project/Makefile.in at the location it was imported, but remove the definition related to PROJECT_BUILD_DIR. The TARGET_DIR is now in $(BUILD_DIR)/target_dir - Remove the creation/removal of the $(PROJECT_BUILD_DIR) and $(PROJECT_BUILD_DIR)/autotools-stamps directories - Don't make world depends on target-host-info. This target was defined by project/project.mk to customize /etc/issue, /etc/hostname and create /etc/br-version depending on the project definitions. We can of course imagine re-adding such a feature later. - Replace PROJECT_BUILD_DIR by BUILD_DIR everywhere - Remove the update, log and lognr.$(PROJECT) target, they were specific to the project feature. * package/Makefile.autotools.in - Replace PROJECT_BUILD_DIR by BUILD_DIR for the location of the configure cache - Move the INSTALL_TARGET and HOOK_POST_INSTALL stamps to the same directory as the other stamps (i.e, in the package directory). * package/Makefile.in - Replace PROJECT_BUILD_DIR by BUILD_DIR for the location of the configure cache * package/at/at.mk, package/busybox/busybox.mk, package/busybox/initramfs.mk, package/customize/customize.mk, package/linux-fusion/linux-fusion.mk, package/ltp-testsuite/ltp-testsuite.mk, package/nfs-utils/nfs-utils.mk, target/cpio/cpioroot.mk, target/cramfs/cramfs.mk, target/device/Atmel/DataFlashBoot/DataflashBoot.mk, target/device/Atmel/Makefile.in, target/device/Atmel/at91bootstrap/at91bootstrap.mk, target/device/KwikByte/Makefile.in, target/ext2/ext2root.mk, target/initramfs/initramfs.mk, target/iso9660/iso9660.mk, target/jffs2/jffs2root.mk, target/linux/Makefile.in, target/romfs/romfs.mk, target/squashfs/squashfsroot.mk, target/tar/tarroot.mk, target/ubifs/ubifsroot.mk - Replace PROJECT_BUILD_DIR by BUILD_DIR * target/device/Config.in - Do not include project/Config.in anymore * target/linux/Makefile.in.advanced - Replace PROJECT_BUILD_DIR by BUILD_DIR - Store the stamps file in $(STAMP_DIR) instead of $(PROJECT_BUILD_DIR)/autotools-stamps * target/u-boot/Makefile.in - Replace PROJECT_BUILD_DIR by BUILD_DIR - Remove $(PROJECT) from the U-Boot target binary name - Remove the insertion in the configuration of the project name as the hostname - The u-boot-autoscript target now generates $(U_BOOT_AUTOSCRIPT).img instead of $(U_BOOT_AUTOSCRIPT).$(PROJECT) * toolchain/gcc/gcc-uclibc-3.x.mk toolchain/gcc/gcc-uclibc-4.x.mk - Move the stamps files to $(STAMP_DIR) Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* makefile: use qstripThomas Petazzoni2009-09-051-2/+1
| | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* makefile: new qstrip make functionThomas Petazzoni2009-09-051-0/+4
| | | | | | | | | | Define a qstrip function that strips double quotes and then whitespaces around a given string. This is a very commonly needed thing, and having a function allows to remove a large quantity of hand-written definitions, followed by a dummy comment to make text editors not crazy because of the unmatching double quote. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Makefile: Ensure CVS directories are removed from target fs.Will Newton2009-08-261-1/+1
| | | | | | | | | | | | The find command syntax is incorrect when deleting CVS and .svn directories from the target filesystem, which prevent CVS directories from being deleted. It's useful to delete these dirs because users of buildroot often import buildroot into CVS or Subversion. Signed-off-by: Will Newton <will.newton@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Makefile: add the xconfig target to the help of the main MakefileThomas Petazzoni2009-07-271-0/+1
| | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Merge branch 'kconfig-update' of git://git.busybox.net/~tpetazzoni/git/buildrootPeter Korsgaard2009-07-271-3/+19
|\
| * config: Add support for xconfigAlper Yildirim2009-07-271-3/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It involved: * Modifying the top-level Makefile to create the xconfig target, and the $(CONFIG)/qconf target to compile the qconf utility * Modifying the package/config/Makefile magic so that C++ files and binaries gets linked properly, re-using the package/config/Makefile.kconfig logic inherited from the kernel * Hacking a little bit package/config/Makefile.kconfig in a way similar to the modifications done for the mconf (menuconfig interface) Signed-off-by: Alper Yildirim <ayildirim@aselsan.com>
* | Add support for custom post-build scriptDaniel Mack2009-07-251-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The config help text says it all: Specify a script to be run after the build has finished and before the BR2 starts packing the files into selected packages. This gives users the oportunity to do board-specific cleanups, add-ons and the like, so the generated files can be used directly without further processing. The script is called with the target directory name as first and only argument. Make sure the exit code of that script is 0, otherwise make will stop after calling it. Signed-off-by: Daniel Mack <daniel@caiaq.de> Cc: Sven Neumann <s.neumann@raumfeld.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* | Makefile: apply xtensa specific TARGET_SKELETON_PATCH if availableMaxim Grigoriev2009-07-241-0/+3
|/ | | | | | | Part of #163. Signed-off-by: Maxim Grigoriev <maxim2405@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Older versions of 'find' don't have the '-delete' optionWade Berrier2009-04-281-4/+4
| | | | Use find's '-print0' and 'xargs -0' as an equivalent alternative.
* Makefile: distclean: remove correct dirsPeter Korsgaard2009-04-171-3/+2
| | | | | | Remove toolchain build dir, and don't try to remove the non-existing include dir. Also don't explicitly remove the kernel image located in binaries as we're already removing that dir.
* Makefile: add target-finalize for common filesystem cleanupPeter Korsgaard2009-04-071-2/+10
| | | | And remove from each rootfs variant.
* Makefile: add BR2_ENABLE_LOCALE_PURGE to purge unwanted localesPeter Korsgaard2009-04-061-0/+22
| | | | | | | | | Add BR2_ENABLE_LOCALE_PURGE / BR2_ENABLE_LOCALE_WHITELIST options to remove unwanted locales from the target rootfs. Handy for stuff like the gtk stack, which comes with ~25 MB locales. Works similar to localepurge in Debian, E.G. you provide a white list of wanted locales, and everything else is removed.
* Makefile: target-devfiles: combine .a / .la find invocationPeter Korsgaard2009-04-061-5/+3
|
* package: add STAMP_DIR and use for host buildsPeter Korsgaard2009-03-191-5/+5
| | | | | | | | | | | | | | Move stamp (dependency) files outside the (version specific) source directories, so other packages can hardcode dependencies on them instead of having to use <PACKAGE>_VERSION variables. This is important as the variables in the make rules are evaluated when the rules is seen, which might be before the dependent makefile is parsed (and hence <PACKAGE>_VERSION variable is known, screwing up stuff. The downside of this is that the package isn't automatically rebuilt when the version changes (E.G. by a svn update) and you now also have to remove the stamp files next to $(BUILD_DIR)/<PACKAGE>-* to force a rebuild.
* Makefile: introduce $(HOST_DIR) for host binariesPeter Korsgaard2009-03-161-3/+3
| | | | | Add HOST_DIR directory handling. HOST_DIR should be used just like STAGING_DIR, but for host files instead of target ones.
* make update shoudl save to PROJECT_defconfigUlf Samuelsson2009-01-311-1/+1
|
* make flush, should always be visibleUlf Samuelsson2009-01-291-2/+3
|
* Makefile: fix typo introduced in r25601Peter Korsgaard2009-01-261-1/+1
|
* Fix spelling error in Makefile commentUlf Samuelsson2009-01-261-2/+2
|
* libglib2: move HOST_GLIB detection to glib packagePeter Korsgaard2009-01-261-3/+0
| | | | | Makes more sense to have it here, and easier to change once we start building host-glib.
* Flush configuration cache, needed if config has changedUlf Samuelsson2009-01-251-0/+4
|
* Makefile: globally define variables used at different placesPeter Korsgaard2009-01-251-0/+5
| | | | | | $(comma) and $(space) are used in packages and the toolchain. Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
* Add help for make configuredUlf Samuelsson2009-01-221-0/+1
|
* Makefile: update copyrightPeter Korsgaard2009-01-161-0/+1
|
* Makefile: implement make releasePeter Korsgaard2009-01-151-0/+6
|
* Mention the saveconfig and getconfig targets in make helpHans-Christian Egtvedt2009-01-081-0/+2
| | | | | | | | | I often find myself forgetting what those targets were called, and I imagine others may not even be aware of their existence. Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com> Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
* buildroot: set SHELL instead of messing around with CONFIG_SHELLPeter Korsgaard2009-01-011-13/+17
| | | | | Simply set SHELL to bash instead of adding CONFIG_SHELL to all shell invocations. CONFIG_SHELL is still set, as it is used by kconfig.
* Makefile: revert HOST_GLIB_BIN staging_dir fix (r23920,23923)Peter Korsgaard2008-11-071-2/+1
| | | | | It causes more trouble than it's worth, and we should move to building those host tools ourselves to not get into version issues anyway.
* Build $(PROJECT_BUILD_DIR)/autotools-stamps with normal Makefile rulesHans-Christian Egtvedt2008-11-051-7/+6
| | | | | | | | | | This patch will add a rule to top level Makefile to depend on the $(PROJECT_BUILD_DIR)/autotools-stamps as a required directory. Hence it will be generated if missing in stead of made when the $(PROJECT_BUILD_DIR)/.root rule is triggered. Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
* Move creation of $(PROJECT_BUILD_DIR)/autotools-stamps into top level MakefileHans-Christian Egtvedt2008-11-051-0/+1
| | | | | | | | | This patch will create the autotools-stamps directory early in the build process, thus making it possible for non Makefile.autotools.in packages to use this directory to hold stamp files. Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
* Makefile: glib-genmarshal: use BR2_STAGING_DIR instead of hardcoded staging_dirPeter Korsgaard2008-11-041-1/+1
|
* Makefile: ignore glib-genmarshal in staging_dirPeter Korsgaard2008-11-031-1/+2
| | | | | | | | | | | | | | | | | | HOST_GLIB is set to the path that contains the host glib tool set and is used when building packages using glib. The buildroot top level Makefile sets HOST_GLIB using which to find the path where glib-genmarshal is located. The problem is that a cross compiled version of glib-genmarshal is also put in the build_ARCH/staging_dir/usr/bin directory when the package libglib2 is built. This cross compiled version will typically not run on the host system. Fix it by ignoring staging_dir in the which output. Closes #5934 jacmet: fixed to work correctly if it's only found in staging_dir.
* External toolchain support improvementsPeter Korsgaard2008-11-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve external toolchain support * Do not put kernel-headers in the dependencies of BASE_TARGETS in the case where BR2_TOOLCHAIN_SOURCE is not y. The kernel headers are already supposed to be part of the external toolchain, so there's no need to download, extract and install them. * In the configuration system, don't display the kernel headers version selection list when an external toolchain is selected. This is implemented by moving the source "toolchain/kernel-headers/Config.in" inside the if BR2_TOOLCHAIN_SOURCE in toolchain/Config.in.2. * Change the description and help message of the BR2_LARGEFILE, BR2_INET_IPV6, BR2_INET_RPC, and BR2_SOFT_FLOAT option in toolchain/external-toolchain/Config.in. In the case of an external toolchain, the semantic of these options is not to enable large file support, IPV6 or RPC (since the toolchain is already compiled, it has been decided previously). Their semantic is to let Buildroot know about the characteristics of the external toolchain being used. As an improvement, we could guess these values automatically: - for BR2_LARGEFILE, look at the value of __UCLIBC_HAS_LFS__ in bits/uClibc_config.h in the libc headers directory. - for BR2_INET_RPC, look at the value of __UCLIBC_HAS_RPC__ in the same file - for BR2_INET_IPV6, look at the value of __UCLIBC_HAS_IPV6__ in the same file - for BR2_SOFT_FLOAT, look at the output of $(CC) -v 2>&1 | grep -- "--with-float=soft" But I'm not sure how this would be possible, since these values are used at configuration-time by other configuration options, not only at build time. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Applied patch from Brian Foster <brian.foster@innova-card.com>:Hamish Moffatt2008-09-111-2/+2
| | | | | | make "make clean" remove the .root stamp, so that everything will be reinstalled properly on a subsequent build. (bug id 4304) Also remove new autotools-stamps directory.