2013-06-07 12:13:46 +02:00
|
|
|
################################################################################
|
2011-09-17 22:22:52 +02:00
|
|
|
# Linux Adeos/Xenomai extensions
|
|
|
|
#
|
|
|
|
# Patch the linux kernel with xenomai extension
|
2013-06-07 12:13:46 +02:00
|
|
|
################################################################################
|
2011-09-17 22:22:52 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2011-09-19 22:10:53 +02:00
|
|
|
LINUX_PRE_PATCH_HOOKS += XENOMAI_PREPARE_KERNEL
|
2011-09-17 22:22:52 +02:00
|
|
|
|
|
|
|
endif #BR2_LINUX_EXT_XENOMAI
|