(output_file, device_properties: ConfigParser, device_id: str)
| 112 | output_file.write(f"CONFIG_PARTITION_TABLE_FILENAME=\"partitions-{flash_size_number}mb.csv\"\n") |
| 113 | |
| 114 | def write_tactility_variables(output_file, device_properties: ConfigParser, device_id: str): |
| 115 | # Board and vendor |
| 116 | board_vendor = get_property_or_exit(device_properties, "general", "vendor").replace("\"", "\\\"") |
| 117 | board_name = get_property_or_exit(device_properties, "general", "name").replace("\"", "\\\"") |
| 118 | if board_name == board_vendor or board_vendor == "": |
| 119 | output_file.write(f"CONFIG_TT_DEVICE_NAME=\"{board_name}\"\n") |
| 120 | else: |
| 121 | output_file.write(f"CONFIG_TT_DEVICE_NAME=\"{board_vendor} {board_name}\"\n") |
| 122 | output_file.write(f"CONFIG_TT_DEVICE_NAME_SIMPLE=\"{board_name}\"\n") |
| 123 | output_file.write(f"CONFIG_TT_DEVICE_VENDOR=\"{board_vendor}\"\n") |
| 124 | output_file.write(f"CONFIG_TT_DEVICE_ID=\"{device_id}\"\n") |
| 125 | if device_id == "lilygo-tdeck": |
| 126 | output_file.write("CONFIG_TT_TDECK_WORKAROUND=y\n") |
| 127 | # Launcher app id |
| 128 | launcher_app_id = get_property_or_exit(device_properties, "apps", "launcherAppId").replace("\"", "\\\"") |
| 129 | output_file.write(f"CONFIG_TT_LAUNCHER_APP_ID=\"{launcher_app_id}\"\n") |
| 130 | # Auto start app id |
| 131 | auto_start_app_id = get_property_or_none(device_properties, "apps", "autoStartAppId") |
| 132 | if auto_start_app_id is not None: |
| 133 | safe_auto_start_app_id = auto_start_app_id.replace("\"", "\\\"") |
| 134 | output_file.write(f"CONFIG_TT_AUTO_START_APP_ID=\"{safe_auto_start_app_id}\"\n") |
| 135 | |
| 136 | def write_core_variables(output_file, device_properties: ConfigParser): |
| 137 | idf_target = get_property_or_exit(device_properties, "hardware", "target").lower() |
no test coverage detected