Skip to content

Commit

Permalink
boulder: Bring data/ up to parity with boulder-d
Browse files Browse the repository at this point in the history
Note that a new x86_64-v3x.yml target definition was added in preparation
for the point where we will begin building the scaffolding to use it.

Signed-off-by: Rune Morling <[email protected]>
  • Loading branch information
ermo authored and livingsilver94 committed Feb 28, 2024
1 parent 19571fc commit 74af8f0
Show file tree
Hide file tree
Showing 10 changed files with 80 additions and 3 deletions.
8 changes: 8 additions & 0 deletions boulder/data/macros/actions/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ actions:
dependencies:
- ninja

# Run testsuite with ctest
- cmake_test:
command: |
ninja test -v -j "%(jobs)" -C "%(builddir)"
dependencies:
- cmake
- ninja

definitions:

# Default cmake options as passed to cmake
Expand Down
6 changes: 6 additions & 0 deletions boulder/data/macros/actions/meson.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ actions:
dependencies:
- meson

- meson_test:
command: |
meson test --no-rebuild --print-errorlogs -j "%(jobs)" -C "%(builddir)"
dependencies:
- meson

definitions:

# Default meson options as passed to meson
Expand Down
1 change: 1 addition & 0 deletions boulder/data/macros/arch/aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ definitions:
- cpp : "%(compiler_cpp) -m64"
- march : armv8-a+simd+fp+crypto
- mtune : cortex-a72.cortex-a53
- target_triple : "aarch64-unknown-linux-gnu"

flags:

Expand Down
26 changes: 24 additions & 2 deletions boulder/data/macros/arch/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ definitions:
- cpp : "%(compiler_cpp)"
- objcpp : "%(compiler_objcpp)"
- objcxxcpp : "%(compiler_objcxxcpp)"
- d : "%(compiler_d)"
- ar : "%(compiler_ar)"
- ld : "%(compiler_ld)"
- objcopy : "%(compiler_objcopy)"
Expand All @@ -64,6 +65,7 @@ actions :
CGO_CXXFLAGS="%(cxxflags)"; export CGO_CXXFLAGS
LDFLAGS="%(ldflags)"; export LDFLAGS
CGO_LDFLAGS="%(ldflags) -Wl,--no-gc-sections"; export CGO_LDFLAGS
DFLAGS="%(dflags)"; export DFLAGS
CC="%(cc)"; export CC
CXX="%(cxx)"; export CXX
OBJC="%(objc)"; export OBJC
Expand Down Expand Up @@ -286,14 +288,17 @@ flags :
c : "-pipe -Wformat -Wformat-security -Wno-error -fPIC"
cxx : "-pipe -Wformat -Wformat-security -Wno-error -fPIC"
ld : "-Wl,-O2,--gc-sections"
d : "-release -Hkeep-all-bodies -relocation-model=pic -wi"

- omit-frame-pointer:
c : "-fomit-frame-pointer -momit-leaf-frame-pointer"
cxx : "-fomit-frame-pointer -momit-leaf-frame-pointer"
d : "-frame-pointer=none"

- no-omit-frame-pointer:
c : "-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
cxx : "-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
d : "-frame-pointer=all"

# Toggle bindnow (ON)
- bindnow:
Expand Down Expand Up @@ -347,28 +352,35 @@ flags :
- optimize-generic:
c : "-O2"
cxx : "-O2"
d : "-O2"

# Optimize for size (OFF)
- optimize-size:
c : "-Os"
cxx : "-Os"
d : "-Os"

# Optimize for speed (OFF)
- optimize-speed:
c : "-O3"
cxx : "-O3"
d : "-O3"

# Enable LTO optimisations (OFF)
- lto-full:
c : "-flto"
cxx : "-flto"
ld : "-flto"
llvm:
d : "-flto=full"


# Enable Thin-LTO optimisations (OFF)
- lto-thin:
llvm:
c : "-flto=thin"
cxx : "-flto=thin"
d : "-flto=thin"
ld : "-flto=thin"

# Enable LTOextra optimisations (OFF)
Expand Down Expand Up @@ -406,6 +418,7 @@ flags :
llvm:
c : "-Xclang -mllvm -Xclang -polly -Xclang -mllvm -Xclang -polly-vectorizer=stripmine"
cxx : "-Xclang -mllvm -Xclang -polly -Xclang -mllvm -Xclang -polly-vectorizer=stripmine"
d : "-polly -polly-vectorizer=stripmine"

