This commit is contained in:
Josephine Pfeiffer 2025-06-01 12:38:14 +02:00
parent 79d84414e5
commit d7690f4c1d
No known key found for this signature in database
3 changed files with 20 additions and 10 deletions

View file

@ -26,25 +26,38 @@ jobs:
sudo apt-get update
sudo apt-get install -y podman
- name: Build containers
run: |
echo "Building required containers..."
# Build the main container
scripts/build-container.sh
# Tag it with the additional name used by initramfs script
sudo podman tag s390x-archlinux-dev s390x-mkinitcpio-complete
- name: Build kernel
run: |
echo "Building s390x kernel..."
scripts/build-all.sh --kernel-only
scripts/build-kernel-container.sh
- name: Build initramfs
run: |
echo "Building s390x initramfs..."
scripts/build-all.sh --initramfs-only
scripts/build-initramfs-final.sh
- name: Prepare boot files
run: |
echo "Preparing boot configuration..."
scripts/prepare-boot.sh
- name: Prepare release artifacts
run: |
mkdir -p release-artifacts
# Copy kernel
cp output/vmlinuz-linux release-artifacts/vmlinuz-linux-s390x
cp output/vmlinuz-6.6.10-s390x release-artifacts/vmlinuz-linux-s390x
# Copy initramfs
cp output/initramfs-linux.img release-artifacts/initramfs-linux-s390x.img
cp output/initramfs-6.6.10-s390x.img release-artifacts/initramfs-linux-s390x.img
# Copy boot configuration files
cp -r boot/* release-artifacts/

View file

@ -52,7 +52,7 @@ fi
# Setup toolchain path
echo -e "${YELLOW}Setting up toolchain path...${NC}"
source "$PROJECT_ROOT/setup-path.sh"
source "$PROJECT_ROOT/scripts/setup-path.sh"
# Parse arguments
BUILD_KERNEL=true

View file

@ -9,7 +9,7 @@ PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
OUTPUT_DIR="$PROJECT_ROOT/output"
INITRAMFS_NAME="initramfs-${KERNEL_VERSION}-s390x.img"
MKINITCPIO_SOURCE="$PROJECT_ROOT/mkinitcpio-source"
MKINITCPIO_REPO="https://gitlab.archlinux.org/archlinux/mkinitcpio.git"
MKINITCPIO_REPO="https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio.git"
MKINITCPIO_VERSION="v39.2" # Latest stable version
# Colors
@ -137,16 +137,13 @@ PATCH_EOF
echo "✓ Applied s390x patches to base install hook"
# Clean any existing build
# Clean any existing build directory
rm -rf build
# Build with meson
echo "Setting up meson build..."
meson setup build --prefix=/usr --sysconfdir=/etc
echo "Building mkinitcpio..."
meson compile -C build
echo "Installing mkinitcpio..."
meson install -C build