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/escc/default.bash

49 lines
990 B
Bash
Raw Normal View History

2013-07-13 17:19:22 +01:00
version=\
(
2017-06-02 16:28:33 +01:00
'1.0.71'
2013-07-13 17:19:22 +01:00
)
url=\
(
"http://www.lsts.pt/glued/escc-$version.tar.gz"
)
md5=\
(
2017-06-02 16:28:33 +01:00
'075c9256fe20cf6ce867dc2b1c974ebe'
2013-07-13 17:19:22 +01:00
)
if [ -d "$cfg_dir_builds/linux/linux-"* ]; then
kernel="$(echo $cfg_dir_builds/linux/linux-*)"
fi
build()
{
$cmd_make \
ARCH=$cfg_target_linux \
CROSS_COMPILE=$cfg_target_canonical- \
M=`pwd` \
-C "$kernel" &&
for util in setescc esccclock esccsettings esccfs6131; do
2013-07-13 17:19:22 +01:00
make CC="$cmd_target_cc" -C "utils/$util"
done
}
target_install()
{
$cmd_make \
ARCH=$cfg_target_linux \
CROSS_COMPILE=$cfg_target_canonical- \
M=`pwd` \
INSTALL_MOD_PATH=$cfg_dir_rootfs \
-C "$kernel" \
modules_install &&
for util in setescc esccclock esccsettings esccfs6131; do
2013-07-13 17:19:22 +01:00
$cmd_target_strip "utils/$util/$util" -o "$cfg_dir_rootfs/usr/bin/$util"
done &&
tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
2013-07-13 17:19:22 +01:00
}