Skip to content

Commit f3bc6ca

Browse files
willieyzmkannwischer
authored andcommitted
Auto-generate monolithic_build_multilevel configuration
Signed-off-by: willieyz <[email protected]>
1 parent 401918c commit f3bc6ca

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed

examples/monolithic_build_multilevel/multilevel_config.h

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,22 @@
1717
* https://csrc.nist.gov/pubs/fips/204/final
1818
*/
1919

20+
/*
21+
* WARNING: This file is auto-generated from scripts/autogen
22+
* in the mldsa-native repository.
23+
* Do not modify it directly.
24+
*/
25+
26+
/*
27+
* Test configuration: Multilevel monolithic build config
28+
*
29+
* This configuration differs from the default mldsa/src/config.h in the
30+
* following places:
31+
* - MLD_CONFIG_NAMESPACE_PREFIX
32+
* - MLD_CONFIG_INTERNAL_API_QUALIFIER
33+
*/
34+
35+
2036
#ifndef MLD_CONFIG_H
2137
#define MLD_CONFIG_H
2238

@@ -101,7 +117,7 @@
101117
* Name: MLD_CONFIG_FILE
102118
*
103119
* Description: If defined, this is a header that will be included instead
104-
* of the default configuration file mldsa/config.h.
120+
* of the default configuration file mldsa/src/config.h.
105121
*
106122
* When you need to build mldsa-native in multiple configurations,
107123
* using varying MLD_CONFIG_FILE can be more convenient
@@ -113,6 +129,7 @@
113129
* on the command line.
114130
*
115131
*****************************************************************************/
132+
/* No need to set this -- we _are_ already in a custom config */
116133
/* #define MLD_CONFIG_FILE "config.h" */
117134

118135
/******************************************************************************
@@ -161,7 +178,7 @@
161178
* with mldsa-native.
162179
*
163180
* If set, it must be the name of a file serving as the
164-
* replacement for mldsa/fips202/fips202.h, and exposing
181+
* replacement for mldsa/src/fips202/fips202.h, and exposing
165182
* the same API (see FIPS202.md).
166183
*
167184
*****************************************************************************/
@@ -177,7 +194,7 @@
177194
* with mldsa-native.
178195
*
179196
* If set, it must be the name of a file serving as the
180-
* replacement for mldsa/fips202/fips202x4.h, and exposing
197+
* replacement for mldsa/src/fips202/fips202x4.h, and exposing
181198
* the same API (see FIPS202.md).
182199
*
183200
*****************************************************************************/

test/configs.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,3 +189,11 @@ configs:
189189
MLD_CONFIG_INTERNAL_API_QUALIFIER: static
190190
MLD_CONFIG_FILE:
191191
comment: "/* No need to set this -- we _are_ already in a custom config */"
192+
193+
- path: examples/monolithic_build_multilevel/multilevel_config.h
194+
description: "Multilevel monolithic build config"
195+
defines:
196+
MLD_CONFIG_NAMESPACE_PREFIX: mldsa
197+
MLD_CONFIG_INTERNAL_API_QUALIFIER: static
198+
MLD_CONFIG_FILE:
199+
comment: "/* No need to set this -- we _are_ already in a custom config */"

0 commit comments

Comments
 (0)