-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
package: mmc-utils: Initial commit (#490)
Signed-off-by: Alistair Francis <[email protected]>
- Loading branch information
1 parent
b2cc20d
commit fe95592
Showing
2 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
From 898bae517a42c1bf088e1c7b2bd34cd1fb086d22 Mon Sep 17 00:00:00 2001 | ||
From: Alistair Francis <[email protected]> | ||
Date: Wed, 3 Nov 2021 22:23:46 +1000 | ||
Subject: [PATCH] Makefile: Remove -Werror | ||
|
||
Signed-off-by: Alistair Francis <[email protected]> | ||
--- | ||
Makefile | 6 ++---- | ||
1 file changed, 2 insertions(+), 4 deletions(-) | ||
|
||
diff --git a/Makefile b/Makefile | ||
index aa27ff2..3402007 100644 | ||
--- a/Makefile | ||
+++ b/Makefile | ||
@@ -8,11 +8,9 @@ objects = \ | ||
3rdparty/hmac_sha/hmac_sha2.o \ | ||
3rdparty/hmac_sha/sha2.o | ||
|
||
-CHECKFLAGS = -Wall -Werror -Wuninitialized -Wundef | ||
- | ||
DEPFLAGS = -Wp,-MMD,$(@D)/.$(@F).d,-MT,$@ | ||
|
||
-override CFLAGS := $(CHECKFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
+override CFLAGS := $(AM_CFLAGS) $(CFLAGS) | ||
|
||
INSTALL = install | ||
prefix ?= /usr/local | ||
@@ -24,7 +22,7 @@ progs = mmc | ||
|
||
# make C=1 to enable sparse | ||
ifdef C | ||
- check = sparse $(CHECKFLAGS) | ||
+ check = sparse | ||
endif | ||
|
||
all: $(progs) manpages | ||
-- | ||
2.31.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/usr/bin/env bash | ||
# Copyright (c) 2021 The Toltec Contributors | ||
# SPDX-License-Identifier: MIT | ||
|
||
archs=(rmall) | ||
pkgnames=(mmc-utils) | ||
pkgdesc="A tool for monitoring the eMMC protocol" | ||
url=https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/ | ||
pkgver=1.0-0 | ||
timestamp=2021-08-12T19:41:07Z | ||
section="devel" | ||
maintainer="Alistair Francis <[email protected]>" | ||
license=GPL-2.0-only | ||
|
||
image=base:v2.2 | ||
source=( | ||
"https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/snapshot/mmc-utils-7769a4d7abe339ce273c13a203394a79a11fcff9.tar.gz" | ||
0001-Makefile-Remove-Werror.patch | ||
) | ||
sha256sums=( | ||
0578e546d8893b6207180def7966e7314cae54c237a931b8f94779ce5c7d0668 | ||
SKIP | ||
) | ||
|
||
build() { | ||
# Use our toolchain | ||
export AR=arm-linux-gnueabihf-ar | ||
export CC=arm-linux-gnueabihf-gcc | ||
export STRIP=arm-linux-gnueabihf-strip | ||
|
||
patch < "$srcdir"/0001-Makefile-Remove-Werror.patch | ||
make -j4 | ||
} | ||
|
||
package() { | ||
DESTDIR="$pkgdir" make -C "$srcdir" install | ||
} |