Added generation of OPENPDKS_TOP from the configure script to support technologies added as symbolic links, which can't use ".." to get back to the package top to reach the script files.
diff --git a/scripts/configure b/scripts/configure index 7beeacc..45ef4e1 100755 --- a/scripts/configure +++ b/scripts/configure
@@ -587,6 +587,7 @@ ac_subst_vars='LTLIBOBJS LIBOBJS +OPENPDKS_TOP ENABLED_TECHS EF_STYLE SKY130_OSU_T18_PATH @@ -2173,6 +2174,9 @@ ENABLED_TECHS= +# Export the open_pdks top level directory +OPENPDKS_TOP=`cd .. && pwd` + # detect PDKs based on directories that include Makefile.in files @@ -2762,6 +2766,8 @@ # Export the list of enabled technologies to the Makefile +# Export the top level directory of open_pdks + MAKEFILES=$(find -L .. -name "Makefile.in" | sed 's/\(.*\)\.in/\1/g') ac_config_files="$ac_config_files $MAKEFILES"
diff --git a/scripts/configure.ac b/scripts/configure.ac index cfeef5a..7f1ba4b 100755 --- a/scripts/configure.ac +++ b/scripts/configure.ac
@@ -22,6 +22,9 @@ ENABLED_TECHS= +# Export the open_pdks top level directory +OPENPDKS_TOP=`cd .. && pwd` + # detect PDKs based on directories that include Makefile.in files m4_define([M4_GET_TECHS], [m4_normalize(m4_esyscmd(cd .. && find -H * -mindepth 1 -maxdepth 1 -name "Makefile.in" -exec dirname {} \; | tr "\n" " "))]) @@ -259,6 +262,8 @@ AC_SUBST(EF_STYLE) # Export the list of enabled technologies to the Makefile AC_SUBST(ENABLED_TECHS) +# Export the top level directory of open_pdks +AC_SUBST(OPENPDKS_TOP) MAKEFILES=$(find -L .. -name "Makefile.in" | sed 's/\(.*\)\.in/\1/g') AC_CONFIG_FILES($MAKEFILES)