2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-01-06 11:56:21 +01:00
|
|
|
#
|
|
|
|
# rpi-userland
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-01-06 11:56:21 +01:00
|
|
|
|
2015-08-13 18:22:51 +02:00
|
|
|
RPI_USERLAND_VERSION = b864a841e5a459a66a890c22b3a34127cd226238
|
2013-12-05 18:20:46 +01:00
|
|
|
RPI_USERLAND_SITE = $(call github,raspberrypi,userland,$(RPI_USERLAND_VERSION))
|
2013-01-06 11:56:21 +01:00
|
|
|
RPI_USERLAND_LICENSE = BSD-3c
|
2013-05-08 03:34:21 +02:00
|
|
|
RPI_USERLAND_LICENSE_FILES = LICENCE
|
2013-01-06 11:56:21 +01:00
|
|
|
RPI_USERLAND_INSTALL_STAGING = YES
|
2014-09-27 21:32:44 +02:00
|
|
|
RPI_USERLAND_CONF_OPTS = -DVMCS_INSTALL_PREFIX=/usr \
|
2014-08-07 17:24:28 +02:00
|
|
|
-DCMAKE_C_FLAGS="-DVCFILED_LOCKFILE=\\\"/var/run/vcfiled.pid\\\""
|
2013-01-06 11:56:21 +01:00
|
|
|
|
2014-05-15 19:37:05 +02:00
|
|
|
RPI_USERLAND_PROVIDES = libegl libgles libopenmax libopenvg
|
|
|
|
|
2014-08-07 17:24:28 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_RPI_USERLAND_START_VCFILED),y)
|
|
|
|
define RPI_USERLAND_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -m 0755 -D package/rpi-userland/S94vcfiled \
|
2014-10-27 09:25:28 +01:00
|
|
|
$(TARGET_DIR)/etc/init.d/S94vcfiled
|
2014-08-07 17:24:28 +02:00
|
|
|
endef
|
2015-05-23 12:07:07 +02:00
|
|
|
define RPI_USERLAND_INSTALL_INIT_SYSTEMD
|
|
|
|
$(INSTALL) -D -m 644 package/rpi-userland/vcfiled.service \
|
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/vcfiled.service
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
|
|
ln -sf ../../../../usr/lib/systemd/system/vcfiled.service \
|
|
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/vcfiled.service
|
|
|
|
endef
|
2014-08-07 17:24:28 +02:00
|
|
|
endif
|
|
|
|
|
2015-07-25 11:15:13 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_RPI_USERLAND_HELLO),y)
|
|
|
|
|
|
|
|
RPI_USERLAND_CONF_OPTS += -DALL_APPS=ON
|
|
|
|
|
|
|
|
define RPI_USERLAND_EXTRA_LIBS_TARGET
|
|
|
|
$(INSTALL) -m 0644 -D \
|
|
|
|
$(@D)/build/lib/libilclient.so \
|
|
|
|
$(TARGET_DIR)/usr/lib/libilcient.so
|
|
|
|
endef
|
|
|
|
RPI_USERLAND_POST_INSTALL_TARGET_HOOKS += RPI_USERLAND_EXTRA_LIBS_TARGET
|
|
|
|
|
|
|
|
define RPI_USERLAND_EXTRA_LIBS_STAGING
|
|
|
|
$(INSTALL) -m 0644 -D \
|
|
|
|
$(@D)/build/lib/libilclient.so \
|
|
|
|
$(STAGING_DIR)/usr/lib/libilcient.so
|
|
|
|
endef
|
|
|
|
RPI_USERLAND_POST_INSTALL_STAGING_HOOKS += RPI_USERLAND_EXTRA_LIBS_STAGING
|
|
|
|
|
2015-07-26 18:37:35 +02:00
|
|
|
else
|
|
|
|
|
|
|
|
RPI_USERLAND_CONF_OPTS += -DALL_APPS=OFF
|
|
|
|
|
2015-07-25 11:15:13 +02:00
|
|
|
endif # BR2_PACKAGE_RPI_USERLAND_HELLO
|
|
|
|
|
2013-01-06 11:56:21 +01:00
|
|
|
define RPI_USERLAND_POST_TARGET_CLEANUP
|
2014-08-07 17:24:28 +02:00
|
|
|
rm -f $(TARGET_DIR)/etc/init.d/vcfiled
|
|
|
|
rm -f $(TARGET_DIR)/usr/share/install/vcfiled
|
|
|
|
rmdir --ignore-fail-on-non-empty $(TARGET_DIR)/usr/share/install
|
2014-08-06 15:39:09 +02:00
|
|
|
rm -Rf $(TARGET_DIR)/usr/src
|
2013-01-06 11:56:21 +01:00
|
|
|
endef
|
|
|
|
RPI_USERLAND_POST_INSTALL_TARGET_HOOKS += RPI_USERLAND_POST_TARGET_CLEANUP
|
|
|
|
|
|
|
|
$(eval $(cmake-package))
|