Compare commits

...

36 Commits

Author SHA1 Message Date
Pedro Gonçalves
ce9ad8e9c6 rules/perl: changed compilation to single thread to avoid errors in complication. 2019-08-08 16:38:14 +01:00
Paulo Dias
b96a0a57c8 systems/lctr-a6xx: Added boost and bash to titan. 2019-08-01 16:36:00 +01:00
Pedro Gonçalves
e55db5b156 lctr-rpi: config: add exiftool and libusb to the main config. 2019-08-01 16:36:00 +01:00
Pedro Gonçalves
f80b6baef3 rules/exiftool: fix path for bin folder. 2019-08-01 16:36:00 +01:00
Pedro Gonçalves
83cdb57531 rules/exiftool: add rule for exiftool lib/api. 2019-08-01 16:36:00 +01:00
João Teixeira
6bddad3842 systems/lctr-rpi: Added titan configuration file. 2019-08-01 16:36:00 +01:00
Paulo Dias
d5c14b3f8b busybox: enabling CONFIG_FUSER. 2019-08-01 10:49:00 +01:00
Paulo Dias
01ad7ffe39 busybox: enabling CONFIG_FEATURE_READLINK_FOLLOW 2019-07-30 11:48:29 +01:00
Paulo Dias
0ce7250409 rules: bash: change target install to /bin. 2019-07-28 22:22:30 +01:00
Paulo Dias
a19af86370 systems/lauv-aux-rpi: clean rule to nemo aux cmre config files. 2019-07-28 12:00:48 +01:00
Paulo Dias
dbe7d82240 netcat: update url of package. 2019-07-28 11:54:49 +01:00
Paulo Dias
8d1ed83675 systems/lauv-aux-rpi: add rule boost to nemo aux cmre config files. 2019-07-25 21:01:49 +01:00
Paulo Dias
2c3df70fc0 systems/lctr-b2xx: add rule boost to all noptilus cmre config files. 2019-07-25 21:00:46 +01:00
Pedro Gonçalves
fe14f32028 systems/lctr-rpi: add rule bash to test-rpi config file. 2019-07-25 18:32:14 +01:00
Pedro Gonçalves
8fd8118259 systems/lctr-b2xx: add rule bash to all noptilus config files. 2019-07-25 18:31:25 +01:00
Pedro Gonçalves
1575b724eb systems/lauv-aux-rpi: add rule bash to nemo config files. 2019-07-25 18:30:12 +01:00
Pedro Gonçalves
608631f9f0 rules: bash: add rule to compile/add bash. 2019-07-25 18:29:15 +01:00
Paulo Dias
5003698147 rules: boost: added patch for boost 1.55 to build on gcc-5.
see:
71d7c515dd/var/spack/repos/builtin/packages/boost/boost_10125.patch,
71d7c515dd,
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197594
2019-02-12 15:26:54 +00:00
Paulo Dias
5c36c29b77 systems: added missing copy of systems/lctr-rpi/cfg/linux-4.14_2018-08-17.cfg to systems/lauv-aux-rpi/cfg. 2019-02-11 20:55:22 +00:00
Paulo Dias
073b3e969b rules: rpi-boot-firmware: fix lsts address used. 2019-02-11 20:42:10 +00:00
Paulo Dias
e0131dc645 gitignore: added helper script to ignore. 2019-02-11 20:03:00 +00:00
Paulo Dias
0bcc05e9fb rules: boost: added needed libraries that must be built separately are: regex,filesystem,system,thread. 2019-02-11 20:02:49 +00:00
Paulo Dias
3f0db94013 systems: Added boost to lauv-nemo-aux. 2019-02-11 20:00:39 +00:00
zepinto
f117dcbe5f Docker Makefile: added DNS option.
# Conflicts:
#	docker/Makefile
2019-02-11 20:00:17 +00:00
Paulo Dias
e6bd6c1a39 mkpackage: use www.lsts.pt instead of lsts.pt.
# Conflicts:
#	mkpackage.bash
2019-01-08 20:47:52 +00:00
Pedro Gonçalves
f1185813ca docker: fix option to delete docker img. 2018-12-12 14:37:05 +00:00
Pedro Gonçalves
2c601025c0 rules: linux: update rpi boot firmware to version compatible with kernel 4.14. 2018-12-12 14:31:56 +00:00
Pedro Gonçalves
286dcd752b system: lctr-rpi: update rpi kernel version to 4.14. 2018-12-12 14:29:18 +00:00
Pedro Gonçalves
f5cb62393d rules: linux: update rpi kernel version to 4.14. 2018-12-12 14:28:41 +00:00
Pedro Gonçalves
2b96c6f84a docker: add option to delete docker system img. 2018-12-12 14:27:26 +00:00
Pedro Gonçalves
3aa0d620e9 systems: added system lauv-noptilus-3-aux-cmre. 2018-08-28 13:56:12 +01:00
Pedro Gonçalves
a2892dde64 systems: added system lauv-noptilus-1-aux-cmre. 2018-08-28 13:55:55 +01:00
Pedro Gonçalves
de957461ee netcat: update url of package. 2018-08-28 13:55:20 +01:00
Paulo Dias
8fc06f6598 systems: Added systems lauv-nemo-1-aux-cmre and lauv-noptilus-2-aux-cmre. 2018-08-23 20:34:24 +01:00
Pedro Gonçalves
ef4b573d78 mpc: update url of package. 2018-08-20 20:34:55 +01:00
Tiago Marques
d9545a482f systems: Added systems lauv-nemo-1 and lauv-nemo-1-aux. 2018-08-20 18:12:32 +01:00
27 changed files with 12814 additions and 26 deletions

