From cdc2417df5337c015f0a7bd3fc6e7adde78c2fa7 Mon Sep 17 00:00:00 2001 From: Olivier Stasse <ostasse@laas.fr> Date: Wed, 11 Jul 2018 17:51:45 +0200 Subject: [PATCH] [wip/sysdep] PALDISTRO detection --- sysdep/pal-distro.mk | 12 +++++++----- sysdep/platform/palerbium.mk | 1 + 2 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 sysdep/platform/palerbium.mk diff --git a/sysdep/pal-distro.mk b/sysdep/pal-distro.mk index 704a55da..ac4d2277 100644 --- a/sysdep/pal-distro.mk +++ b/sysdep/pal-distro.mk @@ -6,10 +6,12 @@ ifndef _paldistro_mk _paldistro:=$(shell ${SHELL} ${ROBOTPKG_DIR}/wip/sysdep/pal-distro.sh) export PALDISTRO:= $(word 1,${_paldistro}) -#ifeq (yes,$(call exists,${ROBOTPKG_DIR}/wip/sysdep/platform/${PALDISTRO}.mk)) -# include ${ROBOTPKG_DIR}/wip/sysdep/platform/${PALDISTRO}.mk -#else -# $(error missing wip/sysdep/platform/${PALDISTRO}.mk) -#endif + ifeq (palerbium,${PALDISTRO}) + ifeq (yes,$(call exists,${ROBOTPKG_DIR}/wip/sysdep/platform/${PALDISTRO}.mk)) + include ${ROBOTPKG_DIR}/wip/sysdep/platform/${PALDISTRO}.mk + else + $(error missing wip/sysdep/platform/${PALDISTRO}.mk) + endif + endif endif # ERBIUM_ROS_FLAVOR diff --git a/sysdep/platform/palerbium.mk b/sysdep/platform/palerbium.mk new file mode 100644 index 00000000..c3f62ede --- /dev/null +++ b/sysdep/platform/palerbium.mk @@ -0,0 +1 @@ +CMAKE_PREFIX_PATH+=/opt/pal/erbium -- GitLab