10 version = linux-firmware.version;
16 nativeBuildInputs = [ libarchive ];
19 mkdir -p kernel/x86/microcode
20 find ${linux-firmware}/lib/firmware/amd-ucode -name \*.bin -print0 | sort -z |\
21 xargs -0 -I{} sh -c 'cat {} >> kernel/x86/microcode/AuthenticAMD.bin'
26 touch -d @$SOURCE_DATE_EPOCH kernel/x86/microcode/AuthenticAMD.bin
27 echo kernel/x86/microcode/AuthenticAMD.bin | bsdtar --uid 0 --gid 0 -cnf - -T - | bsdtar --null -cf - --format=newc @- > $out/amd-ucode.img
31 description = "AMD Processor microcode patch";
32 homepage = "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git";
33 license = licenses.unfreeRedistributableFirmware;