@@ -55,7 +55,7 @@ func (s *Builder) Run(ctx *types.Context) error {
55
55
56
56
& WarnAboutPlatformRewrites {},
57
57
58
- & RecipeByPrefixSuffixRunner {Prefix : constants . HOOKS_PREBUILD , Suffix : constants . HOOKS_PATTERN_SUFFIX },
58
+ & RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.prebuild" , Suffix : ".pattern" },
59
59
60
60
& ContainerMergeCopySketchFiles {},
61
61
@@ -68,33 +68,33 @@ func (s *Builder) Run(ctx *types.Context) error {
68
68
& PreprocessSketch {},
69
69
70
70
utils .LogIfVerbose (constants .LOG_LEVEL_INFO , tr ("Compiling sketch..." )),
71
- & RecipeByPrefixSuffixRunner {Prefix : constants . HOOKS_SKETCH_PREBUILD , Suffix : constants . HOOKS_PATTERN_SUFFIX },
71
+ & RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.sketch.prebuild" , Suffix : ".pattern" },
72
72
& phases.SketchBuilder {},
73
- & RecipeByPrefixSuffixRunner {Prefix : constants . HOOKS_SKETCH_POSTBUILD , Suffix : constants . HOOKS_PATTERN_SUFFIX },
73
+ & RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.sketch.postbuild" , Suffix : ".pattern" },
74
74
75
75
utils .LogIfVerbose (constants .LOG_LEVEL_INFO , tr ("Compiling libraries..." )),
76
- & RecipeByPrefixSuffixRunner {Prefix : constants . HOOKS_LIBRARIES_PREBUILD , Suffix : constants . HOOKS_PATTERN_SUFFIX },
76
+ & RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.libraries.prebuild" , Suffix : ".pattern" },
77
77
& UnusedCompiledLibrariesRemover {},
78
78
& phases.LibrariesBuilder {},
79
- & RecipeByPrefixSuffixRunner {Prefix : constants . HOOKS_LIBRARIES_POSTBUILD , Suffix : constants . HOOKS_PATTERN_SUFFIX },
79
+ & RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.libraries.postbuild" , Suffix : ".pattern" },
80
80
81
81
utils .LogIfVerbose (constants .LOG_LEVEL_INFO , tr ("Compiling core..." )),
82
- & RecipeByPrefixSuffixRunner {Prefix : constants . HOOKS_CORE_PREBUILD , Suffix : constants . HOOKS_PATTERN_SUFFIX },
82
+ & RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.core.prebuild" , Suffix : ".pattern" },
83
83
& phases.CoreBuilder {},
84
- & RecipeByPrefixSuffixRunner {Prefix : constants . HOOKS_CORE_POSTBUILD , Suffix : constants . HOOKS_PATTERN_SUFFIX },
84
+ & RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.core.postbuild" , Suffix : ".pattern" },
85
85
86
86
utils .LogIfVerbose (constants .LOG_LEVEL_INFO , tr ("Linking everything together..." )),
87
- & RecipeByPrefixSuffixRunner {Prefix : constants . HOOKS_LINKING_PRELINK , Suffix : constants . HOOKS_PATTERN_SUFFIX },
87
+ & RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.linking.prelink" , Suffix : ".pattern" },
88
88
& phases.Linker {},
89
- & RecipeByPrefixSuffixRunner {Prefix : constants . HOOKS_LINKING_POSTLINK , Suffix : constants . HOOKS_PATTERN_SUFFIX },
89
+ & RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.linking.postlink" , Suffix : ".pattern" },
90
90
91
- & RecipeByPrefixSuffixRunner {Prefix : constants . HOOKS_OBJCOPY_PREOBJCOPY , Suffix : constants . HOOKS_PATTERN_SUFFIX },
92
- & RecipeByPrefixSuffixRunner {Prefix : "recipe.objcopy." , Suffix : constants . HOOKS_PATTERN_SUFFIX },
93
- & RecipeByPrefixSuffixRunner {Prefix : constants . HOOKS_OBJCOPY_POSTOBJCOPY , Suffix : constants . HOOKS_PATTERN_SUFFIX },
91
+ & RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.objcopy.preobjcopy" , Suffix : ".pattern" },
92
+ & RecipeByPrefixSuffixRunner {Prefix : "recipe.objcopy." , Suffix : ".pattern" },
93
+ & RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.objcopy.postobjcopy" , Suffix : ".pattern" },
94
94
95
95
& MergeSketchWithBootloader {},
96
96
97
- & RecipeByPrefixSuffixRunner {Prefix : constants . HOOKS_POSTBUILD , Suffix : constants . HOOKS_PATTERN_SUFFIX },
97
+ & RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.postbuild" , Suffix : ".pattern" },
98
98
}
99
99
100
100
mainErr := runCommands (ctx , commands )
@@ -149,7 +149,7 @@ func (s *Preprocess) Run(ctx *types.Context) error {
149
149
150
150
& ContainerBuildOptions {},
151
151
152
- & RecipeByPrefixSuffixRunner {Prefix : constants . HOOKS_PREBUILD , Suffix : constants . HOOKS_PATTERN_SUFFIX },
152
+ & RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.prebuild" , Suffix : ".pattern" },
153
153
154
154
& ContainerMergeCopySketchFiles {},
155
155
0 commit comments