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
Petr Štetiar f962e021d4 kernel-build: fix kernel_menuconfig breakage by forcing YACC
Commit 965f341aa9 ("build: fix host menu config targets using
ncurses") has moved host's path with pkg-config (usually /usr/bin) at
the first place in PATH variable, which is now causing issues with bison
as BISON_PKGDATADIR points into STAGING_DIR_HOST, but the actual bison
used is the one under host PATH (usually /usr/bin/bison), leading to the
following strange failures:

 $ make target/linux/clean kernel_menuconfig V=sc

 export MAKEFLAGS= ;make -C /somewhere/linux-4.19.81 menuconfig
 make -f ./scripts/Makefile.build obj=scripts/kconfig menuconfig
  ...
  bison -oscripts/kconfig/zconf.tab.c -t -l scripts/kconfig/zconf.y
  staging_dir/host/bin/m4: cannot open `staging_dir/host/share/bison/bison.m4': No such file or directory
  staging_dir/host/bin/m4: cannot open `staging_dir/host/share/bison/c-skel.m4': No such file or directory
  ...
  gcc -Wp,-MD,scripts/kconfig/.zconf.tab.o.d <...snip...> -o scripts/kconfig/zconf.tab.o scripts/kconfig/zconf.tab.c
  gcc: error: scripts/kconfig/zconf.tab.c: No such file or directory
  gcc: fatal error: no input files

Fix this by forcing usage of bison under STAGING_DIR_HOST/bin via YACC
make variable.

Cc: Thomas Albers <thomas.gameiro@gmail.com>
Cc: Stijn Tintel <stijn@linux-ipv6.be>
Cc: Eneas U de Queiroz <cotequeiroz@gmail.com>
Tested-by: Ivan Revyakin <LovingFox@GMail.com>
Tested-by: Thomas Albers <thomas.gameiro@googlemail.com>
Ref: https://forum.openwrt.org/t/bpi-r64-kernel-4-19-kernel-menuconfig-error
Fixes: 965f341aa9 ("build: fix host menu config targets using ncurses")
Signed-off-by: Petr Štetiar <ynezz@true.cz>
5 years ago
..
site Revert faulty tree push 5 years ago
autotools.mk autotools.mk: autoreconf: fix missing install-sh 5 years ago
cmake.mk build: use CMAKE_SOURCE_SUBDIR variable to cmake.mk 6 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 Revert faulty tree push 5 years ago
feeds.mk build: suppress error output in feeds.mk 5 years ago
hardened-ld-pie.specs build: add hardened builds with PIE (ASLR) support 6 years ago
hardening.mk build: fix ASLR for LTO packages 6 years ago
host-build.mk build: call Host/Uninstall before wiping the host build dir 5 years ago
image-commands.mk Revert "build: separate signing logic" 5 years ago
image-legacy.mk image: fix ar71xx legacy images 7 years ago
image.mk build: image: posix compatibility cut v head 5 years ago
kernel-build.mk kernel-build: fix kernel_menuconfig breakage by forcing YACC 5 years ago
kernel-defaults.mk kernel-defaults: ensure SOURCE_DATE_EPOCH on /init 5 years ago
kernel-version.mk kernel: bump 4.19 to 4.19.82 5 years ago
kernel.mk kernel.mk: add KCFLAGS to make kmods reproducible 5 years ago
netfilter.mk netfilter: fix NAT packaging with kernels 5.2+ 5 years ago
nls.mk treewide: fix build depends to refer to source package names 7 years ago
package-bin.mk build: use if-then to avoid non-zero return codes in bin/ packaging code 8 years ago
package-defaults.mk include/package-defaults.mk: fix default Build/Prepare with empty ./src 6 years ago
package-dumpinfo.mk build: expose ABI version in .packageauxvars 5 years ago
package-ipkg.mk build: warn when packages have no associated install section 5 years ago
package-seccomp.mk include: add a seccomp filter install wrapper 9 years ago
package.mk Revert faulty tree push 5 years ago
prereq-build.mk build: fix seq host tool check 5 years ago
prereq.mk build: cleanup possibly dangling Python 2 host symlink 5 years ago
quilt.mk build: Use LINUX_DIR for Kernel/Patch 5 years ago
rootfs.mk rootfs.mk: ensure all timestamp are set to SOURCE_DATE_EPOCH 5 years ago
scan.awk build: propagate override information to .packageinfo 9 years ago
scan.mk build: have scripts/feeds honor all toplevel .mk-files of a feed 5 years ago
shell.sh build: use mkhash to replace various quirky md5sum/openssl calls 8 years ago
subdir.mk build: remove GNU time dependency 6 years ago
target.mk build: add urandom-seed and urngd to default packages set 5 years ago
toolchain-build.mk toolchain: Include hardening.mk for toolchain build 5 years ago
toplevel.mk build: fix host menu config targets using ncurses 5 years ago
u-boot.mk u-boot.mk: use openwrt url instead of lede project 5 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 include: unpack.mk: remove CRLF_WORKAROUND 5 years ago
verbose.mk include/verbose.mk: Add sc to failure message 6 years ago
version.mk version.mk: use https:// instead of http:// 5 years ago