From 50527c6f2e6ada490def6f05d7c08525846845d1 Mon Sep 17 00:00:00 2001 From: Dave Stevenson Date: Fri, 26 Nov 2021 10:58:38 +0000 Subject: [PATCH] mmal: Only include Videocore components if not running on Videocore Fixes build break from "2ac42ee mmal: Hack to make mmal core register VideoCore components" --- interface/mmal/core/mmal_component.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/interface/mmal/core/mmal_component.c b/interface/mmal/core/mmal_component.c index c88ed7a..d40c439 100644 --- a/interface/mmal/core/mmal_component.c +++ b/interface/mmal/core/mmal_component.c @@ -668,11 +668,13 @@ static void mmal_core_init_once(void) { vcos_mutex_create(&mmal_core_lock, VCOS_FUNCTION); +#ifndef __VIDEOCORE__ /* Horrid hack as linkers are now setting --as-needed by default, so fail * to see the requirement for mmal_vc_client as a library because the core * never calls it. */ mmal_register_component_videocore(); +#endif } static void mmal_core_init(void)