Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
338 changes: 338 additions & 0 deletions COPYING.GPL-2.0

Large diffs are not rendered by default.

661 changes: 661 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Top-level orchestration. Reads build.env (or build-env supplied via env).
# Each target is a thin wrapper around the recipe in recipes/.
#
Expand Down
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,3 +223,24 @@ If a change requires per-flavor kernel variants, it is a platform architecture
change, not a routine config edit. Document the rationale in
[docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) and
[docs/kernel-config.md](docs/kernel-config.md).

## Licensing

SmoothKernel's own build tooling is licensed under the [AGPL-3.0](LICENSE):
the Makefile, `recipes/`, `scripts/`, the packaging templates and the
workflows.

Kernel code cannot be AGPL, because the Linux kernel is GPL-2.0-only and code
built into it or loaded by it must be compatible. So the kernel parts keep a
GPLv2-compatible license:

- **`templates/compat.h.in`** is GPL-2.0-or-later, the closest compatible
license, so modules built from it can also be combined with GPL-3.0 and
AGPL-3.0 code outside the kernel.
- **`configs/`** are generated by the kernel's own build system and stay
GPL-2.0-only, like the kernel.
- **`patches/`** keep the license of the code they change: GPL-2.0-only for
kernel patches and CDDL-1.0 for the OpenZFS patches. Each patch also keeps
its upstream author.

The GPL-2.0 text is in [`COPYING.GPL-2.0`](COPYING.GPL-2.0).
1 change: 1 addition & 0 deletions recipes/build-kernel.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: AGPL-3.0-only
# build-kernel.sh — fetch a kernel.org tarball, apply vendored patch
# lanes, seed the canonical .config, and either refresh configs/ or
# produce linux-image / linux-headers / linux-libc-dev .deb files via
Expand Down
1 change: 1 addition & 0 deletions recipes/build-number.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: AGPL-3.0-only
# build-number.sh — print the build number for this checkout: the number of
# commits reachable from HEAD.
#
Expand Down
1 change: 1 addition & 0 deletions recipes/build-zfs.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: AGPL-3.0-only
# build-zfs.sh — fetch an OpenZFS source release and produce
# openzfs-zfs-dkms + userspace .deb files with OpenZFS' own Debian
# packaging (contrib/debian), so every package declares its real
Expand Down
1 change: 1 addition & 0 deletions recipes/check-zfs-dkms.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: AGPL-3.0-only
# Rebuild the generated DKMS package against this build's kernel. No install/load.
set -euo pipefail
: "${KERNEL_VERSION:?KERNEL_VERSION required}"
Expand Down
1 change: 1 addition & 0 deletions scripts/check-rocm-config.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: AGPL-3.0-only
set -euo pipefail

root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
Expand Down
1 change: 1 addition & 0 deletions scripts/check-router-config.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: AGPL-3.0-only
set -euo pipefail

root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
Expand Down
2 changes: 1 addition & 1 deletion templates/compat.h.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* @MODULE_NAME@ - kernel-version compatibility shims (skeleton).
*
Expand Down
Loading