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

54 lines
801 B
Bash
Raw Normal View History

2013-07-13 17:19:22 +01:00
version=\
(
2017-05-24 17:06:49 +01:00
'2017.05'
2013-07-13 17:19:22 +01:00
)
url=\
(
"ftp://ftp.denx.de/pub/u-boot/u-boot-$version.tar.bz2"
)
md5=\
(
2017-05-24 17:06:49 +01:00
'1b9ab3707ded74bbde9405987f816969'
2013-07-13 17:19:22 +01:00
)
2014-08-11 16:43:40 +01:00
post_unpack()
{
2014-08-19 18:26:49 +01:00
patches=$(ls "$pkg_dir/patches/$version/"*.patch\
"$cfg_dir_system/patches/u-boot/$version/"*.patch 2>/dev/null)
2014-08-11 16:43:40 +01:00
if [ -n "$patches" ]; then
cat $patches | patch -p1
fi
}
configure()
{
$cmd_make \
"${cfg_target_uboot_config}_config"
}
build()
{
$cmd_make \
CROSS_COMPILE="$cfg_target_canonical"-
}
host_install()
{
$cmd_cp \
tools/mkimage \
"$cfg_dir_toolchain/bin"
}
target_install()
{
2016-04-06 16:38:22 +01:00
$cmd_mkdir "$cfg_dir_rootfs/boot"
2014-08-11 16:43:40 +01:00
2016-04-06 16:38:22 +01:00
for f in MLO u-boot.img u-boot.bin; do
if [ -f "$f" ]; then
$cmd_cp "$f" "$cfg_dir_rootfs/boot"
fi
done
2014-08-11 16:43:40 +01:00
}