Renamed "boot_sections" property group to more accurate "boot_section_options" in AVR8 TDFs

This commit is contained in:
Nav
2024-02-22 20:40:59 +00:00
parent 67133804c0
commit 0c8ba1b7b7
112 changed files with 116 additions and 116 deletions

View File

@@ -110,7 +110,7 @@ class Avr8TargetDescriptionFile extends TargetDescriptionFile
$output->ramStartAddress = $ramMemorySegment->startAddress;
}
$output->bootSections = $this->getBootSections();
$output->bootSectionOptions = $this->getBootSectionOptions();
$eepromMemorySegment = $this->getEepromSegment();
if ($eepromMemorySegment instanceof MemorySegment) {
@@ -258,7 +258,7 @@ class Avr8TargetDescriptionFile extends TargetDescriptionFile
$output->ramStartAddress = $ramMemorySegment->startAddress;
}
$output->bootSections = $this->getBootSections();
$output->bootSectionOptions = $this->getBootSectionOptions();
$eepromMemorySegment = $this->getEepromSegment();
if ($eepromMemorySegment instanceof MemorySegment) {
@@ -499,11 +499,11 @@ class Avr8TargetDescriptionFile extends TargetDescriptionFile
?? $this->getMemorySegment('eeprom', 'internal_eeprom');
}
private function getBootSections(): array
private function getBootSectionOptions(): array
{
$output = [];
$bootSectionPropertyGroups = $this->getPropertyGroup('boot_sections')->subPropertyGroups ?? [];
$bootSectionPropertyGroups = $this->getPropertyGroup('boot_section_options')->subPropertyGroups ?? [];
foreach ($bootSectionPropertyGroups as $propertyGroup) {
$output[] = new BootSection(
$this->stringService->tryStringToInt($propertyGroup->getPropertyValue('start_address')),

View File

@@ -10,7 +10,7 @@ class DebugWireParameters
public ?int $flashStartAddress = null;
/** @var BootSection[] */
public array $bootSections = [];
public array $bootSectionOptions = [];
public ?int $ramStartAddress = null;
public ?int $eepromSize = null;

View File

@@ -10,7 +10,7 @@ class JtagParameters
public ?int $flashStartAddress = null;
/** @var BootSection[] */
public array $bootSections = [];
public array $bootSectionOptions = [];
public ?int $ramStartAddress = null;
public ?int $eepromSize = null;

View File

@@ -265,8 +265,8 @@ class ValidationService extends \Targets\TargetDescriptionFiles\Services\Validat
$failures[] = 'Missing flash start address';
}
if (empty($parameters->bootSections)) {
$failures[] = 'Missing boot sections';
if (empty($parameters->bootSectionOptions)) {
$failures[] = 'Missing boot section options';
}
if ($parameters->ramStartAddress === null) {