mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
xenomai: add support to keep or remove skins
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
60d4822052
commit
4b78a50089
@ -119,4 +119,41 @@ config BR2_PACKAGE_XENOMAI_ANALOGY
|
|||||||
This option allows to install the Xenomai Analogy utilities
|
This option allows to install the Xenomai Analogy utilities
|
||||||
and libraries
|
and libraries
|
||||||
|
|
||||||
|
config BR2_PACKAGE_XENOMAI_NATIVE_SKIN
|
||||||
|
bool "Native skin library"
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
This option allows to install the Native Xenomai skin
|
||||||
|
|
||||||
|
config BR2_PACKAGE_XENOMAI_POSIX_SKIN
|
||||||
|
bool "POSIX skin library"
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
This option allows to install the POSIX Xenomai skin
|
||||||
|
|
||||||
|
config BR2_PACKAGE_XENOMAI_VXWORKS_SKIN
|
||||||
|
bool "VX-Works skin library"
|
||||||
|
help
|
||||||
|
This option allows to install the VX-Works Xenomai skin
|
||||||
|
|
||||||
|
config BR2_PACKAGE_XENOMAI_PSOS_SKIN
|
||||||
|
bool "PSOS skin library"
|
||||||
|
help
|
||||||
|
This option allows to install the PSOS Xenomai skin
|
||||||
|
|
||||||
|
config BR2_PACKAGE_XENOMAI_RTAI_SKIN
|
||||||
|
bool "RTAI skin library"
|
||||||
|
help
|
||||||
|
This option allows to install the RTAI Xenomai skin
|
||||||
|
|
||||||
|
config BR2_PACKAGE_XENOMAI_UITRON_SKIN
|
||||||
|
bool "uiTron skin library"
|
||||||
|
help
|
||||||
|
This option allows to install the uiTron Xenomai skin
|
||||||
|
|
||||||
|
config BR2_PACKAGE_XENOMAI_VRTX_SKIN
|
||||||
|
bool "VRTX skin library"
|
||||||
|
help
|
||||||
|
This option allows to install the VRTX Xenomai skin
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
@ -103,6 +103,25 @@ endef
|
|||||||
XENOMAI_POST_INSTALL_TARGET_HOOKS += XENOMAI_REMOVE_ANALOGY
|
XENOMAI_POST_INSTALL_TARGET_HOOKS += XENOMAI_REMOVE_ANALOGY
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
XENOMAI_REMOVE_SKIN_LIST += $(if $(BR2_PACKAGE_XENOMAI_NATIVE_SKIN),,native)
|
||||||
|
XENOMAI_REMOVE_SKIN_LIST += $(if $(BR2_PACKAGE_XENOMAI_POSIX_SKIN),,posix)
|
||||||
|
XENOMAI_REMOVE_SKIN_LIST += $(if $(BR2_PACKAGE_XENOMAI_VXWORKS_SKIN),,vxworks)
|
||||||
|
XENOMAI_REMOVE_SKIN_LIST += $(if $(BR2_PACKAGE_XENOMAI_PSOS_SKIN),,psos)
|
||||||
|
XENOMAI_REMOVE_SKIN_LIST += $(if $(BR2_PACKAGE_XENOMAI_RTAI_SKIN),,rtai)
|
||||||
|
XENOMAI_REMOVE_SKIN_LIST += $(if $(BR2_PACKAGE_XENOMAI_UITRON_SKIN),,uitron)
|
||||||
|
XENOMAI_REMOVE_SKIN_LIST += $(if $(BR2_PACKAGE_XENOMAI_VRTX_SKIN),,vrtx)
|
||||||
|
|
||||||
|
define XENOMAI_REMOVE_SKINS
|
||||||
|
for i in $(XENOMAI_REMOVE_SKIN_LIST) ; do \
|
||||||
|
rm -f $(TARGET_DIR)/usr/xenomai/lib/lib$$i.* ; \
|
||||||
|
if [ $$i == "posix" ] ; then \
|
||||||
|
rm -f $(TARGET_DIR)/usr/xenomai/lib/posix.wrappers ; \
|
||||||
|
fi ; \
|
||||||
|
done
|
||||||
|
endef
|
||||||
|
|
||||||
|
XENOMAI_POST_INSTALL_TARGET_HOOKS += XENOMAI_REMOVE_SKINS
|
||||||
|
|
||||||
define XENOMAI_ADD_LD_SO_CONF
|
define XENOMAI_ADD_LD_SO_CONF
|
||||||
# Add /usr/xenomai/lib in the library search path
|
# Add /usr/xenomai/lib in the library search path
|
||||||
grep -q "^/usr/xenomai/lib" $(TARGET_DIR)/etc/ld.so.conf || \
|
grep -q "^/usr/xenomai/lib" $(TARGET_DIR)/etc/ld.so.conf || \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user