SUMMARY="AMD Processor Microcode Update"
DESCRIPTION="CPU microcode is a mechanism to correct certain errata in \
existing systems. This package contains updates for processors\
 that support OS loading of microcode updates."
HOMEPAGE="https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git;a=summary"
COPYRIGHT="2010-2021 Advanced Micro Devices, Inc."
LICENSE="AMD CPU Microcode"
REVISION="1"
SOURCE_URI="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/amd-ucode/microcode_amd.bin?id=c4586ffaac0ca0d7045e06140b6426f2e79e96e6#noarchive"
CHECKSUM_SHA256="8a9d9e8b788e31e61cddc03cb1eeab5db99e0f667128943ff0780e6437d2e43e"
SOURCE_FILENAME="microcode_amd.bin"
SOURCE_URI_2="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/amd-ucode/microcode_amd_fam15h.bin?id=c4586ffaac0ca0d7045e06140b6426f2e79e96e6#noarchive"
CHECKSUM_SHA256_2="9d4a668410e72a4bdb86dc23e4261eca04daa83456ada02504115223f356981a"
SOURCE_FILENAME_2="microcode_amd_fam15h.bin"
SOURCE_URI_3="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/amd-ucode/microcode_amd_fam16h.bin?id=c4586ffaac0ca0d7045e06140b6426f2e79e96e6#noarchive"
CHECKSUM_SHA256_3="e02ad653b39c975d6c52674b50f23727bb6706bab7b4e5b391a4ce229e7ff121"
SOURCE_FILENAME_3="microcode_amd_fam16h.bin"
SOURCE_URI_4="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/amd-ucode/microcode_amd_fam17h.bin?id=c4586ffaac0ca0d7045e06140b6426f2e79e96e6#noarchive"
CHECKSUM_SHA256_4="5288d1ac032abe61441c5626091458803f925304ee45ca18de38a4edd66cddd2"
SOURCE_FILENAME_4="microcode_amd_fam17h.bin"
SOURCE_URI_5="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/amd-ucode/microcode_amd_fam19h.bin?id=f5d519563ac9d2d1f382a817aae5ec5473811ac8#noarchive"
CHECKSUM_SHA256_5="dee0e71fc01482e4e1d89c18a25410ef82e56665f26f58912387f91e5c368bcf"
SOURCE_FILENAME_5="microcode_amd_fam19h.bin"

ARCHITECTURES="any"
DISABLE_SOURCE_PACKAGE="yes"

PROVIDES="
	amd_microcode = $portVersion
	"

INSTALL()
{
	mkdir -p $dataDir/firmware/amd-ucode
	cp $sourceDir/* $sourceDir2/* $sourceDir3/* $sourceDir4/* $sourceDir5/* \
		$dataDir/firmware/amd-ucode/
}
