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 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
depends.mk build: add missing wildcard for ignoring .pkgdir in dependency checks 2017-02-05 22:17:30 +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 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 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
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
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 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
scan.mk build: get rid of host.mk 2017-02-26 13:31:44 +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 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
unpack.mk build: unzip: perform operations quietly 2017-01-05 11:09:13 +01:00
verbose.mk
version.mk