mirror of
https://github.com/raspberrypi/userland.git
synced 2025-12-06 04:49:12 +00:00
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:
committed by
Dom Cobley
parent
df245ea297
commit
50527c6f2e
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user