[build] simplify arm64 support

Signed-off-by: Leo Chen <leo@harmony.one>
pull/3481/head
Leo Chen 4 years ago
parent ec8fa1bacb
commit 683f331d5f
  1. 9
      Makefile
  2. 4
      scripts/go_executable_build.sh

@ -34,7 +34,6 @@ help:
@echo "test-rosetta - run the rosetta tests" @echo "test-rosetta - run the rosetta tests"
@echo "test-rosetta-attach - attach onto the rosetta testing docker container for inspection" @echo "test-rosetta-attach - attach onto the rosetta testing docker container for inspection"
@echo "linux_static - static build the harmony binary & bootnode along with the MCL & BLS libs (for linux)" @echo "linux_static - static build the harmony binary & bootnode along with the MCL & BLS libs (for linux)"
@echo "arm_static - static build the harmony binary & bootnode on ARM64 platform"
@echo "rpm - build a harmony RPM pacakge" @echo "rpm - build a harmony RPM pacakge"
@echo "rpmpub_dev - publish harmony RPM package to development repo" @echo "rpmpub_dev - publish harmony RPM package to development repo"
@echo "rpmpub_prod - publish harmony RPM package to production repo" @echo "rpmpub_prod - publish harmony RPM package to production repo"
@ -101,14 +100,6 @@ linux_static:
make -C $(TOP)/bls minimised_static BLS_SWAP_G=1 -j8 make -C $(TOP)/bls minimised_static BLS_SWAP_G=1 -j8
bash ./scripts/go_executable_build.sh -s bash ./scripts/go_executable_build.sh -s
arm_static:
go mod edit --require=github.com/ethereum/go-ethereum@v1.8.28
go mod edit -replace github.com/ethereum/go-ethereum=$(GOPATH)/src/github.com/ethereum/go-ethereum
make -C $(TOP)/mcl -j8
make -C $(TOP)/bls minimised_static BLS_SWAP_G=1 -j8
bash ./scripts/go_executable_build.sh -a arm64 -s
git checkout go.mod
deb_init: deb_init:
rm -rf $(DEBBUILD) rm -rf $(DEBBUILD)
mkdir -p $(DEBBUILD)/$(PKGNAME)-$(VERSION)-$(RELEASE)/{etc/systemd/system,usr/sbin,etc/sysctl.d,etc/harmony} mkdir -p $(DEBBUILD)/$(PKGNAME)-$(VERSION)-$(RELEASE)/{etc/systemd/system,usr/sbin,etc/sysctl.d,etc/harmony}

@ -11,7 +11,9 @@ BUCKET=unique-bucket-bin
PUBBUCKET=pub.harmony.one PUBBUCKET=pub.harmony.one
REL= REL=
GOOS=linux GOOS=linux
GOARCH=amd64 GOARCH=$(uname -m)
GOARCH=${GOARCH/x86_64/amd64}
GOARCH=${GOARCH/aarch64/arm64}
FOLDER=${WHOAMI:-$USER} FOLDER=${WHOAMI:-$USER}
RACE= RACE=
TRACEPTR= TRACEPTR=

Loading…
Cancel
Save