diff --git a/builder.sh b/builder.sh deleted file mode 100644 index 1f243fd9..00000000 --- a/builder.sh +++ /dev/null @@ -1,67 +0,0 @@ -#!/bin/bash -# SPDX-License-Identifier: GPL-3.0-only -# Gentoo Asahi release builder - -: ${BASEDIR:="/var/tmp/catalyst"} -: ${BUILDDIR:="${BASEDIR}/builds"} -: ${VER:=$(date +'%Y%m%d')} -: ${GENTOO_MIRROR:="https://mirror.aarnet.edu.au/pub/gentoo/"} - -echo "Trying to enter ${BASEDIR}..." -cd "${BASEDIR}" - -echo "Cleaning out ${BASEDIR}..." -#rm -rf "${BASEDIR}"/* - -echo "Cloning Gentoo Asahi releng files..." -git clone https://github.com/chadmed/gentoo-asahi-releng \ - --branch=asahi \ - --depth=1 \ - --quiet \ - "${BASEDIR}/releng" - -echo "Setting up ::gentoo repo" -mkdir "${BASEDIR}"/repos -git clone https://github.com/gentoo/gentoo.git \ - --depth=1 \ - --bare \ - -c gc.reflogExpire=0 \ - -c gc.reflogExpireUnreachable=0 \ - -c gc.rerereresolved=0 \ - -c gc.rerereunresolved=0 \ - -c gc.pruneExpire=now \ - --branch=master \ - --quiet \ - "${BASEDIR}/repos/gentoo.git" -catalyst --snapshot master - -echo "Cloning ::asahi overlay" -git clone https://github.com/chadmed/asahi-overlay \ - --quiet \ - "${BASEDIR}/asahi-overlay" - -echo "Getting latest stage3 from Gentoo Mirror..." -mkdir "${BASEDIR}"/builds -stage3_line=$(curl -L "${GENTOO_MIRROR}/releases/arm64/autobuilds/current-stage3-arm64-openrc/latest-stage3-arm64-openrc.txt" | grep "stage3") -stage3_path="${BASEDIR}/builds/${stage3_line% *}" -curl -L "${GENTOO_MIRROR}/releases/arm64/autobuilds/current-stage3-arm64-openrc/${stage3_line% *}" \ - -o "${stage3_path}" -q - -echo "Setting up spec files for build..." -cp "${BASEDIR}/releng/releases/specs/arm64/"*.spec "${BASEDIR}/." -echo " Setting version timestamp to ${VER}" -sed -i "s/@TIMESTAMP@/${VER}/g" "${BASEDIR}"/*.spec -echo " Setting ::gentoo snapshot to master" -sed -i "s/@TREEISH@/master/g" "${BASEDIR}"/*.spec -echo " Setting stage3 path" -sed -i "s+@STAGE3_PATH@+${stage3_line% *}+g" "${BASEDIR}"/*.spec -echo " Setting releng repo directory" -sed -i "s+@REPO_DIR@+${BASEDIR}/releng+g" "${BASEDIR}"/*.spec -echo " Setting asahi-overlay directory" -sed -i "s+@ASAHIOVERLAY@+${BASEDIR}/asahi-overlay+g" "${BASEDIR}"/*.spec - -echo "Building stage1..." -catalyst -f installcd-stage1.spec - -echo "Building stage2 ISO..." -catalyst -f installcd-stage2-minimal.spec diff --git a/releases/portage/isos/package.accept_keywords/asahi b/releases/portage/isos/package.accept_keywords/asahi index 08b5cb7e..bf628dad 100644 --- a/releases/portage/isos/package.accept_keywords/asahi +++ b/releases/portage/isos/package.accept_keywords/asahi @@ -1,3 +1,2 @@ dev-util/bindgen ~arm64 sys-kernel/asahi-kernel ~arm64 -virtual/dist-kernel ~arm64 diff --git a/releases/specs/arm64/installcd-stage1.spec b/releases/specs/arm64/installcd-stage1.spec index 1d4fcb00..cfc31d12 100644 --- a/releases/specs/arm64/installcd-stage1.spec +++ b/releases/specs/arm64/installcd-stage1.spec @@ -4,10 +4,9 @@ version_stamp: @TIMESTAMP@ rel_type: 23.0-default profile: default/linux/arm64/23.0 snapshot_treeish: @TREEISH@ -source_subpath: @STAGE3_PATH@ +source_subpath: 23.0-default/stage3-arm64-openrc-@TIMESTAMP@.tar.xz compression_mode: pixz portage_confdir: @REPO_DIR@/releases/portage/isos -repos: @ASAHIOVERLAY@ # Clone chadmed/asahi-overlay (GitHub) and point this to it livecd/use: alsa @@ -103,13 +102,3 @@ livecd/packages: sys-libs/gpm sys-power/acpid www-client/links - # Asahi packages from ::gentoo - sys-fs/squashfs-tools - dev-util/bindgen - dev-lang/rust-bin - virtual/rust - app-portage/gentoolkit - # Asahi packages from ::asahi - sys-apps/asahi-configs - sys-apps/asahi-scripts - sys-firmware/asahi-firmware diff --git a/releases/specs/arm64/installcd-stage2-minimal.spec b/releases/specs/arm64/installcd-stage2-minimal.spec index e7ee0d06..9f295859 100644 --- a/releases/specs/arm64/installcd-stage2-minimal.spec +++ b/releases/specs/arm64/installcd-stage2-minimal.spec @@ -6,19 +6,19 @@ profile: default/linux/arm64/23.0 snapshot_treeish: @TREEISH@ source_subpath: 23.0-default/livecd-stage1-arm64-@TIMESTAMP@.tar.xz portage_confdir: @REPO_DIR@/releases/portage/isos -repos: @ASAHIOVERLAY@ # Clone chadmed/asahi-overlay (GitHub) and point this to it livecd/bootargs: dokeymap livecd/fstype: squashfs -livecd/iso: install-arm64-asahi-@TIMESTAMP@.iso +livecd/gk_mainargs: --all-ramdisk-modules --firmware +livecd/iso: install-arm64-minimal-@TIMESTAMP@.iso livecd/type: gentoo-release-minimal -livecd/volid: Gentoo_Asahi_arm64_@TIMESTAMP@ +livecd/volid: Gentoo arm64 @TIMESTAMP@ -boot/kernel: asahi +boot/kernel: gentoo -boot/kernel/asahi/distkernel: yes -boot/kernel/asahi/sources: sys-kernel/asahi-kernel -boot/kernel/asahi/dracut_args: --xz --no-hostonly -a dmsquash-live -o btrfs -o i18n -o usrmount -o lunmask -o multipath -i /lib/keymaps /lib/keymaps -I busybox +boot/kernel/gentoo/sources: sys-kernel/gentoo-sources +boot/kernel/gentoo/config: @REPO_DIR@/releases/kconfig/arm64/arm64-5.15.12.config +boot/kernel/gentoo/packages: --usepkg n zfs zfs-kmod livecd/unmerge: app-admin/eselect @@ -63,11 +63,6 @@ livecd/unmerge: sys-libs/gdbm sys-kernel/genkernel sys-kernel/linux-headers - dev-util/bindgen - dev-lang/rust-bin - virtual/rust - sys-devel/llvm - sys-devel/clang livecd/empty: /boot