diff --git a/rules/gdal/default.bash b/rules/gdal/default.bash new file mode 100644 index 0000000..ac01bf1 --- /dev/null +++ b/rules/gdal/default.bash @@ -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 ' +) + +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 +} diff --git a/systems/lctr-b2xx/x8-06.cfg b/systems/lctr-b2xx/x8-06.cfg index 2932edb..fb112c8 100644 --- a/systems/lctr-b2xx/x8-06.cfg +++ b/systems/lctr-b2xx/x8-06.cfg @@ -3,6 +3,6 @@ cfg_storage='data0:ext4:/opt' cfg_eth_ext_ip='10.0.20.105' cfg_eth_ext_mk='255.255.0.0' cfg_eth_ext_gw='10.0.0.1' -cfg_packages='u-boot dropbear rsync busybox e2fsprogs ptpd i2c-tools am33xx-cm3/host linux rpcbind nfs-utils opencv exiv2 libav' +cfg_packages='u-boot dropbear rsync busybox e2fsprogs ptpd i2c-tools am33xx-cm3/host linux rpcbind nfs-utils opencv exiv2 libav gdal' cfg_storage_dir='/opt/lsts/dune/log' cfg_services1='nfs-storage-server' diff --git a/systems/lctr-rpi/x8-06-aux.cfg b/systems/lctr-rpi/x8-06-aux.cfg index 9d2a254..bca683a 100644 --- a/systems/lctr-rpi/x8-06-aux.cfg +++ b/systems/lctr-rpi/x8-06-aux.cfg @@ -1,7 +1,7 @@ cfg_hostname='x8-06-aux' cfg_eth_ext_ip='10.0.20.109' cfg_services1='nfs-storage-client' -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_target_linux_dtb='arch/arm/boot/dts/am335x-lauv-aux.dtb' cfg_storage_dir=/opt/lsts/dune/log