Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mmc-utils build #878

Merged
merged 6 commits into from
Sep 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions package/mmc-utils/package
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,40 @@ 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
pkgver=1.0-1
timestamp=2021-08-12T19:41:07Z
section="devel"
maintainer="Alistair Francis <alistair@alistair23.me>"
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
)
_commit=7769a4d7abe339ce273c13a203394a79a11fcff9

prepare() {
cd "$srcdir"
mkdir mmc-utils
cd mmc-utils
git init
git fetch --depth=1 "https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git" "$_commit"
git checkout -f "$_commit"
patch < "$srcdir"/0001-Makefile-Remove-Werror.patch
}

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
make -C "$srcdir"/mmc-utils -j4
}

package() {
DESTDIR="$pkgdir" make -C "$srcdir" install
DESTDIR="$pkgdir" make -C "$srcdir"/mmc-utils install
}
Loading