kexttool: store extensions.yaml in .config instead of build

This commit is contained in:
2023-04-08 09:26:06 +01:00
parent e472c83d28
commit a1f54fd156

View File

@@ -3,8 +3,8 @@ import os
from kexttool.kext import KextSource
selection_file_path = 'build/extensions.yaml'
kext_makefile_path = 'build/extensions.mk'
selection_file_path = '.config/extensions.yaml'
kext_makefile_path = '.config/extensions.mk'
def description_to_list(kext):
@@ -12,8 +12,8 @@ def description_to_list(kext):
def create_selection_file():
if not os.path.isdir('build'):
os.mkdir('build')
if not os.path.isdir('.config'):
os.mkdir('.config')
all_kexts = KextSource.scan(os.path.join(os.getcwd(), 'kexts'))
if len(all_kexts) == 0: