2013-06-07 12:13:46 +02:00
|
|
|
################################################################################
|
2011-09-17 22:22:52 +02:00
|
|
|
#
|
2018-04-01 07:08:22 +02:00
|
|
|
# Patch the linux kernel with Adeos/Xenomai extension
|
|
|
|
#
|
2013-06-07 12:13:46 +02:00
|
|
|
################################################################################
|
2011-09-17 22:22:52 +02:00
|
|
|
|
2015-03-14 15:25:21 +01:00
|
|
|
LINUX_EXTENSIONS += xenomai
|
2011-09-17 22:22:52 +02:00
|
|
|
|
|
|
|
# Adeos patch version
|
|
|
|
XENOMAI_ADEOS_PATCH = $(call qstrip,$(BR2_LINUX_KERNEL_EXT_XENOMAI_ADEOS_PATCH))
|
2019-05-17 14:50:49 +02:00
|
|
|
|
|
|
|
ifneq ($(filter ftp://% http://% https://%,$(XENOMAI_ADEOS_PATCH)),)
|
|
|
|
XENOMAI_ADEOS_PATCH_NAME = $(notdir $(XENOMAI_ADEOS_PATCH))
|
|
|
|
XENOMAI_ADEOS_PATCH_PATH = $(LINUX_DL_DIR)/$(XENOMAI_ADEOS_PATCH_NAME)
|
2019-06-06 15:02:46 +02:00
|
|
|
# check-package TypoInPackageVariable
|
2019-05-17 14:50:49 +02:00
|
|
|
LINUX_EXTRA_DOWNLOADS += $(XENOMAI_ADEOS_PATCH)
|
|
|
|
BR_NO_CHECK_HASH_FOR += $(XENOMAI_ADEOS_PATCH_NAME)
|
|
|
|
else
|
|
|
|
XENOMAI_ADEOS_PATCH_PATH = $(XENOMAI_ADEOS_PATCH)
|
|
|
|
endif
|
|
|
|
|
2011-09-17 22:22:52 +02:00
|
|
|
ifeq ($(XENOMAI_ADEOS_PATCH),)
|
2014-09-27 21:32:50 +02:00
|
|
|
XENOMAI_ADEOS_OPTS = --default
|
2011-09-17 22:22:52 +02:00
|
|
|
else
|
2019-05-17 14:50:49 +02:00
|
|
|
XENOMAI_ADEOS_OPTS = --adeos=$(XENOMAI_ADEOS_PATCH_PATH)
|
2011-09-17 22:22:52 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Prepare kernel patch
|
|
|
|
define XENOMAI_PREPARE_KERNEL
|
|
|
|
$(XENOMAI_DIR)/scripts/prepare-kernel.sh \
|
|
|
|
--linux=$(LINUX_DIR) \
|
|
|
|
--arch=$(KERNEL_ARCH) \
|
2014-09-27 21:32:50 +02:00
|
|
|
$(XENOMAI_ADEOS_OPTS) \
|
2011-09-17 22:22:52 +02:00
|
|
|
--verbose
|
|
|
|
endef
|