@@ -55,7 +55,7 @@ func (s *Builder) Run(ctx *types.Context) error {
5555
5656 & WarnAboutPlatformRewrites {},
5757
58- & RecipeByPrefixSuffixRunner {Prefix : constants . HOOKS_PREBUILD , Suffix : constants . HOOKS_PATTERN_SUFFIX },
58+ & RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.prebuild" , Suffix : ".pattern" },
5959
6060 & ContainerMergeCopySketchFiles {},
6161
@@ -68,33 +68,33 @@ func (s *Builder) Run(ctx *types.Context) error {
6868 & PreprocessSketch {},
6969
7070 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" },
7272 & phases.SketchBuilder {},
73- & RecipeByPrefixSuffixRunner {Prefix : constants . HOOKS_SKETCH_POSTBUILD , Suffix : constants . HOOKS_PATTERN_SUFFIX },
73+ & RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.sketch.postbuild" , Suffix : ".pattern" },
7474
7575 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" },
7777 & UnusedCompiledLibrariesRemover {},
7878 & phases.LibrariesBuilder {},
79- & RecipeByPrefixSuffixRunner {Prefix : constants . HOOKS_LIBRARIES_POSTBUILD , Suffix : constants . HOOKS_PATTERN_SUFFIX },
79+ & RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.libraries.postbuild" , Suffix : ".pattern" },
8080
8181 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" },
8383 & phases.CoreBuilder {},
84- & RecipeByPrefixSuffixRunner {Prefix : constants . HOOKS_CORE_POSTBUILD , Suffix : constants . HOOKS_PATTERN_SUFFIX },
84+ & RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.core.postbuild" , Suffix : ".pattern" },
8585
8686 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" },
8888 & phases.Linker {},
89- & RecipeByPrefixSuffixRunner {Prefix : constants . HOOKS_LINKING_POSTLINK , Suffix : constants . HOOKS_PATTERN_SUFFIX },
89+ & RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.linking.postlink" , Suffix : ".pattern" },
9090
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" },
9494
9595 & MergeSketchWithBootloader {},
9696
97- & RecipeByPrefixSuffixRunner {Prefix : constants . HOOKS_POSTBUILD , Suffix : constants . HOOKS_PATTERN_SUFFIX },
97+ & RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.postbuild" , Suffix : ".pattern" },
9898 }
9999
100100 mainErr := runCommands (ctx , commands )
@@ -149,7 +149,7 @@ func (s *Preprocess) Run(ctx *types.Context) error {
149149
150150 & ContainerBuildOptions {},
151151
152- & RecipeByPrefixSuffixRunner {Prefix : constants . HOOKS_PREBUILD , Suffix : constants . HOOKS_PATTERN_SUFFIX },
152+ & RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.prebuild" , Suffix : ".pattern" },
153153
154154 & ContainerMergeCopySketchFiles {},
155155
0 commit comments