Skip to content

Commit ba6c5f8

Browse files
committed
Auto-generate monolithic_build_multilevel configuration
Signed-off-by: willieyz <[email protected]>
1 parent 639d632 commit ba6c5f8

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
lines changed

examples/monolithic_build_multilevel/multilevel_config.h

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,21 @@
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+
*/
33+
34+
2035
#ifndef MLD_CONFIG_H
2136
#define MLD_CONFIG_H
2237

@@ -50,9 +65,7 @@
5065
* This can also be set using CFLAGS.
5166
*
5267
*****************************************************************************/
53-
#if !defined(MLD_CONFIG_NAMESPACE_PREFIX)
5468
#define MLD_CONFIG_NAMESPACE_PREFIX mldsa
55-
#endif
5669

5770
/******************************************************************************
5871
* Name: MLD_CONFIG_MULTILEVEL_WITH_SHARED
@@ -103,7 +116,7 @@
103116
* Name: MLD_CONFIG_FILE
104117
*
105118
* Description: If defined, this is a header that will be included instead
106-
* of the default configuration file mldsa/config.h.
119+
* of the default configuration file mldsa/src/config.h.
107120
*
108121
* When you need to build mldsa-native in multiple configurations,
109122
* using varying MLD_CONFIG_FILE can be more convenient
@@ -115,6 +128,7 @@
115128
* on the command line.
116129
*
117130
*****************************************************************************/
131+
/* No need to set this -- we _are_ already in a custom config */
118132
/* #define MLD_CONFIG_FILE "config.h" */
119133

120134
/******************************************************************************
@@ -163,7 +177,7 @@
163177
* with mldsa-native.
164178
*
165179
* If set, it must be the name of a file serving as the
166-
* replacement for mldsa/fips202/fips202.h, and exposing
180+
* replacement for mldsa/src/fips202/fips202.h, and exposing
167181
* the same API (see FIPS202.md).
168182
*
169183
*****************************************************************************/
@@ -179,7 +193,7 @@
179193
* with mldsa-native.
180194
*
181195
* If set, it must be the name of a file serving as the
182-
* replacement for mldsa/fips202/fips202x4.h, and exposing
196+
* replacement for mldsa/src/fips202/fips202x4.h, and exposing
183197
* the same API (see FIPS202.md).
184198
*
185199
*****************************************************************************/

test/configs.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,3 +186,10 @@ configs:
186186
MLD_CONFIG_NAMESPACE_PREFIX: mldsa
187187
MLD_CONFIG_FILE:
188188
comment: "/* No need to set this -- we _are_ already in a custom config */"
189+
190+
- path: examples/monolithic_build_multilevel/multilevel_config.h
191+
description: "Multilevel monolithic build config"
192+
defines:
193+
MLD_CONFIG_NAMESPACE_PREFIX: mldsa
194+
MLD_CONFIG_FILE:
195+
comment: "/* No need to set this -- we _are_ already in a custom config */"

0 commit comments

Comments
 (0)