1 ################################################################################
2 # Linux RTAI extensions
4 # Patch the linux kernel with RTAI extension
5 ################################################################################
7 LINUX_EXTENSIONS
+= rtai
9 ifeq ($(KERNEL_ARCH
),i386
)
11 else ifeq ($(KERNEL_ARCH
),x86_64
)
13 else ifeq ($(KERNEL_ARCH
),powerpc
)
16 RTAI_ARCH
= $(KERNEL_ARCH
)
19 # Prepare kernel patch
20 define RTAI_PREPARE_KERNEL
21 kver
=`$(MAKE) $(LINUX_MAKE_FLAGS) -C $(LINUX_DIR) --no-print-directory -s kernelversion` ; \
22 if
test -f
$(RTAI_DIR
)/base
/arch
/$(RTAI_ARCH
)/patches
/hal-linux-
$${kver}-*patch
; then \
23 $(APPLY_PATCHES
) $(LINUX_DIR
) \
24 $(RTAI_DIR
)/base
/arch
/$(RTAI_ARCH
)/patches
/ \
25 hal-linux-
$${kver}-*patch
; \
27 echo
"No RTAI patch for your kernel version" ; \