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 <afonso.oliveira707@gmail.com>
This commit is contained in:
Afonso Oliveira authored and Julian Oes committed 2026-10-23 22:42:28 +02:00
1 parent e579b6f4ba
commit af77d02acf
1 file changed
-4
@@ -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)