1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-10-19 05:58:53 +02:00
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 5bf98b1acc3b6b178f8954c5075a58e1e6a99d6a.

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
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
image-commands.mk
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
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
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
scons.mk
shell.sh
subdir.mk
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