Clone the edk2 and UEFI-SmartCardReader repositories in the same directory.
Checkout the (stable) version of edk2 you want to use. For example:
cd edk2
git checkout edk2-stable202208
To build the UEFI driver run the ./build.sh
script.
cd UEFI-SmartCardReader
./build.sh
You can edit the file SmartCardReader/config.h
to enable the logs by commenting the line:
/* no log or debug messages */
#define NO_LOG