mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
disable tpm simulator in coordinator release binary
Signed-off-by: Malte Poll <mp@edgeless.systems>
This commit is contained in:
parent
673fec407f
commit
3817a57a83
@ -16,7 +16,7 @@ add_custom_target(disk-mapper ALL
|
|||||||
#
|
#
|
||||||
|
|
||||||
add_custom_target(coordinator ALL
|
add_custom_target(coordinator ALL
|
||||||
go build -o ${CMAKE_BINARY_DIR} -tags=gcp -buildvcs=false -ldflags "-s -w -buildid='' -X main.version=${PROJECT_VERSION}"
|
go build -o ${CMAKE_BINARY_DIR} -tags=gcp,disable_tpm_simulator -buildvcs=false -ldflags "-s -w -buildid='' -X main.version=${PROJECT_VERSION}"
|
||||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/coordinator/cmd/coordinator)
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/coordinator/cmd/coordinator)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
//go:build !disable_tpm_simulator
|
||||||
|
// +build !disable_tpm_simulator
|
||||||
|
|
||||||
package simulator
|
package simulator
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
18
coordinator/attestation/simulator/simulator_disabled.go
Normal file
18
coordinator/attestation/simulator/simulator_disabled.go
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
//go:build disable_tpm_simulator
|
||||||
|
// +build disable_tpm_simulator
|
||||||
|
|
||||||
|
package simulator
|
||||||
|
|
||||||
|
import (
|
||||||
|
"io"
|
||||||
|
)
|
||||||
|
|
||||||
|
// OpenSimulatedTPM returns a simulated TPM device.
|
||||||
|
func OpenSimulatedTPM() (io.ReadWriteCloser, error) {
|
||||||
|
panic("simulator not enabled")
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewSimulatedTPMOpenFunc returns a TPMOpenFunc that opens a simulated TPM.
|
||||||
|
func NewSimulatedTPMOpenFunc() (func() (io.ReadWriteCloser, error), io.Closer) {
|
||||||
|
panic("simulator not enabled")
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user