summaryrefslogtreecommitdiff
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> SVN-Revision: 48538
* 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> SVN-Revision: 45973
* 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> SVN-Revision: 45736
* 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> SVN-Revision: 45657
* build: clean up sitefiles, make them per-archFelix Fietkau2015-03-281-3/+3
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45090
* 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. SVN-Revision: 43025
* build: use ONESHELL to speed up scanning and the toplevel makefileFelix Fietkau2014-10-221-0/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43021
* build: remove duplicate variable definitionsFelix Fietkau2014-03-211-4/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 39981
* build: it is no longer necessary to call make target/linux/clean as part of ↵Felix Fietkau2012-12-021-1/+0
| | | | | | make clean SVN-Revision: 34451
* Makefile: add a check to bail out early when the path to the openwrt ↵Felix Fietkau2012-10-211-0/+4
| | | | | | directory contains spaces (#12344) SVN-Revision: 33884
* build: add back the package/cleanup step to remove the root staging dir for ↵Felix Fietkau2012-10-151-1/+1
| | | | | | mklibs SVN-Revision: 33777
* 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 SVN-Revision: 33631
* abort built in prereq target if there is no site config file for the current ↵Jo-Philipp Wich2012-01-191-0/+6
| | | | | | target SVN-Revision: 29798
* 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 SVN-Revision: 22871
* 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> SVN-Revision: 22443
* add a "make prepare" target which builds everything up to target/compile, ↵Felix Fietkau2009-05-281-0/+2
| | | | | | useful for scripts/deptest.sh SVN-Revision: 16153
* added BUILD_LOG_DIR variable, make clean will delete the ./logs dirRalph Hempel2009-05-281-1/+1
| | | | SVN-Revision: 16148
* avoid implicit rules in even more placesFelix Fietkau2009-03-031-1/+1
| | | | SVN-Revision: 14737
* remove toolchain build directory as well in 'make dirclean'Nicolas Thill2008-12-031-1/+1
| | | | SVN-Revision: 13494
* rework parallel building to get rid of some warnings and add back support ↵Felix Fietkau2008-08-161-4/+4
| | | | | | for parallelizing the kernel build fixes #3882 SVN-Revision: 12322
* 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 SVN-Revision: 12106
* 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 SVN-Revision: 11414
* fix package/symlinks target, will call scripts/feeds update / install ↵Ralph 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) SVN-Revision: 10634
* use scripts/feeds instead of scripts/feeds.sh for package/symlinksFelix Fietkau2007-12-281-1/+2
| | | | SVN-Revision: 9990
* fix make clean for unconfigured build treesFelix Fietkau2007-12-041-1/+1
| | | | SVN-Revision: 9655
* fix parallel build issuesFelix Fietkau2007-11-041-5/+7
| | | | SVN-Revision: 9495
* add autorebuild check for menuconfigFelix Fietkau2007-10-141-0/+1
| | | | SVN-Revision: 9301
* add 'make prepare' target for building the tools and toolchainFelix Fietkau2007-09-151-1/+4
| | | | SVN-Revision: 8780
* 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 SVN-Revision: 8694
* clean up recursive dependency handling, use timestamp.pl again, because it ↵Felix Fietkau2007-08-301-1/+1
| | | | | | saves memory and execution time SVN-Revision: 8558
* build system cleanup/restructuring as described in ↵Felix Fietkau2007-08-071-7/+9
| | | | | | http://lists.openwrt.org/pipermail/openwrt-devel/2007-August/001159.html SVN-Revision: 8362
* fix rootfs and init script handlingFelix Fietkau2007-07-311-1/+1
| | | | SVN-Revision: 8293
* fix make distcleanFelix Fietkau2007-07-301-2/+2
| | | | SVN-Revision: 8251
* next round of cleanup, convert target/ - make -j works now ;)Felix Fietkau2007-07-301-21/+9
| | | | SVN-Revision: 8242
* next round of build system cleanup - convert package/ to new structureFelix Fietkau2007-07-301-7/+28
| | | | SVN-Revision: 8236
* toolchain/ has been convertedFelix Fietkau2007-07-301-1/+1
| | | | SVN-Revision: 8235
* fix verbose output with dash as /bin/shFelix Fietkau2007-07-301-0/+2
| | | | SVN-Revision: 8227
* build system fixes, more cleanupFelix Fietkau2007-07-281-8/+5
| | | | SVN-Revision: 8207
* more build system cleanupFelix Fietkau2007-07-281-139/+21
| | | | SVN-Revision: 8206
* initial attempt at cleaning up subdirectory handling. tools/Makefile is now ↵Felix Fietkau2007-07-281-6/+7
| | | | | | being included instead of recursively called SVN-Revision: 8201
* add kernel_oldconfig targetFelix Fietkau2007-07-161-1/+3
| | | | SVN-Revision: 8003
* kernel: fix dependencies for .config, use selections from oldconfig when ↵Felix Fietkau2007-07-161-1/+0
| | | | | | running menuconfig SVN-Revision: 7997
* target scan needs a maxdepth of 2Felix Fietkau2007-07-161-1/+1
| | | | SVN-Revision: 7987
* set maxdepth appropriately for package scanningFelix Fietkau2007-07-151-2/+2
| | | | SVN-Revision: 7985
* rewrite of the metadata scanning - cleaner code, faster scanning, recursive ↵Felix Fietkau2007-07-151-2/+5
| | | | | | scanning and better handling of makefile dependencies SVN-Revision: 7981
* fix distcleanFelix Fietkau2007-07-121-1/+1
| | | | SVN-Revision: 7940
* fix docs compile targetsFelix Fietkau2007-07-101-4/+4
| | | | SVN-Revision: 7905
* Regenerate the menuconfig once symlinked packages are goneFlorian Fainelli2007-05-301-0/+1
| | | | SVN-Revision: 7399
* fix target rescan (version kernel changes)Felix Fietkau2007-05-231-4/+3
| | | | SVN-Revision: 7317
* Make UCI preconfiguration optional and disabled by defaultFelix Fietkau2007-05-051-1/+1
| | | | SVN-Revision: 7095