supports binary-format, only esp* supported for now
This commit is contained in:
@@ -149,6 +149,39 @@ func (l *Loader) mergeConfig(dst, src *Config) {
|
||||
if src.RelocationModel != "" {
|
||||
dst.RelocationModel = src.RelocationModel
|
||||
}
|
||||
if src.BinaryFormat != "" {
|
||||
dst.BinaryFormat = src.BinaryFormat
|
||||
}
|
||||
if src.FlashCommand != "" {
|
||||
dst.FlashCommand = src.FlashCommand
|
||||
}
|
||||
if src.FlashMethod != "" {
|
||||
dst.FlashMethod = src.FlashMethod
|
||||
}
|
||||
if src.Flash1200BpsReset != "" {
|
||||
dst.Flash1200BpsReset = src.Flash1200BpsReset
|
||||
}
|
||||
if src.MSDFirmwareName != "" {
|
||||
dst.MSDFirmwareName = src.MSDFirmwareName
|
||||
}
|
||||
if src.UF2FamilyID != "" {
|
||||
dst.UF2FamilyID = src.UF2FamilyID
|
||||
}
|
||||
if src.RP2040BootPatch {
|
||||
dst.RP2040BootPatch = src.RP2040BootPatch
|
||||
}
|
||||
if src.Emulator != "" {
|
||||
dst.Emulator = src.Emulator
|
||||
}
|
||||
if src.OpenOCDInterface != "" {
|
||||
dst.OpenOCDInterface = src.OpenOCDInterface
|
||||
}
|
||||
if src.OpenOCDTransport != "" {
|
||||
dst.OpenOCDTransport = src.OpenOCDTransport
|
||||
}
|
||||
if src.OpenOCDTarget != "" {
|
||||
dst.OpenOCDTarget = src.OpenOCDTarget
|
||||
}
|
||||
|
||||
// Merge slices (append, don't replace)
|
||||
if len(src.BuildTags) > 0 {
|
||||
@@ -163,6 +196,12 @@ func (l *Loader) mergeConfig(dst, src *Config) {
|
||||
if len(src.ExtraFiles) > 0 {
|
||||
dst.ExtraFiles = append(dst.ExtraFiles, src.ExtraFiles...)
|
||||
}
|
||||
if len(src.MSDVolumeName) > 0 {
|
||||
dst.MSDVolumeName = append(dst.MSDVolumeName, src.MSDVolumeName...)
|
||||
}
|
||||
if len(src.GDB) > 0 {
|
||||
dst.GDB = append(dst.GDB, src.GDB...)
|
||||
}
|
||||
}
|
||||
|
||||
// GetTargetsDir returns the targets directory path
|
||||
|
||||
Reference in New Issue
Block a user