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
5 changes: 4 additions & 1 deletion src/luks/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,7 @@ else
endif

# Tests.
subdir('tests')

if not meson.is_cross_build()
subdir('tests')
endif
5 changes: 4 additions & 1 deletion src/pins/pkcs11/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ if pcscd.found() and pkcs11tool.found()
mans += join_paths(meson.current_source_dir(), 'clevis-encrypt-pkcs11.1')
### TODO: Include man pages
# mans += join_paths(meson.current_source_dir(), 'clevis-decrypt-pkcs11.1')
subdir('tests')
if not meson.is_cross_build()
subdir('tests')
endif

threads_dep = dependency('threads', required: true)
executable('clevis-pkcs11-afunix-socket-unlock', ['clevis-pkcs11-afunix-socket-unlock.c'],
dependencies: threads_dep,
Expand Down
4 changes: 3 additions & 1 deletion src/pins/tang/meson.build
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
curl = find_program('curl', required: false)

if curl.found()
if curl.found() or meson.is_cross_build()
Copy link
Contributor Author

@n80fr1n60 n80fr1n60 Mar 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

locally the cross build sysroot fs does not have "curl" command but embedded device has curl
-> any recommendation for a cleaner solution ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this looks okay. Not great, but not too bad either. @sarroutbi: any opinions here?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks

bins += join_paths(meson.current_source_dir(), 'clevis-decrypt-tang')
bins += join_paths(meson.current_source_dir(), 'clevis-encrypt-tang')
mans += join_paths(meson.current_source_dir(), 'clevis-encrypt-tang.1')

if not meson.is_cross_build()
subdir('tests')
endif
else
warning('Will not install tang pin due to missing dependencies!')
endif