From eef4b3055eeddca4862816d30862a5697650c622 Mon Sep 17 00:00:00 2001 From: inodlite <1023852+inodlite@users.noreply.github.com> Date: Sat, 29 Jul 2017 00:47:22 -0700 Subject: [PATCH] Configure MMAL options for motion if rpi-userland is selected --- package/motion/motion.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/motion/motion.mk b/package/motion/motion.mk index f3815e37a4..95465fb2a3 100644 --- a/package/motion/motion.mk +++ b/package/motion/motion.mk @@ -14,5 +14,12 @@ define MOTION_INSTALL_TARGET_CMDS cp $(@D)/motion $(TARGET_DIR)/usr/bin/motion endef +ifeq ($(BR2_PACKAGE_RPI_USERLAND),y) +MOTION_DEPENDENCIES += rpi-userland +MOTION_CONF_OPTS += \ + --with-mmal-include=$(STAGING_DIR)/usr/include \ + --with-mmal-lib=$(STAGING_DIR)/lib +endif + $(eval $(autotools-package))