From 0b854ba64d0ddb6b36864d31d9ca2a7fc1269b5e Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Tue, 14 Oct 2025 11:53:31 +0200 Subject: [PATCH] bricks/technichub,movehub: Set CSUPEROPT for build size. Reduces build size: Move Hub: -2400 Technic Hub: -2400 At the cost of slightly slower performance of the VM. These hubs are almost running out of space, so this is more important. --- bricks/movehub/Makefile | 3 +++ bricks/technichub/Makefile | 3 +++ 2 files changed, 6 insertions(+) diff --git a/bricks/movehub/Makefile b/bricks/movehub/Makefile index 2974f30c3..6f7df12cf 100644 --- a/bricks/movehub/Makefile +++ b/bricks/movehub/Makefile @@ -11,4 +11,7 @@ PB_LIB_BLUENRG = 1 PB_FROZEN_MODULES = 0 MICROPY_ROM_TEXT_COMPRESSION = 0 # Needed for PYBRICKS_OPT_TERSE_ERR +# Reduce code size at the cost of slower performance. +override CSUPEROPT = -Os + include ../_common/common.mk diff --git a/bricks/technichub/Makefile b/bricks/technichub/Makefile index 2df580be4..b87a8036e 100644 --- a/bricks/technichub/Makefile +++ b/bricks/technichub/Makefile @@ -11,4 +11,7 @@ PB_LIB_BLE5STACK = 1 PB_LIB_LSM6DS3TR_C = 1 PB_FROZEN_MODULES = 1 +# Reduce code size at the cost of slower performance. +override CSUPEROPT = -Os + include ../_common/common.mk