Move buildroot to bsp directory.
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
From d7bb6180f831091c468e5aa749b142efd5eddda4 Mon Sep 17 00:00:00 2001
|
||||
From: "Robin H. Johnson" <robbat2@gentoo.org>
|
||||
Date: Wed, 3 Feb 2016 08:32:19 -0800
|
||||
Subject: [PATCH] libmtd: compile fix for linux header changes.
|
||||
|
||||
In the Linux kernel source, mtd/mtd-user.h had a change
|
||||
'mtd: mtd-user: remove stdint.h include'
|
||||
(137d36af4a53858b8db7ca83c8480247118b8bdf)
|
||||
|
||||
This causes the uint8_t/uint64_t types to be undefined in libmtd.h
|
||||
now, as they were implicitly coming from it before.
|
||||
|
||||
Import stdint.h explicitly into libmtd.h to resolve this.
|
||||
|
||||
X-URL: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=137d36af4a53858b8db7ca83c8480247118b8bdf
|
||||
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
||||
---
|
||||
Patch downloaded from upstream repo:
|
||||
http://git.kernel.dk/?p=fio.git;a=patch;h=d7bb6180f831091c468e5aa749b142efd5eddda4
|
||||
|
||||
Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
|
||||
---
|
||||
oslib/libmtd.h | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/oslib/libmtd.h b/oslib/libmtd.h
|
||||
index 3625de5..b5fd3f3 100644
|
||||
--- a/oslib/libmtd.h
|
||||
+++ b/oslib/libmtd.h
|
||||
@@ -29,6 +29,9 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
+// Needed for uint8_t, uint64_t
|
||||
+#include <stdint.h>
|
||||
+
|
||||
/* Maximum MTD device name length */
|
||||
#define MTD_NAME_MAX 127
|
||||
/* Maximum MTD device type string length */
|
||||
--
|
||||
2.5.0
|
||||
|
||||
26
bsp/buildroot/package/fio/Config.in
Normal file
26
bsp/buildroot/package/fio/Config.in
Normal file
@@ -0,0 +1,26 @@
|
||||
config BR2_PACKAGE_FIO
|
||||
bool "fio"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
# fio uses posix_madvise(), which is not part of any official
|
||||
# release of uClibc, but is part of uClibc Git, and backported
|
||||
# in Buildroot patch set of uClibc 0.9.33. Therefore, we
|
||||
# disable the build of fio for external uClibc toolchains
|
||||
# (which use an unknown uClibc version)
|
||||
depends on !BR2_TOOLCHAIN_EXTERNAL_UCLIBC
|
||||
# fio uses fallocate() which becomes fallocate64() while compiling with
|
||||
# largefile support, but fallocate64() is not available on nios2
|
||||
depends on !BR2_nios2
|
||||
help
|
||||
fio is an I/O tool meant to be used both for benchmark
|
||||
and stress/hardware verification.
|
||||
|
||||
http://git.kernel.dk/?p=fio.git;a=summary
|
||||
|
||||
comment "fio needs a toolchain w/ dynamic library, threads"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
depends on !BR2_nios2
|
||||
depends on BR2_USE_MMU
|
||||
24
bsp/buildroot/package/fio/fio.mk
Normal file
24
bsp/buildroot/package/fio/fio.mk
Normal file
@@ -0,0 +1,24 @@
|
||||
################################################################################
|
||||
#
|
||||
# fio
|
||||
#
|
||||
################################################################################
|
||||
|
||||
FIO_VERSION = fio-2.6
|
||||
FIO_SITE = git://git.kernel.dk/fio.git
|
||||
FIO_LICENSE = GPLv2 + special obligations
|
||||
FIO_LICENSE_FILES = COPYING
|
||||
|
||||
define FIO_CONFIGURE_CMDS
|
||||
(cd $(@D); ./configure --cc="$(TARGET_CC)" --extra-cflags="$(TARGET_CFLAGS)")
|
||||
endef
|
||||
|
||||
define FIO_BUILD_CMDS
|
||||
$(MAKE) -C $(@D)
|
||||
endef
|
||||
|
||||
define FIO_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -D $(@D)/fio $(TARGET_DIR)/usr/bin/fio
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user