Compare commits

..

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
29 changed files with 81 additions and 6631 deletions

1
.gitignore vendored
View File

@@ -11,4 +11,3 @@
/ntnu-b2xx /ntnu-b2xx
/stamp9g20 /stamp9g20
/lctr-rpi /lctr-rpi
build.bash

View File

@@ -36,6 +36,3 @@ RUN apt-get install -y g++-multilib
RUN apt-get install -y cmake RUN apt-get install -y cmake
RUN apt-get install -y file RUN apt-get install -y file
RUN apt-get install -y kmod RUN apt-get install -y kmod
RUN apt-get install -y bison
RUN apt-get install -y flex
RUN apt-get install -y libssl-dev

View File

@@ -23,10 +23,9 @@
TAG := glued TAG := glued
VERSION := 2016.05.0 VERSION := 2016.05.0
VOLUME := $(CURDIR)/.. VOLUME := $(CURDIR)/..
DNS := 8.8.8.8
all: all:
docker build -t $(TAG):$(VERSION) . docker build -t $(TAG):$(VERSION) .
shell: shell:
docker run -w $(VOLUME) --dns=$(DNS) -i -a stdin -a stdout -v $(VOLUME):$(VOLUME) -t $(TAG):$(VERSION) docker run -w $(VOLUME) -i -a stdin -a stdout -v $(VOLUME):$(VOLUME) -t $(TAG):$(VERSION)

View File

@@ -1,6 +1,6 @@
########################################################################### ###########################################################################
# GLUED: GNU/Linux Uniform Environment Distribution # # GLUED: GNU/Linux Uniform Environment Distribution #
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia # # Copyright (C) 2007-2017 Universidade do Porto - Faculdade de Engenharia #
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) # # Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
########################################################################### ###########################################################################
# This program is free software; you can redistribute it and/or modify # # This program is free software; you can redistribute it and/or modify #

View File

@@ -1,7 +1,7 @@
#! /bin/bash #! /bin/bash
########################################################################### ###########################################################################
# GLUED: GNU/Linux Uniform Environment Distribution # # GLUED: GNU/Linux Uniform Environment Distribution #
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia # # Copyright (C) 2007-2017 Universidade do Porto - Faculdade de Engenharia #
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) # # Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
########################################################################### ###########################################################################
# This program is free software; you can redistribute it and/or modify # # This program is free software; you can redistribute it and/or modify #

View File

@@ -1,7 +1,7 @@
#! /bin/bash #! /bin/bash
########################################################################### ###########################################################################
# GLUED: GNU/Linux Uniform Environment Distribution # # GLUED: GNU/Linux Uniform Environment Distribution #
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia # # Copyright (C) 2007-2017 Universidade do Porto - Faculdade de Engenharia #
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) # # Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
########################################################################### ###########################################################################
# This program is free software; you can redistribute it and/or modify # # This program is free software; you can redistribute it and/or modify #

View File

@@ -1,7 +1,7 @@
#! /bin/bash #! /bin/bash
########################################################################### ###########################################################################
# GLUED: GNU/Linux Uniform Environment Distribution # # GLUED: GNU/Linux Uniform Environment Distribution #
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia # # Copyright (C) 2007-2017 Universidade do Porto - Faculdade de Engenharia #
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) # # Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
########################################################################### ###########################################################################
# This program is free software; you can redistribute it and/or modify # # This program is free software; you can redistribute it and/or modify #
@@ -72,7 +72,7 @@ download()
fi fi
# First try LSTS mirror. # First try LSTS mirror.
lsts_url="https://www.lsts.pt/glued/$(basename $u)" lsts_url="https://lsts.pt/glued/$(basename $u)"
download_tool "$lsts_url" "$cfg_dir_downloads/$file" download_tool "$lsts_url" "$cfg_dir_downloads/$file"
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
# Then try OceanScan-MST mirror. # Then try OceanScan-MST mirror.

View File

@@ -1,7 +1,7 @@
#! /bin/bash #! /bin/bash
########################################################################### ###########################################################################
# GLUED: GNU/Linux Uniform Environment Distribution # # GLUED: GNU/Linux Uniform Environment Distribution #
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia # # Copyright (C) 2007-2017 Universidade do Porto - Faculdade de Engenharia #
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) # # Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
########################################################################### ###########################################################################
# This program is free software; you can redistribute it and/or modify # # This program is free software; you can redistribute it and/or modify #

View File

@@ -1,7 +1,7 @@
#! /bin/bash #! /bin/bash
########################################################################### ###########################################################################
# GLUED: GNU/Linux Uniform Environment Distribution # # GLUED: GNU/Linux Uniform Environment Distribution #
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia # # Copyright (C) 2007-2017 Universidade do Porto - Faculdade de Engenharia #
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) # # Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
########################################################################### ###########################################################################
# This program is free software; you can redistribute it and/or modify # # This program is free software; you can redistribute it and/or modify #

