Skip to content

Commit

Permalink
kernel-6.8/macaroni-full: Bump v.6.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
geaaru committed Mar 12, 2024
1 parent 4b01857 commit f9b97d1
Show file tree
Hide file tree
Showing 6 changed files with 10,658 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/kernels/6.8/macaroni/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
PACKAGE_VERSION=${PACKAGE_VERSION%\+*}
mkdir -p output/boot
pushd ${KERNEL_TYPE}

make -j$(nproc --ignore=1) KBUILD_BUILD_VERSION="$PACKAGE_VERSION-Macaroni"

if [[ -L "arch/${ARCH}/boot/bzImage" ]]; then
cp -rfv $(readlink -f "arch/${ARCH}/boot/bzImage") ../output/boot/"kernel-${KERNEL_PREFIX}-${ARCH}-${PACKAGE_VERSION}-${SUFFIX}"
else
cp -rfv arch/${ARCH}/boot/bzImage ../output/boot/"kernel-${KERNEL_PREFIX}-${ARCH}-${PACKAGE_VERSION}-${SUFFIX}"
fi
41 changes: 41 additions & 0 deletions packages/kernels/6.8/macaroni/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
image: "macaronios/terragon-minimal-devel:latest-amd64"
env:
- ARCH=x86_64
- KERNEL_PREFIX=vanilla
- SUFFIX=macaroni
- KERNEL_TYPE=linux
prelude:
- >-
export LUET_YES=true &&
luet repo update &&
luet i app-arch/zstd app-arch/xz-utils sys-devel/flex
sys-devel/bison sys-libs/ncurses sys-devel/make dev-util/kbuild
dev-vcs/git dev-libs/openssl dev-libs/elfutils
binutils sys-libs/binutils-libs
sys-devel/gcc-config
sys-apps/gawk
virtual/base
sys-apps/diffutils
sys-apps/baselayout
sys-apps/lsb-release
sys-apps/portage
net-misc/wget
app-misc/ca-certificates
sys-kernel/linux-headers
sys-devel/bc
sys-apps/kmod
&&
mkdir -p /etc/portage /tmp &&
echo "CHOST=\"${ARCH}-pc-linux-gnu\"" > /etc/portage/make.conf &&
/usr/bin/gcc-config 1 &&
eselect gcc set 1 &&
mkdir -p /var/lib/portage &&
eval 'rm /etc/localtime || true' &&
ln -s /usr/share/zoneinfo/Europe/Rome /etc/localtime &&
env-update &&
ldconfig &&
luet cleanup --purge-repos
- bash prepare.sh
steps:
- bash build.sh
package_dir: /luetbuild/output
30 changes: 30 additions & 0 deletions packages/kernels/6.8/macaroni/definition.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: macaroni-full
version: 6.8.0
category: kernel-6.8
requires:
- name: macaroni-modules
version: '>=0'
category: kernel-6.8
- name: ctl
version: '>=0'
category: macaroni
- name: sh
version: '>=0'
category: virtual
annotations:
kernel:
eol: "N/A"
lts: false
released: "2024-03-10"
suffix: macaroni
type: vanilla
labels:
autobump.hook: |
curl -Ls https://kernel.org/releases.json | jq -cr '[ .releases[] | select(.moniker == "longterm") ][0].version'
autobump.prefix: prefix
autobump.revdeps: "false"
autobump.strategy: custom
autobump.string_replace: '{ "prefix": "" }'
autobump.version_hook: |
curl -Ls https://kernel.org/releases.json | jq -cr '[ .releases[] | select(.moniker == "longterm") ][0].version'
package.version: 6.8.0
8 changes: 8 additions & 0 deletions packages/kernels/6.8/macaroni/finalize.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
uninstall:
- >-
eval 'rm -vf ${EROOT}/lib/modules/{{ index .Values.labels "package.version" }}-macaroni/modules.* || true' &&
withfiles=$(ls -1 ${EROOT}/lib/modules/{{ index .Values.labels "package.version" }}-macaroni/ | wc -l) &&
if [ $withfiles -eq 0 ] ; then rm -rf ${EROOT}/lib/modules/{{ index .Values.labels "package.version" }}-macaroni/ ; fi
install:
- depmod -a {{ index .Values.labels "package.version" }}-macaroni || true
- if [ -z ${BUILD_ISO} ] ; then env && PATH="/bin:/sbin:/usr/bin:/usr/sbin" macaronictl kernel gi --set-links --grub --purge --all || true ; fi
Loading

0 comments on commit f9b97d1

Please sign in to comment.