Openwrt/include
Sergey Ryazanov e06d8f0f6f build: new fixes for symlinked .config handling
When running "make {config|defconfig|oldconfig}" with symlinked .config
(e.g. to env/.config) it renames symlink to .config.old, creates new
.config file, and writes the updated configuration into it.

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

The things become even worse when working with feeds, since feeds script
quite often silently invokes "make {oldconfig|defconfig}" and breaks the
symlink.

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.

This change uses the same behaviour as "make menucofig", which has
already been fixed in commit 5bf98b1acc.

Also make a tiny cosmetic update to the "make menuconfig" target code
layout to make it look like other config handling targets.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
2017-05-11 00:53:05 +02:00
..
site
autotools.mk
cmake.mk cmake: skip build system check on compile 2017-02-21 13:03:20 +01:00
debug.mk
depends.mk
device_table.txt
download.mk
feeds.mk build: move PKG_CONFIG_DEPENDS from feeds.mk to opkg 2017-04-03 08:51:33 +02:00
hardening.mk
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
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
netfilter.mk
nls.mk
package-bin.mk
package-defaults.mk build: reset ALTERNATIVES field in Package/Default 2017-05-03 17:40:46 +08:00
package-dumpinfo.mk
package-ipkg.mk build: ipkg: new field Alternatives 2017-05-02 22:10:51 +08:00
package-seccomp.mk
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
quilt.mk
rootfs.mk build: cleanup tmp/ dir of target rootfs 2017-05-02 22:10:50 +08:00
scan.awk
scan.mk build: get rid of host.mk 2017-02-26 13:31:44 +01:00
scons.mk
shell.sh
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
toplevel.mk build: new fixes for symlinked .config handling 2017-05-11 00:53:05 +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
unpack.mk
verbose.mk
version.mk