1 ################################################################################
5 ################################################################################
7 RPI_USERLAND_VERSION
= f410ec051a3724934e3671315474d4b81424b0ef
8 RPI_USERLAND_SITE
= $(call github
,raspberrypi
,userland
,$(RPI_USERLAND_VERSION
))
9 RPI_USERLAND_LICENSE
= BSD-3c
10 RPI_USERLAND_LICENSE_FILES
= LICENCE
11 RPI_USERLAND_INSTALL_STAGING
= YES
12 RPI_USERLAND_CONF_OPTS
= -DVMCS_INSTALL_PREFIX
=/usr \
13 -DCMAKE_C_FLAGS
="$(TARGET_CFLAGS) \
14 -DVCFILED_LOCKFILE=\\\"/var/run/vcfiled.pid\\\""
16 RPI_USERLAND_PROVIDES
= libegl libgles libopenmax libopenvg
18 ifeq ($(BR2_PACKAGE_RPI_USERLAND_START_VCFILED
),y
)
19 define RPI_USERLAND_INSTALL_INIT_SYSV
20 $(INSTALL
) -m
0755 -D package
/rpi-userland
/S94vcfiled \
21 $(TARGET_DIR
)/etc
/init.d
/S94vcfiled
23 define RPI_USERLAND_INSTALL_INIT_SYSTEMD
24 $(INSTALL
) -D
-m
644 package
/rpi-userland
/vcfiled.service \
25 $(TARGET_DIR
)/usr
/lib
/systemd
/system
/vcfiled.service
26 mkdir
-p
$(TARGET_DIR
)/etc
/systemd
/system
/multi-user.target.wants
27 ln
-sf ..
/..
/..
/..
/usr
/lib
/systemd
/system
/vcfiled.service \
28 $(TARGET_DIR
)/etc
/systemd
/system
/multi-user.target.wants
/vcfiled.service
32 ifeq ($(BR2_PACKAGE_RPI_USERLAND_HELLO
),y
)
34 RPI_USERLAND_CONF_OPTS
+= -DALL_APPS
=ON
36 define RPI_USERLAND_EXTRA_LIBS_TARGET
37 $(INSTALL
) -m
0644 -D \
38 $(@D
)/build
/lib
/libilclient.so \
39 $(TARGET_DIR
)/usr
/lib
/libilclient.so
41 RPI_USERLAND_POST_INSTALL_TARGET_HOOKS
+= RPI_USERLAND_EXTRA_LIBS_TARGET
43 define RPI_USERLAND_EXTRA_LIBS_STAGING
44 $(INSTALL
) -m
0644 -D \
45 $(@D
)/build
/lib
/libilclient.so \
46 $(STAGING_DIR
)/usr
/lib
/libilclient.so
48 RPI_USERLAND_POST_INSTALL_STAGING_HOOKS
+= RPI_USERLAND_EXTRA_LIBS_STAGING
52 RPI_USERLAND_CONF_OPTS
+= -DALL_APPS
=OFF
54 endif # BR2_PACKAGE_RPI_USERLAND_HELLO
56 define RPI_USERLAND_POST_TARGET_CLEANUP
57 rm -f
$(TARGET_DIR
)/etc
/init.d
/vcfiled
58 rm -f
$(TARGET_DIR
)/usr
/share
/install/vcfiled
59 rmdir
--ignore-fail-on-non-empty
$(TARGET_DIR
)/usr
/share
/install
60 rm -Rf
$(TARGET_DIR
)/usr
/src
62 RPI_USERLAND_POST_INSTALL_TARGET_HOOKS
+= RPI_USERLAND_POST_TARGET_CLEANUP
64 $(eval
$(cmake-package
))