diff --git a/support/functions/_toolchain b/support/functions/_toolchain index 1540392..0bae838 100644 --- a/support/functions/_toolchain +++ b/support/functions/_toolchain @@ -186,6 +186,15 @@ _toolchain_check(){ temp=$(find * |grep -m1 "$e"); [ ${#temp} -gt 8 ] && echo -e "$w_l Header File :$y_l $e$g_l\t$txt_found" || echo -e "$w_l Header File :$y_l $e$r_l\t($txt_not_found)"; done; + libconfigvars=( libcrypto.pc libpcsclite.pc libusb-1.0.pc zlib.pc ); + pkg=$(find * |grep -m1 "pkgconfig"); + [ "$1" == "native" ] && cd "$_sysroot/$pkg" || cd "$tcdir/$1/$_sysroot/$pkg"; + echo -e "\n$w_l Library config ----> $C$_sysroot/$pkg$w_l\n ====================\n"; + for f in *.pc;do + content=$(cat "$f") && na=$(echo "$content" | grep 'Name:' | sed -e "s/Name: //g") && ver=$(echo "$content" | grep 'Version:' | sed -e "s/Version: //g"); + sp1=$(printf '%*s' $((20-${#f})) | tr ' ' ' ') && sp2=$(printf '%*s' $((20-${#na})) | tr ' ' ' '); + [ ${#content} -gt 0 ] && echo -e "$w_l Library Config :$y_l "$f"$sp1$g_l$txt_found\t$p_l$na$sp2$ver" || echo -e "$w_l Library Config :$y_l "$f"$sp1$r_l($txt_not_found)"; + done; echo -e $re_; exit; };