aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Makefile: set timezone to UTCFelix Fietkau2016-01-281-1/+2
| | | | | | | | This is necessary for reproducible image builds. Signed-off-by: bryan newbold <bnewbold@robocracy.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48538 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Makefile: move the cleaning of staging_dir/target* from dirclean to cleanFelix Fietkau2015-06-141-2/+2
| | | | | | | | | | | | | | | | | | Currently "make clean" only clears the build_dir/target*, but leaves staging_dir/target* intact. "make clean" should also clean the staging_dir/target* directories, as in the current situation some old packages or libraries may be linked into the firmware from staging_dir despite a "make clean". The patch reorganises clean / dirclean functionality so that * "make clean" also clears the staging_dir/target* in addition to build_dir/target*. * "make dirclean" clears toolchain and host(=tools) directories from both build_dir and staging_dir signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45973 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Makefile: remove non-existent STAGING_DIR_TOOLCHAIN from dircleanJohn Crispin2015-05-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Makefile: remove non-existent STAGING_DIR_TOOLCHAIN from dirclean Openwrt's top level Makefile uses STAGING_DIR_TOOLCHAIN in the make dirclean statement. https://dev.openwrt.org/browser/trunk/Makefile#L55 rm -rf $(STAGING_DIR) $(STAGING_DIR_HOST) $(STAGING_DIR_TOOLCHAIN) $(TOOLCHAIN_DIR) $(BUILD_DIR_HOST) $(BUILD_DIR_TOOLCHAIN) As far as I can determine, no such variable has been defined. I made a search in Openwrt source repository and the one line in Makefile's dirclean command is the only place where that variable exists. The item has been introduced to Makefile by r8362, but even at that time neither Makefile nor rules.mk defined such a variable. Most likely the goal has been to set both staging_dir/toolchain and build_dir/toolchain to be cleaned, but one of the variables has been erroneous. The correct variable for build_dir/toolchain has been then added by r13494. References: https://dev.openwrt.org/changeset/8362/ https://dev.openwrt.org/browser/trunk/Makefile?rev=8362 https://dev.openwrt.org/browser/trunk/rules.mk?rev=8362 https://lists.openwrt.org/pipermail/openwrt-devel/2007-August/001159.html https://dev.openwrt.org/changeset/13494 In current code, TOOLCHAIN_DIR = $(TOPDIR)/staging_dir/$(TOOLCHAIN_DIR_NAME) BUILD_DIR_TOOLCHAIN = $(TOPDIR)/build_dir/$(TOOLCHAIN_DIR_NAME) so the item STAGING_DIR_TOOLCHAIN in the rm command is unnecessary. signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45736 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: don't call prereq for any package/symlinks rulesFelix Fietkau2015-05-101-14/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: clean up sitefiles, make them per-archFelix Fietkau2015-03-281-3/+3
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45090 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Revert "build: use ONESHELL to speed up scanning and the toplevel makefile"Felix Fietkau2014-10-221-1/+0
| | | | | | | This seems to cause issues on some build hosts, and it is not that important. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43025 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: use ONESHELL to speed up scanning and the toplevel makefileFelix Fietkau2014-10-221-0/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43021 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: remove duplicate variable definitionsFelix Fietkau2014-03-211-4/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39981 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: it is no longer necessary to call make target/linux/clean as part of ↵Felix Fietkau2012-12-021-1/+0
| | | | | | make clean git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34451 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Makefile: add a check to bail out early when the path to the openwrt ↵Felix Fietkau2012-10-211-0/+4
| | | | | | directory contains spaces (#12344) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33884 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: add back the package/cleanup step to remove the root staging dir for ↵Felix Fietkau2012-10-151-1/+1
| | | | | | mklibs git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33777 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: rework the package/install step - collect package install lists ↵Felix Fietkau2012-10-061-5/+3
| | | | | | during package/compile, then install all packages at once git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33631 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [buildroot] abort built in prereq target if there is no site config file for ↵Jo-Philipp Wich2012-01-191-0/+6
| | | | | | the current target git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29798 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add a command for printing a cleaned up make target database - will be used ↵Felix Fietkau2010-09-011-3/+8
| | | | | | to analyze package dependencies at some point git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22871 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [buildroot] fix for GREP_OPTIONSFlorian Fainelli2010-07-311-0/+2
| | | | | | | | | When using GREP_OPTIONS to supply default options to grep, the buildsystem might get broken (For example adding --color=always breaks it) This patch will empty the GREP_OPTIONS to prevent the described (and any other) problems related to GREP_OPTIONS Signed-off-by: Maarten Bezemer <m.m.bezemer@utwente.nl> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22443 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add a "make prepare" target which builds everything up to target/compile, ↵Felix Fietkau2009-05-281-0/+2
| | | | | | useful for scripts/deptest.sh git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16153 3c298f89-4303-0410-b956-a3cf2f4a3e73
* added BUILD_LOG_DIR variable, make clean will delete the ./logs dirRalph Hempel2009-05-281-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16148 3c298f89-4303-0410-b956-a3cf2f4a3e73
* avoid implicit rules in even more placesFelix Fietkau2009-03-031-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14737 3c298f89-4303-0410-b956-a3cf2f4a3e73
* remove toolchain build directory as well in 'make dirclean'Nicolas Thill2008-12-031-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13494 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rework parallel building to get rid of some warningsFelix Fietkau2008-08-161-4/+4
| | | | | | | | and add back support for parallelizing the kernel build fixes #3882 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12322 3c298f89-4303-0410-b956-a3cf2f4a3e73
* make package prereq checks behave more like build prereq checks (first check ↵Felix Fietkau2008-08-041-1/+12
| | | | | | all, then fail if necessary), also make them less verbose git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12106 3c298f89-4303-0410-b956-a3cf2f4a3e73
* large improvement for parallel builds. works without V=99 now and without ↵Felix Fietkau2008-06-091-2/+8
| | | | | | warnings. tested with -j on an 2x dual core opteron machine git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11414 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix package/symlinks target, will call scripts/feeds update / installRalph Hempel2008-03-201-3/+13
| | | | | | | | | | introduce new package/symlinks-install and package/symlinks-clean targets - package/symlink-install will re-create the index files and the symlinks for all ./feeds (no update from repositories is performed) - package/symlink-clean will delete all installed symlinks (keeping the ./feeds untouched) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10634 3c298f89-4303-0410-b956-a3cf2f4a3e73
* use scripts/feeds instead of scripts/feeds.sh for package/symlinksFelix Fietkau2007-12-281-1/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9990 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix make clean for unconfigured build treesFelix Fietkau2007-12-041-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9655 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix parallel build issuesFelix Fietkau2007-11-041-5/+7
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9495 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add autorebuild check for menuconfigFelix Fietkau2007-10-141-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9301 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add 'make prepare' target for building the tools and toolchainFelix Fietkau2007-09-151-1/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8780 3c298f89-4303-0410-b956-a3cf2f4a3e73
* major target cleanup. it is now possible to have subtargets that can ↵Felix Fietkau2007-09-081-1/+1
| | | | | | override many target settings, including arch - merge adm5120, adm5120eb. target profiles still need to be adapted for subtargets git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8694 3c298f89-4303-0410-b956-a3cf2f4a3e73
* clean up recursive dependency handling, use timestamp.pl again, because it ↵Felix Fietkau2007-08-301-1/+1
| | | | | | saves memory and execution time git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8558 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build system cleanup/restructuring as described in ↵Felix Fietkau2007-08-071-7/+9
| | | | | | http://lists.openwrt.org/pipermail/openwrt-devel/2007-August/001159.html git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8362 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix rootfs and init script handlingFelix Fietkau2007-07-311-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8293 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix make distcleanFelix Fietkau2007-07-301-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8251 3c298f89-4303-0410-b956-a3cf2f4a3e73
* next round of cleanup, convert target/ - make -j works now ;)Felix Fietkau2007-07-301-21/+9
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8242 3c298f89-4303-0410-b956-a3cf2f4a3e73
* next round of build system cleanup - convert package/ to new structureFelix Fietkau2007-07-301-7/+28
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8236 3c298f89-4303-0410-b956-a3cf2f4a3e73
* toolchain/ has been convertedFelix Fietkau2007-07-301-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8235 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix verbose output with dash as /bin/shFelix Fietkau2007-07-301-0/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8227 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build system fixes, more cleanupFelix Fietkau2007-07-281-8/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8207 3c298f89-4303-0410-b956-a3cf2f4a3e73
* more build system cleanupFelix Fietkau2007-07-281-139/+21
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8206 3c298f89-4303-0410-b956-a3cf2f4a3e73
* initial attempt at cleaning up subdirectory handling. tools/Makefile is now ↵Felix Fietkau2007-07-281-6/+7
| | | | | | being included instead of recursively called git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8201 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add kernel_oldconfig targetFelix Fietkau2007-07-161-1/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8003 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: fix dependencies for .config, use selections from oldconfig when ↵Felix Fietkau2007-07-161-1/+0
| | | | | | running menuconfig git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7997 3c298f89-4303-0410-b956-a3cf2f4a3e73
* target scan needs a maxdepth of 2Felix Fietkau2007-07-161-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7987 3c298f89-4303-0410-b956-a3cf2f4a3e73
* set maxdepth appropriately for package scanningFelix Fietkau2007-07-151-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7985 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rewrite of the metadata scanning - cleaner code, faster scanning, recursive ↵Felix Fietkau2007-07-151-2/+5
| | | | | | scanning and better handling of makefile dependencies git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7981 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix distcleanFelix Fietkau2007-07-121-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7940 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix docs compile targetsFelix Fietkau2007-07-101-4/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7905 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Regenerate the menuconfig once symlinked packages are goneFlorian Fainelli2007-05-301-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7399 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix target rescan (version kernel changes)Felix Fietkau2007-05-231-4/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7317 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Make UCI preconfiguration optional and disabled by defaultFelix Fietkau2007-05-051-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7095 3c298f89-4303-0410-b956-a3cf2f4a3e73