@@ -49,30 +49,17 @@ def build_timestamp():
4949# Known metadata for optional external dependencies.
5050# Version is detected at runtime via pkg-config; falls back to None.
5151DEP_META = {
52- 'liboqs' : {
53- 'name' : 'liboqs' ,
54- 'supplier' : 'Open Quantum Safe' ,
52+ # Falcon is reachable only via liboqs after upstream PR #10293 collapsed
53+ # the rest of the PQ surface into native wolfCrypt; we record the version
54+ # of liboqs itself since that is the artefact actually linked in.
55+ 'falcon' : {
56+ 'name' : 'falcon' ,
57+ 'supplier' : 'Open Quantum Safe (via liboqs)' ,
5558 'license' : 'MIT' ,
5659 'download' : 'https://github.com/open-quantum-safe/liboqs' ,
5760 'pkgconfig' : 'liboqs' ,
5861 'purl' : lambda v : f'pkg:github/open-quantum-safe/liboqs@{ v } ' ,
5962 },
60- 'libxmss' : {
61- 'name' : 'xmss-reference' ,
62- 'supplier' : 'XMSS reference implementation authors' ,
63- 'license' : 'CC0-1.0' ,
64- 'download' : 'https://github.com/XMSS/xmss-reference' ,
65- 'pkgconfig' : None ,
66- 'purl' : lambda v : f'pkg:github/XMSS/xmss-reference@{ v } ' ,
67- },
68- 'liblms' : {
69- 'name' : 'hash-sigs' ,
70- 'supplier' : 'Cisco Systems' ,
71- 'license' : 'MIT' ,
72- 'download' : 'https://github.com/cisco/hash-sigs' ,
73- 'pkgconfig' : None ,
74- 'purl' : lambda v : f'pkg:github/cisco/hash-sigs@{ v } ' ,
75- },
7663 'libz' : {
7764 'name' : 'zlib' ,
7865 'supplier' : 'Jean-loup Gailly and Mark Adler' ,
@@ -486,18 +473,10 @@ def main():
486473 'licence reference.' )
487474 parser .add_argument ('--options-h' , required = True ,
488475 help = 'Path to wolfssl/options.h for build config' )
489- parser .add_argument ('--dep-liboqs' , default = 'no' ,
490- help = 'yes if built with --with-liboqs' )
491- parser .add_argument ('--dep-libxmss' , default = 'no' ,
492- help = 'yes if built with --with-libxmss' )
493- parser .add_argument ('--dep-libxmss-root' , default = '' ,
494- help = 'Path to xmss-reference source tree root' )
495- parser .add_argument ('--dep-liblms' , default = 'no' ,
496- help = 'yes if built with --with-liblms' )
497- parser .add_argument ('--dep-liblms-root' , default = '' ,
498- help = 'Path to hash-sigs source tree root' )
499476 parser .add_argument ('--dep-libz' , default = 'no' ,
500477 help = 'yes if built with --with-libz' )
478+ parser .add_argument ('--dep-falcon' , default = 'no' ,
479+ help = 'yes if built with --enable-falcon (Falcon via liboqs)' )
501480 parser .add_argument ('--git' , default = '' ,
502481 help = 'Path to git binary for version detection' )
503482 parser .add_argument ('--cdx-out' , required = True ,
@@ -509,17 +488,10 @@ def main():
509488 global GIT_BIN
510489 GIT_BIN = args .git or None
511490
512- if args .dep_libxmss_root :
513- DEP_META ['libxmss' ]['git_root' ] = args .dep_libxmss_root
514- if args .dep_liblms_root :
515- DEP_META ['liblms' ]['git_root' ] = args .dep_liblms_root
516-
517491 enabled_deps = [
518492 key for key , flag in [
519- ('liboqs' , args .dep_liboqs ),
520- ('libxmss' , args .dep_libxmss ),
521- ('liblms' , args .dep_liblms ),
522493 ('libz' , args .dep_libz ),
494+ ('falcon' , args .dep_falcon ),
523495 ]
524496 if flag .lower () == 'yes'
525497 ]
0 commit comments