Skip to content

Commit

Permalink
feat: add amd-ucode extension
Browse files Browse the repository at this point in the history
This PR adds the amd extension from our linux-firmware pkg.

Signed-off-by: Spencer Smith <spencer.smith@talos-systems.com>
  • Loading branch information
rsmitty committed Feb 2, 2022
1 parent 54b831d commit d4628b6
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ COMMON_ARGS += --build-arg=https_proxy=$(https_proxy)
empty :=
space = $(empty) $(empty)

TARGETS = gvisor intel-ucode
TARGETS = amd-ucode gvisor intel-ucode
NONFREE_TARGETS =

all: $(TARGETS) ## Builds all known pkgs.
Expand Down
1 change: 1 addition & 0 deletions Pkgfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ format: v1alpha2

vars:
TOOLS_IMAGE: ghcr.io/talos-systems/tools:v0.10.0-alpha.0-1-g67314b1
LINUX_FIRMWARE_IMAGE: ghcr.io/talos-systems/linux-firmware:v0.9.0-2-g447ce75

labels:
org.opencontainers.image.source: https://github.com/talos-systems/extensions
10 changes: 10 additions & 0 deletions amd-ucode/manifest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: v1alpha1
metadata:
name: amd-ucode
version: 20211216-v1.0.0
author: Spencer Smith
description: |
This system extension provides AMD microcode binaries.
compatibility:
talos:
version: "> v0.15.0-alpha.1"
16 changes: 16 additions & 0 deletions amd-ucode/pkg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: amd-ucode
variant: scratch
shell: /toolchain/bin/bash
dependencies:
- stage: base
- image: "{{ .LINUX_FIRMWARE_IMAGE }}"
steps:
- install:
- |
mkdir -p /rootfs/lib/firmware
cp -R -p /lib/firmware/amd-ucode /rootfs/lib/firmware
finalize:
- from: /rootfs
to: /rootfs
- from: /pkg/manifest.yaml
to: /

0 comments on commit d4628b6

Please sign in to comment.