X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=tools%2Ftinyos%2Fncc%2Fncc.in;h=2f61d921400ce5f896b6b7aeb4f5d6b2b6e3db80;hb=71f2849fb56e837bb00300f31cce4e1f73d5cbf1;hp=2f1b5b999ddeef0c4d91c2bc6bd3246cb016e837;hpb=c91fb0847cce91b329c93946d65a2dd45943aebc;p=tinyos-2.x.git diff --git a/tools/tinyos/ncc/ncc.in b/tools/tinyos/ncc/ncc.in index 2f1b5b99..2f61d921 100644 --- a/tools/tinyos/ncc/ncc.in +++ b/tools/tinyos/ncc/ncc.in @@ -148,6 +148,15 @@ if ($print_target) { 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"; + } + } last; } }