Skip to content

Commit cd7f70a

Browse files
committed
[FAB-9485] Replace nopkcs11 build tag with pkcs11
Building binaries with pkcs11 support now requires the pkcs11 build tag. Change-Id: Ib9e28a9088515e8b42dd3812b528e7786cfcc012 Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>
1 parent 5d5ed4c commit cd7f70a

File tree

12 files changed

+19
-18
lines changed

12 files changed

+19
-18
lines changed

Makefile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ orderer: $(BUILD_DIR)/bin/orderer
160160
orderer-docker: $(BUILD_DIR)/image/orderer/$(DUMMY)
161161

162162
.PHONY: configtxgen
163-
configtxgen: GO_TAGS+= nopkcs11
164163
configtxgen: GO_LDFLAGS=-X $(pkgmap.$(@F))/metadata.Version=$(PROJECT_VERSION)
165164
configtxgen: $(BUILD_DIR)/bin/configtxgen
166165

@@ -325,15 +324,12 @@ release-all: $(patsubst %,release/%, $(RELEASE_PLATFORMS))
325324
release/%: GO_LDFLAGS=-X $(pkgmap.$(@F))/metadata.Version=$(PROJECT_VERSION)
326325

327326
release/windows-amd64: GOOS=windows
328-
release/windows-amd64: GO_TAGS+= nopkcs11
329327
release/windows-amd64: $(patsubst %,release/windows-amd64/bin/%, $(RELEASE_PKGS)) release/windows-amd64/install
330328

331329
release/darwin-amd64: GOOS=darwin
332-
release/darwin-amd64: GO_TAGS+= nopkcs11
333330
release/darwin-amd64: $(patsubst %,release/darwin-amd64/bin/%, $(RELEASE_PKGS)) release/darwin-amd64/install
334331

335332
release/linux-amd64: GOOS=linux
336-
release/linux-amd64: GO_TAGS+= nopkcs11
337333
release/linux-amd64: $(patsubst %,release/linux-amd64/bin/%, $(RELEASE_PKGS)) release/linux-amd64/install
338334

339335
release/%-amd64: DOCKER_ARCH=x86_64
@@ -342,12 +338,10 @@ release/linux-%: GOOS=linux
342338

343339
release/linux-ppc64le: GOARCH=ppc64le
344340
release/linux-ppc64le: DOCKER_ARCH=ppc64le
345-
release/linux-ppc64le: GO_TAGS+= nopkcs11
346341
release/linux-ppc64le: $(patsubst %,release/linux-ppc64le/bin/%, $(RELEASE_PKGS)) release/linux-ppc64le/install
347342

348343
release/linux-s390x: GOARCH=s390x
349344
release/linux-s390x: DOCKER_ARCH=s390x
350-
release/linux-s390x: GO_TAGS+= nopkcs11
351345
release/linux-s390x: $(patsubst %,release/linux-s390x/bin/%, $(RELEASE_PKGS)) release/linux-s390x/install
352346

353347
release/%/bin/configtxlator: $(PROJECT_FILES)

bccsp/factory/nopkcs11.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build nopkcs11
1+
// +build !pkcs11
22

33
/*
44
Copyright IBM Corp. 2017 All Rights Reserved.

bccsp/factory/pkcs11.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build !nopkcs11
1+
// +build pkcs11
22

33
/*
44
Copyright IBM Corp. 2017 All Rights Reserved.

bccsp/factory/pkcs11_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build !nopkcs11
1+
// +build pkcs11
22

33
/*
44
Copyright IBM Corp. 2017 All Rights Reserved.

bccsp/factory/pkcs11factory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build !nopkcs11
1+
// +build pkcs11
22

33
/*
44
Copyright IBM Corp. 2016 All Rights Reserved.

bccsp/factory/pkcs11factory_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build !nopkcs11
1+
// +build pkcs11
22

33
/*
44
Copyright IBM Corp. 2017 All Rights Reserved.

bccsp/pkcs11/ecdsakey_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build !nopkcs11
1+
// +build pkcs11
22

33
/*
44
Copyright IBM Corp. 2017 All Rights Reserved.

bccsp/pkcs11/impl_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build !nopkcs11
1+
// +build pkcs11
22

33
/*
44
Copyright IBM Corp. 2016 All Rights Reserved.

bccsp/pkcs11/pkcs11_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build !nopkcs11
1+
// +build pkcs11
22

33
/*
44
Copyright IBM Corp. 2017 All Rights Reserved.

docs/source/chaincode4ade.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,8 @@ Now let's compile your chaincode.
381381

382382
.. code:: bash
383383
384-
go get -u --tags nopkcs11 github.com/hyperledger/fabric/core/chaincode/shim
385-
go build --tags nopkcs11
384+
go get -u github.com/hyperledger/fabric/core/chaincode/shim
385+
go build
386386
387387
Assuming there are no errors, now we can proceed to the next step, testing
388388
your chaincode.

0 commit comments

Comments
 (0)