1
.gitignore vendored
View File

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

View File

@@ -23,12 +23,13 @@
TAG := glued
VERSION := 2016.05.0
VOLUME := $(CURDIR)/..
DNS := 8.8.8.8
all:
docker build -t $(TAG):$(VERSION) .
shell:
docker run -w $(VOLUME) -i -a stdin -a stdout -v $(VOLUME):$(VOLUME) -t $(TAG):$(VERSION)
docker run -w $(VOLUME) --dns=$(DNS) -i -a stdin -a stdout -v $(VOLUME):$(VOLUME) -t $(TAG):$(VERSION)
clean:
@echo "* Stopping docker service..."
@@ -38,3 +39,6 @@ clean:
@echo "* Starting docker service..."
@sudo systemctl start docker
@echo "* Done."
delete_img:
@sudo docker system prune -a

View File

@@ -72,7 +72,7 @@ download()
fi
# First try LSTS mirror.
lsts_url="http://lsts.pt/glued/$(basename $u)"
lsts_url="https://www.lsts.pt/glued/$(basename $u)"
download_tool "$lsts_url" "$cfg_dir_downloads/$file"
if [ $? -ne 0 ]; then
# Then try OceanScan-MST mirror.

45
rules/bash/default.bash Normal file
View File

@@ -0,0 +1,45 @@
version=\
(
"4.4.18"
)
url=\
(
"http://ftp.gnu.org/gnu/bash/bash-$version.tar.gz"
)
md5=\
(
'518e2c187cc11a17040f0915dddce54e'
)
maintainer=\
(
'Pedro Gonçalves <pedro@fe.up.pt>'
)
configure()
{
./configure \
--prefix=${cfg_dir_rootfs} \
--host=${cfg_target_canonical} \
--bindir=${cfg_dir_toolchain}/bin \
--without-bash-malloc
}
build()
{
$cmd_make VERBOSE=1
}
host_install()
{
$cmd_make install
}
target_install()
{
$cmd_cp bash ${cfg_dir_rootfs}/bin
$cmd_cp bashversion ${cfg_dir_rootfs}/bin
}

View File

@@ -37,7 +37,8 @@ configure()
{
cd "../boost_$vendor_version" &&
./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)
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

