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

Make copied source read-only files writable (fixes #460) #461

Closed fedeinthemix closed 1 month ago

fedeinthemix commented 1 month ago

As discussed in #460

RTimothyEdwards commented 1 month ago

Pulled and merged in opencircuitdesign.com (github mirror will update in about 20 hours).

fedeinthemix commented 1 month ago

I have to wonder why the source files must end up as read-only, but at least there is no harm done in making sure all copied files are writeable.

nix applies functional programming concepts to package management. Given source code, dependencies and build tools, the output is fully determined and immutable. To achieve this all files are put the so called store where everything is read-only.

RTimothyEdwards commented 1 month ago

@fedeinthemix : But doesn't that mean there are numerous other places where chmod needs to be applied in the Makefile? You changed one line for xschem sources in one of the PDKs, but there is a lot more copying going on than that.

fedeinthemix commented 1 month ago

@RTimothyEdwards As long as the files are not modified it's OK. At the moment the changes I proposed are enough to make the sky130 PDK installation complete.

It's quite possible that more changes will be needed for other PDKs, but so far I've not packaged them up.