Compare commits
No commits in common. "428f2e4e2ba55f00f45d6995baa13dd9da349b14" and "0d2da01f7236a350ecf1a8b4329e0b225d9edf81" have entirely different histories.
428f2e4e2b
...
0d2da01f72
4 changed files with 8 additions and 92 deletions
67
builder.sh
67
builder.sh
|
@ -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
|
|
|
@ -1,3 +1,2 @@
|
||||||
dev-util/bindgen ~arm64
|
dev-util/bindgen ~arm64
|
||||||
sys-kernel/asahi-kernel ~arm64
|
sys-kernel/asahi-kernel ~arm64
|
||||||
virtual/dist-kernel ~arm64
|
|
||||||
|
|
|
@ -4,10 +4,9 @@ version_stamp: @TIMESTAMP@
|
||||||
rel_type: 23.0-default
|
rel_type: 23.0-default
|
||||||
profile: default/linux/arm64/23.0
|
profile: default/linux/arm64/23.0
|
||||||
snapshot_treeish: @TREEISH@
|
snapshot_treeish: @TREEISH@
|
||||||
source_subpath: @STAGE3_PATH@
|
source_subpath: 23.0-default/stage3-arm64-openrc-@TIMESTAMP@.tar.xz
|
||||||
compression_mode: pixz
|
compression_mode: pixz
|
||||||
portage_confdir: @REPO_DIR@/releases/portage/isos
|
portage_confdir: @REPO_DIR@/releases/portage/isos
|
||||||
repos: @ASAHIOVERLAY@ # Clone chadmed/asahi-overlay (GitHub) and point this to it
|
|
||||||
|
|
||||||
livecd/use:
|
livecd/use:
|
||||||
alsa
|
alsa
|
||||||
|
@ -103,13 +102,3 @@ livecd/packages:
|
||||||
sys-libs/gpm
|
sys-libs/gpm
|
||||||
sys-power/acpid
|
sys-power/acpid
|
||||||
www-client/links
|
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
|
|
||||||
|
|
|
@ -6,19 +6,19 @@ profile: default/linux/arm64/23.0
|
||||||
snapshot_treeish: @TREEISH@
|
snapshot_treeish: @TREEISH@
|
||||||
source_subpath: 23.0-default/livecd-stage1-arm64-@TIMESTAMP@.tar.xz
|
source_subpath: 23.0-default/livecd-stage1-arm64-@TIMESTAMP@.tar.xz
|
||||||
portage_confdir: @REPO_DIR@/releases/portage/isos
|
portage_confdir: @REPO_DIR@/releases/portage/isos
|
||||||
repos: @ASAHIOVERLAY@ # Clone chadmed/asahi-overlay (GitHub) and point this to it
|
|
||||||
|
|
||||||
livecd/bootargs: dokeymap
|
livecd/bootargs: dokeymap
|
||||||
livecd/fstype: squashfs
|
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/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/gentoo/sources: sys-kernel/gentoo-sources
|
||||||
boot/kernel/asahi/sources: sys-kernel/asahi-kernel
|
boot/kernel/gentoo/config: @REPO_DIR@/releases/kconfig/arm64/arm64-5.15.12.config
|
||||||
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/packages: --usepkg n zfs zfs-kmod
|
||||||
|
|
||||||
livecd/unmerge:
|
livecd/unmerge:
|
||||||
app-admin/eselect
|
app-admin/eselect
|
||||||
|
@ -63,11 +63,6 @@ livecd/unmerge:
|
||||||
sys-libs/gdbm
|
sys-libs/gdbm
|
||||||
sys-kernel/genkernel
|
sys-kernel/genkernel
|
||||||
sys-kernel/linux-headers
|
sys-kernel/linux-headers
|
||||||
dev-util/bindgen
|
|
||||||
dev-lang/rust-bin
|
|
||||||
virtual/rust
|
|
||||||
sys-devel/llvm
|
|
||||||
sys-devel/clang
|
|
||||||
|
|
||||||
livecd/empty:
|
livecd/empty:
|
||||||
/boot
|
/boot
|
||||||
|
|
Loading…
Add table
Reference in a new issue