[OpenWrt-Devel] [PATCH] build: fix make kernel_menuconfig
Petr Štetiar
ynezz at true.cz
Fri Sep 20 15:15:50 EDT 2019
Thomas Albers via openwrt-devel <openwrt-devel at lists.openwrt.org> [2019-09-16 17:55:42]:
Hi,
[...]
> Use system pkg-config instead of toolchain pkg-config when the kernel
> config scripts are compiled (see FS#2423)
[...]
> diff --git a/tools/pkg-config/files/pkg-config b/tools/pkg-config/files/pkg-config
> index 82cc74ffcb..00243e663e 100755
> --- a/tools/pkg-config/files/pkg-config
> +++ b/tools/pkg-config/files/pkg-config
> @@ -1,3 +1,7 @@
> #!/bin/sh
>
> -pkg-config.real --define-variable=prefix=${STAGING_PREFIX} --define-variable=exec_prefix=${STAGING_PREFIX} --define-variable=bindir=${STAGING_PREFIX}/bin $@
> +if [ -n "${STAGING_PREFIX}" ]; then
> + pkg-config.real --define-variable=prefix=${STAGING_PREFIX} --define-variable=exec_prefix=${STAGING_PREFIX} --define-variable=bindir=${STAGING_PREFIX}/bin $@
> +else
> + ${SYSTEM_PKG_CONFIG} $@
> +fi
I've discussed this patch today on IRC and we came to the conclusion, that
it's too fragile and that it would be preferred to simply focus on fixing just
what is broken, thus just kernel_menuconfig target.
I came up with following fix[1].
1. https://git.openwrt.org/4faf5f30e4479e4f033963c70b312035fa1774ab
-- ynezz
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list