Configure MMAL options for motion if rpi-userland is selected

This commit is contained in:
inodlite 2017-07-29 00:47:22 -07:00
parent 5b3a021a08
commit eef4b3055e

View File

@ -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))