Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 3 additions & 0 deletions config/docker/fragment/kernelci.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ RUN cp -R config /etc/kernelci/
WORKDIR /root
RUN rm -rf /tmp/kernelci-core

# Install tuxmake kernel build tool
RUN pip3 install --break-system-packages --no-cache-dir tuxmake==1.35.0

# Set up kernelci user
RUN useradd kernelci -u 1000 -d /home/kernelci -s /bin/bash
RUN mkdir -p /home/kernelci
Expand Down
5 changes: 4 additions & 1 deletion config/runtime/boot/barebox.jinja2
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
- deploy:
kernel:
type: {{ node.data.kernel_type }}
type: {{ node.data.kernel_type | replace('.gz', '') }}
{%- if node.data.kernel_type.endswith('.gz') %}
compression: gz
{%- endif %}
url: '{{ node.artifacts.kernel }}'
modules:
compression: xz
Expand Down
3 changes: 3 additions & 0 deletions config/runtime/boot/fastboot.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
docker:
image: ghcr.io/mwasilew/docker-mkbootimage:master
steps:
{%- if node.data.kernel_type.endswith('.gz') %}
- gunzip Image.gz
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if I don't want to use compress kernel image ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both are supported, this is only if it comes through as a zipped file it will run this. TuxMake tends to produce compressed images, while the make backend produces uncompressed ones. The fastboot template adapts to whichever it receives.

{%- endif %}
- mkbootimg --header_version 2 --kernel Image --dtb {{ dtb }} --cmdline "console=ttyMSM0,115200n8 earlycon qcom_geni_serial.con_enabled=1 mem_sleep_default=s2idle mitigations=auto video=efifb:off" --ramdisk {{ ramdisk_name }} --output boot.img
to: downloads

Expand Down
5 changes: 4 additions & 1 deletion config/runtime/boot/grub.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
kernel:
url: '{{ node.artifacts.kernel }}'
image_arg: -kernel {kernel} -serial stdio --append "console=ttyS0"
type: {{ node.data.kernel_type }}
type: {{ node.data.kernel_type | replace('.gz', '') }}
{%- if node.data.kernel_type.endswith('.gz') %}
compression: gz
{%- endif %}
{%- if boot_commands == 'nfs' %}
nfsrootfs:
url: '{{ nfsroot }}/full.rootfs.tar.xz'
Expand Down
5 changes: 4 additions & 1 deletion config/runtime/boot/u-boot.jinja2
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
- deploy:
kernel:
type: {{ node.data.kernel_type }}
type: {{ node.data.kernel_type | replace('.gz', '') }}
{%- if node.data.kernel_type.endswith('.gz') %}
compression: gz
{%- endif %}
url: '{{ node.artifacts.kernel }}'
modules:
compression: xz
Expand Down
Loading