aboutsummaryrefslogtreecommitdiffstats
path: root/include/toplevel.mk
Commit message (Collapse)AuthorAgeFilesLines
* build: don't call prereq for any package/symlinks rulesFelix Fietkau2015-05-101-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most of the time, we want to make sure OpenWrt has been configured and setup before start running make. However, in case of package/symlinks, forcing prereq as a dependency creates multiple issues: *when executed on a clean workspace, it will prompt for user input and open a menuconfig window before executing the feeds command *the only way around that is to provide a .config. However, the "prereq" target would then run a "make defconfig", which will remove all the packages in the .config but from external feeds, as feeds have not been installed yet. The only way to currently work around this, is to generate a fake config by running "make defconfig", then "make package/symlinks", copy the real config (which at this point disregards the previously generated config), and run make defconfig again. Something like this: make defconfig make package/symlinks cp real.config .config make defconfig This change is removing the need for the first defconfig, making the process more logical for OpenWrt users using the package/symlinks target. Signed-off-by: Mathieu Olivari <mathieu@qca.qualcomm.com> SVN-Revision: 45657
* build: tell users to do non-paralle builds on errorsFelix Fietkau2015-04-161-1/+6
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45457
* include: remove trailing whitespacesLuka Perkov2015-03-291-1/+1
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 45127
* build: move tmp/.prereq-build to staging_dir/host to gracefully handle ↵Felix Fietkau2015-02-271-4/+4
| | | | | | | | staging_dir deletion Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44551
* include: remove SDK specific target from toplevel.mkJo-Philipp Wich2015-02-081-1/+7
| | | | | | | | | Instead introduce a generic "make prepare" target which is executed if include/prepare.mk exists. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 44329
* include: let HOSTCC default to $(CC), not gccJo-Philipp Wich2015-02-051-1/+1
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 44277
* include: test build prereqs before preparing tempinfoJo-Philipp Wich2015-02-051-1/+1
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 44270
* sdk: track files with git and use it to implement proper clean targetsJo-Philipp Wich2015-01-101-1/+1
| | | | | | | | | | | | Initialize a Git repository in the SDK and use git reset / git clean to rollback any SDK changes with "make clean" or "make dirclean". This approach is more robust than nuking entire directory trees because some parts of them might have been shipped with the original archive. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 43904
* Fix build when TAR_OPTIONS env variable is setJohn Crispin2014-10-061-0/+2
| | | | | | | | | | | | | | | | | | The build system sets a make variable TAR_OPTIONS to the unpacking command, i.e. "-xf -". Now if an environment variable with the same name is set, the make variable is automatically exported to the environment. The make variable is added to the tar command in the makefile, and tar adds the environment variable. This results in a command like "tar -c /some/dir -xf - -xf -" which of course doesn't work. It is also difficult to spot as the second "-xf -" is not visible on the command line. I suggest this is fixed by unexporting TAR_OPTIONS as I see no use of the evironment variable, and it is changed from the original value anyway. Signed-off-by: Jan Kardell <jan.kardell@telliq.com> SVN-Revision: 42794
* build: introduce per feed repository supportJo-Philipp Wich2014-08-051-0/+2
| | | | | | | | | This changeset implements a new menuconfig option to generate separate repositories for each enabled package feed instead of one monolithic one. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 42002
* include/toplevel.mk: more chaos calmer renamingJohn Crispin2014-07-291-1/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 41871
* target/sdk: use .config instead of unconditionally enabling all build dirsFelix Fietkau2014-03-131-0/+11
| | | | | | | | Call make defconfig on every build to catch newly added packages Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 39913
* build: fix build on Mac OS X 10.9Felix Fietkau2013-10-281-2/+9
| | | | | | | | Add a wrapper around the clang gcc emulation to fix -print-file-name=<lib> Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 38560
* build scripts: fix 'make defconfig' damageFlorian Fainelli2013-09-021-1/+2
| | | | | | | | | | | | | | | | | Looking at the target 'defconfig' in include/toplevel, it doesn't directly reference $(HOME)/.openwrt/defconfig nor does it reference any prerequisites using it as a target. Therefore, building "defconfig" as a target uses the defaults in the tree, but not the defaults that a user might have explicitly specified. This patch fixes this regression from r36361. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com> [florian: apply with the proper patch level, wrap at 80 columns] Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 37883
* build: fix make defconfigFelix Fietkau2013-04-181-1/+1
| | | | SVN-Revision: 36362
* build: add new menuconfig code based on linux 3.9Felix Fietkau2013-04-181-3/+8
| | | | SVN-Revision: 36361
* build: make the color of the 'configuration out of sync' warning red to make ↵Felix Fietkau2013-03-171-2/+3
| | | | | | it harder for users to overlook SVN-Revision: 36082
* include/toplevel.mk: print warnings/errors to stderrJonas Gorski2013-02-211-1/+1
| | | | | | | | Makes warnings/errors visible when building with V=w/V=1. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 35716
* build: increase file descriptor count limit for the build, some systems ↵Felix Fietkau2012-10-311-1/+3
| | | | | | | | (e.g. Mac OS X default to 256, which is too little for some parallel builds) Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 34023
* it's time to break the barriersImre Kaloz2012-10-081-2/+2
| | | | SVN-Revision: 33666
* build: pass MAKE_JOBSERVER via environment to avoid leaking it to error messagesFelix Fietkau2012-09-231-1/+2
| | | | SVN-Revision: 33521
* build: move the -j flag to package.mk instead of grabbing it from makeflags, ↵Felix Fietkau2012-09-151-1/+1
| | | | | | otherwise it occasionally gets omitted on full builds SVN-Revision: 33422
* build: add a config option for passing the top-level make jobserver to ↵Felix Fietkau2012-09-151-1/+1
| | | | | | packages that have parallel build enabled, significantly improves parallelization and gets rid of CPU overcommit during intra-package parallel builds SVN-Revision: 33414
* scripts/config: build with gcc instead of clang on mac os xFelix Fietkau2012-07-161-2/+3
| | | | SVN-Revision: 32749
* toplevel.mk: unexport ARCH, it ends up in CONFIG_ARCH if defined and messes ↵Jo-Philipp Wich2012-07-111-1/+1
| | | | | | the buildroot up SVN-Revision: 32663
* build: prevent the environment variable CROSS_COMPILE from leaking into ↵Felix Fietkau2012-06-061-1/+1
| | | | | | builds (fixes #11603) SVN-Revision: 32081
* make: do a better job of sanitizing LD_LIBRARY_PATH (fixes #8069)Felix Fietkau2012-05-171-2/+2
| | | | SVN-Revision: 31780
* add further countermeasures against the git core.autocrlf option (fixes #9075)Felix Fietkau2012-05-081-0/+1
| | | | SVN-Revision: 31650
* prevent distro default LPATH from interferingJohn Crispin2012-04-051-0/+3
| | | | | | | | | | Attach patch unsets LPATH flag (found configured in some custom host distributions) to make OpenWRT compile its toolchain without any issues. LPATH is used on some distros to define the linkers search path. Signed-off-by: Tathagata Das <tathagata@alumnux.com> SVN-Revision: 31203
* build: unexport C_INCLUDE_PATH to prevent user settings from interfering ↵Felix Fietkau2012-03-051-0/+2
| | | | | | with the build (fixes #9865) SVN-Revision: 30830
* make prepare_kernel_conf target depend on quilt instead of sed. Preparing ↵Jo-Philipp Wich2012-01-081-2/+2
| | | | | | the source tree requires quilt and installing quilt implies installing sed. SVN-Revision: 29697
* prepare .config before testing for missing optionsFelix Fietkau2011-04-171-1/+1
| | | | SVN-Revision: 26700
* toplevel: add a warning about .config being out of sync after an updateFelix Fietkau2011-04-041-0/+7
| | | | SVN-Revision: 26459
* toplevel.mk: remove quotes from the release name, its up to its users to ↵Jo-Philipp Wich2011-02-191-1/+1
| | | | | | ensure proper quoting SVN-Revision: 25596
* it's time for some attitude adjustment ;)Imre Kaloz2011-02-131-2/+2
| | | | SVN-Revision: 25514
* set the umask in toplevel.mk instead of forcing the user to adjust itFelix Fietkau2010-10-141-0/+2
| | | | SVN-Revision: 23445
* add a command for printing a cleaned up make target database - will be used ↵Felix Fietkau2010-09-011-0/+3
| | | | | | to analyze package dependencies at some point SVN-Revision: 22871
* fix compile errors by forcing bash to be used as a shell in all submake ↵Felix Fietkau2010-08-191-1/+0
| | | | | | processes SVN-Revision: 22726
* speed up the build system by including include/shell.sh on shell commands ↵Felix Fietkau2010-08-191-1/+1
| | | | | | only where necessary SVN-Revision: 22720
* Add kernel_nconfig make targetLars-Peter Clausen2010-08-061-0/+3
| | | | SVN-Revision: 22518
* unset user overrides for quilt settings to prevent them from interfering ↵Felix Fietkau2010-01-251-0/+3
| | | | | | with the build process (#6553) SVN-Revision: 19332
* add support for build system overlays that alter package build instructions ↵Felix Fietkau2009-08-311-1/+1
| | | | | | currently unused, will probably be managed by the feeds system later SVN-Revision: 17445
* use unexport instead of export to clear perforce variablesFelix Fietkau2009-05-081-4/+1
| | | | SVN-Revision: 15708
* override some variables to make sure that perforce does not mess with our ↵Felix Fietkau2009-05-071-0/+6
| | | | | | build process SVN-Revision: 15705
* make sure that at least sed is built before ↵Felix Fietkau2009-04-271-2/+11
| | | | | | kernel_menuconfig/kernel_oldconfig is executed SVN-Revision: 15433
* optimize the .config dependency chain in the toplevel makefileFelix Fietkau2009-03-031-2/+2
| | | | SVN-Revision: 14740
* avoid implicit rules in even more placesFelix Fietkau2009-03-031-7/+7
| | | | SVN-Revision: 14737
* add staging_dir/host/lib to LD_LIBRARY_PATH so that host-built applications ↵Felix Fietkau2009-02-281-0/+2
| | | | | | can install and make use of shared libraries SVN-Revision: 14698
* one more instance of r13005Felix Fietkau2008-10-181-1/+1
| | | | SVN-Revision: 13007
* don't overwrite .config if it's a symlink (fixes scripts/env problems)Felix Fietkau2008-10-181-1/+1
| | | | SVN-Revision: 13005