diff --git a/components/llm/component.py b/components/llm/component.py new file mode 100644 index 00000000..25e1969c --- /dev/null +++ b/components/llm/component.py @@ -0,0 +1,15 @@ + + +def add_requirements(platform : str, find_dirs : list): + if platform == "maixcam": + return [ + "nn", + ] + elif platform == "maixcam2": + return [ + "nn", + "json" + ] + else: + raise Exception("maixcam_lib component.py not add this platform support yet") + diff --git a/tools/cmake/build.py b/tools/cmake/build.py index 17af6d73..840fbf1b 100644 --- a/tools/cmake/build.py +++ b/tools/cmake/build.py @@ -144,6 +144,15 @@ def get_components_find_dirs(configs): def get_all_components_dl_info(find_dirs, kconfigs): components = get_components_dirs(find_dirs) valid_components = find_valid_components(components, find_dirs, kconfigs["PLATFORM"]) + print("\n-- Enabled components:") + msg = " " + for i, c in enumerate(valid_components): + msg += c + if (i+1) % 8 == 0: + msg += ",\n " + else: + msg += ", " + print(f"{msg[:-2]}\n\n") files_info = get_components_files(components, valid_components, kconfigs) return files_info