Re: [PATCH 2/2] scripts/x86: Add a script to update minimum Intel ucode revisions
From: Dave Hansen
Date: Tue Aug 19 2025 - 13:14:50 EST
On 8/18/25 12:01, Sohil Mehta wrote:
> +parser.add_argument('-u','--ucode_path', required=True,
> + help='Path to the microcode files')
> +parser.add_argument('-o','--output', dest='header', default=ucode_hdr,
> + help='The microcode header file to be updated (default: intel-ucode-defs.h)')
So, thanks for fixing this up and adding the sorting.
But I'm not sure what the point is of making it less flexible and adding
these command-line arguments to it. Before, I would just hand it a path
to a bunch of ucode files, and dump the output somewhere:
foo.py ~/path/* > out.h
I just went and tried to use my version of the script to dump headers
for every microcode release:
git rev-list --all | while read rev; do
git checkout $rev;
python3 dave.py ~/path/* > foo.${rev}.h
done
But with your version, I can't do that. I have to create the header
file, then point the script to it. I also have to consume microcode
files from a single directory.
So, it's less flexible and harder to use with those command-line
arguments. It's obviously not the end of the world, but why add code to
the script for this? Why is it needed?