Modified og_gui_manager.py to make it accessible on devices not on the efabless platform. Changed the create project script to make the proper config directories so that the editors can be used. Modified profile.py to make the settings properly reflect the user preferences.
diff --git a/common/create_project.py b/common/create_project.py
index 3c4cb4a..787274f 100755
--- a/common/create_project.py
+++ b/common/create_project.py
@@ -56,8 +56,9 @@
if pdkname:
if pdkname.startswith('/'):
pdkpath = pdkname
+ pdkname = os.path.split(pdkpath)[1]
else:
- pdkpath = os.path.join('PREFIX', 'pdk', pdkname)
+ pdkpath = os.path.join('/usr/share', 'pdk', pdkname)
else:
try:
pdkpath = os.getenv()['PDK_PATH']
@@ -119,6 +120,10 @@
else:
dongspice = True
+ if not os.path.isdir(pdkpath + '/.ef-config') and not os.path.isdir(pdkpath + '/.config'):
+ print('PDK does not contain .config or .ef-config directory, cannot create project.')
+ sys.exit(1)
+
if domagic or donetgen or doxschem or dongspice:
print('Creating project ' + projectname)
os.makedirs(projectpath)
@@ -126,6 +131,14 @@
print('No setup files were found . . . bailing.')
sys.exit(1)
+ if os.path.isdir(pdkpath + '/.ef-config'):
+ os.makedirs(projectpath + '/.ef-config')
+ os.symlink(pdkpath, projectpath + '/.ef-config/techdir')
+ elif os.path.isdir(pdkpath + '/.config'):
+ os.makedirs(projectpath + '/.config')
+ os.symlink(pdkpath, projectpath + '/.config/techdir')
+
+
if domagic:
magpath = os.path.join(projectpath, 'mag')
os.makedirs(magpath)