rp2040: patch elf to checksum 2nd stage boot

This commit is contained in:
Kenneth Bell
2021-06-06 15:42:21 -07:00
committed by Ayke
parent 87e48c1057
commit 52d640967b
8 changed files with 564 additions and 80 deletions
+9
View File
@@ -176,6 +176,15 @@ func (c *Config) AutomaticStackSize() bool {
return false
}
// RP2040BootPatch returns whether the RP2040 boot patch should be applied that
// calculates and patches in the checksum for the 2nd stage bootloader.
func (c *Config) RP2040BootPatch() bool {
if c.Target.RP2040BootPatch != nil {
return *c.Target.RP2040BootPatch
}
return false
}
// CFlags returns the flags to pass to the C compiler. This is necessary for CGo
// preprocessing.
func (c *Config) CFlags() []string {