Compare commits

...
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.

4 Commits

Author SHA1 Message Date
Tiago Sá Marques
eec11b4f27 rules: gdal: Correctly install to sysroot 2019-05-10 18:37:09 +01:00
mariacosta
b4f67610be systems/lctr-rpi: x8-06-aux: Added gdal package. 2019-04-05 11:16:48 +01:00
Tiago Marques
d742be4014 rules/gdal: Fix host target. 2018-12-11 15:01:33 +00:00
Tiago Marques
66da4333e9 rules: Add rule for libgdal. 2018-12-10 18:47:46 +00:00
2 changed files with 50 additions and 1 deletions

49
rules/gdal/default.bash Normal file
View File

@ -0,0 +1,49 @@
version=\
(
'2.3.2'
)
url=\
(
"http://download.osgeo.org/gdal/2.3.2/gdal-2.3.2.tar.gz"
)
md5=\
(
'221e4bfe3e8e9443fd33f8fe46f8bf60'
)
maintainer=\
(
'Tiago Sá Marques <tsmarques@lsts.pt>'
)
configure()
{
"./configure" \
--prefix="$cfg_dir_toolchain_sysroot/usr" \
--target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \
--build="$cfg_host_canonical" \
--includedir="$cfg_dir_toolchain_sysroot/usr/include/gdal" \
--with-build-sysroot="$cfg_dir_toolchain_sysroot" \
--with-sysroot="$cfg_dir_toolchain_sysroot"
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
}
target_install()
{
cp -a "$cfg_dir_toolchain_sysroot/usr/lib/"libgdal*so* $cfg_dir_rootfs/lib
for f in "$cfg_dir_rootfs/lib/"libgdal*so; do
$cmd_target_strip "$f"
done
}

View File

@ -1,7 +1,7 @@
cfg_hostname='x8-06-aux' cfg_hostname='x8-06-aux'
cfg_eth_ext_ip='10.0.20.109' cfg_eth_ext_ip='10.0.20.109'
cfg_services1='lauv-storage-server' cfg_services1='lauv-storage-server'
cfg_packages="$cfg_packages opencv raspicam exiv2 libav uswitch nfs-utils" cfg_packages="$cfg_packages opencv raspicam exiv2 libav uswitch nfs-utils gdal"
cfg_modules="$cfg_modules ftdi_sio" cfg_modules="$cfg_modules ftdi_sio"
cfg_target_linux_dtb='arch/arm/boot/dts/am335x-lauv-aux.dtb' cfg_target_linux_dtb='arch/arm/boot/dts/am335x-lauv-aux.dtb'
cfg_ptpd_interface='eth0' cfg_ptpd_interface='eth0'