• 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-tool-selftests.mk
Cyril BurCyril Bur committed 8143721c3ee16 Mar 2016
Raw file
Source viewDiff to previous
 
1
################################################################################
2
#
3
# selftests
4
#
5
################################################################################
6
​
7
LINUX_TOOLS += selftests
8
​
9
ifeq ($(KERNEL_ARCH),x86_64)
10
SELFTESTS_ARCH=x86
11
else
12
ifeq ($(KERNEL_ARCH),i386)
13
SELFTESTS_ARCH=x86
14
else
15
SELFTESTS_ARCH=$(KERNEL_ARCH)
16
endif
17
endif
18
​
19
SELFTESTS_DEPENDENCIES = libcap-ng popt
20
​
21
SELFTESTS_MAKE_FLAGS = \
22
    $(LINUX_MAKE_FLAGS) \
23
    ARCH=$(SELFTESTS_ARCH)
24
​
25
# O must be redefined here to overwrite the one used by Buildroot for
26
# out of tree build. We build the selftests in $(@D)/tools/selftests and
27
# not just $(@D) so that it isn't built in the root directory of the kernel
28
# sources.
29
#
30
# The headers_install step here is important as some kernel selftests use a
31
# hardcoded CFLAGS to find kernel headers e.g:
32
# CFLAGS += -I../../../../usr/include/
33
# The headers_install target will install the kernel headers locally inside
34
# the Linux build dir
35
define SELFTESTS_BUILD_CMDS
36
    $(TARGET_MAKE_ENV) $(MAKE1) -C $(@D) $(SELFTESTS_MAKE_FLAGS) \
37
        headers_install
38
    $(TARGET_MAKE_ENV) $(MAKE1) -C $(@D)/tools/testing/selftests \
39
        $(SELFTESTS_MAKE_FLAGS) O=$(@D)/tools/testing/selftests
40
endef
41
​
42
define SELFTESTS_INSTALL_TARGET_CMDS
43
    $(TARGET_MAKE_ENV) $(MAKE1) -C $(@D)/tools/testing/selftests \
44
        $(SELFTESTS_MAKE_FLAGS) O=$(@D)/tools/testing/selftests \
45
        INSTALL_PATH=$(TARGET_DIR)/usr/lib/kselftests install
46
endef
  • 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.