1
0
Fork 0
forked from mirror/openwrt
openwrt/include
Sergey Ryazanov 37cf921352 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-05-02 16:11:09 +02:00
..
site
autotools.mk include/autotools.mk: use STAGING_DIR_HOSTPKG where appropriate 2017-01-14 18:57:13 +01:00
cmake.mk cmake: skip build system check on compile 2017-02-21 16:16:25 +01:00
debug.mk
depends.mk build: use mkhash to replace various quirky md5sum/openssl calls 2017-01-05 11:09:12 +01:00
device_table.txt
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 include/feeds.mk: base list of enabled feeds on available instead of installed feeds 2017-01-16 09:11:56 +01:00
hardening.mk
host-build.mk build: properly pass CPP and CXX flags in HOST_MAKE_VARS 2017-02-01 16:03:57 +01:00
host.mk
image-commands.mk image.mk: use LINUX_KARCH rather than ARCH for mkits 2017-01-13 14:54:11 +01:00
image-legacy.mk build: fix build of ubifs images 2017-01-09 16:31:39 +01:00
image.mk image.mk: force kernel rebuild on every run 2017-04-05 10:08:22 +02:00
kernel-build.mk git-kernel: $(SUBDIR) should always be $(LINUX_VERSION) 2017-01-19 12:34:04 +01:00
kernel-defaults.mk build: use mkhash to replace various quirky md5sum/openssl calls 2017-01-05 11:09:12 +01:00
kernel-version.mk kernel: update kernel 4.4 to 4.4.61 2017-04-15 17:20:51 +02:00
kernel.mk kernel: allow subtarget specific KernelPackage 2017-01-04 13:20:19 +01:00
netfilter.mk
nls.mk
package-bin.mk
package-defaults.mk
package-dumpinfo.mk
package-ipkg.mk package-ipkg: Do not fail build without base-files 2017-02-01 16:07:30 +01:00
package-seccomp.mk
package.mk build: remove obsolete parallel build related options 2017-01-10 12:10:20 +01:00
prereq-build.mk build: use mkhash to replace various quirky md5sum/openssl calls 2017-01-05 11:09:12 +01:00
prereq.mk
quilt.mk build: use mkhash to replace various quirky md5sum/openssl calls 2017-01-05 11:09:12 +01:00
rootfs.mk include/rootfs.mk: keep Require-User lines with CONFIG_CLEAN_IPKG 2017-01-27 10:09:50 +01:00
scan.awk
scan.mk build: scan.mk: consider KernelPackage pattern as well 2017-01-10 16:26:55 +01:00
scons.mk
shell.sh build: use mkhash to replace various quirky md5sum/openssl calls 2017-01-05 11:09:12 +01:00
subdir.mk
target.mk x86: unify CPU_TYPE for legacy and geode 2017-01-24 13:35:47 +01:00
toolchain-build.mk
toplevel.mk build: fix symlinked .config handling 2017-05-02 16:11:09 +02:00
uclibc++.mk
unpack.mk build: unzip: perform operations quietly 2017-01-05 11:09:13 +01:00
verbose.mk
version.mk LEDE v17.01: set branch defaults 2017-01-16 18:56:07 +01:00