Drop kernel package, as its very slow (#558)

This commit is contained in:
Itxaka
2023-12-05 09:49:21 +01:00
committed by GitHub
parent bfa1341a21
commit f2391cef29
6 changed files with 0 additions and 25055 deletions

View File

@@ -56,27 +56,6 @@ jobs:
- name: Set up Docker Buildx - name: Set up Docker Buildx
id: buildx id: buildx
uses: docker/setup-buildx-action@master uses: docker/setup-buildx-action@master
- name: Get kernel version
uses: mikefarah/yq@v4.40.4
id: kernel_version
with:
cmd: yq -r '.labels| with_entries(select(.key == "package.version"))|.[]' packages/kernels/upstream/definition.yaml
# this builds the kernel cross-compiled for arm64 so its faster
# notice that wee are not using builx nor platform so it runs under amd64
# This is much faster than building the kernel on arm64 via buildx and --platform
- name: Build kernel 🔧
uses: luet-lab/luet-github-action@master
with:
build: true
FINAL_REPO: quay.io/kairos/packages-arm64
DOCKER_USERNAME: ${{ secrets.QUAY_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
DOCKER_ENDPOINT: quay.io
REPOSITORY_TYPE: docker
pushFinalImages: true
pushCache: true
CURRENT_PACKAGE: kernels/linux@${{ steps.kernel_version.outputs.result }}
values: values/arm64.yaml
- name: Download meta 🔧 - name: Download meta 🔧
uses: luet-lab/luet-github-action@master uses: luet-lab/luet-github-action@master
with: with:

View File

@@ -22,25 +22,6 @@ jobs:
- name: Set up Docker Buildx - name: Set up Docker Buildx
id: buildx id: buildx
uses: docker/setup-buildx-action@master uses: docker/setup-buildx-action@master
- name: Get kernel version
uses: mikefarah/yq@v4.40.4
id: kernel_version
with:
cmd: yq -r '.labels| with_entries(select(.key == "package.version"))|.[]' packages/kernels/upstream/definition.yaml
# this builds the kernel cross-compiled for arm64 so its faster
# notice that wee are not using builx nor platform so it runs under amd64
# This is much faster than building the kernel on arm64 via buildx and --platform
- name: Build kernel 🔧
uses: luet-lab/luet-github-action@master
with:
build: true
FINAL_REPO: quay.io/kairos/packages-arm64
DOCKER_USERNAME: ${{ secrets.QUAY_USERNAME }}
REPOSITORY_TYPE: docker
pushFinalImages: false
pushCache: false
CURRENT_PACKAGE: kernels/linux@${{ steps.kernel_version.outputs.result }}
values: values/arm64.yaml
- name: Download meta 🔧 - name: Download meta 🔧
uses: luet-lab/luet-github-action@master uses: luet-lab/luet-github-action@master
with: with:

View File

@@ -1,47 +0,0 @@
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%\-*} && make install
- cd linux-${PACKAGE_VERSION%\-*} && ZSTD_CLEVEL=19 make INSTALL_MOD_PATH="/package/" INSTALL_MOD_STRIP=1 modules_install
- cp /boot/* /package/boot

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,13 +0,0 @@
category: "kernels"
name: "linux"
version: "6.5.7-1"
labels:
autobump.revdeps: "false"
autobump.string_replace: '{ "prefix": "" }'
autobump.strategy: "custom"
autobump.prefix: "prefix"
autobump.hook: |
curl -Ls https://kernel.org/releases.json | jq -cr '.latest_stable.version'
autobump.version_hook: |
curl -Ls https://kernel.org/releases.json | jq -cr '.latest_stable.version'
package.version: "6.5.7"