Skip to content

Commit c1e7c7f

Browse files
authored
package: mmc-utils: Initial commit (#490)
Signed-off-by: Alistair Francis <[email protected]>
1 parent 0829e59 commit c1e7c7f

File tree

2 files changed

+76
-0
lines changed

2 files changed

+76
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
From 898bae517a42c1bf088e1c7b2bd34cd1fb086d22 Mon Sep 17 00:00:00 2001
2+
From: Alistair Francis <[email protected]>
3+
Date: Wed, 3 Nov 2021 22:23:46 +1000
4+
Subject: [PATCH] Makefile: Remove -Werror
5+
6+
Signed-off-by: Alistair Francis <[email protected]>
7+
---
8+
Makefile | 6 ++----
9+
1 file changed, 2 insertions(+), 4 deletions(-)
10+
11+
diff --git a/Makefile b/Makefile
12+
index aa27ff2..3402007 100644
13+
--- a/Makefile
14+
+++ b/Makefile
15+
@@ -8,11 +8,9 @@ objects = \
16+
3rdparty/hmac_sha/hmac_sha2.o \
17+
3rdparty/hmac_sha/sha2.o
18+
19+
-CHECKFLAGS = -Wall -Werror -Wuninitialized -Wundef
20+
-
21+
DEPFLAGS = -Wp,-MMD,$(@D)/.$(@F).d,-MT,$@
22+
23+
-override CFLAGS := $(CHECKFLAGS) $(AM_CFLAGS) $(CFLAGS)
24+
+override CFLAGS := $(AM_CFLAGS) $(CFLAGS)
25+
26+
INSTALL = install
27+
prefix ?= /usr/local
28+
@@ -24,7 +22,7 @@ progs = mmc
29+
30+
# make C=1 to enable sparse
31+
ifdef C
32+
- check = sparse $(CHECKFLAGS)
33+
+ check = sparse
34+
endif
35+
36+
all: $(progs) manpages
37+
--
38+
2.31.1
39+

package/mmc-utils/package

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/usr/bin/env bash
2+
# Copyright (c) 2021 The Toltec Contributors
3+
# SPDX-License-Identifier: MIT
4+
5+
archs=(rmall)
6+
pkgnames=(mmc-utils)
7+
pkgdesc="A tool for monitoring the eMMC protocol"
8+
url=https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/
9+
pkgver=1.0-0
10+
timestamp=2021-08-12T19:41:07Z
11+
section="devel"
12+
maintainer="Alistair Francis <[email protected]>"
13+
license=GPL-2.0-only
14+
15+
image=base:v2.2
16+
source=(
17+
"https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/snapshot/mmc-utils-7769a4d7abe339ce273c13a203394a79a11fcff9.tar.gz"
18+
0001-Makefile-Remove-Werror.patch
19+
)
20+
sha256sums=(
21+
0578e546d8893b6207180def7966e7314cae54c237a931b8f94779ce5c7d0668
22+
SKIP
23+
)
24+
25+
build() {
26+
# Use our toolchain
27+
export AR=arm-linux-gnueabihf-ar
28+
export CC=arm-linux-gnueabihf-gcc
29+
export STRIP=arm-linux-gnueabihf-strip
30+
31+
patch < "$srcdir"/0001-Makefile-Remove-Werror.patch
32+
make -j4
33+
}
34+
35+
package() {
36+
DESTDIR="$pkgdir" make -C "$srcdir" install
37+
}

0 commit comments

Comments
 (0)