Skip to content

Create Spec Tools

Mark Polyakov edited this page May 30, 2019 · 2 revisions

Deprecation Warning

The create spec tools turned out to be mostly useless. Almost all parts today are entered "by hand" or with some combination of weird shell commands and copy pasting. PRs to improve the spec creation tools would be awesome!

Running

To create a cpu, run npm run create-cpu. To create a gpu, run npm run create-gpu.

Answering the prompts

Most of the prompts will be for spec data, which is self-explanatory. Please use similar units to other parts. You can leave things empty. However, there are a few properties which are not so self-explanatory:

  • name: Should be a machine-readable name, with only alphanumeric characters and hyphens
  • humanName: Like name, but what's displayed on the page. May have special characters and spaces.
  • Inherits: A JSON representation of an array of things to inherit. For example, if you want to inherit just GCN 4, ["GCN 4"]
  • Custom data props: You can leave it empty, or provide a JSON array of non-standard data things to prompt for. For example, for Ryzen XFR stuff: ["XFR Frequency", "XFR Support"]
  • Write To: Where you want to save the generated file. See the page on spec file format to see where you should write it to.
Clone this wiki locally