GLUED: renamed packages to rules, cfg_dir_packages to cfg_dir_rules.

This commit is contained in:
Ricardo Martins
2014-02-02 09:53:29 +00:00
parent 6420cb1823
commit eaf0c7d347
354 changed files with 7 additions and 7 deletions

41
rules/u-boot/common.bash Normal file
View File

@@ -0,0 +1,41 @@
post_unpack()
{
patches=$(ls "$cfg_package_spec_dir/patches-$version/"*.patch\
"$cfg_dir_system/patches/u-boot/patches-${version}/"*.patch 2>/dev/null)
if [ -n "$patches" ]; then
cat $patches | patch -p1
fi
}
configure()
{
$cmd_make \
ARCH="$cfg_target_uboot_arch" \
CROSS_COMPILE="$cfg_target_canonical"- \
"$cfg_target_uboot_config"
}
build()
{
$cmd_make \
ARCH="$cfg_target_uboot_arch" \
CROSS_COMPILE="$cfg_target_canonical"-
}
host_install()
{
$cmd_cp \
tools/mkimage \
"$cfg_dir_toolchain/bin"
}
target_install()
{
if [ -f MLO ]; then
$cmd_cp MLO "$cfg_dir_rootfs/boot"
fi
if [ -f u-boot.img ]; then
$cmd_cp u-boot.img "$cfg_dir_rootfs/boot"
fi
}

16
rules/u-boot/default.bash Normal file
View File

@@ -0,0 +1,16 @@
source "$pkg_common"
version=\
(
'2014.01'
)
url=\
(
"ftp://ftp.denx.de/pub/u-boot/u-boot-$version.tar.bz2"
)
md5=\
(
'e531307578f6d32a7ccb1d04f1e08cbc'
)

View File

@@ -0,0 +1,12 @@
source "$cfg_package_spec_dir/default.bash"
host_install()
{
$cmd_mkdir ${cfg_dir_rootfs}/../boot/
$cmd_cp u-boot.bin ${cfg_dir_rootfs}/../boot/
}
target_install()
{
echo "using dummy 'target_install'."
}