RTimothyEdwards / open_pdks

PDK installer for open-source EDA tools and toolchains. Distributed with setups for the SkyWater 130nm and Global Foundries 180nm open processes.
http://opencircuitdesign.com/open_pdks
Apache License 2.0
292 stars 86 forks source link

./configure --disable-XXX doesn't seem to work #177

Open mithro opened 3 years ago

mithro commented 3 years ago
./configure --enable-sky130-pdk=/host/skywater-pdk --enable-alpha-sky130 --prefix=/usr/local --enable-klayout --disable-magic --disable-netgen --disable-irsim --disa
ble-openlane --disable-qflow --disable-xschem                                                                                                                          
checking for a Python interpreter with version >= 3.4... python3                                                                                                       
checking for python3... /usr/bin/python3                                                                                                                               
checking for python3 version... 3.9                                                                                                                                    
checking for python3 platform... linux                                                                                                                                 
checking for python3 script directory... ${prefix}/lib/python3.9/site-packages                                                                                         
checking for python3 extension module directory... ${exec_prefix}/lib/python3.9/site-packages                                                                          
checking python3 module: distutils... yes                                                                                                                              
checking for a sed that does not truncate output... /bin/sed                                                                                                           
configure: Found technology directories: sky130                                                                                                                        
Checking technology sky130...                                                                                                                                          
configure: Checking specified path for 'sky130' at /host/skywater-pdk                                                                                                  
checking for /host/skywater-pdk... yes                                                                                                                                 
configure: 'sky130' source path found at /host/skywater-pdk                                                                                                            
configure: Link targets set to none                                                                                                                                    
configure: Found tools: klayout magic netgen irsim openlane qflow xschem
checking for magic... /host/out/magic/bin/magic
checking for patch... /usr/bin/patch
configure: Package 'sky130_ml_xx_hd' will be installed automatically during make.
configure: Package 'xschem_sky130' will be installed automatically during make.
configure: Package 'sky130_sram_macros' will not be installed.
configure: Package 'sky130_osu_t12' will not be installed.
configure: Package 'sky130_osu_t15' will not be installed.
configure: Package 'sky130_osu_t18' will not be installed.
configure: Tools enabled for PDK setup installation: klayout magic netgen irsim openlane qflow xschem
configure: creating ./config.status
config.status: creating ../sky130/Makefile
config.status: creating ../Makefile
Build configured successfully
mithro commented 3 years ago

Looking at the following code in the configure script;

        KLAYOUT_DISABLED=0
        # Check whether --enable-klayout was given.
if test "${enable_klayout+set}" = set; then :
  enableval=$enable_klayout;
                if test "$enableval" == "no" -o "$enableval" == "NO"; then
                    KLAYOUT_DISABLED=1
                fi

fi

I also tried --enable-XXXX=no but it also had no effect.

mithro commented 3 years ago

Actually it looks like the Tools enabled for PDK setup installation: line is hard coded? https://github.com/RTimothyEdwards/open_pdks/blob/4768d03a9fb22a8e453ccf40aa3f3216f08973df/scripts/configure#L2735-L2736

mithro commented 3 years ago

Looks like it comes from here; https://github.com/RTimothyEdwards/open_pdks/blob/4768d03a9fb22a8e453ccf40aa3f3216f08973df/scripts/configure.ac#L214-L234

mithro commented 3 years ago

As far as I can see, the --enable-tool / --disable-tool has no effect on the files produced.

Park-Hyung-Joo commented 2 years ago

configureError I have another kind of issue as you can see on this pic, --disable-XXX-sky130 occurs index error and xschem source is made

RTimothyEdwards commented 2 years ago

@Park-Hyung-Joo : I can confirm the "Traceback" message from the Configure script. However, when I ran the build after configuring with --disable-xschem-sky130 and --disable-alpha-sky130, those packages were not cloned, and the corresponding PDK directories were not populated and installed, as expected.