forked from espressif/esp-protocols
Merge pull request #643 from david-cermak/feat/wifi_remote_with_hosted
[wifi_remote]: Make esp_hosted default RPC library
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
# SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
|
# SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
"""
|
"""
|
||||||
This file is used in CI for esp-protocols build tests
|
This file is used in CI for esp-protocols build tests
|
||||||
@ -10,8 +10,6 @@ import sys
|
|||||||
|
|
||||||
from idf_build_apps import build_apps, find_apps, setup_logging
|
from idf_build_apps import build_apps, find_apps, setup_logging
|
||||||
from idf_build_apps.constants import SUPPORTED_TARGETS
|
from idf_build_apps.constants import SUPPORTED_TARGETS
|
||||||
from packaging import version
|
|
||||||
from pkg_resources import get_distribution
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
@ -51,43 +49,24 @@ if __name__ == '__main__':
|
|||||||
SUPPORTED_TARGETS.append('linux')
|
SUPPORTED_TARGETS.append('linux')
|
||||||
ignore_warning = 'warning: ' # Ignore all common warnings on linux builds
|
ignore_warning = 'warning: ' # Ignore all common warnings on linux builds
|
||||||
setup_logging(2)
|
setup_logging(2)
|
||||||
if version.parse(get_distribution('idf_build_apps').version) >= version.parse('2.0.0'):
|
apps = find_apps(
|
||||||
apps = find_apps(
|
args.paths,
|
||||||
args.paths,
|
recursive=args.recursive,
|
||||||
recursive=args.recursive,
|
target=args.target,
|
||||||
target=args.target,
|
build_dir='build_@t_@w',
|
||||||
build_dir='build_@t_@w',
|
config_rules_str=args.rules,
|
||||||
config_rules_str=args.rules,
|
build_log_filename='build_log.txt',
|
||||||
build_log_filename='build_log.txt',
|
size_json_filename='size.json' if not args.linux else None,
|
||||||
size_json_filename='size.json' if not args.linux else None,
|
check_warnings=True,
|
||||||
check_warnings=True,
|
manifest_files=args.manifests,
|
||||||
preserve=not args.delete,
|
default_build_targets=SUPPORTED_TARGETS,
|
||||||
manifest_files=args.manifests,
|
manifest_rootpath='.',
|
||||||
default_build_targets=SUPPORTED_TARGETS,
|
)
|
||||||
manifest_rootpath='.',
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
apps = find_apps(
|
|
||||||
args.paths,
|
|
||||||
recursive=args.recursive,
|
|
||||||
target=args.target,
|
|
||||||
build_dir='build_@t_@w',
|
|
||||||
config_rules_str=args.rules,
|
|
||||||
build_log_path='build_log.txt',
|
|
||||||
size_json_path='size.json' if not args.linux else None,
|
|
||||||
check_warnings=True,
|
|
||||||
preserve=not args.delete,
|
|
||||||
manifest_files=args.manifests,
|
|
||||||
default_build_targets=SUPPORTED_TARGETS,
|
|
||||||
manifest_rootpath='.',
|
|
||||||
)
|
|
||||||
|
|
||||||
for app in apps:
|
|
||||||
print(app)
|
|
||||||
|
|
||||||
sys.exit(
|
sys.exit(
|
||||||
build_apps(apps,
|
build_apps(apps,
|
||||||
dry_run=False,
|
dry_run=False,
|
||||||
keep_going=False,
|
keep_going=False,
|
||||||
|
no_preserve=args.delete,
|
||||||
ignore_warning_strs=ignore_warning)
|
ignore_warning_strs=ignore_warning)
|
||||||
)
|
)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
choice ESP_WIFI_REMOTE_LIBRARY
|
choice ESP_WIFI_REMOTE_LIBRARY
|
||||||
prompt "Choose WiFi-remote implementation"
|
prompt "Choose WiFi-remote implementation"
|
||||||
default ESP_WIFI_REMOTE_LIBRARY_EPPP
|
default ESP_WIFI_REMOTE_LIBRARY_HOSTED
|
||||||
help
|
help
|
||||||
Select type of WiFi Remote implementation
|
Select type of WiFi Remote implementation
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
CONFIG_ESP_WIFI_REMOTE_LIBRARY_EPPP=y
|
||||||
CONFIG_LWIP_IP_FORWARD=y
|
CONFIG_LWIP_IP_FORWARD=y
|
||||||
CONFIG_LWIP_IPV4_NAPT=y
|
CONFIG_LWIP_IPV4_NAPT=y
|
||||||
CONFIG_LWIP_TCPIP_TASK_STACK_SIZE=4096
|
CONFIG_LWIP_TCPIP_TASK_STACK_SIZE=4096
|
||||||
|
Reference in New Issue
Block a user