summaryrefslogtreecommitdiff
path: root/package/xenomai/Makefile
blob: 5d9b7dfdfc9c032d207e9f9c29724e449c31b5eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(ADK_TOPDIR)/rules.mk

PKG_NAME:=		xenomai
PKG_VERSION:=		3.0.6
PKG_RELEASE:=		1
PKG_HASH:=		2c0dd3f0e36e4a10f97e0028989bb873e80f4d1ce212ac55fd3b28857c464f94
PKG_DESCR:=		realtime extension
PKG_SECTION:=		sys/misc
PKG_URL:=		https://xenomai.org/
PKG_SITES:=		https://xenomai.org/downloads/xenomai/stable/

DISTFILES:=             $(PKG_NAME)-$(PKG_VERSION).tar.bz2

PKG_CHOICES_XENOMAI:=	WITH_MERCURY
#PKG_CHOICES_XENOMAI:=	WITH_MERCURY WITH_COBALT
PKGCD_WITH_MERCURY:=	use mercury
#PKGCD_WITH_COBALT:=	use cobalt

include $(ADK_TOPDIR)/mk/package.mk

$(eval $(call PKG_template,XENOMAI,xenomai,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))

XAKE_FLAGS+=		SUDO="echo"
CONFIGURE_ARGS+=	--includedir=/usr/include/xenomai/ --disable-doc-install

ifeq (${ADK_PACKAGE_XENOMAI_WITH_MERCURY},y)
CONFIGURE_ARGS+=	--with-core=mercury
endif

ifeq (${ADK_PACKAGE_XENOMAI_WITH_COBALT},y)
CONFIGURE_ARGS+=	--with-core=cobalt
endif

xenomai-install:
	$(INSTALL_DIR) $(IDIR_XENOMAI)/usr/bin
	$(INSTALL_DIR) $(IDIR_XENOMAI)/usr/sbin
	$(INSTALL_DIR) $(IDIR_XENOMAI)/usr/lib
	$(CP) $(WRKINST)/usr/bin/* \
		$(IDIR_XENOMAI)/usr/bin
	$(CP) $(WRKINST)/usr/sbin/* \
		$(IDIR_XENOMAI)/usr/sbin
	$(CP) $(WRKINST)/usr/lib/* \
		$(IDIR_XENOMAI)/usr/lib


include $(ADK_TOPDIR)/mk/pkg-bottom.mk