Skip to content

Commit

Permalink
test build
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdurham committed Jul 13, 2021
1 parent fbf9ecc commit 1a845d8
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,33 +83,33 @@ seego = docker run --rm -t -v "$(CURDIR):$(CURDIR)" -w "$(CURDIR)" -e "CGO_ENABL

ifeq ($(DRONE),true)
ifeq ($(TARGETPLATFORM),linux/amd64)
CGO_CC_CCX = export GO111MODULE=auto CC=gcc CCX=g++; go
seego = export GO111MODULE=auto CC=gcc CCX=g++; go
endif
ifeq ($(TARGETPLATFORM),linux/arm64)
CGO_CC_CCX = export CC=aarch64-linux-gnu-gcc CCX=aarch64-linux-gnu-g++; go
seego = export CC=aarch64-linux-gnu-gcc CCX=aarch64-linux-gnu-g++; go
endif
ifeq ($(TARGETPLATFORM),linux/arm/v7)
CGO_CC_CCX = export CC=arm-linux-gnueabi-gcc CCX=arm-linux-gnueabi-g++; go
seego = export CC=arm-linux-gnueabi-gcc CCX=arm-linux-gnueabi-g++; go
endif
ifeq ($(TARGETPLATFORM),linux/arm/v6)
CGO_CC_CCX = export CC=arm-linux-gnueabi-gcc CCX=arm-linux-gnueabi-g++;
seego = export CC=arm-linux-gnueabi-gcc CCX=arm-linux-gnueabi-g++; go
endif
endif

# Set the CGO, CC, CCX flags based on targetplatform, if non given assume 'native' to the device
CGO_CC_CCX = export CGO_ENABLED=1 GO111MODULE=auto

ifeq ($(TARGETPLATFORM),linux/amd64)
CGO_CC_CCX = export CGO_ENABLED=1 GOOS=linux GOARCH=amd64 GO111MODULE=auto CC=gcc CCX=g++ ;
CGO_CC_CCX = export CGO_ENABLED=1 GOOS=linux GOARCH=amd64 GO111MODULE=auto CC=gcc CCX=g++
endif
ifeq ($(TARGETPLATFORM),linux/arm64)
CGO_CC_CCX = export CGO_ENABLED=1 GOOS=linux GOARCH=arm64 CC=aarch64-linux-gnu-gcc CCX=aarch64-linux-gnu-g++;
CGO_CC_CCX = export CGO_ENABLED=1 GOOS=linux GOARCH=arm64 CC=aarch64-linux-gnu-gcc CCX=aarch64-linux-gnu-g++
endif
ifeq ($(TARGETPLATFORM),linux/arm/v7)
CGO_CC_CCX = export CGO_ENABLED=1 GOOS=linux GOARCH=arm GOARM=7 CC=arm-linux-gnueabi-gcc CCX=arm-linux-gnueabi-g++;
CGO_CC_CCX = export CGO_ENABLED=1 GOOS=linux GOARCH=arm GOARM=7 CC=arm-linux-gnueabi-gcc CCX=arm-linux-gnueabi-g++
endif
ifeq ($(TARGETPLATFORM),linux/arm/v6)
CGO_CC_CCX = export CGO_ENABLED=1 GOOS=linux GOARCH=arm GOARM=6 CC=arm-linux-gnueabi-gcc CCX=arm-linux-gnueabi-g++;
CGO_CC_CCX = export CGO_ENABLED=1 GOOS=linux GOARCH=arm GOARM=6 CC=arm-linux-gnueabi-gcc CCX=arm-linux-gnueabi-g++;
endif


Expand Down Expand Up @@ -167,12 +167,12 @@ agent-operator: cmd/agent-operator/agent-operator
# TargetPlatform is set by the buildx

cmd/agent/agent: cmd/agent/main.go
$(CGO_CC_CCX) go build $(CGO_FLAGS) -o $@ ./$(@D)
$(CGO_CC_CCX); go build $(CGO_FLAGS) -o $@ ./$(@D)
$(NETGO_CHECK)


cmd/agentctl/agentctl: cmd/agentctl/main.go
$(CGO_CC_CCX) go build $(CGO_FLAGS) -o $@ ./$(@D)
$(CGO_CC_CCX); go build $(CGO_FLAGS) -o $@ ./$(@D)
$(NETGO_CHECK)


Expand Down

0 comments on commit 1a845d8

Please sign in to comment.