mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
From 4f8ed39ddaf17c7dd4ddbdb88e67097f00c98173 Mon Sep 17 00:00:00 2001
|
||||
From: Peter Seiderer <ps.report@gmx.net>
|
||||
Date: Thu, 16 Jul 2015 23:11:25 +0200
|
||||
Subject: [PATCH] Fix module install path (/lib instead of /usr/lib prefix)
|
||||
|
||||
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||
---
|
||||
cmake/modules/path_prefixes.cmake | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/cmake/modules/path_prefixes.cmake b/cmake/modules/path_prefixes.cmake
|
||||
index 3cb1fe2..9dc50a4 100644
|
||||
--- a/cmake/modules/path_prefixes.cmake
|
||||
+++ b/cmake/modules/path_prefixes.cmake
|
||||
@@ -113,7 +113,7 @@ set(RH_INSTALL_PREFIX_DOC
|
||||
# Set derivative prefixes
|
||||
|
||||
# additional, 1
|
||||
-set(RH_INSTALL_PREFIX_KMODULE "${RH_INSTALL_PREFIX_LIB}/modules/${KBUILD_VERSION_STRING}/misc")
|
||||
+set(RH_INSTALL_PREFIX_KMODULE "/lib/modules/${KBUILD_VERSION_STRING}/misc")
|
||||
# Another variant
|
||||
#"${RH_INSTALL_PREFIX_LIB}/modules/${KBUILD_VERSION_STRING}/extra")
|
||||
# additional, 2
|
||||
--
|
||||
2.1.4
|
||||
|
||||
35
package/racehound/Config.in
Normal file
35
package/racehound/Config.in
Normal file
@@ -0,0 +1,35 @@
|
||||
config BR2_PACKAGE_RACEHOUND
|
||||
bool "racehound"
|
||||
depends on BR2_LINUX_KERNEL
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_USE_WCHAR # elfutils
|
||||
depends on !BR2_STATIC_LIBS # elfutils
|
||||
depends on BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC # elfutils
|
||||
# only x86/x86_64 supported
|
||||
depends on BR2_i386 || BR2_x86_64
|
||||
select BR2_PACKAGE_ELFUTILS
|
||||
select BR2_LINUX_NEEDS_MODULES # not using kernel-module infra
|
||||
help
|
||||
RaceHound can be used to detect data races in the Linux
|
||||
kernel on x86.
|
||||
|
||||
RaceHound needs the following kernel configurations enabled:
|
||||
- CONFIG_X86_32 or CONFIG_X86_64
|
||||
- CONFIG_MODULES
|
||||
- CONFIG_MODULE_UNLOAD
|
||||
- CONFIG_SYSFS
|
||||
- CONFIG_DEBUG_FS
|
||||
- CONFIG_KALLSYMS
|
||||
- CONFIG_KALLSYMS_ALL
|
||||
- CONFIG_KPROBES
|
||||
|
||||
https://github.com/winnukem/racehound
|
||||
|
||||
comment "racehound needs an Linux kernel >= 3.14 to be built"
|
||||
depends on !BR2_LINUX_KERNEL
|
||||
depends on BR2_i386 || BR2_x86_64
|
||||
|
||||
comment "racehound needs a uClibc or glibc toolchain w/ C++, wchar, dynamic library"
|
||||
depends on BR2_i386 || BR2_x86_64
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || BR2_STATIC_LIBS \
|
||||
|| !(BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC)
|
||||
2
package/racehound/racehound.hash
Normal file
2
package/racehound/racehound.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# locally computed
|
||||
sha256 935bc4a7c7b645dee5b905f6e97d0db3f0ac4f48e71d15f4e3982811017ac43c racehound-f09f06fcc3c77c8c5541be3ba5be80aa8148ce0c.tar.gz
|
||||
27
package/racehound/racehound.mk
Normal file
27
package/racehound/racehound.mk
Normal file
@@ -0,0 +1,27 @@
|
||||
################################################################################
|
||||
#
|
||||
# racehound
|
||||
#
|
||||
################################################################################
|
||||
|
||||
RACEHOUND_VERSION = f09f06fcc3c77c8c5541be3ba5be80aa8148ce0c
|
||||
RACEHOUND_SITE = $(call github,winnukem,racehound,$(RACEHOUND_VERSION))
|
||||
RACEHOUND_LICENSE = GPL-2.0
|
||||
RACEHOUND_LICENSE_FILES = LICENSE
|
||||
RACEHOUND_SUPPORTS_IN_SOURCE_BUILD = NO
|
||||
|
||||
RACEHOUND_DEPENDENCIES = elfutils linux
|
||||
|
||||
# override auto detection (uses host parameters, not cross compile
|
||||
# ready)
|
||||
RACEHOUND_CONF_OPTS += \
|
||||
-DKERNEL_VERSION_OK=YES \
|
||||
-DMODULE_BUILD_SUPPORTED=YES \
|
||||
-DKERNEL_CONFIG_OK=YES \
|
||||
-DKBUILD_BUILD_DIR=$(LINUX_DIR) \
|
||||
-DKBUILD_VERSION_STRING=$(LINUX_VERSION_PROBED)
|
||||
|
||||
# cross compile environment for linux kernel module
|
||||
RACEHOUND_MAKE_ENV = $(LINUX_MAKE_FLAGS)
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user