You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
7 years ago
..
site toolchain: add support of ARC architecture 9 years ago
autotools.mk build: move STAGING_DIR_HOSTPKG and BUILD_DIR_HOST back to a common directory for all targets 7 years ago
cmake.mk cmake: skip build system check on compile 7 years ago
debug.mk include: remove trailing whitespaces 9 years ago
depends.mk build: add missing wildcard for ignoring .pkgdir in dependency checks 7 years ago
device_table.txt image: ensure that /dev/console exist in rootfs images 11 years ago
download.mk build: let make check warn about use of legacy PKG_MD5SUM variable in feeds 7 years ago
feeds.mk build: move PKG_CONFIG_DEPENDS from feeds.mk to opkg 7 years ago
hardening.mk hardening: make override variables more intuitive 9 years ago
host-build.mk build: fix STAMP_PREPARED with quilt 7 years ago
image-commands.mk build: make NETGEAR_REGION optional in netgear-chk 7 years ago
image-legacy.mk build: fix build of ubifs images 7 years ago
image.mk include/image.mk: allow passing a compat string to the NAND image template 7 years ago
kernel-build.mk build: get rid of host.mk 7 years ago
kernel-defaults.mk kernel: move initramfs's init script out of base-files 7 years ago
kernel-version.mk kernel: update kernel 4.4 to 4.4.61 7 years ago
kernel.mk kernel: allow subtarget specific KernelPackage 7 years ago
netfilter.mk netfilter.mk: prepare for linux 4.9 support 7 years ago
nls.mk nls.mk: add -rpath-link when needed for NLS support 9 years ago
package-bin.mk build: use if-then to avoid non-zero return codes in bin/ packaging code 7 years ago
package-defaults.mk build: reset ALTERNATIVES field in Package/Default 7 years ago
package-dumpinfo.mk include: fix nonshared flag handling 8 years ago
package-ipkg.mk build: ipkg: new field Alternatives 7 years ago
package-seccomp.mk include: add a seccomp filter install wrapper 9 years ago
package.mk build: remove package makefile overlay functionality 7 years ago
prereq-build.mk build: fix high cpu usage / hang in prereq-build.mk 7 years ago
prereq.mk build: do not overwrite already existing host commands 9 years ago
quilt.mk build: disable CONFIG_AUTOREMOVE for packages/tools where QUILT is used 7 years ago
rootfs.mk build: cleanup tmp/ dir of target rootfs 7 years ago
scan.awk build: propagate override information to .packageinfo 9 years ago
scan.mk build: get rid of host.mk 7 years ago
scons.mk build: use CXXFLAGS if defined 8 years ago
shell.sh build: use mkhash to replace various quirky md5sum/openssl calls 7 years ago
subdir.mk build: allow building an individual subdir without dependencies using NO_DEPS=1 7 years ago
target.mk build: fix aarch64 default cpu selection 7 years ago
toolchain-build.mk build: extend CONFIG_AUTOREMOVE to tools/ 7 years ago
toplevel.mk build: new fixes for symlinked .config handling 7 years ago
u-boot.mk u-boot.mk: pass HOSTCC and HOST_CFLAGS into the build 7 years ago
uclibc++.mk toolchain: eliminate the INSTALL_LIBSTDCPP config symbol and make c++ support mandatory - fixes recursive config symbol dependency issues 11 years ago
unpack.mk build: unzip: perform operations quietly 7 years ago
verbose.mk build: tell users to do non-paralle builds on errors 9 years ago
version.mk build: use SNAPSHOT instead of CURRENT to designate untagged branch builds 8 years ago