rules/gdal: Merge branch 'feature/libgdal' into project/fire-rs
# Conflicts: # systems/lctr-rpi/x8-06-aux.cfg
This commit is contained in:
commit
a9f480d50b
49
rules/gdal/default.bash
Normal file
49
rules/gdal/default.bash
Normal 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
|
||||||
|
}
|
@ -3,6 +3,6 @@ cfg_storage='data0:ext4:/opt'
|
|||||||
cfg_eth_ext_ip='10.0.20.105'
|
cfg_eth_ext_ip='10.0.20.105'
|
||||||
cfg_eth_ext_mk='255.255.0.0'
|
cfg_eth_ext_mk='255.255.0.0'
|
||||||
cfg_eth_ext_gw='10.0.0.1'
|
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_storage_dir='/opt/lsts/dune/log'
|
||||||
cfg_services1='nfs-storage-server'
|
cfg_services1='nfs-storage-server'
|
||||||
|
@ -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='nfs-storage-client'
|
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_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_storage_dir=/opt/lsts/dune/log
|
cfg_storage_dir=/opt/lsts/dune/log
|
||||||
|
Reference in New Issue
Block a user