From b6db69e7efbfe7b9be694925dd4587498505038a Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Mon, 22 Jun 2026 17:26:44 -0400 Subject: [PATCH] build: Move utf8proc build decision into configure script. It is always enabled, except in the following situations: * bootloaders * warble or checkwps applications * devices with less than 4MB of RAM * imx233-based devices imx233 is a special case; that will be backed out we figure out why it fails to boot if the binary size exceeds 1MB. Change-Id: If4a89e389f562bb5791a565fba99c830213473d3 --- tools/configure | 8 ++++++++ tools/database/database.make | 2 -- tools/root.make | 17 +++++++---------- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/tools/configure b/tools/configure index 36a6d570f8..6d798820fa 100755 --- a/tools/configure +++ b/tools/configure @@ -4718,6 +4718,13 @@ if [ "$ARG_STACK_PROTECTOR" != "" ]; then fi fi +# We generally want utf8proc. Exceptions are: +# Bootloaders, checkwps, warble, <4MB RAM +# and (temporarily) imx233 +if [ "$apps" = "bootloader" -o "$app_type" = "checkwps" -o "$app_type" = "warble" -o "$memory" -lt "4" -o "$t_manufacturer" = "imx233" ]; then + no_utf8proc=1 +fi + cat > autoconf.h.new <