24 lines
973 B
Python
24 lines
973 B
Python
def profile(base):
|
|
# The base profile supplies defaults for every other profile, so it has no
|
|
# parent of its own (``base`` is None here). It deliberately omits the
|
|
# target-identifying core fields (arch/triple/libc); concrete profiles must
|
|
# provide those.
|
|
return Profile(
|
|
container_image="localhost/orchid-builder:latest",
|
|
options={
|
|
# Install layout (where files land in the target system).
|
|
"prefix": "/usr",
|
|
"bindir": "/usr/bin",
|
|
"sbindir": "/usr/bin",
|
|
"libdir": "/usr/lib",
|
|
"libexecdir": "/usr/libexec",
|
|
"includedir": "/usr/include",
|
|
"sysconfdir": "/etc",
|
|
"localstatedir": "/var",
|
|
# Flags for tools built to run on the build machine (host).
|
|
"host_cflags": "-O2 -pipe",
|
|
"host_cxxflags": "-O2 -pipe",
|
|
"host_ldflags": "-Wl,-O1 -Wl,--sort-common -Wl,--as-needed",
|
|
},
|
|
)
|