Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: pull all build scripts under build_files directory #177

Open
wants to merge 28 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
2d16892
chore: pull all build scripts under build_files directory
mulderje Apr 17, 2024
8a4d3e9
chore: pull common post-build actions into a 'build-post.sh' file
mulderje Apr 17, 2024
c1a6973
fix: mark build-post.sh as executable
mulderje Apr 17, 2024
57f468a
Merge remote-tracking branch 'upstream/main' into extra-refactor-buil…
mulderje Apr 19, 2024
70cc13c
Merge remote-tracking branch 'upstream/main' into extra-refactor-buil…
mulderje Apr 19, 2024
f1b280f
Merge branch 'main' into extra-refactor-build-post
mulderje Apr 27, 2024
bf4f7bf
chore: switch extra file to build-post.sh
mulderje Apr 27, 2024
2297bab
Merge branch 'main' into extra-refactor-build_files-dir
mulderje Apr 27, 2024
1c7acf2
chore: move additional build scripts since initial PR
mulderje Apr 27, 2024
8c8a0e0
chore: leverage new build_files directory and copy to /tmp/build
mulderje Apr 27, 2024
816590a
fixup: remove '/tmp/build/build/' copy/paste that didn't save
mulderje Apr 27, 2024
774cb26
fix(extra): remove framework-laptop duplicate from common
mulderje Apr 27, 2024
d0173fe
chore(extra): remove unnecessary ublue addon spec file
mulderje Apr 27, 2024
6269b6e
fixup(extra): s/common/extra in a copy line
mulderje Apr 27, 2024
5854f49
Merge branch 'extra-refactor-build-post' into extra-refactor-build_fi…
mulderje Apr 27, 2024
0e05913
chore(extra): fold #178 into this PR
mulderje Apr 27, 2024
6673f62
fixup: s/build// from /tmp path change to reduce churn
mulderje May 2, 2024
4079916
Merge branch 'main' into extra-refactor-build_files-dir
mulderje May 15, 2024
be484e0
chore: move kvmf build file to common directory
mulderje May 15, 2024
d4528ad
Merge remote-tracking branch 'upstream/main' into extra-refactor-buil…
mulderje May 16, 2024
59c60a6
Merge branch 'main' into extra-refactor-build_files-dir
mulderje May 22, 2024
4edcade
fix(framework-laptop): ensure only in one kmod stream
mulderje May 22, 2024
f6d84f3
Merge branch 'main' into extra-refactor-build_files-dir
mulderje May 22, 2024
d096674
Merge branch 'main' into extra-refactor-build_files-dir
mulderje May 24, 2024
80e12cb
chore: Update module checks for xone
KyleGospo May 28, 2024
850f990
chore(ci): switch back to 22.04 builders (#202)
castrojo May 29, 2024
49463ec
Merge remote-tracking branch 'upstream/main' into extra-refactor-buil…
mulderje Jun 5, 2024
3fc17df
Merge remote-tracking branch 'upstream/main' into extra-refactor-buil…
mulderje Jun 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions Containerfile.common
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ ARG KERNEL_FLAVOR="{KERNEL_FLAVOR:-main}"
ARG KERNEL_VERSION=""
ARG RPMFUSION_MIRROR=""

COPY build*.sh /tmp
COPY build_files/common build_files/shared /tmp/
COPY certs /tmp/certs

# files for akmods
COPY ublue-os-akmods-addons.spec /tmp/ublue-os-akmods-addons/ublue-os-akmods-addons.spec
ADD https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/repo/fedora-${FEDORA_MAJOR_VERSION}/ublue-os-akmods-fedora-${FEDORA_MAJOR_VERSION}.repo \
/tmp/ublue-os-akmods-addons/rpmbuild/SOURCES/_copr_ublue-os-akmods.repo
ADD https://negativo17.org/repos/fedora-multimedia.repo \
Expand Down Expand Up @@ -47,11 +46,9 @@ RUN if grep -qv "surface" <<< "${KERNEL_FLAVOR}"; then \

RUN cp /tmp/ublue-os-akmods-addons/rpmbuild/RPMS/noarch/ublue-os-akmods-addons*.rpm \
/var/cache/rpms/ublue-os/
RUN for RPM in $(find /var/cache/akmods/ -type f -name \*.rpm); do \
cp "${RPM}" /var/cache/rpms/kmods/; \
done

RUN find /var/cache/rpms
# Copy all RPMs from /var/cache/akmods/ to /var/cache/rpms/kmods/
RUN /tmp/build-post.sh

FROM scratch

Expand Down
10 changes: 3 additions & 7 deletions Containerfile.extra
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ ARG KERNEL_FLAVOR="{KERNEL_FLAVOR:-main}"
ARG KERNEL_VERSION=""
ARG RPMFUSION_MIRROR=""

COPY build*.sh /tmp
COPY build_files/extra build_files/shared /tmp/
COPY certs /tmp/certs

# files for akmods
COPY ublue-os-akmods-addons.spec /tmp/ublue-os-akmods-addons/ublue-os-akmods-addons.spec
ADD https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/repo/fedora-${FEDORA_MAJOR_VERSION}/ublue-os-akmods-fedora-${FEDORA_MAJOR_VERSION}.repo \
/tmp/ublue-os-akmods-addons/rpmbuild/SOURCES/_copr_ublue-os-akmods.repo
ADD https://negativo17.org/repos/fedora-multimedia.repo \
Expand Down Expand Up @@ -50,11 +49,8 @@ RUN if grep -qv "surface" <<< "${KERNEL_FLAVOR}"; then \
/tmp/build-kmod-vhba.sh && \
/tmp/build-kmod-VirtualBox.sh

RUN for RPM in $(find /var/cache/akmods/ -type f -name \*.rpm); do \
cp "${RPM}" /var/cache/rpms/kmods/; \
done

RUN find /var/cache/rpms
# Copy all RPMs from /var/cache/akmods/ to /var/cache/rpms/kmods/
RUN /tmp/build-post.sh

FROM scratch

Expand Down
9 changes: 3 additions & 6 deletions Containerfile.nvidia
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ ARG KERNEL_FLAVOR="{KERNEL_FLAVOR:-main}"
ARG KERNEL_VERSION=""
ARG RPMFUSION_MIRROR=""

COPY build*.sh /tmp
COPY build_files/nvidia build_files/shared /tmp/
COPY certs /tmp/certs

# files for nvidia
COPY ublue-os-nvidia-addons.spec /tmp/ublue-os-nvidia-addons/ublue-os-nvidia-addons.spec
ADD https://nvidia.github.io/libnvidia-container/stable/rpm/nvidia-container-toolkit.repo \
/tmp/ublue-os-nvidia-addons/rpmbuild/SOURCES/nvidia-container-toolkit.repo
ADD https://copr.fedorainfracloud.org/coprs/eyecantcu/supergfxctl/repo/fedora-${FEDORA_MAJOR_VERSION}/eyecantcu-supergfxctl-fedora-${FEDORA_MAJOR_VERSION}.repo \
Expand All @@ -43,11 +42,9 @@ RUN if grep -qv "surface" <<< "${KERNEL_FLAVOR}"; then \

RUN cp /tmp/ublue-os-nvidia-addons/rpmbuild/RPMS/noarch/ublue-os-nvidia-addons*.rpm \
/var/cache/rpms/ublue-os/
RUN for RPM in $(find /var/cache/akmods/ -type f -name \*.rpm); do \
cp "${RPM}" /var/cache/rpms/kmods/; \
done

RUN find /var/cache/rpms
# Copy all RPMs from /var/cache/akmods/ to /var/cache/rpms/kmods/
RUN /tmp/build-post.sh

FROM scratch

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions build_files/shared/build-post.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

set -oeux pipefail

for RPM in $(find /var/cache/akmods/ -type f -name \*.rpm); do \
cp "${RPM}" /var/cache/rpms/kmods/; \
done

find /var/cache/rpms
File renamed without changes.