mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-21 19:55:33 -04:00
vendor_detect: Remove redundant debug flag parse
* Verified it is working well for last 4 months
This commit is contained in:
parent
fbab16965f
commit
98939cebce
2 changed files with 1 additions and 12 deletions
|
|
@ -1,22 +1,11 @@
|
|||
import os
|
||||
import argparse
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("-d", help="Debug", type=int)
|
||||
args = parser.parse_args()
|
||||
var = vars(args)
|
||||
DEBUG = var['d'] == 1
|
||||
blacklist = ["qcom", "nxp","pixel-framework", "lawnchair" ,"support", "overlay","samsung", "gapps", "google", "gms", "codeaurora", "addons", "overlays", "xtras", "themes"]
|
||||
vendors = os.listdir("vendor")
|
||||
for vendor in vendors:
|
||||
common = "vendor/"+vendor+"/config/common.mk"
|
||||
if os.path.isfile(common) and vendor not in blacklist:
|
||||
if DEBUG:
|
||||
print("Found vendor " + vendor)
|
||||
f = open("device/samsung/universal7885-common/vendor_name", "a")
|
||||
f.write(vendor)
|
||||
f.close()
|
||||
break
|
||||
else:
|
||||
if DEBUG:
|
||||
print(vendor + " is on the blacklist or does not have common.mk. Skipping...")
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ git clone --depth=1 https://github.com/eurekadevelopment/android_vendor_samsung_
|
|||
if test -f device/samsung/universal7885-common/vendor_name; then
|
||||
rm device/samsung/universal7885-common/vendor_name
|
||||
fi
|
||||
python3 device/samsung/universal7885-common/vendor_detect/main.py -d 0
|
||||
python3 device/samsung/universal7885-common/vendor_detect/main.py
|
||||
echo "Generating A10 Makefiles"
|
||||
./device/samsung/a10/setup.sh
|
||||
echo "Generating A20 Makefiles"
|
||||
|
|
|
|||
Loading…
Reference in a new issue