aboutsummaryrefslogtreecommitdiff
path: root/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Strip *.so* and not only executable filesGravatar Thomas Petazzoni2014-02-041-1/+1
| | | | | | | | | | | | | | | | | | | | Our current stripping strategy requires that shared libraries have the executable permission. However, this is by far not something recognized as a standard behavior: Debian/Ubuntu distributions for example do not have executable permissions on their libraries. Therefore, pushing to upstream packages fixes that add the executable permissions is not easy. As a result, this commit improves the stripping logic so that it not only strips the files that are executable, but also the ones that match '*.so*', which should match both the shared libraries and the dlopen()'able plugins, as long as they have a .so extension. Thanks to this addition, a number of manual "chmod +x" done by various packages can be removed. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* Makefile: also use ignore-times argument to rsync when copying rootfs overlaysGravatar Peter Korsgaard2014-02-041-1/+1
| | | | | | Missed from previous patch. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* Makefile: change rsync used in overlays to always transfer filesGravatar Danomi Manchego2014-02-041-1/+1
| | | | | | | | | | | | | | If two files with the same relative paths exist in multiple overlay skeletons, and they have the same modification time and size, then rsync might not copy the later file on top of the earlier file. This patch fixes this by adding the -I option to the rsync commands used in the overlay skeleton file installations. ("man rsync" indicates that this option turns off the file-size/mod-date "quick check" behavior, causing all files to be updated - more like the cp commands that we had originally.) [Peter: use --ignore-times to make it obvious what the option does] Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* Makefile: Add /usr/lib/locale to target-purgelocalesGravatar Valentine Barshak2014-02-041-1/+1
| | | | | | | | Some packages install locales to /usr/lib/locale. Parse and purge unneeded ones there too. Signed-off-by: Valentine Barshak <gvaxon@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* fs: ensure $(TARGET_DIR_WARNING_FILE) is writableGravatar Yann E. MORIN2014-01-281-1/+1
| | | | | | | | | | | | | | If the Buildroot tree is read-only, then $(TARGET_DIR_WARNING_FILE) is copied read-only into target/ but we may want to remove it during the build process. This poses no real problem, since target/ itself is guaranteed to be writable, but for good measure, force $(TARGET_DIR_WARNING_FILE) to be writable itself. Reported-by: Danomi Manchego <danomimanchego123@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* target: ensure target/ dir is writableGravatar Nathan Lynch2014-01-281-2/+2
| | | | | | | | | | | | | | | | If the source target skeleton is read-only (eg. because Buildroot's source dir is), modifications to the output target (such as creating /etc/hostname and /etc/issue) fail. (This can happen if the Buildroot source dir is NFS-mounted read-only to be shared between different machines, for example). Signed-off-by: Nathan Lynch <ntl@pobox.com> [yann.morin.1998@free.fr: we use rsync now, not cp; --chmod=Du+w suggested by Arnout; clarify commit log] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Arnout Vandecappelle <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* Makefile: Unexport TAR_OPTIONSGravatar Nix2014-01-271-0/+1
| | | | | | | | | | | | | | GNU tar > 1.13.17 interprets TAR_OPTIONS as an environment variable containing options to be prepended to the set on the command line. Since we use the same variable, if the user's environment already contains TAR_OPTIONS, our use of the same variable name modifies the environment and causes untars to misbehave when TAR_OPTIONS causes a -xf to be prepended to the tar command line, likely converting a subsequent flag into a spurious filename. Signed-off-by: Nick Alcock <nick.alcock@oracle.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* Revert "prevent recursion in %_defconfig rules"Gravatar Yann E. MORIN2014-01-171-4/+0
| | | | | | | | | | | | | | | | This reverts commit 94dd02f5d0ce89549a82a99c56602e1c4a73bae7. The change breaks defconfigs from BR2_EXTERNAL, both for in-tree and out-of-tree builds. Besides, the problem reported in 94dd02f could not be reproduced. I can read French, and I suspect a relative path was used for either BR2_EXTERNAL or O. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Jérémy Rosen <jeremy.rosen@openwide.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* luarocks: new infrastructureGravatar Francois Perrad2014-01-131-0/+1
| | | | | | | | Signed-off-by: Francois Perrad <francois.perrad@gadz.org> [yann.morin.1998@free.fr: apply Thomas' comments] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* prevent recursion in %_defconfig rulesGravatar Jeremy Rosen2014-01-131-0/+4
| | | | | Signed-off-by: Jérémy Rosen <jeremy.rosen@openwide.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* Makefile: support running graph-depends from out-of-treeGravatar Yann E. MORIN2014-01-091-1/+2
| | | | | | | Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* Update copyright yearGravatar Peter Korsgaard2014-01-081-1/+1
| | | | | | Happy new year! Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* graphs: support generating png graphsGravatar Yann E. MORIN2013-12-291-3/+6
| | | | | | | | | | | | | | PDF files can not be easily embedded in other documents (eg. ODT, or HTML). Add support for generating PNG graphs, by setting the GRAPH_OUT=pdf|png on the command line: make GRAPH_OUT=png graph-build graph-depends The default is still to generate PDF graphs. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Makefile: expose 'graph-depends' to generate a graph of the dependency treeGravatar Yann E. MORIN2013-12-291-0/+7
| | | | | | | | | | | | | | Generate the graph of the complete dependency tree by calling: make graph-depends It's also possible to generate the graph-depends for a single package: make PKG-graph-depends The graphs are generated in $(O)/graphs/ Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Makefile: expose target 'graph-build' to generate the build-time graphsGravatar Yann E. MORIN2013-12-291-0/+12
| | | | | | | | | | | | | | | Generate the build-time graphs by calling: make graph-build This generates the graphs in $(O)/graphs/ It is possible to use the alternate color-scheme by setting the variable GRAPH_ALT=1 on the command line: make GRAPH_ALT=1 graph-build Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Makefile: ignore .config for defconfigGravatar Yann E. MORIN2013-12-271-1/+1
| | | | | | | | | | Currently, we do not include .config for all '%_defconfig' targets, but we forgot to also exclude plain 'defconfig'. Reported-by: Fabio Porcedda <fabio.porcedda@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Makefile: don't use parallel make when calling back into buildrootGravatar Peter Korsgaard2013-12-161-3/+3
| | | | | | | | | | | | The source-check / external-deps make targets ends up calling recursively into buildroot's Makefile, causing make to display a warning: make[2]: warning: -jN forced in submake: disabling jobserver mode. We don't support toplevel parallel make, so get rid of the warning using MAKE1 instead. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* core: allow external defconfigs to be usedGravatar Thomas Petazzoni2013-12-081-0/+11
| | | | | | | | | | | | | | | | | | This commit allows the user to store defconfigs in $BR2_EXTERNAL/configs/. To achieve this: * It adds a new %_defconfig that looks in $BR2_EXTERNAL/configs/ for the corresponding defconfig file. * Updates the help target to also list external defconfigs. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Acked-by: Ryan Barnett <rjbarnet@rockwellcollins.com> Tested-by: "Samuel Martin" <s.martin49@gmail.com> Acked-by: "Samuel Martin" <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* core: allow external Config.in/makefile code to be integratedGravatar Thomas Petazzoni2013-12-081-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit allows the BR2_EXTERNAL directory to contain Config.in and Makefile code, which gets integrated into the Buildroot build logic: - Buildroot automatically includes the $BR2_EXTERNAL/Config.in in the top-level configuration menu. - Buildroot automatically includes the BR2_EXTERNAL/external.mk in the build logic, so it can for example be used to include other .mk files that define package recipes. This is typically intended to be used to create target packages in the BR2_EXTERNAL directory, but can also be used for bootloaders, host packages, or other custom make logic. We also add a dummy Config.in file in support/dummy-external/ to ensure that the source "$BR2_EXTERNAL/Config.in" line will point to an existing file even when BR2_EXTERNAL is not used by the user. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Acked-by: Ryan Barnett <rjbarnet@rockwellcollins.com> Tested-by: "Samuel Martin" <s.martin49@gmail.com> Acked-by: "Samuel Martin" <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* core: introduce the BR2_EXTERNAL variableGravatar Thomas Petazzoni2013-12-081-1/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit introduces the BR2_EXTERNAL environment variable, which will allow to keep Buildroot customization (board-specific configuration files or root filesystem overlays, package Config.in and makefiles, as well as defconfigs) outside of the Buildroot tree. This commit only introduces the variable itself, and ensures that it is available within Config.in options. This allows us to use $BR2_EXTERNAL in a 'source' statement in Config.in. Following patches extend the usage of BR2_EXTERNAL to other areas (packages and defconfigs). In details, this commit: * Introduces the BR2_EXTERNAL Kconfig option. This option has no prompt, and is therefore not visible to the user and also not stored in the .config file. It is automatically set to the value of the BR2_EXTERNAL environment variable. The only purpose of this BR2_EXTERNAL Kconfig option is to allow $BR2_EXTERNAL to be properly expanded when used inside Kconfig source statements. * Calculates the BR2_EXTERNAL value to use. If passed on the command line, then this value is taken in priority, and saved to a .br-external hidden file in the output directory. If not passed on the command line, then we read the .br-external file from the output directory. This allows the user to not pass the BR2_EXTERNAL value at each make invocation. If no BR2_EXTERNAL value is passed, we define it to support/dummy-external, so that the kconfig code finds an existing $(BR2_EXTERNAL)/package/Config.in file to include. * Passes the BR2_EXTERNAL into the *config environment, so that its value is found when parsing/evaluating Config.in files and .config values. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Acked-by: Ryan Barnett <rjbarnet@rockwellcollins.com> Tested-by: "Samuel Martin" <s.martin49@gmail.com> Acked-by: "Samuel Martin" <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* infra: remove package clean commandsGravatar Thomas De Schampheleire2013-12-081-2/+1
| | | | | Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package: add objcopy and ranlib to HOST_CONFIGURE_OPTSGravatar Thomas Petazzoni2013-12-011-0/+8
| | | | | | | | | This commit adds the OBJCOPY and RANLIB variables to HOST_CONFIGURE_OPTS, since grub legacy will need these defined in order to build properly. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* legal info: split sources for host and targetGravatar Thomas De Schampheleire2013-11-171-4/+5
| | | | | | Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Acked-by: Luca Ceresoli <luca@lucaceresoli.net> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* legal info: split license texts for host and targetGravatar Thomas De Schampheleire2013-11-171-3/+5
| | | | | | Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Acked-by: Luca Ceresoli <luca@lucaceresoli.net> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* legal info: split manifest for host and targetGravatar Thomas De Schampheleire2013-11-171-3/+5
| | | | | | | | Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Acked-by: Luca Ceresoli <luca@lucaceresoli.net> Tested-by: Luca Ceresoli <luca@lucaceresoli.net> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* post-{build, images} hooks: export BUILD_DIR tooGravatar Yann E. MORIN2013-11-131-2/+2
| | | | | | | | | | | | | | Also export BUILD_DIR for post-{build,images} hooks, so they do have a place to store generated files. Note: this will be more einteresting for the instrumentation of steps, to come in a later patch. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com> Reviewed-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Reviewed-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* kickoff 2014.02 development cycleGravatar Peter Korsgaard2013-11-131-1/+1
| | | | Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* Update for 2013.11-rc12013.11_rc1Gravatar Peter Korsgaard2013-11-121-1/+1
| | | | Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* infra: centralize rsync exclude list for VCS filesGravatar Thomas De Schampheleire2013-11-111-6/+8
| | | | | | | | | | | | | | | | | | | | | | | Buildroot has three places where rsync is used: 1. to copy the target skeleton 2. to copy the rootfs overlay(s) 3. to copy overridden package sources In all of these cases, we want to exclude version control files by default. Place 1 and 2 used an identical set of explicit --exclude options, while place 3 used the option --cvs-exclude. This last option, however, not only excludes version control files, but also binary files (.o, .so) and any file or directory named 'core' (a problem for the linux kernel that has several directories with this name). Moreover, the exact list of excluded files when using --cvs-exclude depends on the version of rsync. This patch creates one global variable RSYNC_VCS_EXCLUSIONS that can be used by the various rsync commands. It excludes the version control files of svn, git, hg, cvs and bzr. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Acked-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* Generation of locales: made call to tr more robust and added LOWERCASE macroGravatar Thierry Bultel2013-11-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | When calling 'tr' without quoting braces, bash can make really weird things if there are existing 'single-letter-named' directories eg: thierry@thierry-desktop:~$ echo AAA | tr [A-Z] [a-z] aaa thierry@thierry-desktop:~$ mkdir m thierry@thierry-desktop:~$ echo AAA | tr [A-Z] [a-z] AAA The (quick) analysis is that the callee (tr) argvs then contain 'm' thus the translation does not work Using quotes works around it: thierry@thierry-desktop:~$ echo AAA | tr '[A-Z]' '[a-z]' aaa Signed-off-by: Thierry Bultel <thierry.bultel@wanadoo.fr> Reviewed-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* manual generation: rename manual-txt into manual-textGravatar Thomas De Schampheleire2013-11-011-2/+2
| | | | | | | | | | The output extension and the generation messages refer to 'text', but the make target was confusingly 'txt'. This patch changes the make target for consistency. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Makefile: revert BUILD_DIR exportGravatar Gustavo Zacarias2013-10-251-1/+0
| | | | | | | | | | | | | Revert commit feb0877015cc0c644129e69276b3000c83742750 U-Boot uses $(BUILD_DIR) and causes issues, other packages might as well. Fixes: http://autobuild.buildroot.net/results/1f6/1f65289d5c284caa82a4e9137613f792797ee08a/ http://autobuild.buildroot.net/results/6a5/6a5f77483e908dc96d08824cf9113402431bace7/ It should probably be named somewhat more uniquely. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* Makefile: export BUILD_DIRGravatar Yann E. MORIN2013-10-241-0/+1
| | | | | | | | | | | $(BUILD_DIR) is a nice place to put files generated during the build. With the advent of user-supplied step-hooks, they may want to store some information on the build. Export BUILD_DIR to that effect; update manual accordingly. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* toolchain: introduce a virtual packageGravatar Thomas Petazzoni2013-10-091-15/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit introduces a virtual package called 'toolchain', located in 'toolchain/toolchain', which simply depends on 'toolchain-buildroot' or 'toolchain-external' depending on the selected toolchain backend. For now, toolchain-buildroot and toolchain-external are still manual make targets, but the following patches convert those backends to use the package infrastructure as well. In addition to this: * The main Makefile is modified to always make BASE_TARGETS point to this new toolchain virtual package. * The main Makefile is changed to include all the toolchain/*/*.mk files: the toolchain virtual package, and the toolchain-buildroot and toolchain-external directories. * The dependency of the toolchain on prepare dirs and dependencies is moved to the toolchain virtual package. It is moved as a prerequisite of the "toolchain-source" rule to ensure that all directories are prepared before we even start extracting the toolchain. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: Luca Ceresoli <luca@lucaceresoli.net> Acked-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* toolchain-crosstool-ng: remove supportGravatar Thomas Petazzoni2013-10-061-7/+0
| | | | | | | | | | In order to avoid the work of converting the toolchain-crosstool-ng logic to the package infrastructure, we remove it from Buildroot, since it has been deprecated since quite some time. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* make clean: improve when no .config presentGravatar Thomas De Schampheleire2013-10-021-24/+24
| | | | | | | | | | | | | | | | | | The 'make clean' recipe is using variables that are not defined without .config file, causing only a partial cleanup when the .config file is accidentally deleted. This patch moves those variables that do not depend on values from .config outside the BR2_HAVE_DOT_CONFIG check, so that 'make clean' is much more similar with and without .config. Since HOST_DIR is determined from BR2_HOST_DIR in .config, the host directory cannot be cleaned correctly without making assumptions, if no .config is present. However, to cover most people's use cases, we assume the default value of $(BASE_DIR)/host in this specific case. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* make clean: remove redundant removal of STAGING_DIRGravatar Thomas De Schampheleire2013-10-011-1/+1
| | | | | | | | | | | | | | Since STAGING_DIR is defined as (package/Makefile.in): STAGING_SUBDIR = usr/$(GNU_TARGET_NAME)/sysroot STAGING_DIR = $(HOST_DIR)/$(STAGING_SUBDIR) removing HOST_DIR will automatically remove STAGING_DIR. This patch updates 'make clean' based on this knowledge. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* manual generation: update helpGravatar Thomas De Schampheleire2013-09-201-1/+1
| | | | | | | | | | The 'make help' lines for generating the manual did not consider ePub correctly. Instead of providing a limitative list for 'make manual', the text is changed into 'all formats'. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Makefile: Fix the generation of localesGravatar tbultel2013-09-201-1/+1
| | | | | | | | | | The -s option is only mandatory for the charmap, else the filename is always empty and nothing is generated. Signed-off-by: Thierry Bultel <thierry.bultel@wanadoo.fr> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Makefile: release: create tarball from current branch, not masterGravatar Peter Korsgaard2013-09-171-1/+1
| | | | | | To support stable bugfix releases. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Makefile: make $(BUILD_DIR)/.root rule idempotentGravatar Thomas Petazzoni2013-09-151-2/+2
| | | | | | | | | | | | | | | | The $(BUILD_DIR)/.root rule is executed as part of the 'dirs' target. The 'dirs' target is re-executed at every execution of 'make external-deps', and make external-deps explicitly tells make to ignore targets that have already been made (through the -B option). This means that the $(BUILD_DIR)/.root rule has to be idempotant, which was not the case this the introduction of the lib32/lib64 symbolic link. Running 'make external-deps' three times in a row was sufficient to trigger an error due to symbolic links being incorrectly created. This patch fixes that. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Makefile: also unexport PKG_CONFIG_LIBDIRGravatar Peter Korsgaard2013-09-111-0/+1
| | | | | | | | Similar to how we do it for _PATH / _SYSROOT_DIR. Buildroot gets fairly confused if the user has set up a custom PKG_CONFIG_LIBDIR, so ensure it gets unset. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Fix build reproducibility in Make 3.82Gravatar Jérôme Pouiller2013-09-061-1/+1
| | | | | | | | | | | | Make 3.82 no longer sort the result of wildcards (see http://comments.gmane.org/gmane.comp.gnu.make.bugs/4260). This may break build reproducibility. This patch sort results of wildcards to ensure reproducibility. Signed-off-by: Jérôme Pouiller <jezz@sysmic.org> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* trivial: remove odd references to 'buildroot2'Gravatar Thomas De Schampheleire2013-09-051-1/+1
| | | | | | | | In the past there may have been a very good reason to refer to 'buildroot2', but these days it's just odd. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Makefile: do not try to strip inexisting file when stripping libpthreadGravatar Thomas Petazzoni2013-09-021-1/+1
| | | | | | | | | | | | | | | | | | | libpthread.so has a special stripping condition to preserve parts of it that are needed for debugging. However, due to the usage of 'xargs' instead of 'xargs -r', the strip command is executed regardless of whether a libpthread.so file is found or not. This leads to a big error message being displayed in static-only builds, because strip is executed without a file argument. Thanks to the '|| true', the build continues, but still shows a big error message in the middle, which is not nice. By using 'xargs -r', we avoid the strip command from being executed when 'find' doesn't find any match. We also remove the '|| true' to catch other real errors. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Merge branch 'next'Gravatar Peter Korsgaard2013-08-311-4/+0
|\
| * host-ccache: turn into a proper dependencyGravatar Thomas De Schampheleire2013-08-101-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch moves the host-ccache build target from BASE_TARGETS in Makefile to an actual host prerequisite in support/dependencies. This causes host-ccache to be built as part of the dependencies, before any real package is built. Since the dependencies are built without ccache anyway, there is no need to set HOST_CCACHE_CONF_ENV anymore. Suggested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Acked-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
| * Open 2013.11 development cycleGravatar Thomas Petazzoni2013-08-051-1/+1
| | | | | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* | Makefile: kickoff 2013.11 cycleGravatar Peter Korsgaard2013-08-311-1/+1
| | | | | | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* | Update for 2013.082013.08Gravatar Peter Korsgaard2013-08-311-1/+1
| | | | | | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>