Renamed "boot_sections" property group to more accurate "boot_section_options" in AVR8 TDFs
This commit is contained in:
@@ -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')),
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user