Skip to content

Commit 74ee17d

Browse files
authored
docs: add AMD copyright license header to external-facing docs (#65)
* docs: add AMD copyright license header to external-facing docs Signed-off-by: Juho Vainio <juho.vainio@amd.com> * ci: check AMD license header in all tracked Markdown files Signed-off-by: Juho Vainio <juho.vainio@amd.com> * docs: add AMD copyright license header to remaining Markdown files Signed-off-by: Juho Vainio <juho.vainio@amd.com> * ci: also verify SPDX-License-Identifier in Markdown license header check Signed-off-by: Juho Vainio <juho.vainio@amd.com> * ci: use hawkeye to check Markdown license headers Replace the grep-based Markdown header check with hawkeye, keeping all header enforcement in one tool. Two new config files are needed because hawkeye excludes *.md by default and has no built-in header type for it: - licenserc-md.toml: hawkeye config for Markdown, using a negation rule (!**/*.md) to override the default exclusion and a custom MARKDOWN_STYLE mapping for the .md extension. - licenserc-md-header.toml: defines MARKDOWN_STYLE as an HTML comment block (<!-- ... -->) without extra blank lines, matching our existing headers. The CI step now runs `hawkeye check --config licenserc-md.toml` instead of the 12-line git ls-files + grep loop. Signed-off-by: Juho Vainio <juho.vainio@amd.com> * ci: exclude .hawkeye-bin from Markdown license check Signed-off-by: Juho Vainio <juho.vainio@amd.com> * ci: gitignore .hawkeye-bin so hawkeye skips it The negation exclude rule (!**/*.md) in licenserc-md.toml overrides any subsequent positive excludes for .md files, so .hawkeye-bin/** in the excludes list had no effect. Adding .hawkeye-bin to .gitignore is cleaner: hawkeye's git integration never enumerates those files. Signed-off-by: Juho Vainio <juho.vainio@amd.com> * ci: fold Markdown into single hawkeye config and check Merge licenserc-md.toml into licenserc.toml so one config and one hawkeye check covers all file types. Remove the separate "Check license headers (Markdown)" CI step. The !**/*.md negation override, the MARKDOWN_STYLE mapping, and the additionalHeaders reference are now all in licenserc.toml. Add a comment explaining the force-include limitation: the negation cannot be subsequently re-excluded for a subset of paths, so any tracked *.md file under third_party/ would require a copyright header. Signed-off-by: Juho Vainio <juho.vainio@amd.com> * chore: standardize copyright header wording repo-wide Apply the © form and ", or its affiliates." suffix to all .rs, .py, and .sh files, matching the wording already used in the Markdown headers. Run with: hawkeye format Signed-off-by: Juho Vainio <juho.vainio@amd.com> --------- Signed-off-by: Juho Vainio <juho.vainio@amd.com>
1 parent dfeed20 commit 74ee17d

176 files changed

Lines changed: 287 additions & 157 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@
1010
active-implementation-log.md
1111
current-user-asks.md
1212
__pycache__/
13+
/.hawkeye-bin/

AGENTS.md

Lines changed: 6 additions & 0 deletions

MANIFEST.md

Lines changed: 6 additions & 0 deletions

README.md

Lines changed: 6 additions & 0 deletions

apps/rocm/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright Advanced Micro Devices, Inc.
1+
// Copyright © Advanced Micro Devices, Inc., or its affiliates.
22
//
33
// SPDX-License-Identifier: MIT
44

apps/rocm/src/automations.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright Advanced Micro Devices, Inc.
1+
// Copyright © Advanced Micro Devices, Inc., or its affiliates.
22
//
33
// SPDX-License-Identifier: MIT
44

apps/rocm/src/bootstrap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright Advanced Micro Devices, Inc.
1+
// Copyright © Advanced Micro Devices, Inc., or its affiliates.
22
//
33
// SPDX-License-Identifier: MIT
44

apps/rocm/src/comfyui.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright Advanced Micro Devices, Inc.
1+
// Copyright © Advanced Micro Devices, Inc., or its affiliates.
22
//
33
// SPDX-License-Identifier: MIT
44

apps/rocm/src/dash.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright Advanced Micro Devices, Inc.
1+
// Copyright © Advanced Micro Devices, Inc., or its affiliates.
22
//
33
// SPDX-License-Identifier: MIT
44

apps/rocm/src/dash_seam.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright Advanced Micro Devices, Inc.
1+
// Copyright © Advanced Micro Devices, Inc., or its affiliates.
22
//
33
// SPDX-License-Identifier: MIT
44

0 commit comments

Comments
 (0)