diff --git a/README.md b/README.md index 87c2657..2f948ff 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,6 @@ A collection of scripts and simple applications Install the prerequisites with "sudo apt install cmake device-tree-compiler libncurses-dev libfdt-dev libgnutls28-dev" - you need at least version 3.10 of cmake. Run the following commands to build and install everything, or see the README files in the subdirectories to just build utilities individually: - *cmake .* - N.B. Use *cmake -DBUILD_SHARED_LIBS=1 .* to build the libraries in the subprojects (libdtovl, gpiolib and piolib) as shared (as opposed to static) libraries. + N.B. Use *cmake -DBUILD_SHARED_LIBS=1 .* to build the libraries in the subprojects (libdtovl, gpiolib and piolib) as shared (as opposed to static) libraries. Add -DCMAKE_INSTALL_PREFIX=/usr to override the default install path of /usr/local. - *make* - *sudo make install* diff --git a/rpifwcrypto/main.c b/rpifwcrypto/main.c index b0888b6..42b2c51 100644 --- a/rpifwcrypto/main.c +++ b/rpifwcrypto/main.c @@ -516,6 +516,9 @@ int main(int argc, char *argv[]) // Check the firmware crypto error status. If set, display the human readable string. last_err = rpi_fw_crypto_get_last_error(); if (last_err != RPI_FW_CRYPTO_SUCCESS) + { fprintf(stderr, "Last crypto error: %d (%s)\n", last_err, rpi_fw_crypto_strerror(last_err)); + rc = -last_err; + } return rc; }