Merge branch 'feature/pointgrey' into feature/gcc_5.4

This commit is contained in:
Pedro Gonçalves 2017-06-01 15:09:33 +01:00
commit b4591b8d2e
7 changed files with 160 additions and 3 deletions

53
rules/exiv2/default.bash Normal file
View File

@ -0,0 +1,53 @@
version=\
(
"0.25"
)
url=\
(
"http://lsts.pt/glued/exiv2-${version}.tar.gz"
)
md5=\
(
"258d4831b30f75a01e0234065c6c2806"
)
maintainer=\
(
'Pedro Gonçalves <pedro@lsts.pt>'
)
configure()
{
./configure \
--datadir="$cfg_dir_toolchain_sysroot" \
--prefix="$cfg_dir_rootfs/usr" \
--includedir="$cfg_dir_toolchain_sysroot/usr/include" \
--enable-cross-compile \
--build=$cfg_target_linux \
--host="$cfg_target_canonical" \
--enable-shared \
--disable-static \
--disable-xmp
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
}
target_install()
{
# Libs:
for f in "$cfg_dir_rootfs/lib/"libexiv2*; do
cp -av "$f" "$cfg_dir_toolchain_sysroot/usr/lib"
done
}

View File

@ -15,9 +15,10 @@ md5=\
configure()
{
$cmd_mkdir build
./configure \
--sysroot="$cfg_dir_toolchain_sysroot" \
--prefix="$cfg_dir_rootfs/usr" \
--prefix="$cfg_dir_builds/libav/libav-$version/build/" \
--cross-prefix="$cfg_target_canonical-" \
--target-os="linux" \
--enable-memalign-hack \
@ -32,8 +33,14 @@ build()
$cmd_make
}
host_install()
{
$cmd_make install
$cmd_cp -r "build/"* "$cfg_dir_toolchain_sysroot/usr/"
}
target_install()
{
$cmd_make \
install
$cmd_cp -r "build/"* "$cfg_dir_rootfs/usr/"
}

View File

@ -0,0 +1,41 @@
version=\
(
'2.0.5'
)
url=\
(
"http://downloads.sourceforge.net/libraw1394/libraw1394-$version.tar.gz"
)
md5=\
(
'1db64231c78540c32859b591cb8b40cf'
)
configure()
{
"../libraw1394-$version/configure" \
--prefix="$cfg_dir_toolchain_sysroot/usr" \
--target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \
--disable-examples \
--build="$cfg_host_canonical"
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
}
target_install()
{
for f in "$cfg_dir_toolchain_sysroot/usr/lib/"libraw1394*so*; do
$cmd_target_strip "$f" -o "$cfg_dir_rootfs/lib/$(basename "$f")"
done
}

View File

@ -22,6 +22,7 @@ requires=\
maintainer=\
(
'Renato Caldas <rmsc@fe.up.pt>'
'Pedro Gonçalves <pedro@fe.up.pt>'
)
post_unpack()

View File

@ -0,0 +1,46 @@
version=\
(
"2.11.3.121"
)
url=\
(
"http://lsts.pt/glued/flycapture.$version.armhf.tar.gz"
)
md5=\
(
"788861351143e3279cf4522e1055e739"
)
post_unpack()
{
$cmd_cp -r "../flycapture.2.11.3.121_armhf/"* "../pointgrey-$version/"
rm -r ../flycapture.2.11.3.121_armhf/
}
requires=\
(
'libusb/default'
'libraw1394/default'
'libdc1394/default'
)
maintainer=\
(
'Pedro Gonçalves <pedro@lsts.pt>'
)
host_install()
{
$cmd_cp -r "lib/"* "$cfg_dir_toolchain_sysroot/usr/lib/"
$cmd_cp -r "include/"* "$cfg_dir_toolchain_sysroot/usr/include/"
}
target_install()
{
$cmd_mkdir "$cfg_dir_rootfs/usr/include/"
$cmd_cp -r "lib/"* "$cfg_dir_rootfs/usr/lib/"
$cmd_cp -r "include/"* "$cfg_dir_rootfs/usr/include/"
}

View File

@ -13,6 +13,11 @@ md5=\
"169e62fd17d41455a42711a2f9c54fd1"
)
requires=\
(
'cmake/host'
)
maintainer=\
(
'Pedro Gonçalves <pedro@lsts.pt>'

View File

@ -1,5 +1,9 @@
# Core.
arm_freq=1000
sdram_freq=500
core_freq=500
over_voltage=2
temp_limit=80 #Will throttle to default clock speed if hit.
# Disable BT on Rpi3.
dtoverlay=pi3-disable-bt