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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45657 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: tell users to do non-paralle builds on errorsFelix Fietkau2015-04-161-1/+6
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45457 3c298f89-4303-0410-b956-a3cf2f4a3e73
* include: remove trailing whitespacesLuka Perkov2015-03-291-1/+1
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45127 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44551 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44329 3c298f89-4303-0410-b956-a3cf2f4a3e73
* include: let HOSTCC default to $(CC), not gccJo-Philipp Wich2015-02-051-1/+1
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44277 3c298f89-4303-0410-b956-a3cf2f4a3e73
* include: test build prereqs before preparing tempinfoJo-Philipp Wich2015-02-051-1/+1
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44270 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43904 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42794 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42002 3c298f89-4303-0410-b956-a3cf2f4a3e73
* include/toplevel.mk: more chaos calmer renamingJohn Crispin2014-07-291-1/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41871 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39913 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38560 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37883 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: fix make defconfigFelix Fietkau2013-04-181-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36362 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: add new menuconfig code based on linux 3.9Felix Fietkau2013-04-181-3/+8
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36361 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36082 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35716 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34023 3c298f89-4303-0410-b956-a3cf2f4a3e73
* it's time to break the barriersImre Kaloz2012-10-081-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33666 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: pass MAKE_JOBSERVER via environment to avoid leaking it to error messagesFelix Fietkau2012-09-231-1/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33521 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33422 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33414 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/config: build with gcc instead of clang on mac os xFelix Fietkau2012-07-161-2/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32749 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [include] toplevel.mk: unexport ARCH, it ends up in CONFIG_ARCH if defined ↵Jo-Philipp Wich2012-07-111-1/+1
| | | | | | and messes the buildroot up git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32663 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: prevent the environment variable CROSS_COMPILE from leaking into ↵Felix Fietkau2012-06-061-1/+1
| | | | | | builds (fixes #11603) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32081 3c298f89-4303-0410-b956-a3cf2f4a3e73
* make: do a better job of sanitizing LD_LIBRARY_PATH (fixes #8069)Felix Fietkau2012-05-171-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31780 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add further countermeasures against the git core.autocrlf option (fixes #9075)Felix Fietkau2012-05-081-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31650 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [include] 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31203 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: unexport C_INCLUDE_PATH to prevent user settings from interfering ↵Felix Fietkau2012-03-051-0/+2
| | | | | | with the build (fixes #9865) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30830 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [include] make prepare_kernel_conf target depend on quilt instead of sed. ↵Jo-Philipp Wich2012-01-081-2/+2
| | | | | | Preparing the source tree requires quilt and installing quilt implies installing sed. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29697 3c298f89-4303-0410-b956-a3cf2f4a3e73
* prepare .config before testing for missing optionsFelix Fietkau2011-04-171-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26700 3c298f89-4303-0410-b956-a3cf2f4a3e73
* toplevel: add a warning about .config being out of sync after an updateFelix Fietkau2011-04-041-0/+7
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26459 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [include] toplevel.mk: remove quotes from the release name, its up to its ↵Jo-Philipp Wich2011-02-191-1/+1
| | | | | | users to ensure proper quoting git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25596 3c298f89-4303-0410-b956-a3cf2f4a3e73
* it's time for some attitude adjustment ;)Imre Kaloz2011-02-131-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25514 3c298f89-4303-0410-b956-a3cf2f4a3e73
* set the umask in toplevel.mk instead of forcing the user to adjust itFelix Fietkau2010-10-141-0/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23445 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22871 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix compile errors by forcing bash to be used as a shell in all submake ↵Felix Fietkau2010-08-191-1/+0
| | | | | | processes git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22726 3c298f89-4303-0410-b956-a3cf2f4a3e73
* speed up the build system by including include/shell.sh on shell commands ↵Felix Fietkau2010-08-191-1/+1
| | | | | | only where necessary git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22720 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Add kernel_nconfig make targetLars-Peter Clausen2010-08-061-0/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22518 3c298f89-4303-0410-b956-a3cf2f4a3e73
* unset user overrides for quilt settings to prevent them from interfering ↵Felix Fietkau2010-01-251-0/+3
| | | | | | with the build process (#6553) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19332 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add support for build system overlays that alter package build instructionsFelix Fietkau2009-08-311-1/+1
| | | | | | currently unused, will probably be managed by the feeds system later git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17445 3c298f89-4303-0410-b956-a3cf2f4a3e73
* use unexport instead of export to clear perforce variablesFelix Fietkau2009-05-081-4/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15708 3c298f89-4303-0410-b956-a3cf2f4a3e73
* override some variables to make sure that perforce does not mess with our ↵Felix Fietkau2009-05-071-0/+6
| | | | | | build process git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15705 3c298f89-4303-0410-b956-a3cf2f4a3e73
* make sure that at least sed is built before ↵Felix Fietkau2009-04-271-2/+11
| | | | | | kernel_menuconfig/kernel_oldconfig is executed git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15433 3c298f89-4303-0410-b956-a3cf2f4a3e73
* optimize the .config dependency chain in the toplevel makefileFelix Fietkau2009-03-031-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14740 3c298f89-4303-0410-b956-a3cf2f4a3e73
* avoid implicit rules in even more placesFelix Fietkau2009-03-031-7/+7
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14737 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14698 3c298f89-4303-0410-b956-a3cf2f4a3e73
* one more instance of r13005Felix Fietkau2008-10-181-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13007 3c298f89-4303-0410-b956-a3cf2f4a3e73
* don't overwrite .config if it's a symlink (fixes scripts/env problems)Felix Fietkau2008-10-181-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13005 3c298f89-4303-0410-b956-a3cf2f4a3e73