generated from gaoyang3513/SDK_RK3288
[Mod] First commit
This commit is contained in:
@ -0,0 +1,37 @@
|
||||
From 6208cc78f6efd1fafc4f5bc6a487247a383df80f Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Sat, 28 Sep 2019 20:44:52 +0200
|
||||
Subject: [PATCH] mmc_cmds.c: fix build with gcc 4.9
|
||||
|
||||
Fix following error with gcc 4.9:
|
||||
|
||||
mmc_cmds.c:1918:9: error: missing braces around initializer [-Werror=missing-braces]
|
||||
struct rpmb_frame frame_status = {0};
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/bf3b6f9f6ef39b99842b3c92495b7bf359c68158
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Upstream status: sent to linux-mmc@vger.kernel.org]
|
||||
---
|
||||
mmc_cmds.c | 4 +++-
|
||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/mmc_cmds.c b/mmc_cmds.c
|
||||
index fb37189..6b09f26 100644
|
||||
--- a/mmc_cmds.c
|
||||
+++ b/mmc_cmds.c
|
||||
@@ -1915,7 +1915,9 @@ static int do_rpmb_op(int fd,
|
||||
u_int16_t rpmb_type;
|
||||
struct mmc_ioc_multi_cmd *mioc;
|
||||
struct mmc_ioc_cmd *ioc;
|
||||
- struct rpmb_frame frame_status = {0};
|
||||
+ struct rpmb_frame frame_status;
|
||||
+
|
||||
+ memset(&frame_status, 0, sizeof(frame_status));
|
||||
|
||||
if (!frame_in || !frame_out || !out_cnt)
|
||||
return -EINVAL;
|
||||
--
|
||||
2.23.0
|
||||
|
||||
10
package/mmc-utils/Config.in
Normal file
10
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
|
||||
3
package/mmc-utils/mmc-utils.hash
Normal file
3
package/mmc-utils/mmc-utils.hash
Normal file
@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 ffc8f77233d1bd39ce4ec68835ad94aa6762624e4e96fb60102e87ba82db083e mmc-utils-d40ec535b9d4e4c974e8c2fbfb422cd0348cc5e8-br1.tar.gz
|
||||
sha256 c3165393bcd710624e2909327a6fbeb736c47bdbe66de1c1a364ac7324d3e4d6 mmc.h
|
||||
25
package/mmc-utils/mmc-utils.mk
Normal file
25
package/mmc-utils/mmc-utils.mk
Normal file
@ -0,0 +1,25 @@
|
||||
################################################################################
|
||||
#
|
||||
# mmc-utils
|
||||
#
|
||||
################################################################################
|
||||
|
||||
MMC_UTILS_VERSION = d40ec535b9d4e4c974e8c2fbfb422cd0348cc5e8
|
||||
MMC_UTILS_SITE = https://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc-utils.git
|
||||
MMC_UTILS_SITE_METHOD = git
|
||||
MMC_UTILS_LICENSE = GPL-2.0
|
||||
MMC_UTILS_LICENSE_FILES = mmc.h
|
||||
|
||||
# override AM_CFLAGS as the project Makefile uses it to pass
|
||||
# -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2, and the latter conflicts
|
||||
# with the _FORTIFY_SOURCE that we pass when hardening options are
|
||||
# enabled.
|
||||
define MMC_UTILS_BUILD_CMDS
|
||||
$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) AM_CFLAGS=
|
||||
endef
|
||||
|
||||
define MMC_UTILS_INSTALL_TARGET_CMDS
|
||||
$(MAKE) -C $(@D) prefix=/usr DESTDIR=$(TARGET_DIR) install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user