mirror of
https://github.com/Ai-Thinker-Open/Ai-Thinker-Open_RTL8710BX_ALIOS_SDK.git
synced 2025-03-23 04:52:56 +00:00
10 lines
391 B
Python
10 lines
391 B
Python
import sys, os
|
|
|
|
component_mk_str = "#warning: aos auto component, don't change everything here.\nNAME := auto_component\n$(NAME)_TYPE := kernel\n"
|
|
|
|
if len(sys.argv) == 2:
|
|
file_dir = os.path.join(os.getcwd(), sys.argv[1])
|
|
if not os.path.exists(file_dir):
|
|
os.makedirs(file_dir)
|
|
with open(os.path.join(file_dir, "auto_component.mk"), "w") as f:
|
|
f.write(component_mk_str)
|