Move all to deprecated folder.
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
mmc-utils: fix mmc.h includes
|
||||
|
||||
Some toolchains include asm-generic/int-l64.h from their asm/types.h
|
||||
file for certain 64-bit architectures. This causes a conflict between
|
||||
types like this one:
|
||||
|
||||
asm-generic/int-l64.h:28:25: error: conflicting types for '__s64'
|
||||
typedef __signed__ long __s64;
|
||||
^
|
||||
In file included from mmc.h:17:0,
|
||||
from mmc_cmds.c:30:
|
||||
asm-generic/int-ll64.h:29:44: note: previous declaration of '__s64' was
|
||||
here
|
||||
__extension__ typedef __signed__ long long __s64;
|
||||
|
||||
[Ryan: added include of linux/types.h because mmc/ioctl.h does not
|
||||
include it in kernel version before 3.4]
|
||||
|
||||
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
|
||||
Signed-off-by: Ryan Barnett <rjbarnet@rockwellcollins.com>
|
||||
---
|
||||
mmc.h | 4 +++-
|
||||
1 files changed, 3 insertions(+), 1 deletions(-)
|
||||
diff --git a/mmc.h b/mmc.h
|
||||
index 9871d62..2d54ec5 100644
|
||||
--- a/mmc.h
|
||||
+++ b/mmc.h
|
||||
@@ -14,9 +14,12 @@
|
||||
* Boston, MA 021110-1307, USA.
|
||||
*/
|
||||
|
||||
-#include <asm-generic/int-ll64.h>
|
||||
+#include <linux/types.h>
|
||||
#include <linux/mmc/ioctl.h>
|
||||
#include <stdio.h>
|
||||
+#ifndef _ASM_GENERIC_INT_L64_H
|
||||
+#include <asm-generic/int-ll64.h>
|
||||
+#endif
|
||||
|
||||
#define CHECK(expr, msg, err_stmt) { if (expr) { fprintf(stderr, msg); err_stmt; } }
|
||||
|
||||
10
deprecated/firmware/buildroot/package/mmc-utils/Config.in
Normal file
10
deprecated/firmware/buildroot/package/mmc-utils/Config.in
Normal file
@@ -0,0 +1,10 @@
|
||||
config BR2_PACKAGE_MMC_UTILS
|
||||
bool "mmc-utils"
|
||||
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
|
||||
help
|
||||
MMC utils
|
||||
|
||||
https://git.kernel.org/cgit/linux/kernel/git/cjb/mmc-utils.git
|
||||
|
||||
comment "mmc-utils needs a toolchain w/ headers >= 3.0"
|
||||
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
|
||||
19
deprecated/firmware/buildroot/package/mmc-utils/mmc-utils.mk
Normal file
19
deprecated/firmware/buildroot/package/mmc-utils/mmc-utils.mk
Normal file
@@ -0,0 +1,19 @@
|
||||
################################################################################
|
||||
#
|
||||
# mmc-utils
|
||||
#
|
||||
################################################################################
|
||||
|
||||
MMC_UTILS_VERSION = d0b46442b50794217e53b2455c1344c548d9d088
|
||||
MMC_UTILS_SITE = git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc-utils.git
|
||||
MMC_UTILS_LICENSE = GPLv2
|
||||
|
||||
define MMC_UTILS_BUILD_CMDS
|
||||
$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS)
|
||||
endef
|
||||
|
||||
define MMC_UTILS_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -D -m 0755 $(@D)/mmc $(TARGET_DIR)/usr/bin/mmc
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user