This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
lsts_glued/rules/i2c-tools/default.bash

34 lines
492 B
Bash
Raw Normal View History

2013-07-13 17:19:22 +01:00
version=\
(
2015-11-03 14:28:22 +00:00
'3.1.0'
2013-07-13 17:19:22 +01:00
)
2015-11-03 14:28:22 +00:00
git_tag="$(echo $version | sed 's/\./-/g')"
2013-07-13 17:19:22 +01:00
url=\
(
2015-11-03 14:28:22 +00:00
"https://github.com/groeck/i2c-tools/archive/V$git_tag.tar.gz"
2013-07-13 17:19:22 +01:00
)
md5=\
(
2015-11-03 14:28:22 +00:00
'7ed75853fe3c3dfd2d0d70d5831abfef'
2013-07-13 17:19:22 +01:00
)
maintainer=\
(
'Ricardo Martins <rasm@fe.up.pt>'
)
build()
{
2015-11-03 14:28:22 +00:00
$cmd_make -C "../i2c-tools-$git_tag" CC="$cmd_target_cc"
2013-07-13 17:19:22 +01:00
}
target_install()
{
2015-11-03 14:28:22 +00:00
for t in i2cdetect i2cget i2cset; do
$cmd_target_strip "../i2c-tools-$git_tag/tools/$t" -o "$cfg_dir_rootfs/usr/bin/$t"
done
2013-07-13 17:19:22 +01:00
}