mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-04 06:10:16 +03:00
Add xenomai real-time Framework to buildroot
[Fixes by Thomas, including comments from Arnout:
* Use AUTOTARGETS instead of GENTARGETS
* Use $(KERNEL_ARCH) instead of $(BR2_ARCH) as argument to the
prepare-kernel.sh script. This allows the arch name to be fixed
with the usual sed expressions and the quotes to be stripped.
* Add the --verbose option to prepare-kernel.sh. This allows to get
some clear error message when no Xenomai patch has been found for
the current kernel version.
* Improve the help texts as suggested by Arnout, and remove the
now useless README file.
* Add a BR2_PACKAGE_XENOMAI_SMP option, instead of poking inside the
kernel configuration to find out whether SMP is enabled or
not. This cannot work because: 1) the kernel might be built
outside of Buildroot and 2) if the kernel is built inside
Buildroot, it is built *after* Xenomai, so the kernel
configuration file is typically not yet present.
* Simplify the ARM subarchitecture selection as suggested by Arnout.
* Remove the documentation and development files according to
Buildroot standards (using BR2_HAVE_DOCUMENTATION and
BR2_HAVE_DEVFILES).
* Simplify the /etc/ld.so.conf modification logic.
]
[Peter: whitespace fixes]
Signed-off-by: Benoit Mauduit <benoit.mauduit@openwide.fr>
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
committed by
Peter Korsgaard
parent
3011d23518
commit
956d4ab0f5
30
linux/linux-ext-xenomai.mk
Normal file
30
linux/linux-ext-xenomai.mk
Normal file
@@ -0,0 +1,30 @@
|
||||
##################################################
|
||||
# Linux Adeos/Xenomai extensions
|
||||
#
|
||||
# Patch the linux kernel with xenomai extension
|
||||
##################################################
|
||||
|
||||
ifeq ($(BR2_LINUX_KERNEL_EXT_XENOMAI),y)
|
||||
# Add dependency to xenomai (user-space) which provide ksrc part
|
||||
LINUX_DEPENDENCIES += xenomai
|
||||
|
||||
# Adeos patch version
|
||||
XENOMAI_ADEOS_PATCH = $(call qstrip,$(BR2_LINUX_KERNEL_EXT_XENOMAI_ADEOS_PATCH))
|
||||
ifeq ($(XENOMAI_ADEOS_PATCH),)
|
||||
XENOMAI_ADEOS_OPT = --default
|
||||
else
|
||||
XENOMAI_ADEOS_OPT = --adeos=$(XENOMAI_ADEOS_PATCH)
|
||||
endif
|
||||
|
||||
# Prepare kernel patch
|
||||
define XENOMAI_PREPARE_KERNEL
|
||||
$(XENOMAI_DIR)/scripts/prepare-kernel.sh \
|
||||
--linux=$(LINUX_DIR) \
|
||||
--arch=$(KERNEL_ARCH) \
|
||||
$(XENOMAI_ADEOS_OPT) \
|
||||
--verbose
|
||||
endef
|
||||
|
||||
LINUX_POST_EXTRACT_HOOKS += XENOMAI_PREPARE_KERNEL
|
||||
|
||||
endif #BR2_LINUX_EXT_XENOMAI
|
||||
Reference in New Issue
Block a user