add kernel building

This commit is contained in:
2026-04-03 00:10:28 +02:00
parent fb064f9c9d
commit a9237f594c
5 changed files with 27 additions and 4 deletions

View File

@@ -0,0 +1,21 @@
FROM retrodebian/package-builder
RUN apt-get install -y linux-headers-2.6.24-etchnhalf.1-686 \
squashfs-source-etchnhalf \
linux-source-2.6.24 && \
apt-get build-dep -y linux-image-2.6.24-etchnhalf.1-686 && \
apt-get clean
# Preparing Kernel + patchs + modules
WORKDIR /usr/src
COPY unionfs-2.2.3_for_2.6.24.diff.gz ./
RUN tar xjf linux-source-2.6.24.tar.bz2 && \
tar xjf etchnhalf/squashfs.tar.bz2 && \
ln -s linux-headers-2.6.24-etchnhalf.1-686/ linux-headers && \
# Building Kernel + patchs + modules
WORKDIR /usr/src/linux-source-2.6.24
#COPY config-kernel ./
RUN (zcat /usr/src/unionfs-2.2.3_for_2.6.24.diff.gz | patch -p1) && \
# (cat config-kernel > .config) && \
make oldconfig &&\
make-kpkg --initrd --arch $ARCH kernel_headers kernel_image modules_image

View File

@@ -16,7 +16,9 @@ from retrobuilder.model import BaseSpec
SPEC = BaseSpec(
description='Common inherited base resources shared by concrete bases.',
docker_overrides={},
docker_overrides={
'pre-gen': {'dockerfile': 'bases/retrodebian/docker/system/Dockerfile'},
},
)

View File

@@ -1,4 +1,4 @@
FROM lpenz/debian-lenny-i386-minbase
FROM lpenz/debian-lenny-i386-minbase AS live-helper
ARG DEBIAN_FRONTEND=noninteractive
ARG ARCH=i386
RUN apt-get update && \

View File

@@ -1,2 +1,2 @@
FROM python:3.14-alpine
FROM python:3.14-alpine AS orchestrator
RUN apk add --no-cache git ca-certificates

View File

@@ -1,5 +1,5 @@
# building a modified Kernel + modules
FROM lpenz/debian-etch-i386-minbase
FROM lpenz/debian-etch-i386-minbase AS package-builder
ARG DEBIAN_FRONTEND=noninteractive
ARG ARCH=i386
ARG CONCURRENCY_LEVEL=4