summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c91fb08)
ncc can find a custom platform if its PLATFORMDIR is included into
PFLAGS as an include: -I$(PLATFORMDIR) or equivalent. Teach ncc to
identify when such a platform is a family member and in such cases
process the corresponding .family file.
foreach $dir (@includes) {
if ($dir =~ m!/$target/?$! && -f "$dir/.platform") {
$platform_def = "$dir/.platform";
foreach $dir (@includes) {
if ($dir =~ m!/$target/?$! && -f "$dir/.platform") {
$platform_def = "$dir/.platform";
+ # Check to see if the platform is a member of a family
+ if (-f "$dir/.family") {
+ $family_def = "$dir/.family";
+ }
+ else {
+ if (-f "$dir/../.family") {
+ $family_def = "$dir/../.family";
+ }
+ }