mmal: Only include Videocore components if not running on Videocore

Fixes build break from "2ac42ee mmal: Hack to make mmal core register
VideoCore components"
This commit is contained in:
Dave Stevenson
2021-11-26 10:58:38 +00:00
committed by Dom Cobley
parent df245ea297
commit 50527c6f2e

View File

@@ -668,11 +668,13 @@ static void mmal_core_init_once(void)
{ {
vcos_mutex_create(&mmal_core_lock, VCOS_FUNCTION); vcos_mutex_create(&mmal_core_lock, VCOS_FUNCTION);
#ifndef __VIDEOCORE__
/* Horrid hack as linkers are now setting --as-needed by default, so fail /* 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 * to see the requirement for mmal_vc_client as a library because the core
* never calls it. * never calls it.
*/ */
mmal_register_component_videocore(); mmal_register_component_videocore();
#endif
} }
static void mmal_core_init(void) static void mmal_core_init(void)