Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel #1071

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Kernel #1071

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
1 change: 0 additions & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ jobs:
values: values/arm64.yaml
buildx: true
platform: linux/arm64

build:
runs-on: fast
env:
Expand Down
52 changes: 52 additions & 0 deletions packages/kernels/upstream/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
image: "fedora:latest"
package_dir: "/package"
prelude:
- dnf update -y && dnf install -y gcc make bison flex openssl openssl-devel elfutils-libelf-devel bc kmod xxd wget xz dwarves python3 cpio perl gettext diffutils bash coreutils tar which bzip2 findutils m4 perl-interpreter perl-Carp perl-devel perl-generators make diffutils gawk binutils redhat-rpm-config hmaccalc gcc-c++ python3-devel zstd gcc-c++-aarch64-linux-gnu binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu
- wget https://cdn.kernel.org/pub/linux/kernel/v${PACKAGE_VERSION%%.*}.x/linux-${PACKAGE_VERSION}.tar.xz
- ls -lh
- tar xf linux-${PACKAGE_VERSION}.tar.xz
env:
{{ if .Values.arch }}
{{ if eq .Values.arch "arm64" }}
- ARCH=arm64
- CROSS_COMPILE=aarch64-linux-gnu-
{{else}}
- ARCH=x86_64
{{end}}
{{end}}
steps:
- mkdir -p /package/boot
- mkdir -p /package/lib/modules/${PACKAGE_VERSION}/
{{ if .Values.arch }}
{{ if eq .Values.arch "arm64" }}
- cp configs/arm64.config linux-${PACKAGE_VERSION}/.config
{{ else }}
- cp configs/x86.config linux-${PACKAGE_VERSION}/.config
{{ end }}
{{ end }}
- cd linux-${PACKAGE_VERSION} && make olddefconfig
{{ if .Values.arch }}
{{ if eq .Values.arch "arm64" }}
- diff configs/arm64.config linux-${PACKAGE_VERSION}/.config || true
{{ else }}
- diff configs/x86.config linux-${PACKAGE_VERSION}/.config || true
{{ end }}
{{ end }}
- cd linux-${PACKAGE_VERSION} && make kernelversion
{{ if .Values.arch }}
{{ if eq .Values.arch "arm64" }}
- cd linux-${PACKAGE_VERSION} && make -j$(nproc) Image
{{ else }}
- cd linux-${PACKAGE_VERSION} && make -j$(nproc) bzImage
{{ end }}
{{ end }}
- cd linux-${PACKAGE_VERSION} && make -j$(nproc) modules
- cd linux-${PACKAGE_VERSION} && ZSTD_CLEVEL=19 INSTALL_MOD_PATH="/package" INSTALL_MOD_STRIP=1 make modules_install
{{ if .Values.arch }}
{{ if eq .Values.arch "arm64" }}
- cp /linux-${PACKAGE_VERSION}/arch/arm64/boot/Image /package/boot/vmlinuz-${PACKAGE_VERSION}
{{else}}
- cp /linux-${PACKAGE_VERSION}/arch/x86/boot/bzImage /package/boot/vmlinuz-${PACKAGE_VERSION}
{{ end }}
{{ end }}

Loading
Loading