summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2024-05-03 12:37:23 +1000
committerjacqueline <me@jacqueline.id.au>2024-05-03 12:37:23 +1000
commit964da15a0b84f8e5f00e8abac2f7dfda0bf60488 (patch)
tree4dc977f8789ca379cf8dc60c45eaa0fb57a9fce1 /CMakeLists.txt
parenta231fd1c8afedbeb14b0bc77d76bad61db986059 (diff)
downloadtangara-fw-964da15a0b84f8e5f00e8abac2f7dfda0bf60488.tar.gz
Add the collation partition to the build
Includes a small linux-only bash script to generate locale partitions
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 89ebf8aa..f9d1f72c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,10 +16,15 @@ list(APPEND EXTRA_COMPONENT_DIRS "$ENV{PROJ_PATH}/src")
project(tangara)
+# 'collate' partition on internal flash. Contains collation data for sorting
+# strings across languages (defaults to a generic dataset based on ISO14651).
+get_filename_component(collate_full_path "tools/collate/Generic.LC_COLLATE" ABSOLUTE)
+esptool_py_flash_to_partition(flash "collate" ${collate_full_path})
+
# /lua partition on internal flash, for storing the lua application
spiffs_create_partition_image(lua lua FLASH_IN_PROJECT)
-# /repl partition on internal flash, for storing the developer repl and its deps.
+# /repl partition on internal flash, for storing the developer repl and its deps
file(COPY lib/lua-repl/repl DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/repl)
file(COPY lib/lua-term/term DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/repl)
spiffs_create_partition_image(repl ${CMAKE_CURRENT_BINARY_DIR}/repl FLASH_IN_PROJECT)