• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/linux/linux-ext-rtai.mk
Alexandre BelloniAlexandre Belloni committed 95442bb324b07 Jun 2013
Raw file
Source viewDiff to previous
 
1
################################################################################
2
# Linux RTAI extensions
3
#
4
# Patch the linux kernel with RTAI extension
5
################################################################################
6
​
7
ifeq ($(BR2_LINUX_KERNEL_EXT_RTAI),y)
8
# Add dependency to RTAI (user-space) which provide kernel patches
9
LINUX_DEPENDENCIES += rtai-patch
10
​
11
RTAI_PATCH = $(call qstrip,$(BR2_LINUX_KERNEL_EXT_RTAI_PATCH))
12
​
13
ifeq ($(KERNEL_ARCH),i386)
14
RTAI_ARCH = x86
15
else ifeq ($(KERNEL_ARCH),x86_64)
16
RTAI_ARCH = x86
17
else ifeq ($(KERNEL_ARCH),powerpc)
18
RTAI_ARCH = ppc
19
else
20
RTAI_ARCH = $(KERNEL_ARCH)
21
endif
22
​
23
# Prepare kernel patch
24
ifeq ($(RTAI_PATCH),)
25
define RTAI_PREPARE_KERNEL
26
    kver=`$(MAKE) $(LINUX_MAKE_FLAGS) -C $(LINUX_DIR) --no-print-directory -s kernelversion` ; \
27
    if test -f $(RTAI_DIR)/base/arch/$(RTAI_ARCH)/patches/hal-linux-$${kver}-*patch ; then \
28
        support/scripts/apply-patches.sh $(LINUX_DIR)       \
29
            $(RTAI_DIR)/base/arch/$(RTAI_ARCH)/patches/     \
30
            hal-linux-$${kver}-*patch ; \
31
    else \
32
        echo "No RTAI patch for your kernel version" ; \
33
        exit 1 ; \
34
    fi
35
endef
36
else
37
define RTAI_PREPARE_KERNEL
38
    support/scripts/apply-patches.sh    \
39
        $(LINUX_DIR)            \
40
        $(dir $(RTAI_PATCH))        \
41
        $(notdir $(RTAI_PATCH))
42
endef
43
endif
44
​
45
LINUX_PRE_PATCH_HOOKS += RTAI_PREPARE_KERNEL
46
​
47
endif #BR2_LINUX_EXT_RTAI
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.