# Toggle options you want to use with llvm-bolt (OFF)
- bolt:
Expand All @@ -426,14 +439,21 @@ flags :
llvm:
c : "-gline-tables-only -fasynchronous-unwind-tables"
cxx : "-gline-tables-only -fasynchronous-unwind-tables"
d : "-gline-tables-only -gc"

# Toggle debug-std optimisations (ON)
- debug-std:
c : "-g -feliminate-unused-debug-types -fasynchronous-unwind-tables"
cxx : "-g -feliminate-unused-debug-types -fasynchronous-unwind-tables"
d : "-g -gc -d-debug"
gnu:
c : "-g -feliminate-unused-debug-types -fasynchronous-unwind-tables"
cxx : "-g -feliminate-unused-debug-types -fasynchronous-unwind-tables"
llvm:
c : "-g -fasynchronous-unwind-tables"
cxx : "-g -fasynchronous-unwind-tables"

# Toggle fast math (OFF)
- math:
d : "-ffast-math -fp-contract=fast"
gnu:
c : "-fno-math-errno -fno-trapping-math"
cxx : "-fno-math-errno -fno-trapping-math"
Expand All @@ -445,6 +465,7 @@ flags :
- noplt:
c : "-fno-plt"
cxx : "-fno-plt"
d : "-fno-plt"

# Toggle -fno-semantic-interposition (OFF)
- nosemantic:
Expand Down Expand Up @@ -486,6 +507,7 @@ flags :
- visibility-hidden:
c : "-fvisibility=hidden"
cxx : "-fvisibility-inlines-hidden -fvisibility=hidden"
d : "-fvisibility=hidden"

# Toggle visibility inlines hidden (OFF)
- visibility-inline:
Expand Down
1 change: 1 addition & 0 deletions boulder/data/macros/arch/emul32/x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ definitions:
- cpp : "%(compiler_cpp) -m32"
- march : i686
- mtune : i686
- target_triple : "i686-unknown-linux-gnu"
- pkgconfigpath : "%(libdir)/pkgconfig:/usr/share/pkgconfig:%(prefix)/lib/pkgconfig"

flags:
Expand Down
1 change: 1 addition & 0 deletions boulder/data/macros/arch/x86.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ definitions:
- cpp : "%(compiler_cpp) -m32"
- march : i686
- mtune : i686
- target_triple : "i686-unknown-linux-gnu"

flags:

Expand Down
3 changes: 2 additions & 1 deletion boulder/data/macros/arch/x86_64-stage1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ definitions:
- cpp : "%(compiler_cpp)"
- march : x86-64-v2
- mtune : ivybridge
- target_triple : "x86_64-unknown-linux-gnu"
- bootstrap_root : /bill

flags:
Expand All @@ -26,4 +27,4 @@ flags:

defaultTuningGroups :
- base
- optimize
- optimize
20 changes: 20 additions & 0 deletions boulder/data/macros/arch/x86_64-v3x.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Provides -m64 builds for x86_64-v3x build-hosts

definitions:

- libsuffix : ""
- build_platform : x86_64-%(vendorID)
- host_platform : x86_64-%(vendorID)
- cc : "%(compiler_c)"
- cxx : "%(compiler_cxx)"
- cpp : "%(compiler_cpp)"
- march : x86-64-v3
- mtune : znver1

flags:

# Set architecture flags (GCC)
- architecture:
c : "-march=x86-64-v3 -mtune=znver1 -maes -mfsgsbase -mpclmul -mrdrnd -maes -mxsaveopt"
cxx : "-march=x86-64-v3 -mtune=znver1 -maes -mfsgsbase -mpclmul -mrdrnd -maes -mxsaveopt"

3 changes: 3 additions & 0 deletions boulder/data/macros/arch/x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ definitions:
- cc : "%(compiler_c)"
- cxx : "%(compiler_cxx)"
- cpp : "%(compiler_cpp)"
- d : "%(compiler_d)"
- march : x86-64-v2
- mtune : ivybridge
- target_triple : "x86_64-unknown-linux-gnu"

flags:

# Set architecture flags
- architecture:
c : "-march=x86-64-v2 -mtune=ivybridge"
cxx : "-march=x86-64-v2 -mtune=ivybridge"
d : "-mcpu=x86-64-v2"
14 changes: 14 additions & 0 deletions boulder/data/recipeTemplate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#
# SPDX-FileCopyrightText: © 2020-2024 Serpent OS Developers
#
# SPDX-License-Identifier: MPL-2.0
#
name : %s
version : %s
release : %s
homepage : %s
upstreams :
%s
summary : %s
description : |
%s

0 comments on commit 74af8f0

Please sign in to comment.