@@ -0,0 +1,51 @@
--- a/boost/thread/pthread/once.hpp
+++ b/boost/thread/pthread/once.hpp
@@ -42,7 +42,7 @@ namespace boost
}
#ifdef BOOST_THREAD_PROVIDES_ONCE_CXX11
-#ifndef BOOST_NO_CXX11_VARIADIC_TEMPLATES
+#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
template<typename Function, class ...ArgTypes>
inline void call_once(once_flag& flag, BOOST_THREAD_RV_REF(Function) f, BOOST_THREAD_RV_REF(ArgTypes)... args);
#else
@@ -65,7 +65,7 @@ namespace boost
private:
volatile thread_detail::uintmax_atomic_t epoch;
-#ifndef BOOST_NO_CXX11_VARIADIC_TEMPLATES
+#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
template<typename Function, class ...ArgTypes>
friend void call_once(once_flag& flag, BOOST_THREAD_RV_REF(Function) f, BOOST_THREAD_RV_REF(ArgTypes)... args);
#else
@@ -118,7 +118,7 @@ namespace boost
// http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2444.html
-#ifndef BOOST_NO_CXX11_VARIADIC_TEMPLATES
+#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
template<typename Function, class ...ArgTypes>
--- a/boost/thread/pthread/once_atomic.hpp
+++ b/boost/thread/pthread/once_atomic.hpp
@@ -115,7 +115,7 @@ namespace boost
#endif
-#ifndef BOOST_NO_CXX11_VARIADIC_TEMPLATES
+#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
template<typename Function, class ...ArgTypes>
inline void call_once(once_flag& flag, BOOST_THREAD_RV_REF(Function) f, BOOST_THREAD_RV_REF(ArgTypes)... args)
--- a/boost/thread/win32/once.hpp
+++ b/boost/thread/win32/once.hpp
@@ -227,7 +227,7 @@ namespace boost
}
}
-#ifndef BOOST_NO_CXX11_VARIADIC_TEMPLATES
+#if !defined BOOST_NO_CXX11_VARIADIC_TEMPLATES && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
//#if defined(BOOST_THREAD_RVALUE_REFERENCES_DONT_MATCH_FUNTION_PTR)
inline void call_once(once_flag& flag, void (*f)())
{

View File

@@ -267,7 +267,7 @@ CONFIG_MV=y
CONFIG_PRINTF=y
CONFIG_PWD=y
CONFIG_READLINK=y
# CONFIG_FEATURE_READLINK_FOLLOW is not set
CONFIG_FEATURE_READLINK_FOLLOW=y
CONFIG_REALPATH=y
CONFIG_RM=y
CONFIG_RMDIR=y
@@ -943,7 +943,7 @@ CONFIG_FEATURE_TOPMEM=y
CONFIG_UPTIME=y
# CONFIG_FEATURE_UPTIME_UTMP_SUPPORT is not set
CONFIG_FREE=y
# CONFIG_FUSER is not set
CONFIG_FUSER=y
CONFIG_KILL=y
CONFIG_KILLALL=y
# CONFIG_KILLALL5 is not set

View File

@@ -0,0 +1,37 @@
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

@@ -201,6 +201,12 @@ target_install()
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
modules_install
echo $cfg_sys_family
if [[ $cfg_sys_family == *rpi* ]]; then
echo "RPI family, no need of firmware_install"
sleep 2
else
sleep 2
$cmd_make \
CROSS_COMPILE="$cfg_target_canonical-" \
ARCH="$cfg_target_linux" \
@@ -208,4 +214,5 @@ target_install()
KBUILD_VERBOSE=1 \
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
firmware_install
fi
}

View File

@@ -2,7 +2,7 @@
version=\
(
'4.4_2017-01-27'
'4.14_2018-08-17'
)
url=\
@@ -12,7 +12,7 @@ url=\
md5=\
(
'f31d48a9d2c93509b35e750be489b44c'
'074e40d83f4f4a99449acb08f8ddcbec'
)
build_dir="rpi-linux-rpi-linux-$version"

View File

@@ -5,7 +5,7 @@ version=\
url=\
(
"http://www.multiprecision.org/mpc/download/mpc-$version.tar.gz"
"https://ftp.gnu.org/gnu/mpc/mpc-$version.tar.gz"
)
md5=\

View File

@@ -5,7 +5,7 @@ version=\
url=\
(
"https://kent.dl.sourceforge.net/project/nc$version/unix%20netcat%201.10%20by%20_Hobbit_/%5BUnnamed%20release%5D/nc$version.tgz"
"https://sourceforge.net/projects/nc$version/files/unix%20netcat%201.10%20by%20_Hobbit_/nc$version.tgz"
)
md5=\

View File

@@ -29,7 +29,7 @@ post_unpack()
fi
sed 's/libs = $perllibs $cryptlib/libs = $perllibs $cryptlib -lm/g' Makefile.SH -i &&
$cmd_cp -v Makefile.SH{,.orig} &&
$cmd_make_single -v Makefile.SH{,.orig} &&
sed -e "s@pldlflags=''@pldlflags=\"\$cccdlflags\"@g" \
-e "s@static_target='static'@static_target='static_pic'@g" Makefile.SH.orig > Makefile.SH
}

View File

@@ -1,11 +1,11 @@
version=\
(
'2017-02-02'
'2018-08-17'
)
url=\
(
"http://lsts.pt/glued/rpi-boot-firmware-$version.zip"
"http://www.lsts.pt/glued/rpi-boot-firmware-$version.zip"
)
maintainer=\
@@ -16,7 +16,7 @@ maintainer=\
md5=\
(
'eb42664fce4d73f167064e697dfacb76'
'2b06b9704616ee2a66829281bd480ff3'
)
target_install()

View File

