Skip to content
Merged
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
2 changes: 1 addition & 1 deletion classes/l4re.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ buildSetup: |
# $3: targets (optional)
l4reBuild()
{
if [[ ! -e build/.bob-init-done ]] ; then
if [[ ! -e build/.bob-init-done || "$2" -nt build/.kconfig ]] ; then
rm -rf $BOB_CWD/build
make -C $1 B=$BOB_CWD/build \
DEFCONFIG="$2"
Expand Down
3 changes: 2 additions & 1 deletion recipes/devel/swig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ depends:

buildScript: |
autotoolsBuild $1 \
--with-pcre2-prefix=${BOB_DEP_PATHS[libs::libpcre2-dev]}/usr
PCRE2_CFLAGS="$(pkg-config --cflags libpcre2-8)" \
PCRE2_LIBS="$(pkg-config --libs libpcre2-8)"

multiPackage:
"":
Expand Down
13 changes: 12 additions & 1 deletion recipes/python/cryptography.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,17 @@ depends:
- name: python::maturin
alias: python::maturin-host
use: [tools]
- python::cffi
- name: python::cffi
alias: python::cffi-host
use: [result]
- name: libs::openssl-dev
alias: openssl-host
use: [result]

- python::setuptools-rust
- python::pycparser
- python::semantic-version
- python::cffi
- libs::openssl-dev
- use: []
depends:
Expand All @@ -41,6 +44,13 @@ buildSetup: |
# caro builds a native-tool depending on python::cffi
export HOST_CC=gcc
export CARGO_BUILD_RUSTFLAGS="-C link-arg=-L${BOB_DEP_PATHS['openssl-host']}/usr/lib"
# A static libcrypto (host build) is built with zlib support but does not
# pull in zlib by itself.
if [[ ! -e ${OPENSSL_DIR}/lib/libcrypto.so ]] ; then
CARGO_TARGET_RUSTFLAGS_VAR=CARGO_TARGET_${CARGO_TARGET}_RUSTFLAGS
ZLIB_LIB_DIR="${BOB_ALL_PATHS['libs::zlib-dev']}/usr/lib"
export $CARGO_TARGET_RUSTFLAGS_VAR="${!CARGO_TARGET_RUSTFLAGS_VAR} -C link-arg=-L$ZLIB_LIB_DIR -C link-arg=-lz"
fi

buildScript: |
# without a git directory maturin fails with:
Expand All @@ -62,4 +72,5 @@ provideDeps:
- python::setuptools-rust
- python::pycparser
- python::semantic-version
- python::cffi
- '*-tgt'
25 changes: 25 additions & 0 deletions recipes/utils/bmaptool.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
inherit: ["python3::build"]

metaEnvironment:
PKG_VERSION: "3.9.0"
PKG_LICENSE: "GPL-2.0-only"

depends:
- python::hatchling

checkoutSCM:
scm: url
url: ${GITHUB_MIRROR}/yoctoproject/bmaptool/archive/refs/tags/v${PKG_VERSION}.tar.gz
digestSHA256: 9940bb97fa0f2c11ee4625a2f620a4ae2b94c556f8d01c070aee08486a2a1812
stripComponents: 1

buildScript: |
python3Build $1

packageScript: |
python3PackageTgt

provideTools:
bmaptool:
path: usr/bin
dependTools: [python3]
Loading