Hi Alex,
I deleted the edk2/BaseTools/Source/C/bin directory and type make -C edke/BaseTools. The bin file was created. Then I tried BASETOOLS=~/src/edk2/BaseTools/Source/C/bin/ ../../spi-flash-tools_v0.7.5/Makefile capsule but the same error msg occured again. I deleted the clanton_peak_EDK2 and decompressed it again, the same error is still there. I think this time I might build the basetools correctly. So any idea of how to fix this problem? Thank you very much.
The error msg is given below for a quick reference.
../../clanton_peak_EDK2/Build/ClantonPeakCRBPlatform/RELEASE_GCC/FV/Tools/CapsuleCreate: Syntax error: "(" unexpected