Skip to content

Commit

Permalink
chore: reorder pkgs for better kernel caching
Browse files Browse the repository at this point in the history
Reorder the build so that kernel-related packages are closer to the
kernel, this way we should lower the probability of the cache purge for
the kernel build.

Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
  • Loading branch information
smira committed Apr 4, 2023
1 parent b483a6b commit 41629b0
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Makefile
Expand Up @@ -30,23 +30,22 @@ COMMON_ARGS += --build-arg=SOURCE_DATE_EPOCH=$(SOURCE_DATE_EPOCH)
empty :=
space = $(empty) $(empty)

# TARGETS are split into two groups:
# - non-related to the kernel, in alphabetical order
TARGETS = \
base \
ca-certificates \
cni \
containerd \
cryptsetup \
dosfstools \
drbd-pkg \
eudev \
fhs \
flannel-cni \
gasket-driver-pkg \
grub \
ipmitool \
iptables \
ipxe \
kernel \
kmod \
libaio \
libinih \
Expand All @@ -58,7 +57,6 @@ TARGETS = \
linux-firmware \
lvm2 \
musl \
nvidia-open-gpu-kernel-modules-pkg \
openssl \
raspberrypi-firmware \
runc \
Expand All @@ -68,6 +66,14 @@ TARGETS = \
util-linux \
xfsprogs

# - kernel & dependent packages (out of tree kernel modules)
# kernel first, then packages in alphabetical order
TARGETS += \
kernel \
drbd-pkg \
gasket-driver-pkg \
nvidia-open-gpu-kernel-modules-pkg \

# Temporarily disabled until mellanox builds with Linux 6.1
# mellanox-ofed-pkg \
Expand Down

0 comments on commit 41629b0

Please sign in to comment.