Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ jobs:
- name: Build image
run: |
source poky/oe-init-build-env build
# Limit parallelism to prevent bitbake server timeout on the CI runner
echo 'BB_NUMBER_THREADS = "4"' >> conf/local.conf
echo 'PARALLEL_MAKE = "-j4"' >> conf/local.conf
bitbake opencentauri-upgrade

- name: Upload build artifacts (SWU only)
Expand Down
10 changes: 10 additions & 0 deletions meta-opencentauri/classes/strip-python-sos.bbclass
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Strip debug info from every .so under site-packages.
# Drops ~30% off the numpy/scipy footprint with no runtime cost.
do_install:append() {
if [ -d ${D}${PYTHON_SITEPACKAGES_DIR} ]; then
find ${D}${PYTHON_SITEPACKAGES_DIR} -name '*.so' -type f \
-exec ${HOST_PREFIX}strip --strip-unneeded {} \;
find ${D}${PYTHON_SITEPACKAGES_DIR} -name '*.so' -type f \
-exec ${TARGET_PREFIX}strip --strip-unneeded {} \;
fi
}
5 changes: 5 additions & 0 deletions meta-opencentauri/conf/distro/cosmos.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ DISTRO_FEATURES:remove = "ptest"
DISTRO_FEATURES:append = " rust"
RUST_VERSION = "1.92.0"
CARGO_VERSION = "1.92.0"

# Enable Fortran compiler for scipy cross-compilation
FORTRAN:forcevariable = ",fortran"
BUILD_Fortran:forcevariable = ",fortran"
HOSTTOOLS += "gfortran"
9 changes: 9 additions & 0 deletions meta-opencentauri/files/numpy-minimal-lib/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"""Minimal numpy.lib replacement — only function_base (kaiser, interp).

All other lib/ submodules (index_tricks, histograms, npyio, type_check, etc.)
are never used by kalico and have been removed to save space.
"""
from . import function_base
from .function_base import *

__all__ = function_base.__all__
8 changes: 8 additions & 0 deletions meta-opencentauri/files/numpy-minimal-lib/_utils.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"""Minimal _utils stub — only set_module needed by function_base."""
def set_module(module):
"""Private decorator for overriding __module__ on a function or class."""
def decorator(func):
if module is not None:
func.__module__ = module
return func
return decorator
2 changes: 2 additions & 0 deletions meta-opencentauri/files/numpy-minimal-lib/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"""Minimal _version stub for numpy.lib."""
__all__ = []
Loading
Loading