rg_tool: Changed --with-networking to be --without-networking

rg_tool should reflect what my default builds do
This commit is contained in:
Alex Duchesne 2022-10-19 10:38:49 -04:00
parent 048e3067a5
commit fb86799c45
2 changed files with 6 additions and 6 deletions

View File

@ -13,5 +13,5 @@ RUN cd /opt/esp/idf && \
# Build
RUN . /opt/esp/idf/export.sh && \
python rg_tool.py --with-networking --target=odroid-go release && \
python rg_tool.py --with-networking --target=mrgc-g32 release
python rg_tool.py --target=odroid-go release && \
python rg_tool.py --target=mrgc-g32 release

View File

@ -197,11 +197,11 @@ def clean_app(app):
print("Done.\n")
def build_app(app, device_type, with_profiling=False, with_networking=False):
def build_app(app, device_type, with_profiling=False, without_networking=False):
# To do: clean up if any of the flags changed since last build
print("Building app '%s'" % app)
os.putenv("RG_ENABLE_PROFILING", "1" if with_profiling else "0")
os.putenv("RG_ENABLE_NETWORKING", "1" if with_networking else "0")
os.putenv("RG_ENABLE_NETWORKING", "0" if without_networking else "1")
os.putenv("RG_BUILD_TARGET", re.sub(r'[^A-Z0-9]', '_', device_type.upper()))
os.putenv("RG_BUILD_TIME", str(int(time.time())))
os.putenv("RG_BUILD_VERSION", PROJECT_VER)
@ -297,7 +297,7 @@ parser.add_argument(
"--idf-target", default=None, choices=["esp32", "esp32s2", "esp32s3"], help="ESP SOC to target"
)
parser.add_argument(
"--with-networking", action="store_const", const=True, help="Build with networking enabled"
"--without-networking", action="store_const", const=True, help="Build without networking enabled"
)
parser.add_argument(
"--port", default=DEFAULT_PORT, help="Serial port to use for flash and monitor"
@ -330,7 +330,7 @@ if command in ["clean", "release"]:
if command in ["build", "build-fw", "build-img", "release", "run", "profile"]:
print("=== Step: Building ===\n")
for app in apps:
build_app(app, args.target, command == "profile", args.with_networking)
build_app(app, args.target, command == "profile", args.without_networking)
if command in ["build-fw", "release"]:
print("=== Step: Packing ===\n")