openwrtv3/include
Sergey Ryazanov 5bf98b1acc build: fix symlinked .config handling
When running "make menuconfig" with symlinked .config (e.g. to
env/.config) it renames symlink to .config.old, creates new .config file
and writes updated configuration here.

This breaks the desired workflow when changes in the configuration could
be checked using "scripts/env diff" and commited with
"scripts/env save". Since the env/.config file is not updated.

Fix this issue by exporting KCONFIG_OVERWRITECONFIG=1, which forces
mconf to overwrite the .config content, instead of renaming it and
creating a new file. This variable is set only if .config is a symlink,
otherwise the variable is not exported and the old behaviour is
preserved.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
2017-04-26 11:34:41 +02:00
..
site toolchain: add support of ARC architecture 2015-11-10 12:03:59 +00:00
autotools.mk build: move STAGING_DIR_HOSTPKG and BUILD_DIR_HOST back to a common directory for all targets 2017-01-18 19:47:36 +01:00
cmake.mk cmake: skip build system check on compile 2017-02-21 13:03:20 +01:00
debug.mk include: remove trailing whitespaces 2015-03-29 07:29:18 +00:00
depends.mk build: add missing wildcard for ignoring .pkgdir in dependency checks 2017-02-05 22:17:30 +01:00
device_table.txt image: ensure that /dev/console exist in rootfs images 2013-08-27 12:02:58 +00:00
download.mk build: let make check warn about use of legacy PKG_MD5SUM variable in feeds 2017-01-13 10:23:43 +01:00
feeds.mk build: move PKG_CONFIG_DEPENDS from feeds.mk to opkg 2017-04-03 08:51:33 +02:00
hardening.mk hardening: make override variables more intuitive 2015-06-24 10:57:14 +00:00
host-build.mk build: fix STAMP_PREPARED with quilt 2017-03-22 20:17:20 +01:00
image-commands.mk build: make NETGEAR_REGION optional in netgear-chk 2017-03-12 09:28:19 +01:00
image-legacy.mk build: fix build of ubifs images 2017-01-09 16:31:39 +01:00
image.mk include/image.mk: allow passing a compat string to the NAND image template 2017-04-24 11:11:52 +02:00
kernel-build.mk build: get rid of host.mk 2017-02-26 13:31:44 +01:00
kernel-defaults.mk kernel: move initramfs's init script out of base-files 2017-04-04 14:06:40 +02:00
kernel-version.mk kernel: update kernel 4.4 to 4.4.61 2017-04-15 18:26:41 +02:00
kernel.mk kernel: allow subtarget specific KernelPackage 2017-01-04 13:20:19 +01:00
netfilter.mk netfilter.mk: prepare for linux 4.9 support 2017-01-27 11:18:27 +01:00
nls.mk nls.mk: add -rpath-link when needed for NLS support 2015-09-07 08:03:34 +00:00
package-bin.mk build: use if-then to avoid non-zero return codes in bin/ packaging code 2017-01-23 13:49:45 +01:00
package-defaults.mk build: copy contents of 'src' folder to build dirs (if present) 2016-10-15 11:36:51 +02:00
package-dumpinfo.mk include: fix nonshared flag handling 2016-04-15 10:26:36 +02:00
package-ipkg.mk build: clean up redundant touching of the package install info file 2017-02-26 13:31:44 +01:00
package-seccomp.mk include: add a seccomp filter install wrapper 2015-03-26 10:57:56 +00:00
package.mk build: remove package makefile overlay functionality 2017-04-12 09:53:06 +02:00
prereq-build.mk build: fix high cpu usage / hang in prereq-build.mk 2017-03-18 21:50:46 +01:00
prereq.mk build: do not overwrite already existing host commands 2015-09-16 12:38:16 +00:00
quilt.mk build: disable CONFIG_AUTOREMOVE for packages/tools where QUILT is used 2017-01-19 13:30:22 +01:00
rootfs.mk include/rootfs.mk: keep Require-User lines with CONFIG_CLEAN_IPKG 2017-01-24 17:18:36 +01:00
scan.awk build: propagate override information to .packageinfo 2015-02-09 12:09:31 +00:00
scan.mk build: get rid of host.mk 2017-02-26 13:31:44 +01:00
scons.mk build: use CXXFLAGS if defined 2016-10-13 17:04:43 +02:00
shell.sh build: use mkhash to replace various quirky md5sum/openssl calls 2017-01-05 11:09:12 +01:00
subdir.mk build: allow building an individual subdir without dependencies using NO_DEPS=1 2017-02-21 13:03:20 +01:00
target.mk build: fix aarch64 default cpu selection 2017-04-23 09:19:33 +08:00
toolchain-build.mk build: extend CONFIG_AUTOREMOVE to tools/ 2017-01-18 23:57:09 +01:00
toplevel.mk build: fix symlinked .config handling 2017-04-26 11:34:41 +02:00
u-boot.mk u-boot.mk: pass HOSTCC and HOST_CFLAGS into the build 2017-04-04 12:34:23 +02:00
uclibc++.mk toolchain: eliminate the INSTALL_LIBSTDCPP config symbol and make c++ support mandatory - fixes recursive config symbol dependency issues 2013-05-09 20:50:49 +00:00
unpack.mk build: unzip: perform operations quietly 2017-01-05 11:09:13 +01:00
verbose.mk build: tell users to do non-paralle builds on errors 2015-04-16 12:18:26 +00:00
version.mk build: use SNAPSHOT instead of CURRENT to designate untagged branch builds 2016-12-14 18:43:49 +01:00