show_distro_config() { config_message+="\n\n Lakka configuration:" config_message+="\n $dashes$dashes" if [ "${DISABLE_LIBRETRO_OPTIONAL}" = "yes" ]; then config_message+="\n Excluding optional packages:" else config_message+="\n Including optional packages:" fi for pkg in ${LIBRETRO_OPTIONAL} ; do config_message+="\n\t\t\t\t${pkg}" done config_message+="\n $dashes$dashes" if [ "${DISABLE_LIBRETRO_CORES}" = "yes" ]; then config_message+="\n Building without any libretro cores!" else # source the libretro_cores package if [ ! -f ${ROOT}/packages/lakka/libretro_cores/package.mk ]; then echo "FAILURE: Cannot find packages/lakka/libretro_cores/package.mk!" exit 1 fi . ${ROOT}/packages/lakka/libretro_cores/package.mk declare -i count=0 for pkg in ${LIBRETRO_CORES} ; do count+=1 ; done config_message+="\n Including ${count} libretro core(s)" fi }