mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
added alarm/ec-utils
This commit is contained in:
parent
397f0e359e
commit
fad21d9e37
1 changed files with 34 additions and 0 deletions
34
alarm/ec-utils/PKGBUILD
Normal file
34
alarm/ec-utils/PKGBUILD
Normal file
|
@ -0,0 +1,34 @@
|
|||
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
|
||||
buildarch=4
|
||||
|
||||
pkgname=ec-utils
|
||||
pkgver=r4029.ed3f712
|
||||
pkgrel=1
|
||||
pkgdesc="Chromium OS Embedded Controller utilities"
|
||||
arch=('armv7h')
|
||||
makedepends=('git')
|
||||
license=('custom:chromiumos')
|
||||
source=("git+https://chromium.googlesource.com/chromiumos/platform/ec")
|
||||
md5sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd ec
|
||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
prepare() {
|
||||
cd ec/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
|
||||
}
|
Loading…
Reference in a new issue