openwrt-owl/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 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: reset ALTERNATIVES field in Package/Default 2017-05-03 17:40:46 +08:00
package-dumpinfo.mk include: fix nonshared flag handling 2016-04-15 10:26:36 +02:00
package-ipkg.mk build: ipkg: new field Alternatives 2017-05-02 22:10:51 +08: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 build: cleanup tmp/ dir of target rootfs 2017-05-02 22:10:50 +08: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: 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 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