Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
From 6c6da9e6d75ccfaa83c1efe14211f080c14181c6 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Sun, 3 Dec 2023 15:28:50 +0100
|
||||
Subject: [PATCH] lib/psos/task.c: fix build with gcc >= 12
|
||||
|
||||
Fix the following build failure with gcc >= 12:
|
||||
|
||||
task.c: In function 't_start':
|
||||
task.c:398:16: error: 'ret' may be used uninitialized [-Werror=maybe-uninitialized]
|
||||
398 | return ret;
|
||||
| ^~~
|
||||
task.c:364:13: note: 'ret' was declared here
|
||||
364 | int ret;
|
||||
| ^~~
|
||||
task.c: In function 't_resume':
|
||||
task.c:444:16: error: 'ret' may be used uninitialized [-Werror=maybe-uninitialized]
|
||||
444 | return ret;
|
||||
| ^~~
|
||||
task.c:428:13: note: 'ret' was declared here
|
||||
428 | int ret;
|
||||
| ^~~
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/bc1b40de22e563b704ad7f20b6bf4d1f73a6ed8a
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Upstream: https://lore.kernel.org/xenomai/20231203144307.1940139-1-fontaine.fabrice@gmail.com/T/#u
|
||||
---
|
||||
lib/psos/task.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/lib/psos/task.c b/lib/psos/task.c
|
||||
index f678be61d..27bcc28a9 100644
|
||||
--- a/lib/psos/task.c
|
||||
+++ b/lib/psos/task.c
|
||||
@@ -362,7 +362,7 @@ u_long t_start(u_long tid,
|
||||
{
|
||||
struct psos_task *task;
|
||||
struct service svc;
|
||||
- int ret;
|
||||
+ int ret = SUCCESS;
|
||||
|
||||
CANCEL_DEFER(svc);
|
||||
|
||||
@@ -426,7 +426,7 @@ u_long t_resume(u_long tid)
|
||||
{
|
||||
struct psos_task *task;
|
||||
struct service svc;
|
||||
- int ret;
|
||||
+ int ret = SUCCESS;
|
||||
|
||||
CANCEL_DEFER(svc);
|
||||
|
||||
--
|
||||
2.42.0
|
||||
|
||||
55
package/xenomai/3.2.5/0002-smokey-fix-build-failure.patch
Normal file
55
package/xenomai/3.2.5/0002-smokey-fix-build-failure.patch
Normal file
@@ -0,0 +1,55 @@
|
||||
From eb5c49e4c0a1068363dc81f70ea2a65ad0f91c0f Mon Sep 17 00:00:00 2001
|
||||
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
|
||||
Date: Sat, 14 Sep 2024 12:20:36 +0200
|
||||
Subject: [PATCH] smokey: fix build failure
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
This patch fixes the following building failure raised on bumping Xenomai
|
||||
to version 3.2.5 in Buildroot:
|
||||
|
||||
In file included from helpers.c:29:
|
||||
../../include/smokey/smokey.h:258:39: error: unknown type name ‘bool’
|
||||
258 | int smokey_modprobe(const char *name, bool silent);
|
||||
| ^~~~
|
||||
../../include/smokey/smokey.h:27:1: note: ‘bool’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’?
|
||||
26 | #include <xenomai/init.h>
|
||||
+++ |+#include <stdbool.h>
|
||||
27 |
|
||||
In file included from init.c:33:
|
||||
../../include/smokey/smokey.h:258:39: error: unknown type name ‘bool’
|
||||
258 | int smokey_modprobe(const char *name, bool silent);
|
||||
| ^~~~
|
||||
../../include/smokey/smokey.h:26:1: note: ‘bool’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’?
|
||||
25 | #include <copperplate/clockobj.h>
|
||||
+++ |+#include <stdbool.h>
|
||||
26 | #include <xenomai/init.h>
|
||||
helpers.c:299:39: error: unknown type name ‘bool’
|
||||
299 | int smokey_modprobe(const char *name, bool silent)
|
||||
| ^~~~
|
||||
helpers.c:30:1: note: ‘bool’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’?
|
||||
29 | #include <smokey/smokey.h>
|
||||
+++ |+#include <stdbool.h>
|
||||
|
||||
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
|
||||
Upstream: https://lore.kernel.org/xenomai/20240914131026.1035993-1-dario.binacchi@amarulasolutions.com/T/#u
|
||||
---
|
||||
include/smokey/smokey.h | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/include/smokey/smokey.h b/include/smokey/smokey.h
|
||||
index cf9701966db8..45dd0dcd017b 100644
|
||||
--- a/include/smokey/smokey.h
|
||||
+++ b/include/smokey/smokey.h
|
||||
@@ -19,6 +19,7 @@
|
||||
#define _XENOMAI_SMOKEY_SMOKEY_H
|
||||
|
||||
#include <stdarg.h>
|
||||
+#include <stdbool.h>
|
||||
#include <pthread.h>
|
||||
#include <boilerplate/list.h>
|
||||
#include <boilerplate/libc.h>
|
||||
--
|
||||
2.43.0
|
||||
|
||||
231
package/xenomai/Config.in
Normal file
231
package/xenomai/Config.in
Normal file
@@ -0,0 +1,231 @@
|
||||
config BR2_PACKAGE_XENOMAI_COBALT_ARCH_SUPPORTS
|
||||
bool
|
||||
default y if BR2_i386
|
||||
default y if BR2_x86_64
|
||||
default y if BR2_powerpc
|
||||
default y if BR2_arm && !BR2_ARM_CPU_ARMV7M && !BR2_ARM_CPU_ARMV8A
|
||||
|
||||
comment "xenomai needs a glibc or uClibc toolchain w/ threads"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_TOOLCHAIN_USES_MUSL
|
||||
|
||||
config BR2_PACKAGE_XENOMAI
|
||||
bool "Xenomai Userspace"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
# uses <error.h>, __WORDSIZE and bits/local_lim.h
|
||||
depends on !BR2_TOOLCHAIN_USES_MUSL
|
||||
help
|
||||
Real-Time Framework for Linux
|
||||
http://www.xenomai.org
|
||||
|
||||
Xenomai is split in two parts: a kernel part and an
|
||||
userspace part.
|
||||
|
||||
This package contains the userspace part, which consists
|
||||
mainly in libraries to write userspace real-time programs
|
||||
that interact with the in-kernel Xenomai real-time core.
|
||||
|
||||
For those libraries to work, you need a Xenomai-enabled
|
||||
kernel. This is possible in two ways:
|
||||
- if you compile your kernel with Buildroot, you need to go
|
||||
to Linux Kernel -> Linux Kernel Extensions to enable the
|
||||
Xenomai extension.
|
||||
- if you compile your kernel outside of Buildroot, you need
|
||||
to make sure that it is Xenomai-enabled.
|
||||
|
||||
Finally, if you are using a static /dev, make sure to
|
||||
uncomment the Xenomai entries listed in
|
||||
target/generic/device_table_dev.txt.
|
||||
|
||||
if BR2_PACKAGE_XENOMAI
|
||||
|
||||
choice
|
||||
bool "Xenomai version"
|
||||
help
|
||||
Make sure that the selected version has a patch for your
|
||||
selected Linux kernel. If it does not, download and select a
|
||||
patch manually with BR2_LINUX_KERNEL_EXT_XENOMAI_ADEOS_PATCH,
|
||||
in the Linux Kernel -> Linux Kernel Extensions menu.
|
||||
|
||||
config BR2_PACKAGE_XENOMAI_LATEST_VERSION
|
||||
bool "Latest version (3.2.x)"
|
||||
|
||||
config BR2_PACKAGE_XENOMAI_CUSTOM_VERSION
|
||||
bool "Custom version"
|
||||
|
||||
config BR2_PACKAGE_XENOMAI_CUSTOM_TARBALL
|
||||
bool "Custom tarball"
|
||||
|
||||
config BR2_PACKAGE_XENOMAI_CUSTOM_GIT
|
||||
bool "Custom Git repository"
|
||||
|
||||
endchoice
|
||||
|
||||
config BR2_PACKAGE_XENOMAI_CUSTOM_VERSION_VALUE
|
||||
string "Xenomai version"
|
||||
depends on BR2_PACKAGE_XENOMAI_CUSTOM_VERSION
|
||||
|
||||
config BR2_PACKAGE_XENOMAI_REPOSITORY
|
||||
string "URL of custom repository"
|
||||
depends on BR2_PACKAGE_XENOMAI_CUSTOM_GIT
|
||||
|
||||
config BR2_PACKAGE_XENOMAI_REPOSITORY_VERSION
|
||||
string "Custom repository version"
|
||||
depends on BR2_PACKAGE_XENOMAI_CUSTOM_GIT
|
||||
help
|
||||
Revision to use in the typical format used by Git, i.e a
|
||||
SHA1 or a tag.
|
||||
|
||||
config BR2_PACKAGE_XENOMAI_VERSION
|
||||
string
|
||||
default "3.2.5" if BR2_PACKAGE_XENOMAI_LATEST_VERSION
|
||||
default BR2_PACKAGE_XENOMAI_CUSTOM_VERSION_VALUE \
|
||||
if BR2_PACKAGE_XENOMAI_CUSTOM_VERSION
|
||||
default "custom" if BR2_PACKAGE_XENOMAI_CUSTOM_TARBALL
|
||||
default BR2_PACKAGE_XENOMAI_REPOSITORY_VERSION \
|
||||
if BR2_PACKAGE_XENOMAI_CUSTOM_GIT
|
||||
|
||||
config BR2_PACKAGE_XENOMAI_CUSTOM_TARBALL_URL
|
||||
string "URL of custom tarball"
|
||||
depends on BR2_PACKAGE_XENOMAI_CUSTOM_TARBALL
|
||||
|
||||
choice
|
||||
prompt "Xenomai core"
|
||||
default BR2_PACKAGE_XENOMAI_MERCURY
|
||||
help
|
||||
Select the Xenomai core: dual kernel (Cobalt)
|
||||
or native Linux Kernel (Mercury).
|
||||
|
||||
config BR2_PACKAGE_XENOMAI_MERCURY
|
||||
bool "Mercury"
|
||||
depends on !BR2_LINUX_KERNEL_EXT_XENOMAI
|
||||
help
|
||||
Select Mercury core for the Xenomai userspace.
|
||||
You want to use it if you have the native Linux Kernel.
|
||||
|
||||
config BR2_PACKAGE_XENOMAI_COBALT
|
||||
bool "Cobalt"
|
||||
depends on BR2_PACKAGE_XENOMAI_COBALT_ARCH_SUPPORTS
|
||||
help
|
||||
Select Cobalt core (dual kernel) for the Xenomai
|
||||
userspace. Use this if you use a Xenomai-patched
|
||||
Linux kernel.
|
||||
|
||||
If you want to use Cobalt core, your kernel must have
|
||||
the Adeos and Xenomai patches applied to it. You can
|
||||
add these through the BR2_LINUX_KERNEL_EXT_XENOMAI option
|
||||
in the Linux Kernel Extensions menu.
|
||||
endchoice
|
||||
|
||||
config BR2_PACKAGE_XENOMAI_ENABLE_SMP
|
||||
bool "Enable SMP support"
|
||||
default y
|
||||
# SMP not supported below armv6
|
||||
depends on !BR2_ARM_CPU_ARMV4 && !BR2_ARM_CPU_ARMV5
|
||||
help
|
||||
This option enables SMP support in Xenomai userspace.
|
||||
|
||||
If this option is turned on while no SMP support is enabled
|
||||
in the kernel, things will still work. However, if SMP is
|
||||
enabled in the kernel but this option is not turned on,
|
||||
Xenomai applications will complain with:
|
||||
|
||||
feature mismatch: missing="smp/nosmp"
|
||||
|
||||
Please refer to this troubleshooting guide for more
|
||||
information:
|
||||
|
||||
http://xenomai.org/troubleshooting-a-dual-kernel-configuration/#feature_mismatch_missing8221smpnosmp8221
|
||||
|
||||
config BR2_PACKAGE_XENOMAI_ENABLE_REGISTRY
|
||||
bool "Enable registry"
|
||||
depends on !BR2_STATIC_LIBS # libfuse
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libfuse
|
||||
depends on BR2_USE_MMU # libfuse
|
||||
select BR2_PACKAGE_LIBFUSE
|
||||
help
|
||||
Xenomai APIs can export their internal state through a
|
||||
pseudo-filesystem, whose files may be read to obtain
|
||||
information about the existing real-time objects, such as
|
||||
tasks, semaphores, message queues and so on.
|
||||
|
||||
comment "registry needs a toolchain w/ threads, dynamic library"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
|
||||
config BR2_PACKAGE_XENOMAI_ENABLE_REGISTRY_PATH
|
||||
string "Custom registry root path"
|
||||
depends on BR2_PACKAGE_XENOMAI_ENABLE_REGISTRY
|
||||
help
|
||||
Specify the root path of the registry here.
|
||||
To use the Xenomai default (currently: /var/run/xenomai),
|
||||
leave this option empty.
|
||||
|
||||
config BR2_PACKAGE_XENOMAI_ADDITIONAL_CONF_OPTS
|
||||
string "Additional configure options"
|
||||
help
|
||||
Specify any additional options to pass to the configure
|
||||
script here. See Xenomai documentation for details.
|
||||
|
||||
config BR2_PACKAGE_XENOMAI_TESTSUITE
|
||||
bool "Install testsuite"
|
||||
help
|
||||
This option allows to install the Xenomai test programs.
|
||||
|
||||
config BR2_PACKAGE_XENOMAI_RTCAN
|
||||
bool "RTCan utilities"
|
||||
help
|
||||
This option allows to install the Xenomai RT-CAN utilities.
|
||||
|
||||
config BR2_PACKAGE_XENOMAI_ANALOGY
|
||||
bool "Analogy libs and utils"
|
||||
help
|
||||
This option allows to install the Xenomai Analogy utilities
|
||||
and libraries
|
||||
|
||||
menu "Skin selection"
|
||||
|
||||
config BR2_PACKAGE_XENOMAI_NATIVE_SKIN
|
||||
bool "Alchemy (native) skin"
|
||||
default y
|
||||
help
|
||||
This option allows to install the Alchemy Xenomai skin,
|
||||
previously called 'native'
|
||||
|
||||
config BR2_PACKAGE_XENOMAI_POSIX_SKIN
|
||||
bool "POSIX skin"
|
||||
default y
|
||||
help
|
||||
This option allows to install the POSIX Xenomai skin
|
||||
|
||||
config BR2_PACKAGE_XENOMAI_PSOS_SKIN
|
||||
bool "pSOS skin"
|
||||
help
|
||||
This option allows to install the pSOS Xenomai skin
|
||||
|
||||
config BR2_PACKAGE_XENOMAI_RTAI_SKIN
|
||||
bool "RTAI skin"
|
||||
help
|
||||
This option allows to install the RTAI Xenomai skin
|
||||
|
||||
config BR2_PACKAGE_XENOMAI_UITRON_SKIN
|
||||
bool "uITRON skin"
|
||||
help
|
||||
This option allows to install the uITRON Xenomai skin
|
||||
|
||||
config BR2_PACKAGE_XENOMAI_VRTX_SKIN
|
||||
bool "VRTX skin"
|
||||
help
|
||||
This option allows to install the VRTX Xenomai skin
|
||||
|
||||
config BR2_PACKAGE_XENOMAI_VXWORKS_SKIN
|
||||
bool "VxWorks skin"
|
||||
help
|
||||
This option allows to install the VxWorks Xenomai skin
|
||||
|
||||
endmenu
|
||||
|
||||
endif
|
||||
17
package/xenomai/xenomai.hash
Normal file
17
package/xenomai/xenomai.hash
Normal file
@@ -0,0 +1,17 @@
|
||||
# Locally computed;
|
||||
sha256 ec47f07057ec3ff290c4ef3779cc8c680bb2c60cfd55e2e1a8cb254d7ad3cfad xenomai-3.2.5.tar.bz2
|
||||
sha256 d37ebe86bf618942dad958927c44403f9b02fbebb3071a4a08408ccbdab5290f debian/copyright
|
||||
sha256 f3380321da72ff509bf6939aa80e6d02fd22268f5c705137b34c205b39bc63a0 include/COPYING
|
||||
sha256 d6b6d8ed1b12309085caf1cf775ea4acdad3288c7f7d993c2502bd19c87e4764 kernel/cobalt/COPYING
|
||||
sha256 d6b6d8ed1b12309085caf1cf775ea4acdad3288c7f7d993c2502bd19c87e4764 kernel/cobalt/posix/COPYING
|
||||
sha256 9c90501baa30534ffed6b39eef413bd1727170ef691fd9768dc8644c3042df54 kernel/cobalt/rtdm/COPYING
|
||||
sha256 eea173a556abac0370461e57e12aab266894ea6be3874c2be05fd87871f75449 lib/alchemy/COPYING
|
||||
sha256 eea173a556abac0370461e57e12aab266894ea6be3874c2be05fd87871f75449 lib/analogy/COPYING
|
||||
sha256 0519083691511d71408f8c9a2794fa2f6ad13a5eec00717f4572b54d18d6f9da lib/boilerplate/iniparser/LICENSE
|
||||
sha256 eea173a556abac0370461e57e12aab266894ea6be3874c2be05fd87871f75449 lib/boilerplate/COPYING
|
||||
sha256 eea173a556abac0370461e57e12aab266894ea6be3874c2be05fd87871f75449 lib/cobalt/COPYING
|
||||
sha256 eea173a556abac0370461e57e12aab266894ea6be3874c2be05fd87871f75449 lib/copperplate/COPYING
|
||||
sha256 eea173a556abac0370461e57e12aab266894ea6be3874c2be05fd87871f75449 lib/psos/COPYING
|
||||
sha256 eea173a556abac0370461e57e12aab266894ea6be3874c2be05fd87871f75449 lib/smokey/COPYING
|
||||
sha256 eea173a556abac0370461e57e12aab266894ea6be3874c2be05fd87871f75449 lib/trank/COPYING
|
||||
sha256 eea173a556abac0370461e57e12aab266894ea6be3874c2be05fd87871f75449 lib/vxworks/COPYING
|
||||
158
package/xenomai/xenomai.mk
Normal file
158
package/xenomai/xenomai.mk
Normal file
@@ -0,0 +1,158 @@
|
||||
################################################################################
|
||||
#
|
||||
# xenomai
|
||||
#
|
||||
################################################################################
|
||||
|
||||
XENOMAI_VERSION = $(call qstrip,$(BR2_PACKAGE_XENOMAI_VERSION))
|
||||
ifeq ($(BR2_PACKAGE_XENOMAI_CUSTOM_TARBALL),y)
|
||||
XENOMAI_TARBALL = $(call qstrip,$(BR2_PACKAGE_XENOMAI_CUSTOM_TARBALL_URL))
|
||||
XENOMAI_SOURCE = $(notdir $(XENOMAI_TARBALL))
|
||||
XENOMAI_SITE = $(patsubst %/,%,$(dir $(XENOMAI_TARBALL)))
|
||||
else ifeq ($(BR2_PACKAGE_XENOMAI_CUSTOM_GIT),y)
|
||||
XENOMAI_SITE = $(call qstrip,$(BR2_PACKAGE_XENOMAI_REPOSITORY))
|
||||
XENOMAI_SITE_METHOD = git
|
||||
else
|
||||
XENOMAI_SOURCE = xenomai-$(XENOMAI_VERSION).tar.bz2
|
||||
XENOMAI_SITE = https://source.denx.de/Xenomai/xenomai/-/archive/v$(XENOMAI_VERSION)
|
||||
endif
|
||||
# The source archive does not have the autoconf/automake material generated.
|
||||
XENOMAI_AUTORECONF = YES
|
||||
|
||||
# Exclude all from the hash check, but the latest version.
|
||||
ifeq ($(BR2_PACKAGE_XENOMAI)$(BR2_PACKAGE_XENOMAI_LATEST_VERSION),y)
|
||||
BR_NO_CHECK_HASH_FOR += $(XENOMAI_SOURCE)
|
||||
endif
|
||||
|
||||
XENOMAI_LICENSE = GPL-2.0+ with exception (headers), LGPL-2.1+ (libraries), GPL-2.0+ (kernel), GFDL-1.2+ (docs), GPL-2.0 (ipipe patch, can driver)
|
||||
# GFDL is not included but refers to gnu.org
|
||||
XENOMAI_LICENSE_FILES = debian/copyright include/COPYING kernel/cobalt/COPYING \
|
||||
kernel/cobalt/posix/COPYING kernel/cobalt/rtdm/COPYING \
|
||||
lib/alchemy/COPYING lib/analogy/COPYING \
|
||||
lib/boilerplate/iniparser/LICENSE lib/boilerplate/COPYING \
|
||||
lib/cobalt/COPYING lib/copperplate/COPYING lib/psos/COPYING \
|
||||
lib/smokey/COPYING lib/trank/COPYING lib/vxworks/COPYING
|
||||
|
||||
XENOMAI_DEPENDENCIES = host-pkgconf
|
||||
|
||||
XENOMAI_INSTALL_STAGING = YES
|
||||
XENOMAI_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install-user
|
||||
XENOMAI_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) install-user
|
||||
|
||||
XENOMAI_CONF_OPTS += \
|
||||
--disable-demo \
|
||||
--includedir=/usr/include/xenomai/
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XENOMAI_MERCURY),y)
|
||||
XENOMAI_CONF_OPTS += --with-core=mercury
|
||||
else
|
||||
XENOMAI_CONF_OPTS += --with-core=cobalt
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XENOMAI_ENABLE_SMP),y)
|
||||
XENOMAI_CONF_OPTS += --enable-smp
|
||||
else
|
||||
XENOMAI_CONF_OPTS += --disable-smp
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XENOMAI_ENABLE_REGISTRY),y)
|
||||
XENOMAI_DEPENDENCIES += libfuse
|
||||
XENOMAI_REGISTRY_PATH = $(call qstrip,$(BR2_PACKAGE_XENOMAI_ENABLE_REGISTRY_PATH))
|
||||
ifeq ($(XENOMAI_REGISTRY_PATH),)
|
||||
XENOMAI_CONF_OPTS += --enable-registry
|
||||
else
|
||||
XENOMAI_CONF_OPTS += --enable-registry=$(XENOMAI_REGISTRY_PATH)
|
||||
endif
|
||||
else
|
||||
XENOMAI_CONF_OPTS += --disable-registry
|
||||
endif
|
||||
|
||||
XENOMAI_CONF_OPTS += $(call qstrip,$(BR2_PACKAGE_XENOMAI_ADDITIONAL_CONF_OPTS))
|
||||
|
||||
# Some of these files may be desired by some users -- at that point specific
|
||||
# config options need to be added to keep a particular set.
|
||||
define XENOMAI_REMOVE_UNNEEDED_FILES
|
||||
for i in xeno xeno-config xeno-info wrap-link.sh ; do \
|
||||
rm -f $(TARGET_DIR)/usr/bin/$$i ; \
|
||||
done
|
||||
for i in cobalt modechk ; do \
|
||||
rm -f $(TARGET_DIR)/usr/lib/$$i.wrappers ; \
|
||||
done
|
||||
for i in autotune corectl hdb rtnet nomaccfg rtcfg rtifconfig \
|
||||
rtiwconfig rtping rtroute tdmacfg rtps slackspot version; do \
|
||||
rm -f $(TARGET_DIR)/usr/sbin/$$i ; \
|
||||
done
|
||||
endef
|
||||
|
||||
XENOMAI_POST_INSTALL_TARGET_HOOKS += XENOMAI_REMOVE_UNNEEDED_FILES
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XENOMAI_TESTSUITE),y)
|
||||
XENOMAI_CONF_OPTS += --enable-testsuite
|
||||
else
|
||||
XENOMAI_CONF_OPTS += --disable-testsuite
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XENOMAI_RTCAN),)
|
||||
define XENOMAI_REMOVE_RTCAN_PROGS
|
||||
for i in rtcanrecv rtcansend ; do \
|
||||
rm -f $(TARGET_DIR)/usr/bin/$$i ; \
|
||||
done
|
||||
rm -f $(TARGET_DIR)/usr/sbin/rtcanconfig
|
||||
endef
|
||||
|
||||
XENOMAI_POST_INSTALL_TARGET_HOOKS += XENOMAI_REMOVE_RTCAN_PROGS
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XENOMAI_ANALOGY),)
|
||||
define XENOMAI_REMOVE_ANALOGY
|
||||
for i in cmd_read cmd_write cmd_bits insn_read insn_write insn_bits \
|
||||
wf_generate ; do \
|
||||
rm -f $(TARGET_DIR)/usr/bin/$$i ; \
|
||||
done
|
||||
for i in analogy_config analogy_calibrate ; do \
|
||||
rm -f $(TARGET_DIR)/usr/sbin/$$i ; \
|
||||
done
|
||||
rm -f $(TARGET_DIR)/usr/lib/libanalogy.*
|
||||
endef
|
||||
|
||||
XENOMAI_POST_INSTALL_TARGET_HOOKS += XENOMAI_REMOVE_ANALOGY
|
||||
endif
|
||||
|
||||
XENOMAI_REMOVE_LIBS_LIST += $(if $(BR2_PACKAGE_XENOMAI_NATIVE_SKIN),,alchemy)
|
||||
XENOMAI_REMOVE_LIBS_LIST += $(if $(BR2_PACKAGE_XENOMAI_POSIX_SKIN),,posix)
|
||||
XENOMAI_REMOVE_LIBS_LIST += $(if $(BR2_PACKAGE_XENOMAI_PSOS_SKIN),,psos)
|
||||
XENOMAI_REMOVE_LIBS_LIST += $(if $(BR2_PACKAGE_XENOMAI_RTAI_SKIN),,rtai)
|
||||
XENOMAI_REMOVE_LIBS_LIST += $(if $(BR2_PACKAGE_XENOMAI_TESTSUITE),,smokey)
|
||||
XENOMAI_REMOVE_LIBS_LIST += $(if $(BR2_PACKAGE_XENOMAI_UITRON_SKIN),,uitron)
|
||||
XENOMAI_REMOVE_LIBS_LIST += $(if $(BR2_PACKAGE_XENOMAI_VXWORKS_SKIN),,vxworks)
|
||||
XENOMAI_REMOVE_LIBS_LIST += $(if $(BR2_PACKAGE_XENOMAI_VRTX_SKIN),,vrtx)
|
||||
|
||||
define XENOMAI_REMOVE_LIBS
|
||||
for i in $(XENOMAI_REMOVE_LIBS_LIST) ; do \
|
||||
rm -f $(TARGET_DIR)/usr/lib/lib$$i.* ; \
|
||||
done
|
||||
endef
|
||||
|
||||
XENOMAI_POST_INSTALL_TARGET_HOOKS += XENOMAI_REMOVE_LIBS
|
||||
|
||||
define XENOMAI_DEVICES
|
||||
/dev/rtheap c 666 0 0 10 254 0 0 -
|
||||
/dev/rtscope c 666 0 0 10 253 0 0 -
|
||||
/dev/rtp c 666 0 0 150 0 0 1 32
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
||||
XENOMAI_DEPENDENCIES += udev
|
||||
|
||||
define XENOMAI_INSTALL_UDEV_RULES
|
||||
if test -d $(TARGET_DIR)/etc/udev/rules.d ; then \
|
||||
for f in $(@D)/kernel/cobalt/udev/*.rules ; do \
|
||||
cp $$f $(TARGET_DIR)/etc/udev/rules.d/ || exit 1 ; \
|
||||
done ; \
|
||||
fi;
|
||||
endef
|
||||
|
||||
XENOMAI_POST_INSTALL_TARGET_HOOKS += XENOMAI_INSTALL_UDEV_RULES
|
||||
endif # udev
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user