-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
38aeceb
commit 7bcf956
Showing
14 changed files
with
109 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,13 +6,26 @@ LABEL maintainer "Bryan J Rodriguez <[email protected]>" | |
|
||
RUN apk update && apk add --no-cache \ | ||
bash \ | ||
cpio \ | ||
coreutils \ | ||
curl \ | ||
e2fsprogs \ | ||
lsblk \ | ||
findutils \ | ||
gzip \ | ||
dnsmasq \ | ||
dumb-init \ | ||
iptables \ | ||
ovmf \ | ||
parted \ | ||
pv \ | ||
qemu \ | ||
qemu-img \ | ||
qemu-system-x86_64 | ||
qemu-system-x86_64 \ | ||
rsync \ | ||
syslinux \ | ||
util-linux \ | ||
xz | ||
|
||
COPY /bin/linuxkit /usr/bin/linuxkit | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,11 @@ | |
FROM alpine:3.12 as kernel-builder | ||
LABEL maintainer "Bryan J Rodriguez <[email protected]>" | ||
|
||
ARG UBUNTU_RELEASE=5.17.0-1011-oem | ||
ARG KERNEL_VERSION=5.17.0-1011.12_amd64 | ||
ARG UBUNTU_RELEASE=5.15.0-1010-intel-iotg | ||
ARG KERNEL_VERSION=5.15.0-1010.14~20.04.1_amd64 | ||
ARG KERNEL_PREFIX | ||
ARG KERNEL_PATH=linux-oem-5.17 | ||
ARG KERNEL_MODULE_PATH=linux-oem-5.17 | ||
ARG KERNEL_PATH=linux-intel-iotg-5.15 | ||
ARG KERNEL_MODULE_PATH=linux-intel-iotg-5.15 | ||
|
||
RUN apk update && apk add --no-cache \ | ||
bash \ | ||
|
@@ -26,12 +26,15 @@ RUN mkdir /out | |
# wget -qO - https://mirrors.kernel.org/ubuntu/pool/main/l/linux/ | sed -n 's/.*href="\([^"]*\).*/\1/p' | grep -o "linux-image-unsigned-[0-9]\.[0-9]\+\.[0-9]\+-[0-9]\+-generic_[^ ]\+amd64\.deb" | ||
|
||
RUN wget http://mirrors.edge.kernel.org/ubuntu/pool/main/l/${KERNEL_PATH}/linux-image-unsigned-${UBUNTU_RELEASE}_${KERNEL_VERSION}.deb && \ | ||
wget http://mirrors.edge.kernel.org/ubuntu/pool/main/l/${KERNEL_MODULE_PATH}/linux-modules-${UBUNTU_RELEASE}_${KERNEL_VERSION}.deb | ||
wget http://mirrors.edge.kernel.org/ubuntu/pool/main/l/${KERNEL_MODULE_PATH}/linux-modules-${UBUNTU_RELEASE}_${KERNEL_VERSION}.deb && \ | ||
wget http://mirrors.edge.kernel.org/ubuntu/pool/main/l/${KERNEL_MODULE_PATH}/linux-modules-extra-${UBUNTU_RELEASE}_${KERNEL_VERSION}.deb | ||
|
||
RUN ar x linux-image-unsigned-${UBUNTU_RELEASE}_${KERNEL_VERSION}.deb && \ | ||
tar -xf data.tar && \ | ||
ar x linux-modules-${UBUNTU_RELEASE}_${KERNEL_VERSION}.deb && \ | ||
tar -xf data.tar.zst && \ | ||
tar -xf data.tar.xz && \ | ||
ar x linux-modules-extra-${UBUNTU_RELEASE}_${KERNEL_VERSION}.deb && \ | ||
tar -xf data.tar.xz ./lib/modules/${UBUNTU_RELEASE}/kernel/drivers/net/ethernet/ ./lib/modules/${UBUNTU_RELEASE}/kernel/drivers/gpu/ ./lib/modules/${UBUNTU_RELEASE}/kernel/drivers/net/phy/ ./lib/modules/${UBUNTU_RELEASE}/kernel/drivers/net/wireless/ && \ | ||
for d in lib/modules/*; do depmod -b . $(basename $d); done && \ | ||
cp boot/vmlinuz* /out/kernel && \ | ||
cp boot/config* /out/kernel_config && \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,11 @@ | |
FROM alpine:3.12 as kernel-builder | ||
LABEL maintainer "Bryan J Rodriguez <[email protected]>" | ||
|
||
ARG UBUNTU_RELEASE=5.17.0-1011-oem | ||
ARG KERNEL_VERSION=5.17.0-1011.12_amd64 | ||
ARG UBUNTU_RELEASE=5.15.0-1010-intel-iotg | ||
ARG KERNEL_VERSION=5.15.0-1010.14~20.04.1_amd64 | ||
ARG KERNEL_PREFIX | ||
ARG KERNEL_PATH=linux-signed-oem-5.17 | ||
ARG KERNEL_MODULE_PATH=linux-oem-5.17 | ||
ARG KERNEL_PATH=linux-signed-intel-iotg-5.15 | ||
ARG KERNEL_MODULE_PATH=linux-intel-iotg-5.15 | ||
|
||
RUN apk update && apk add --no-cache \ | ||
bash \ | ||
|
@@ -25,13 +25,16 @@ RUN mkdir /out | |
# List of kernels | ||
# wget -qO - https://mirrors.kernel.org/ubuntu/pool/main/l/linux/ | sed -n 's/.*href="\([^"]*\).*/\1/p' | grep -o "linux-image-unsigned-[0-9]\.[0-9]\+\.[0-9]\+-[0-9]\+-generic_[^ ]\+amd64\.deb" | ||
|
||
RUN wget http://mirrors.edge.kernel.org/ubuntu/pool/main/l/${KERNEL_PATH}/linux-image-${UBUNTU_RELEASE}_${KERNEL_VERSION}.deb && \ | ||
wget http://mirrors.edge.kernel.org/ubuntu/pool/main/l/${KERNEL_MODULE_PATH}/linux-modules-${UBUNTU_RELEASE}_${KERNEL_VERSION}.deb | ||
RUN wget http://mirrors.edge.kernel.org/ubuntu/pool/main/l/${KERNEL_PATH}/linux-image-unsigned-${UBUNTU_RELEASE}_${KERNEL_VERSION}.deb && \ | ||
wget http://mirrors.edge.kernel.org/ubuntu/pool/main/l/${KERNEL_MODULE_PATH}/linux-modules-${UBUNTU_RELEASE}_${KERNEL_VERSION}.deb && \ | ||
wget http://mirrors.edge.kernel.org/ubuntu/pool/main/l/${KERNEL_MODULE_PATH}/linux-modules-extra-${UBUNTU_RELEASE}_${KERNEL_VERSION}.deb | ||
|
||
RUN ar x linux-image-${UBUNTU_RELEASE}_${KERNEL_VERSION}.deb && \ | ||
tar -xf data.tar.zst && \ | ||
RUN ar x linux-image-unsigned-${UBUNTU_RELEASE}_${KERNEL_VERSION}.deb && \ | ||
tar -xf data.tar && \ | ||
ar x linux-modules-${UBUNTU_RELEASE}_${KERNEL_VERSION}.deb && \ | ||
tar -xf data.tar.zst && \ | ||
tar -xf data.tar.xz && \ | ||
ar x linux-modules-extra-${UBUNTU_RELEASE}_${KERNEL_VERSION}.deb && \ | ||
tar -xf data.tar.xz ./lib/modules/${UBUNTU_RELEASE}/kernel/drivers/net/ethernet/ ./lib/modules/${UBUNTU_RELEASE}/kernel/drivers/net/phy/ ./lib/modules/${UBUNTU_RELEASE}/kernel/drivers/net/wireless/ && \ | ||
for d in lib/modules/*; do depmod -b . $(basename $d); done && \ | ||
cp boot/vmlinuz* /out/kernel && \ | ||
cp boot/config* /out/kernel_config && \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# Copyright (C) 2020 Intel Corporation | ||
# Copyright (C) 2022 Intel Corporation | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
FROM alpine:3.12 as kernel-builder | ||
LABEL maintainer "Bryan J Rodriguez <[email protected]>" | ||
|
||
ARG FIRMWARE=1.201.5_all | ||
ARG FIRMWARE=1.187.32_all | ||
|
||
RUN apk update && apk add --no-cache \ | ||
bash \ | ||
|
@@ -25,11 +25,11 @@ RUN mkdir /out | |
RUN wget https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_${FIRMWARE}.deb | ||
|
||
RUN ar x linux-firmware_${FIRMWARE}.deb && \ | ||
tar -xf data.tar.zst && \ | ||
tar -xf data.tar.xz && \ | ||
mv ./lib /out/ | ||
|
||
FROM scratch | ||
ENTRYPOINT [] | ||
CMD [] | ||
WORKDIR / | ||
COPY --from=kernel-builder /out/* / | ||
COPY --from=kernel-builder /out/* /lib/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# Copyright (C) 2020 Intel Corporation | ||
# Copyright (C) 2022 Intel Corporation | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
FROM alpine:3.12 as kernel-builder | ||
LABEL maintainer "Bryan J Rodriguez <[email protected]>" | ||
|
||
ARG FIRMWARE=1.201.5_all | ||
ARG FIRMWARE=1.187.32_all | ||
|
||
RUN apk update && apk add --no-cache \ | ||
bash \ | ||
|
@@ -13,7 +13,7 @@ RUN apk update && apk add --no-cache \ | |
rpm \ | ||
cpio \ | ||
binutils \ | ||
zstd | ||
zstd | ||
|
||
WORKDIR /build | ||
RUN mkdir /out | ||
|
@@ -25,11 +25,11 @@ RUN mkdir /out | |
RUN wget https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_${FIRMWARE}.deb | ||
|
||
RUN ar x linux-firmware_${FIRMWARE}.deb && \ | ||
tar -xf data.tar.zst && \ | ||
tar -xf data.tar.xz && \ | ||
mv ./lib /out/ | ||
|
||
FROM scratch | ||
ENTRYPOINT [] | ||
CMD [] | ||
WORKDIR / | ||
COPY --from=kernel-builder /out/* / | ||
COPY --from=kernel-builder /out/* /lib/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ FROM alpine:3.12 as kernel-builder | |
LABEL maintainer "Bryan J Rodriguez <[email protected]>" | ||
|
||
ARG UBUNTU_RELEASE=5.15.0-23-generic | ||
ARG FIRMWARE=1.201.5_all | ||
ARG FIRMWARE=1.187.32_all | ||
|
||
RUN apk update && apk add --no-cache \ | ||
bash \ | ||
|
@@ -14,7 +14,7 @@ RUN apk update && apk add --no-cache \ | |
rpm \ | ||
cpio \ | ||
binutils \ | ||
zstd | ||
zstd | ||
|
||
WORKDIR /build | ||
RUN mkdir /out | ||
|
@@ -26,11 +26,11 @@ RUN mkdir /out | |
RUN wget https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_${FIRMWARE}.deb | ||
|
||
RUN ar x linux-firmware_${FIRMWARE}.deb && \ | ||
tar -xf data.tar.zst && \ | ||
tar -xf data.tar.xz && \ | ||
mv ./lib /out/ | ||
|
||
FROM scratch | ||
ENTRYPOINT [] | ||
CMD [] | ||
WORKDIR / | ||
COPY --from=kernel-builder /out/* / | ||
COPY --from=kernel-builder /out/* /lib/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.