Move buildroot to bsp directory.
This commit is contained in:
39
bsp/buildroot/package/trinity/0001-mips-fix-prctl-s.patch
Normal file
39
bsp/buildroot/package/trinity/0001-mips-fix-prctl-s.patch
Normal file
@@ -0,0 +1,39 @@
|
||||
From d61dd102b95b9791e45d6bbf1e34814b8c6c1731 Mon Sep 17 00:00:00 2001
|
||||
From: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
|
||||
Date: Mon, 14 Dec 2015 14:46:37 +0000
|
||||
Subject: [PATCH] mips: fix prctl's
|
||||
|
||||
It looks like a typo in the syscalls/prctl.c file. It's lacking the PR_
|
||||
preffix, and due to that is causing build failures like this one:
|
||||
|
||||
CC syscalls/prctl.o
|
||||
syscalls/prctl.c:37:2: error: 'GET_FP_MODE' undeclared here (not in a
|
||||
function)
|
||||
GET_FP_MODE, SET_FP_MODE,
|
||||
^
|
||||
syscalls/prctl.c:37:15: error: 'SET_FP_MODE' undeclared here (not
|
||||
in a function)
|
||||
GET_FP_MODE, SET_FP_MODE,
|
||||
^
|
||||
|
||||
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
|
||||
---
|
||||
syscalls/prctl.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/syscalls/prctl.c b/syscalls/prctl.c
|
||||
index 523f03e..5a64fb3 100644
|
||||
--- a/syscalls/prctl.c
|
||||
+++ b/syscalls/prctl.c
|
||||
@@ -34,7 +34,7 @@ static int prctl_opts[] = {
|
||||
PR_GET_NO_NEW_PRIVS, PR_GET_TID_ADDRESS, PR_SET_THP_DISABLE, PR_GET_THP_DISABLE,
|
||||
PR_MPX_ENABLE_MANAGEMENT, PR_MPX_DISABLE_MANAGEMENT,
|
||||
#ifdef __mips__
|
||||
- GET_FP_MODE, SET_FP_MODE,
|
||||
+ PR_GET_FP_MODE, PR_SET_FP_MODE,
|
||||
#endif
|
||||
PR_CAP_AMBIENT,
|
||||
};
|
||||
--
|
||||
2.4.10
|
||||
|
||||
9
bsp/buildroot/package/trinity/Config.in
Normal file
9
bsp/buildroot/package/trinity/Config.in
Normal file
@@ -0,0 +1,9 @@
|
||||
config BR2_PACKAGE_TRINITY
|
||||
bool "trinity"
|
||||
depends on BR2_aarch64 || BR2_arm || BR2_armeb || BR2_i386 || \
|
||||
BR2_mips || BR2_mipsel || BR2_powerpc || BR2_powerpc64 || \
|
||||
BR2_powerpc64le || BR2_sparc || BR2_x86_64
|
||||
help
|
||||
A Linux System call fuzz tester
|
||||
|
||||
http://codemonkey.org.uk/projects/trinity/
|
||||
2
bsp/buildroot/package/trinity/trinity.hash
Normal file
2
bsp/buildroot/package/trinity/trinity.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 3ef7ae05dba14f8bb626121983a08bb09d1d51a19de38bd9a8e0f29b11d9e3c9 trinity-v1.6.tar.gz
|
||||
31
bsp/buildroot/package/trinity/trinity.mk
Normal file
31
bsp/buildroot/package/trinity/trinity.mk
Normal file
@@ -0,0 +1,31 @@
|
||||
################################################################################
|
||||
#
|
||||
# trinity
|
||||
#
|
||||
################################################################################
|
||||
|
||||
TRINITY_VERSION = v1.6
|
||||
TRINITY_SITE = $(call github,kernelslacker,trinity,$(TRINITY_VERSION))
|
||||
TRINITY_LICENSE = GPLv2
|
||||
TRINITY_LICENSE_FILES = COPYING
|
||||
|
||||
define TRINITY_CONFIGURE_CMDS
|
||||
(cd $(@D); $(TARGET_CONFIGURE_OPTS) ./configure.sh)
|
||||
endef
|
||||
|
||||
define TRINITY_BUILD_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
|
||||
endef
|
||||
|
||||
define TRINITY_INSTALL_TARGET_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR)/usr install
|
||||
endef
|
||||
|
||||
# Install helper scripts
|
||||
define TRINITY_INSTALL_HELPER_SCRIPTS
|
||||
mkdir -p $(TARGET_DIR)/usr/libexec/trinity
|
||||
cp -p $(@D)/scripts/* $(TARGET_DIR)/usr/libexec/trinity/
|
||||
endef
|
||||
TRINITY_POST_INSTALL_TARGET_HOOKS += TRINITY_INSTALL_HELPER_SCRIPTS
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user