Makefile: set timezone to UTC 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 clean 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 dirclean 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 rules 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-arch Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45090
Revert "build: use ONESHELL to speed up scanning and the toplevel makefile" 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 makefile Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43021
build: remove duplicate variable definitions 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 make clean SVN-Revision: 34451
Makefile: add a check to bail out early when the path to the openwrt directory contains spaces (#12344) SVN-Revision: 33884
build: add back the package/cleanup step to remove the root staging dir for mklibs SVN-Revision: 33777
build: rework the package/install step - collect package install lists during package/compile, then install all packages at once SVN-Revision: 33631
[buildroot] abort built in prereq target if there is no site config file for the current target SVN-Revision: 29798
add a command for printing a cleaned up make target database - will be used to analyze package dependencies at some point SVN-Revision: 22871
[buildroot] fix for GREP_OPTIONS 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, useful for scripts/deptest.sh SVN-Revision: 16153
added BUILD_LOG_DIR variable, make clean will delete the ./logs dir SVN-Revision: 16148
avoid implicit rules in even more places SVN-Revision: 14737
remove toolchain build directory as well in 'make dirclean' SVN-Revision: 13494
rework parallel building to get rid of some warnings and add back support for parallelizing the kernel build fixes #3882 SVN-Revision: 12322