Skip to content

Commit 113ce64

Browse files
authored
Support full build on ARM (#5519)
1 parent 384e924 commit 113ce64

File tree

4 files changed

+12
-30
lines changed

4 files changed

+12
-30
lines changed

golang.sh

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,19 @@ package: golang
22
version: "1.22.2"
33
build_requires:
44
- curl
5+
- alibuild-recipe-tools
56
prefer_system: ".*"
67
prefer_system_check: |
78
type go && case `go version | sed -e 's/go version go//' | sed -e 's/ .*//'` in 1.2[2-9].*) exit 0 ;; *) exit 1 ;; esac
89
---
910
case $ARCHITECTURE in
10-
osx_arm64)
11-
ARCH=$(uname|tr '[:upper:]' '[:lower:]')-arm64
12-
;;
13-
*)
14-
ARCH=$(uname|tr '[:upper:]' '[:lower:]')-amd64
15-
;;
11+
osx_arm64) ARCH=$(uname|tr '[:upper:]' '[:lower:]')-arm64 ;;
12+
*_aarch64) ARCH=$(uname|tr '[:upper:]' '[:lower:]')-arm64 ;;
13+
*) ARCH=$(uname|tr '[:upper:]' '[:lower:]')-amd64 ;;
1614
esac
1715
curl -LO https://golang.org/dl/go$PKGVERSION.$ARCH.tar.gz
1816
tar --strip-components=1 -C $INSTALLROOT -xzf go$PKGVERSION.$ARCH.tar.gz
1917

2018
mkdir -p etc/modulefiles
21-
cat > etc/modulefiles/$PKGNAME <<EoF
22-
#%Module1.0
23-
proc ModulesHelp { } {
24-
global version
25-
puts stderr "ALICE Modulefile for $PKGNAME $PKGVERSION-@@PKGREVISION@$PKGHASH@@"
26-
}
27-
set version $PKGVERSION-@@PKGREVISION@$PKGHASH@@
28-
module-whatis "ALICE Modulefile for $PKGNAME $PKGVERSION-@@PKGREVISION@$PKGHASH@@"
29-
# Dependencies
30-
module load BASE/1.0
31-
32-
# Our environment
33-
set GOROOT \$::env(BASEDIR)/$PKGNAME/\$version
34-
# NOTE: upstream requires GOROOT to be defined if installing to a nonstandard path
35-
prepend-path PATH \$GOROOT/bin
36-
prepend-path LD_LIBRARY_PATH \$GOROOT/lib
37-
EoF
19+
alibuild-generate-module --bin --lib > etc/modulefiles/$PKGNAME
3820
mkdir -p $INSTALLROOT/etc/modulefiles && rsync -a --delete etc/modulefiles/ $INSTALLROOT/etc/modulefiles

o2suite.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ requires:
77
- Control-OCCPlugin
88
- O2
99
- O2Physics
10-
- "ReadoutCard:(slc*)"
10+
- "ReadoutCard:(slc.*x86)"
1111
- Readout
1212
- QualityControl
13-
- "DataDistribution:(?!osx)"
14-
- "ALF:(?!osx)"
15-
- "mesos:(slc.*)"
16-
- "TpcFecUtils:(?!osx)"
13+
- "DataDistribution:(?!osx|.*aarch64)"
14+
- "ALF:(?!osx|.*aarch64)"
15+
- "mesos:(slc.*x86)"
16+
- "TpcFecUtils:(?!osx|.*aarch64)"
1717
valid_defaults:
1818
- o2
1919
- o2-dataflow

readout.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ requires:
1010
- FairLogger
1111
- Monitoring
1212
- Configuration
13-
- "ReadoutCard:(slc.*)"
13+
- "ReadoutCard:(slc.*_x86-64)"
1414
- lz4
1515
- Control-OCCPlugin
1616
- ZeroMQ

readoutcard.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ requires:
88
- Configuration
99
- Monitoring
1010
- libInfoLogger
11-
- "PDA:(?!osx)"
11+
- "PDA:(?!osx|.*aarch64)"
1212
- "Python:(?!osx)"
1313
- "Python-system:(?!slc.*)"
1414
build_requires:

0 commit comments

Comments
 (0)