mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
31 lines
700 B
Bash
31 lines
700 B
Bash
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
buildarch=4
|
|
|
|
pkgname=ec-utils
|
|
pkgver=1.9.0
|
|
pkgrel=1
|
|
pkgdesc="Chromium OS Embedded Controller utilities"
|
|
arch=('armv7h')
|
|
makedepends=('git' 'inetutils')
|
|
license=('custom:chromiumos')
|
|
source=("git+https://chromium.googlesource.com/chromiumos/platform/ec#tag=v${pkgver}")
|
|
md5sums=('SKIP')
|
|
|
|
prepare() {
|
|
cd ec
|
|
sed -i 's/ccache //g' Makefile.toolchain
|
|
cd util
|
|
sed -i 's/_BSD_SOURCE/_DEFAULT_SOURCE/g' stm32mon.c ec_uartd.c
|
|
}
|
|
|
|
build() {
|
|
cd ec
|
|
HOST_CROSS_COMPILE= make utils-host
|
|
}
|
|
|
|
package() {
|
|
cd ec
|
|
install -dm755 ${pkgdir}/usr/bin
|
|
install -m755 build/bds/util/{ectool,lbplay,stm32mon,ec_sb_firmware_update,lbcc} ${pkgdir}/usr/bin
|
|
}
|