Use python to calculate the sha1sum.

By changing to gen-sha1-stamp.py, we get two benefits:
(1) No need to build another sha1sum executable
(2) sha1sum command in the system won't be hidden by our version.

Change-Id: Ia5efc711c7b7eca197dcf52b3cb9192e8d3f119e
2 files changed