From b7648b494024b00f8dabec8ab60a9990dd97bda7 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Mon, 5 Jun 2023 13:19:00 +0200 Subject: bootstrap: Improve OS/ARCH determination ... by making variables `os` and `arch` accessible to bootstrap hints. Furthermore, support the hints `os_map` and `arch_map` for mapping Justbuild's OS/ARCH to the terminology used by the repository. Values not covered by these maps will be passed through. --- etc/repos.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/repos.json b/etc/repos.json index 70dc60a2..2ff21322 100644 --- a/etc/repos.json +++ b/etc/repos.json @@ -233,7 +233,8 @@ , "target_file_name": "TARGETS.boringssl" , "bindings": {"rules": "rules-boringssl"} , "bootstrap": - { "build": "SYS=`uname -s | tr 'A-Z' 'a-z'` && ARCH=`uname -m` && {cc} {cflags} -I . -I src/include -c *.c src/crypto/*.c src/crypto/*/*.c $SYS-$ARCH/crypto/fipsmodule/*.S && {ar} cqs libcrypto.a *.o" + { "arch_map": {"arm64": "aarch64"} + , "build": "{cc} {cflags} -I . -I src/include -c *.c src/crypto/*.c src/crypto/*/*.c {os}-{arch}/crypto/fipsmodule/*.S && {ar} cqs libcrypto.a *.o" , "link": ["-lcrypto", "-pthread"] , "include_dir": "src/include/openssl" , "include_name": "openssl" -- cgit v1.2.3