Skip to content

Commit 3f1739a

Browse files
committed
FAB-3434 build binary files on make native target
updated Makefile to build cryptogen and configtxgen binary files with make native target Change-Id: I09d2a147905f66ace2954d65c497da1138ca50dc Signed-off-by: rameshthoomu <[email protected]>
1 parent 5f91834 commit 3f1739a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
# - all (default) - builds all targets and runs all tests/checks
2020
# - checks - runs all tests/checks
2121
# - configtxgen - builds a native configtxgen binary
22+
# - cryptogen - builds a native cryptogen binary
2223
# - peer - builds a native fabric peer binary
2324
# - orderer - builds a native fabric orderer binary
2425
# - release - builds release packages for the host platform
@@ -82,6 +83,7 @@ IMAGES = peer orderer ccenv javaenv buildenv testenv zookeeper kafka couchdb
8283
RELEASE_PLATFORMS = windows-amd64 darwin-amd64 linux-amd64 linux-ppc64le linux-s390x
8384
RELEASE_PKGS = configtxgen cryptogen
8485

86+
pkgmap.cryptogen := $(PKGNAME)/common/tools/cryptogen
8587
pkgmap.configtxgen := $(PKGNAME)/common/configtx/tool/configtxgen
8688
pkgmap.peer := $(PKGNAME)/peer
8789
pkgmap.orderer := $(PKGNAME)/orderer
@@ -118,6 +120,8 @@ orderer-docker: build/image/orderer/$(DUMMY)
118120
configtxgen: GO_TAGS+= nopkcs11
119121
configtxgen: build/bin/configtxgen
120122

123+
cryptogen: build/bin/cryptogen
124+
121125
javaenv: build/image/javaenv/$(DUMMY)
122126

123127
buildenv: build/image/buildenv/$(DUMMY)
@@ -137,7 +141,7 @@ test-cmd:
137141
@echo "go test -ldflags \"$(GO_LDFLAGS)\""
138142

139143
docker: $(patsubst %,build/image/%/$(DUMMY), $(IMAGES))
140-
native: peer orderer
144+
native: peer orderer configtxgen cryptogen
141145

142146
BEHAVE_ENVIRONMENTS = kafka orderer orderer-1-kafka-1 orderer-1-kafka-3
143147
BEHAVE_ENVIRONMENT_TARGETS = $(patsubst %,bddtests/environments/%, $(BEHAVE_ENVIRONMENTS))

0 commit comments

Comments
 (0)