generated from riscv/docs-spec-template
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
riscv-ap-tee-io: Use the RVI specification repo template
As defined by https://github.com/riscv/docs-spec-template. Signed-off-by: Samuel Ortiz <sameo@rivosinc.com>
- Loading branch information
Showing
36 changed files
with
185 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
|
||
/build/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[submodule "docs-resources"] | ||
path = specification/docs-resources | ||
path = docs-resources | ||
url = https://github.com/riscv/docs-resources.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: check-json | ||
- id: check-symlinks | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
args: [--markdown-linebreak-ext=md] | ||
|
||
- repo: local | ||
hooks: | ||
- id: forbidden-file-extensions | ||
name: forbidden-file-extensions | ||
entry: disallow these file extensions | ||
language: fail | ||
# Disallow other asciidoc extensions except .adoc | ||
files: .*\.(asciidoc|asc)$ | ||
|
||
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt | ||
rev: 0.2.3 | ||
hooks: | ||
- id: yamlfmt | ||
args: [--mapping, '2', --sequence, '4', --offset, '2'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,89 @@ | ||
spec-folder := specification | ||
# Makefile for RISC-V Doc Template | ||
# | ||
# This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 | ||
# International License. To view a copy of this license, visit | ||
# http://creativecommons.org/licenses/by-sa/4.0/ or send a letter to | ||
# Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. | ||
# | ||
# SPDX-License-Identifier: CC-BY-SA-4.0 | ||
# | ||
# Description: | ||
# | ||
# This Makefile is designed to automate the process of building and packaging | ||
# the Doc Template for RISC-V Extensions. | ||
|
||
.PHONY: all spec clean | ||
all: spec | ||
DOCS := \ | ||
riscv-cove-io.adoc | ||
|
||
spec: $(spec-folder) | ||
$(MAKE) --directory=$^ | ||
DATE ?= $(shell date +%Y-%m-%d) | ||
VERSION ?= v0.0.0 | ||
REVMARK ?= Draft | ||
ifneq ($(SKIP_DOCKER),true) | ||
DOCKER_CMD := docker run --rm -v ${PWD}:/build -w /build \ | ||
riscvintl/riscv-docs-base-container-image:latest \ | ||
/bin/sh -c | ||
DOCKER_QUOTE := " | ||
endif | ||
|
||
clean: $(spec-folder) | ||
$(MAKE) --directory=$? clean | ||
SRC_DIR := src | ||
BUILD_DIR := build | ||
|
||
DOCS_PDF := $(DOCS:%.adoc=%.pdf) | ||
DOCS_HTML := $(DOCS:%.adoc=%.html) | ||
|
||
XTRA_ADOC_OPTS := | ||
ASCIIDOCTOR_PDF := asciidoctor-pdf | ||
ASCIIDOCTOR_HTML := asciidoctor | ||
OPTIONS := --trace \ | ||
-a compress \ | ||
-a mathematical-format=svg \ | ||
-a revnumber=${VERSION} \ | ||
-a revremark=${REVMARK} \ | ||
-a revdate=${DATE} \ | ||
-a pdf-fontsdir=docs-resources/fonts \ | ||
-a pdf-theme=docs-resources/themes/riscv-pdf.yml \ | ||
$(XTRA_ADOC_OPTS) \ | ||
-D build \ | ||
--failure-level=ERROR | ||
REQUIRES := --require=asciidoctor-bibtex \ | ||
--require=asciidoctor-diagram \ | ||
--require=asciidoctor-mathematical | ||
|
||
.PHONY: all build clean build-container build-no-container build-docs | ||
|
||
all: build | ||
|
||
build-docs: $(DOCS_PDF) $(DOCS_HTML) | ||
|
||
vpath %.adoc $(SRC_DIR) | ||
|
||
%.pdf: %.adoc | ||
$(DOCKER_CMD) $(DOCKER_QUOTE) $(ASCIIDOCTOR_PDF) $(OPTIONS) $(REQUIRES) $< $(DOCKER_QUOTE) | ||
|
||
%.html: %.adoc | ||
$(DOCKER_CMD) $(DOCKER_QUOTE) $(ASCIIDOCTOR_HTML) $(OPTIONS) $(REQUIRES) $< $(DOCKER_QUOTE) | ||
|
||
build: | ||
@echo "Checking if Docker is available..." | ||
@if command -v docker >/dev/null 2>&1 ; then \ | ||
echo "Docker is available, building inside Docker container..."; \ | ||
$(MAKE) build-container; \ | ||
else \ | ||
echo "Docker is not available, building without Docker..."; \ | ||
$(MAKE) build-no-container; \ | ||
fi | ||
|
||
build-container: | ||
@echo "Starting build inside Docker container..." | ||
$(MAKE) build-docs | ||
@echo "Build completed successfully inside Docker container." | ||
|
||
build-no-container: | ||
@echo "Starting build..." | ||
$(MAKE) SKIP_DOCKER=true build-docs | ||
@echo "Build completed successfully." | ||
|
||
clean: | ||
@echo "Cleaning up generated files..." | ||
rm -rf $(BUILD_DIR) | ||
@echo "Cleanup completed." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
Dependencies for the build environment for various package managers. Used in | ||
`.github/workflows/`. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,31 @@ | ||
bison | ||
build-essential | ||
python3-pip | ||
cmake | ||
curl | ||
flex | ||
fonts-lyx | ||
git | ||
graphviz | ||
# For wavedrom | ||
default-jre | ||
libcairo2-dev | ||
libffi-dev | ||
libgdk-pixbuf2.0-dev | ||
libpango1.0-dev | ||
libxml2-dev | ||
libglib2.0-dev | ||
make | ||
pkg-config | ||
ruby | ||
ruby-dev | ||
libgif-dev | ||
libwebp-dev | ||
libzstd-dev | ||
ruby-full | ||
gem | ||
npm | ||
texlive-latex-base | ||
texlive-fonts-recommended | ||
texlive-fonts-extra | ||
texlive-latex-extra | ||
texlive-science |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
{ | ||
"name": "local", | ||
"version": "0.0.1", | ||
"dependencies": { | ||
"bytefield-svg": "^1.8.0", | ||
"wavedrom-cli": "^2.6.8" | ||
} | ||
}, | ||
"name": "local", | ||
"version": "0.0.1" | ||
} |
Submodule docs-resources
added at
37ec11
This file was deleted.
Oops, something went wrong.
Submodule docs-resources
deleted from
6a2d5b
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../docs-resources/images/risc-v_logo.png |
File renamed without changes
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
00-header.adoc |
File renamed without changes.