@@ -1 +1 @@
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 elevator=deadline rootwait quiet
dwc_otg.lpm_enable=0 console=ttyAMA0,115200,8n1 root=/dev/mmcblk0p2 elevator=deadline rootwait quiet

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,6 @@
cfg_hostname='lauv-nemo-1-aux-cmre'
cfg_eth_ext_ip='10.0.10.63'
cfg_eth_ext_mk='255.255.0.0'
cfg_eth_ext_gw='10.0.0.1'
cfg_ptpd_interface='eth0'
cfg_packages="$cfg_packages boost bash libconfig log4cpp fftw socat crypto++ netcat screen rlwrap"

View File

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

View File

@@ -0,0 +1,2 @@
cfg_hostname='lauv-nemo-1'
cfg_eth_ext_ip='10.0.10.60'

View File

@@ -0,0 +1,8 @@
cfg_hostname='lauv-noptilus-1-aux-cmre'
cfg_storage='data0:ext4:/opt data1:ext4:/opt/lsts/dune/log'
cfg_eth_ext_ip='10.0.10.83'
cfg_eth_ext_mk='255.255.0.0'
cfg_eth_ext_gw='10.0.0.1'
cfg_ptpd_interface='eth0'
cfg_packages="$cfg_packages u-boot ptpd i2c-tools am33xx-cm3/host linux dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind nfs-utils libconfig log4cpp fftw socat crypto++ netcat screen rlwrap boost bash"

View File

@@ -0,0 +1,8 @@
cfg_hostname='lauv-noptilus-2-aux-cmre'
cfg_storage='data0:ext4:/opt data1:ext4:/opt/lsts/dune/log'
cfg_eth_ext_ip='10.0.10.93'
cfg_eth_ext_mk='255.255.0.0'
cfg_eth_ext_gw='10.0.0.1'
cfg_ptpd_interface='eth0'
cfg_packages="$cfg_packages u-boot ptpd i2c-tools am33xx-cm3/host linux dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind nfs-utils libconfig log4cpp fftw socat crypto++ netcat screen rlwrap boost bash"

View File

@@ -0,0 +1,8 @@
cfg_hostname='lauv-noptilus-3-aux-cmre'
cfg_storage='data0:ext4:/opt data1:ext4:/opt/lsts/dune/log'
cfg_eth_ext_ip='10.0.10.103'
cfg_eth_ext_mk='255.255.0.0'
cfg_eth_ext_gw='10.0.0.1'
cfg_ptpd_interface='eth0'
cfg_packages="$cfg_packages u-boot ptpd i2c-tools am33xx-cm3/host linux dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind nfs-utils libconfig log4cpp fftw socat crypto++ netcat screen rlwrap boost bash"

View File

@@ -4,3 +4,4 @@ cfg_eth_ext_ip='10.0.10.103'
cfg_eth_ext_mk='255.255.0.0'
cfg_eth_ext_gw='10.0.0.1'
cfg_ptpd_interface='eth0'
cfg_packages="$cfg_packages bash"

File diff suppressed because it is too large Load Diff

View File

@@ -3,7 +3,7 @@ cfg_storage='data0:ext4:/opt'
cfg_modules=''
cfg_services0='network dropbear storage upgrade syslog ptpd'
cfg_services2='dune'
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind rpi-boot-firmware linux/rpi'
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind rpi-boot-firmware linux/rpi exiftool libusb'
cfg_target_linux_kernel='arch/arm/boot/zImage'
cfg_ptpd_interface='eth0'
cfg_eth_ext_mk='255.255.0.0'
@@ -11,7 +11,7 @@ cfg_eth_ext_gw='10.0.0.1'
cfg_terminal='tty1'
cfg_partitions=\
(
rpi-boot BOOT0 512B 32MiB
root root0 32MiB 544MiB
data data0 544MiB -1
rpi-boot BOOT0 512B 64MiB
root root0 64MiB 576MiB
data data0 576MiB -1
)

View File

@@ -1,7 +1,7 @@
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 libconfig log4cpp crypto++'
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind rpi-boot-firmware linux/rpi libconfig log4cpp crypto++ bash'
cfg_services0='network dropbear storage upgrade syslog ptpd'
cfg_modules="$cfg_modules ftdi_sio"
cfg_terminal='ttyAMA0'

View File

@@ -0,0 +1,4 @@
cfg_hostname='titan'
cfg_eth_ext_ip='10.0.20.150'
cfg_packages="$cfg_packages libjpeg-turbo v4l-utils uv4l libav boost bash"
cfg_modules="$cfg_modules ftdi_sio"