View File

@@ -1,7 +1,7 @@
#! /bin/bash #! /bin/bash
########################################################################### ###########################################################################
# GLUED: GNU/Linux Uniform Environment Distribution # # GLUED: GNU/Linux Uniform Environment Distribution #
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia # # Copyright (C) 2007-2017 Universidade do Porto - Faculdade de Engenharia #
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) # # Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
########################################################################### ###########################################################################
# This program is free software; you can redistribute it and/or modify # # This program is free software; you can redistribute it and/or modify #

View File

@@ -1,7 +1,7 @@
#! /bin/bash #! /bin/bash
########################################################################### ###########################################################################
# GLUED: GNU/Linux Uniform Environment Distribution # # GLUED: GNU/Linux Uniform Environment Distribution #
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia # # Copyright (C) 2007-2017 Universidade do Porto - Faculdade de Engenharia #
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) # # Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
########################################################################### ###########################################################################
# This program is free software; you can redistribute it and/or modify # # This program is free software; you can redistribute it and/or modify #

View File

@@ -37,8 +37,7 @@ configure()
{ {
cd "../boost_$vendor_version" && cd "../boost_$vendor_version" &&
./bootstrap.sh \ ./bootstrap.sh \
--with-icu="$cfg_dir_toolchain_sysroot/usr" \ --with-icu="$cfg_dir_toolchain_sysroot/usr"
--with-libraries="regex,filesystem,system,thread"
GXX_VER=$(${cmd_target_cxx} -dumpversion) GXX_VER=$(${cmd_target_cxx} -dumpversion)
echo "using gcc : ${GXX_VER} : ${cmd_target_cxx} : <cxxflags>\"-pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 ${cfg_target_gcc_flags} \" <linkflags>\"\" ;" > user-config.jam echo "using gcc : ${GXX_VER} : ${cmd_target_cxx} : <cxxflags>\"-pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 ${cfg_target_gcc_flags} \" <linkflags>\"\" ;" > user-config.jam

View File

@@ -1,37 +0,0 @@
version=\
(
"10.96"
)
url=\
(
"https://lsts.pt/glued/exiftoolBin-${version}.tar.gz"
)
md5=\
(
"71d52bf2d75f023b844dd8c9100daaff"
)
maintainer=\
(
'Pedro Gonçalves <pedro@lsts.pt>'
)
requires=\
(
'perl/default'
)
post_unpack()
{
$cmd_cp -r ../exiftoolBin-${version}/* .
}
target_install()
{
$cmd_cp -rv usr/* $cfg_dir_toolchain_sysroot/usr/
$cmd_cp -rv usr/* $cfg_dir_rootfs/usr/
$cmd_cp -rv usr/local/bin/* $cfg_dir_rootfs/usr/bin/
}

View File

@@ -1,14 +0,0 @@
start()
{
echo "* Mounting external sdcard in /opt/lsts *"
mount /dev/mmcblk1p1 /opt/lsts
mkdir -p /opt/lsts/glued
mkdir -p /opt/lsts/dune
}
stop()
{
echo "* Unmount external sdcard *"
umount /dev/mmcblk1p1
}

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,6 +1,6 @@
version=\ version=\
( (
'4.19.60' '4.4.66'
) )
url=\ url=\
@@ -10,7 +10,7 @@ url=\
md5=\ md5=\
( (
'3f8dfed50f9d9ff7247b3d6da4fd35a3' '5353de56bf4621a35afc4384c7e51f30'
) )
maintainer=\ maintainer=\

View File

@@ -196,10 +196,10 @@ target_install()
KBUILD_VERBOSE=1 \ KBUILD_VERBOSE=1 \
modules_install modules_install
#$cmd_make \ $cmd_make \
# CROSS_COMPILE="$cfg_target_canonical-" \ CROSS_COMPILE="$cfg_target_canonical-" \
# ARCH="$cfg_target_linux" \ ARCH="$cfg_target_linux" \
# INSTALL_MOD_PATH="$cfg_dir_rootfs/usr" \ INSTALL_MOD_PATH="$cfg_dir_rootfs/usr" \
# KBUILD_VERBOSE=1 \ KBUILD_VERBOSE=1 \
# firmware_install firmware_install
} }

View File

@@ -2,7 +2,7 @@
version=\ version=\
( (
'4.19_2019-07-29' '4.4_2017-01-27'
) )
url=\ url=\
@@ -12,7 +12,7 @@ url=\
md5=\ md5=\
( (
'a9fac458f26bf4a3f3d9c981c7e51dd9' 'f31d48a9d2c93509b35e750be489b44c'
) )
build_dir="rpi-linux-rpi-linux-$version" build_dir="rpi-linux-rpi-linux-$version"

View File

@@ -1,6 +1,6 @@
version=\ version=\
( (
'2019-07-29' '2017-02-02'
) )
url=\ url=\
@@ -10,17 +10,20 @@ url=\
maintainer=\ maintainer=\
( (
'Ricardo Martins <rasm@fe.up.pt>'
'Pedro Gonçalves <pedro@lsts.pt>' 'Pedro Gonçalves <pedro@lsts.pt>'
) )
md5=\ md5=\
( (
'5b35887b1026fafe8174f473679d175a' 'eb42664fce4d73f167064e697dfacb76'
) )
target_install() target_install()
{ {
$cmd_mkdir "$cfg_dir_rootfs/boot" $cmd_mkdir "$cfg_dir_rootfs/boot"
$cmd_cp "../$pkg-$version/"* "$cfg_dir_rootfs/boot/" $cmd_cp "../$pkg-$version/"* "$cfg_dir_rootfs/boot/"
tar -C "$pkg_dir/fs" -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f - tar -C "$pkg_dir/fs" -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
} }

View File

@@ -1,3 +1,2 @@
cfg_hostname='lauv-nemo-1-aux' cfg_hostname='lauv-nemo-1-aux'
cfg_eth_ext_ip='10.0.10.63' cfg_eth_ext_ip='10.0.10.63'
cfg_packages="$cfg_packages boost"

View File

@@ -1,2 +0,0 @@
cfg_hostname='geode-testbed'
cfg_eth_ext_ip='10.0.200.64'

File diff suppressed because it is too large Load Diff

View File

@@ -4,15 +4,6 @@ arm_freq=1000
# Disable BT on Rpi3. # Disable BT on Rpi3.
dtoverlay=pi3-disable-bt dtoverlay=pi3-disable-bt
dtoverlay=uart1 # Enable RasPicam
dtoverlay=uart0 start_x=1
gpu_mem=128
### EXTERNAL SDCARD OPTIONS
# Activate external sdcard in CM3 [22 at 27]
#dtoverlay=sdio,poll_once=off
#Activate external sdcard in CM3 [34 at 39]
#dtoverlay=sdio34,poll_once=off,gpios_34_39
#dtoverlay=sdio34,poll_once=off,bus_width=4,gpios_34_39
#dtoverlay=sdio34,poll_once=off,bus_width=4,sdio_overclock=30
#dtoverlay=sdio34,poll_once=off,bus_width=4,gpios_34_39,sdio_overclock=30

View File

@@ -1,9 +0,0 @@
cfg_hostname='test-rpi-cm3'
cfg_eth_ext_ip='10.0.200.52'
cfg_services1=''
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind rpi-boot-firmware linux/rpi'
cfg_services0='network dropbear storage upgrade syslog ptpd mount_sdcard_cm3'
cfg_modules="$cfg_modules ftdi_sio"
cfg_terminal='tty1'
cfg_ptpd_interface='eth0'

View File

@@ -1,9 +0,0 @@
cfg_hostname='test-rpi'
cfg_eth_ext_ip='10.0.200.52'
cfg_services1=''
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind rpi-boot-firmware linux/rpi exiftool'
cfg_services0='network dropbear storage upgrade syslog ptpd'
cfg_modules="$cfg_modules ftdi_sio"
cfg_terminal='tty1'
cfg_ptpd_interface='eth0'

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'

View File

@@ -1,7 +1,7 @@
#! /bin/bash #! /bin/bash
########################################################################### ###########################################################################
# GLUED: GNU/Linux Uniform Environment Distribution # # GLUED: GNU/Linux Uniform Environment Distribution #
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia # # Copyright (C) 2007-2017 Universidade do Porto - Faculdade de Engenharia #
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) # # Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
########################################################################### ###########################################################################
# This program is free software; you can redistribute it and/or modify # # This program is free software; you can redistribute it and/or modify #

View File

@@ -1,7 +1,7 @@
#! /bin/bash #! /bin/bash
########################################################################### ###########################################################################
# GLUED: GNU/Linux Uniform Environment Distribution # # GLUED: GNU/Linux Uniform Environment Distribution #
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia # # Copyright (C) 2007-2017 Universidade do Porto - Faculdade de Engenharia #
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) # # Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
########################################################################### ###########################################################################
# This program is free software; you can redistribute it and/or modify # # This program is free software; you can redistribute it and/or modify #