Replaced target architecture with target family in TDF build scripts

This commit is contained in:
Nav
2023-12-17 17:57:35 +00:00
parent 4dd6050781
commit 866cdbdcc5
3 changed files with 11 additions and 17 deletions

View File

@@ -15,15 +15,12 @@ require_once __DIR__ . "/Pinout.php";
class TargetDescriptionFile
{
const ARCHITECTURE_AVR8 = 'AVR8';
public string $filePath;
public ?SimpleXMLElement $xml = null;
public ?string $targetName = null;
public ?TargetFamily $targetFamily = null;
public ?string $configurationValue = null;
public ?string $targetArchitecture = null;
/** @var string[] */
public array $deviceAttributesByName = [];
@@ -80,11 +77,6 @@ class TargetDescriptionFile
if (!empty($this->deviceAttributesByName['family'])) {
$this->targetFamily = TargetFamily::tryFrom($device['family']);
}
if (!empty($this->deviceAttributesByName['architecture'])) {
$this->targetArchitecture = stristr($device['architecture'], 'avr') !== false
? self::ARCHITECTURE_AVR8 : $device['architecture'];
}
}
$this->loadVariants();
@@ -474,10 +466,6 @@ class TargetDescriptionFile
$failures[] = 'Missing/invalid target family';
}
if (empty($this->targetArchitecture)) {
$failures[] = 'Target architecture not found';
}
if (empty($this->variants)) {
$failures[] = 'Missing target variants';
}