toolchain/external: better report RPC error for custom toolchains
PATCH v2 1/1 toolchain/external: better report RPC error for custom toolchains
Currently, we instruct users to enable/disable BR2_TOOLCHAIN_HAS_NATIVE_RPC but that is a blind option. The only option users can set/unset is BR2_TOOLCHAIN_EXTERNAL_INET_RPC.
Use that in the error message.
Notes: the only way for this message to appear is for a custom external toolchain, either downloaded or pre-installed, so even though we check the validity of the toolchain with BR2_TOOLCHAIN_HAS_NATIVE_RPC, we do report on BR2_TOOLCHAIN_EXTERNAL_INET_RPC.
---
Changes v1 -> v2;
- fix typo in commit log (Arnout)
--- toolchain/helpers.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
toolchain/helpers.mk +2 -2
@@ -197,11 +197,11 @@ check_glibc_feature = \ check_glibc_rpc_feature = \ IS_IN_LIBC=`test -f $(1)/usr/include/rpc/rpc.h && echo y` ; \ if [ "$(BR2_TOOLCHAIN_HAS_NATIVE_RPC)" != "y" -a "$${IS_IN_LIBC}" = "y" ] ; then \ - echo "RPC support available in C library, please enable BR2_TOOLCHAIN_HAS_NATIVE_RPC" ; \ + echo "RPC support available in C library, please enable BR2_TOOLCHAIN_EXTERNAL_INET_RPC" ; \ exit 1 ; \ fi ; \ if [ "$(BR2_TOOLCHAIN_HAS_NATIVE_RPC)" = "y" -a "$${IS_IN_LIBC}" != "y" ] ; then \ - echo "RPC support not available in C library, please disable BR2_TOOLCHAIN_HAS_NATIVE_RPC" ; \ + echo "RPC support not available in C library, please disable BR2_TOOLCHAIN_EXTERNAL_INET_RPC" ; \ exit 1 ; \ fi
Signature · 1 line
1.9.1
Thomas Petazzoni
AppliedPATCH v2 1/1 toolchain/external: better report RPC error for custom toolchains
Dear Yann E. MORIN,
Quoted 15 lines · Yann E. MORIN
Currently, we instruct users to enable/disable
BR2_TOOLCHAIN_HAS_NATIVE_RPCbut that is a blind option. The only option users can set/unset isBR2_TOOLCHAIN_EXTERNAL_INET_RPC.Use that in the error message.
Notes: the only way for this message to appear is for a custom external toolchain, either downloaded or pre-installed, so even though we check the validity of the toolchain with
BR2_TOOLCHAIN_HAS_NATIVE_RPC, we do report onBR2_TOOLCHAIN_EXTERNAL_INET_RPC.Signed-off-by "Yann E. MORIN" <[email protected]>Cc Thomas Petazzoni <[email protected]>
Quoted 6 lines
---
Changes v1 -> v2;
- fix typo in commit log (Arnout)--- toolchain/helpers.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Applied, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com