From af77d02acf08928fe30ee26ca671525264da2739 Mon Sep 17 00:00:00 2001 From: Afonso Oliveira Date: Mon, 12 Oct 2026 14:40:03 +0100 Subject: [PATCH] Revert "fix(px4_work_queue): link px4_layer for the task functions it uses" This reverts commit d92a0c6b3. In protected builds px4_work_queue is also linked into the kernel image, where px4_layer's user-side objects collide with the kernel ones (px4_fmu-v5_protected). The Erbium target no longer needs the link dependency, since its modules pull in px4_task_spawn_cmd() and px4_task_join() before px4_work_queue is linked. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Afonso Oliveira --- platforms/common/px4_work_queue/CMakeLists.txt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/platforms/common/px4_work_queue/CMakeLists.txt b/platforms/common/px4_work_queue/CMakeLists.txt index 320b26efa78..01f8cc3db2b 100644 --- a/platforms/common/px4_work_queue/CMakeLists.txt +++ b/platforms/common/px4_work_queue/CMakeLists.txt @@ -44,7 +44,3 @@ if(PX4_TESTING) endif() target_compile_options(px4_work_queue PRIVATE ${MAX_CUSTOM_OPT_LEVEL}) - -# WorkQueueManager starts and joins its thread with px4_task_spawn_cmd() and -# px4_task_join() -target_link_libraries(px4_work_queue PRIVATE px4_layer)