openwrt/include
Sergey Ryazanov bb9eb2c96e 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>
(cherry picked from commit e06d8f0f6f)
2017-12-13 15:27:36 +01:00
..
site build: add a darwin sitefile to deal with macOS 10.12 + Xcode 9 build errors 2017-10-05 21:16:25 +02:00
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 include: remove trailing whitespaces 2015-03-29 07:29:18 +00:00
depends.mk build: use mkhash to replace various quirky md5sum/openssl calls 2017-01-05 11:09:12 +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 include/feeds.mk: base list of enabled feeds on available instead of installed feeds 2017-01-16 09:11:56 +01: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-12-13 14:56:57 +01:00
host.mk build: get rid of FIND_L from host.mk 2017-12-13 14:32:21 +01:00
image-commands.mk build: unsilence move command 2017-12-13 14:31:36 +01:00
image-legacy.mk image: fix ar71xx legacy images 2017-07-14 23:36:50 +02:00
image.mk image.mk: Generate cpiogz with root-owned files 2017-05-16 17:38:08 +02:00
kernel-build.mk build: skip headers install and config on make target/linux/prepare 2017-12-13 14:27:44 +01:00
kernel-defaults.mk kernel: move initramfs's init script out of base-files 2017-12-13 15:00:42 +01:00
kernel-version.mk kernel: bump 4.4 to 4.4.103 for 17.01 2017-12-12 11:10:47 +01:00
kernel.mk build: fix kmod package build on non-GNU systems 2017-07-05 12:49:21 +02:00
netfilter.mk kernel: netfilter: split out iptable_raw into a separate package 2016-12-14 12:13:14 +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 include: remove trailing whitespaces 2015-03-29 07:29:18 +00:00
package-defaults.mk include/packages-defaults.mk: Remove LARGEFILE option 2017-12-13 15:19:04 +01:00
package-dumpinfo.mk include: fix nonshared flag handling 2016-04-15 10:26:36 +02:00
package-ipkg.mk package-ipkg: Do not fail build without base-files 2017-02-01 16:07:30 +01:00
package-seccomp.mk include: add a seccomp filter install wrapper 2015-03-26 10:57:56 +00:00
package.mk build: fix STAMP_PREPARED with quilt 2017-12-13 14:56:57 +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 build: do not overwrite already existing host commands 2015-09-16 12:38:16 +00:00
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 build: propagate override information to .packageinfo 2015-02-09 12:09:31 +00:00
scan.mk build: get rid of FIND_L from host.mk 2017-12-13 14:32:21 +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: implement make check and make package/X/check 2016-12-17 10:36:25 +01:00
target.mk target.mk: check that CPU_TYPE has known CPU_CFLAGS mapping 2017-12-13 15:00:21 +01:00
toolchain-build.mk include: remove trailing whitespaces 2015-03-29 07:29:18 +00:00
toplevel.mk build: new fixes for symlinked .config handling 2017-12-13 15:27:36 +01: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 LEDE v17.01.4: revert to branch defaults 2017-10-18 11:54:32 +03:00