You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/rp2_common/boot_stage2/CMakeLists.txt
+11-8Lines changed: 11 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,13 @@
1
-
# PICO_CMAKE_CONFIG: PICO_DEFAULT_BOOT_STAGE2_FILE, Default stage2 file to use unless overridden by pico_set_boot_stage2 on the TARGET; this setting is useful when explicitly setting the default build from a per board CMake file, group=build
2
-
# PICO_CMAKE_CONFIG: PICO_DEFAULT_BOOT_STAGE2, Simpler alternative to specifying PICO_DEFAULT_BOOT_STAGE2_FILE where the file is src/boards/{PICO_DEFAULT_BOOT_STAGE2_FILE}.S, default=compile_time_choice, group=build
1
+
# PICO_CMAKE_CONFIG: PICO_DEFAULT_BOOT_STAGE2_FILE, Default boot stage 2 file to use unless overridden by pico_set_boot_stage2 on the TARGET; this setting is useful when explicitly setting the default build from a per board CMake file, group=build
2
+
# PICO_CMAKE_CONFIG: PICO_DEFAULT_BOOT_STAGE2, Simpler alternative to specifying PICO_DEFAULT_BOOT_STAGE2_FILE where the file is src/rp2_common/boot_stage2/{PICO_DEFAULT_BOOT_STAGE2}.S, default=compile_time_choice, group=build
Copy file name to clipboardExpand all lines: src/rp2_common/boot_stage2/include/boot_stage2/config.h
+58-14Lines changed: 58 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -9,30 +9,74 @@
9
9
10
10
// NOTE THIS HEADER IS INCLUDED FROM ASSEMBLY
11
11
12
+
#include"pico/config.h"
13
+
12
14
// PICO_CONFIG: PICO_BUILD_BOOT_STAGE2_NAME, The name of the boot stage 2 if selected by the build, group=boot_stage2
13
-
// PICO_CONFIG: PICO_BOOT_STAGE2_CHOOSE_IS25LP080, Select boot2_is25lp080 as the boot stage 2 when no boot stage2 selection is made by the CMake build, type=bool, default=false, group=boot_stage2
14
-
// PICO_CONFIG: PICO_BOOT_STAGE2_CHOOSE_W25Q080, Select boot2_w28q080 as the boot stage 2 when no boot stage2 selection is made by the CMake build, type=bool, default=false, group=boot_stage2
15
-
// PICO_CONFIG: PICO_BOOT_STAGE2_CHOOSE_W25X10CL, Select boot2_is25lp080 as the boot stage 2 when no boot stage2 selection is made by the CMake build, type=bool, default=false, group=boot_stage2
16
-
// PICO_CONFIG: PICO_BOOT_STAGE2_CHOOSE_GENERIC_03H, Select boot2_generic_03h as the boot stage 2 when no boot stage2 selection is made by the CMake build, type=bool, default=true, group=boot_stage2
15
+
#ifdefPICO_BUILD_BOOT_STAGE2_NAME
16
+
#define_BOOT_STAGE2_SELECTED
17
+
#else
18
+
// check that multiple boot stage 2 options haven't been set...
19
+
20
+
// PICO_CONFIG: PICO_BOOT_STAGE2_CHOOSE_IS25LP080, Select boot2_is25lp080 as the boot stage 2 when no boot stage 2 selection is made by the CMake build, type=bool, default=0, group=boot_stage2
21
+
#ifndefPICO_BOOT_STAGE2_CHOOSE_IS25LP080
22
+
#definePICO_BOOT_STAGE2_CHOOSE_IS25LP080 0
23
+
#elifPICO_BOOT_STAGE2_CHOOSE_IS25LP080
24
+
#ifdef_BOOT_STAGE2_SELECTED
25
+
#error multiple boot stage 2 options chosen
26
+
#endif
27
+
#define_BOOT_STAGE2_SELECTED
28
+
#endif
29
+
// PICO_CONFIG: PICO_BOOT_STAGE2_CHOOSE_W25Q080, Select boot2_w25q080 as the boot stage 2 when no boot stage 2 selection is made by the CMake build, type=bool, default=0, group=boot_stage2
30
+
#ifndefPICO_BOOT_STAGE2_CHOOSE_W25Q080
31
+
#definePICO_BOOT_STAGE2_CHOOSE_W25Q080 0
32
+
#elifPICO_BOOT_STAGE2_CHOOSE_W25Q080
33
+
#ifdef_BOOT_STAGE2_SELECTED
34
+
#error multiple boot stage 2 options chosen
35
+
#endif
36
+
#define_BOOT_STAGE2_SELECTED
37
+
#endif
38
+
// PICO_CONFIG: PICO_BOOT_STAGE2_CHOOSE_W25X10CL, Select boot2_w25x10cl as the boot stage 2 when no boot stage 2 selection is made by the CMake build, type=bool, default=0, group=boot_stage2
39
+
#ifndefPICO_BOOT_STAGE2_CHOOSE_W25X10CL
40
+
#definePICO_BOOT_STAGE2_CHOOSE_W25X10CL 0
41
+
#elifPICO_BOOT_STAGE2_CHOOSE_W25X10CL
42
+
#ifdef_BOOT_STAGE2_SELECTED
43
+
#error multiple boot stage 2 options chosen
44
+
#endif
45
+
#define_BOOT_STAGE2_SELECTED
46
+
#endif
47
+
// PICO_CONFIG: PICO_BOOT_STAGE2_CHOOSE_GENERIC_03H, Select boot2_generic_03h as the boot stage 2 when no boot stage 2 selection is made by the CMake build, type=bool, default=1, group=boot_stage2
0 commit comments