Permalink
Browse files

Exclude default vendors from device tree script

This fixes "android_common_samsung_x" issue, on first fresh builds
  • Loading branch information...
1 parent aba306f commit cc1d6881f5cccc01da2789e717d7b828d89da0b6 D4rKn3sSyS committed Mar 25, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 tools/getdevicetree.py
View
@@ -16,8 +16,10 @@ def isNullOrEmpty(value):
for dirname, dirnames, filenames in os.walk('./device/'):
for subdirname in dirnames:
path = os.path.join(dirname, subdirname)[9:]
- if path.find(device) != -1:
- manufacturer = path[:path.find('/')];
+ # Exclude common, sample and google device manufacturers
+ if path.find('common') == -1 and path.find('sample') == -1 and path.find('google') == -1:
+ if path.find(device) != -1:
+ manufacturer = path[:path.find('/')];
if isNullOrEmpty(manufacturer):
manufacturer = raw_input('Manufacturer not found, please write your device manufacturer: ')

0 comments on commit cc1d688

Please sign in to comment.