Compare commits

...

63 Commits

Author SHA1 Message Date
Ricardo Martins
90fe5f8cad kmod: fixed symlink. 2016-08-01 12:40:03 +01:00
Ricardo Martins
0217738383 linux: backported depmod fix. 2016-08-01 12:28:38 +01:00
Ricardo Martins
cba834239c ntp: updated URL. 2016-08-01 11:45:51 +01:00
Ricardo Martins
46fdf289d9 docker: added container for reproducible builds. 2016-08-01 11:20:25 +01:00
Ricardo Martins
715b888143 dosfstools: upgraded to v3.0.28. 2016-08-01 11:20:10 +01:00
Pedro Gonçalves
f93e5ff07e rsync: updated source URL. 2016-05-18 18:17:03 +01:00
Pedro Gonçalves
18488ce9d0 unzip: updated source URL. 2016-05-18 18:15:57 +01:00
Pedro Gonçalves
f447dc266e mpfr: upgraded to 3.1.4. 2016-05-18 18:14:50 +01:00
José Braga
1d22adea1a i2c-tools: updated source URL. 2015-09-29 16:57:35 +01:00
José Braga
e6214648d6 lctr-a6xx: lauv-noptilus-1 has a psimar unit. 2015-09-29 14:01:42 +01:00
LSTS
95e11fa702 Preparing glued-1.9.15. 2015-09-29 13:15:41 +01:00
José Braga
bc4980c1cc lctr-a6xx: updated lauv-xtreme-2. 2015-09-28 18:54:36 +01:00
José Braga
9a9a7d60fd lctr-a6xx: updated lauv-noptilus-1. 2015-09-28 18:54:26 +01:00
José Braga
1f39751c19 lctr-a9xx: added manta-22. 2015-09-28 16:05:02 +01:00
José Braga
091db874ab mpfr: upgraded to 3.1.3. 2015-09-28 16:04:08 +01:00
Jose Pinto
f5bfe76a82 Bumped version to 1.9.14. 2015-06-30 07:20:14 +01:00
José Braga
88edd69395 lctr-a9xx: Added configuration for manta-21. 2015-06-29 18:24:33 +01:00
Jose Pinto
c3a875aaad pkg-config: Added flag to use bundled libraries. 2015-06-26 12:03:50 +01:00
Jose Pinto
3d61f41f13 Added configuration files for lauv-xplore-2. 2015-06-23 15:35:07 +01:00
Jose Pinto
a39c3c4c67 Config: Added system configuration for lauv-xplore-2-aux. 2015-06-23 15:32:32 +01:00
Jose Pinto
f09082179e Boost: Library updated to version 1.55. 2015-06-23 15:30:59 +01:00
Ricardo Martins
0c5f6ca811 lctr-a9xx: enabled dns server. 2015-06-15 14:42:12 +01:00
Renato Caldas
d358335097 otcl: added tk to the package dependencies 2015-06-07 19:10:34 +01:00
Ricardo Martins
f7ebc02923 e2fsprogs: upgraded to v1.42.13. 2015-06-03 14:12:09 +01:00
Ricardo Martins
bf874138ac pkg-config: upgraded to v0.28. 2015-06-03 14:10:11 +01:00
Ricardo Martins
06288b9fed lctr-a9xx: removed mantas managed by OMST. 2015-05-21 16:13:51 +01:00
Ricardo Martins
283d09a73f lctr-a9xx: re-added manta-15. 2015-05-21 16:10:16 +01:00
Ricardo Martins
b190ddad04 lctr-a9xx: removed manta-15. 2015-05-21 16:04:28 +01:00
Renato Caldas
0fac03e798 ntp: updated source URL. 2015-04-28 17:30:11 +01:00
Ricardo Martins
3ee9754b26 lctr-a6xx: fixed variable name. 2015-04-13 14:37:12 +01:00
Renato Caldas
8e4a5e8fd6 make: create symlink gmake->make. 2015-04-07 14:15:45 +01:00
Ricardo Martins
97d1c610c8 lctr-a9xx: added DHCP server config. 2015-03-26 17:28:47 +00:00
Ricardo Martins
e717d722ab dnsmasq: install service script. 2015-03-26 17:28:31 +00:00
Ricardo Martins
856bd832ce filesystem: create /var/lib. 2015-03-26 17:28:12 +00:00
Ricardo Martins
fc5685fa40 lctr-a6xx: added patch to trigger UART interrupts when FIFO has 16 bytes. 2015-03-19 14:52:40 +00:00
Ricardo Martins
341d6676ad lctr-a8xx: small fixes for MMC boot. 2015-03-18 12:07:50 +00:00
Ricardo Martins
07f82e04f7 nfs-utils: do not install files if fs folder does not exist. 2015-03-16 12:08:43 +00:00
Ricardo Martins
b3cd04f1e4 lctr-a6xx: added storage client script. 2015-03-16 11:21:15 +00:00
Ricardo Martins
b3b2a4edfd nfs-utils: removed obsolete scripts. 2015-03-16 11:18:13 +00:00
Ricardo Martins
eff7f5927c iana-etc: backported package. 2015-03-16 11:17:08 +00:00
Ricardo Martins
2c9888096c nfs-utils: added nfs-client script. 2015-03-02 16:58:29 +00:00
Ricardo Martins
ec1bf09d1f Merge branch 'release/glued-1.9.x' of github.com:LSTS/glued into release/glued-1.9.x 2015-03-02 16:53:56 +00:00
Ricardo Martins
09f5463715 lctr-a6xx: added NFS client support. 2015-03-02 16:51:32 +00:00
Ricardo Martins
ac520a9c1b rpcbind: backported library. 2015-03-02 16:51:14 +00:00
Ricardo Martins
4d32c16079 nfs-utils: backported library. 2015-03-02 16:51:05 +00:00
Ricardo Martins
e9c2f389fd libtirpc: backported library. 2015-03-02 16:50:58 +00:00
José Braga
b6c34a1172 lctr-a9xx: added manta-20, manta-21, manta-22 and manta-23. 2015-02-26 16:17:48 +00:00
José Braga
66c1da6d25 lctr-a9xx: added manta-18 and manta-19. 2015-02-26 16:02:06 +00:00
Ricardo Martins
71775a3734 ppp: changed URL. 2015-02-17 13:09:00 +00:00
Ricardo Martins
8439ec05e8 lctr-a6xx: made PPS builtin. 2015-02-16 16:36:23 +00:00
Ricardo Martins
1368c66223 socat: updated URL. 2015-02-11 18:46:50 +00:00
Ricardo Martins
3e069e7027 lctr-b2xx: removed absolete system. 2015-01-24 13:30:59 +00:00
Ricardo Martins
11fe6069c1 Removed DTN. 2015-01-16 08:23:56 +00:00
Ricardo Martins
58b5f37f30 pktoolchain: added prefix to base folder. 2014-12-14 21:25:18 +00:00
Ricardo Martins
ae92cad20f lctr-a6xx: updated lauv-noptilus-2 configuration with ESCC config. 2014-12-12 16:00:57 +00:00
Ricardo Martins
7bc39c42cd zip: update URL. 2014-12-09 21:29:41 +00:00
Ricardo Martins
d6d31cc585 lctr-a6xx: updated lauv-noptilus-3 configuration with ESCC config. 2014-12-09 16:30:18 +00:00
Ricardo Martins
4809ef5537 lctr-a9xx: added x8-03. 2014-11-24 16:43:39 +00:00
Ricardo Martins
12321bd4bc lctr-a9xx: added x8-03. 2014-11-24 16:43:32 +00:00
Ricardo Martins
ba83c7a108 lctr-a9xx: added manta-17. 2014-11-18 17:37:01 +00:00
Ricardo Martins
9b0c150f47 lctr-a9xx: added manta-15 and manta-16. 2014-11-18 17:23:17 +00:00
Ricardo Martins
e2e006cc33 Preparing glued-1.9.13. 2014-11-12 15:52:05 +00:00
Ricardo Martins
4cbc20eda6 lctr-a6xx: added lauv-oceaneco-1 and lauv-oceaneco-2. 2014-11-12 15:51:50 +00:00
57 changed files with 542 additions and 227 deletions

37
docker/Dockerfile Normal file
View File

@@ -0,0 +1,37 @@
###########################################################################
# GLUED: GNU/Linux Uniform Environment Distribution #
# Copyright (C) 2016 OceanScan - Marine Systems & Technology, Lda. #
###########################################################################
# This program is free software; you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation; either version 2 of the License, or (at #
# your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, but #
# WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
# General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program; if not, write to the Free Software #
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
# 02110-1301 USA. #
###########################################################################
# Author: Ricardo Martins #
###########################################################################
FROM debian:8
MAINTAINER Ricardo Martins <rasm@oceanscan-mst.com>
ENV DEBIAN_FRONTEND noninteractive
# Update distro.
RUN apt-get update -y
RUN apt-get dist-upgrade -y
RUN apt-get install -y wget
RUN apt-get install -y bzip2
RUN apt-get install -y git
RUN apt-get install -y g++-multilib
RUN apt-get install -y cmake
RUN apt-get install -y file

31
docker/Makefile Normal file
View File

@@ -0,0 +1,31 @@
###########################################################################
# GLUED: GNU/Linux Uniform Environment Distribution #
# Copyright (C) 2016 OceanScan - Marine Systems & Technology, Lda. #
###########################################################################
# This program is free software; you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation; either version 2 of the License, or (at #
# your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, but #
# WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
# General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program; if not, write to the Free Software #
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
# 02110-1301 USA. #
###########################################################################
# Author: Ricardo Martins #
###########################################################################
TAG := glued
VERSION := 2016.05.0
VOLUME := $(CURDIR)/..
all:
docker build -t $(TAG):$(VERSION) .
shell:
docker run -w $(VOLUME) -i -a stdin -a stdout -v $(VOLUME):$(VOLUME) -t $(TAG):$(VERSION)

View File

@@ -21,7 +21,7 @@
###########################################################################
# Config: GLUED version.
cfg_glued_version='1.9.12'
cfg_glued_version='1.9.15'
# Config: GLUED vendor.
cfg_glued_vendor='lsts'

View File

@@ -26,5 +26,6 @@ build()
target_install()
{
$cmd_target_strip src/dnsmasq -o "$cfg_dir_rootfs/usr/sbin/dnsmasq"
$cmd_target_strip src/dnsmasq -o "$cfg_dir_rootfs/usr/sbin/dnsmasq" &&
tar -C "$cfg_package_spec_dir/fs" -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
}

View File

@@ -0,0 +1,10 @@
start()
{
mkdir -p /var/lib/misc
dnsmasq
}
stop()
{
killall dnsmasq
}

View File

@@ -1,16 +1,16 @@
version=\
(
'3.0.20'
'3.0.28'
)
url=\
(
"http://daniel-baumann.ch/files/software/dosfstools/dosfstools-$version.tar.gz"
"https://github.com/dosfstools/dosfstools/releases/download/v$version/dosfstools-$version.tar.gz"
)
md5=\
(
'7f1c1afd4ae4622e07b24ec0ddfc4184'
'64e3b3a59b51d2a97d7ac38b23a124bb'
)
maintainer=\

View File

@@ -1,80 +0,0 @@
version=\
(
'2.9.0'
)
url=\
(
"http://downloads.sourceforge.net/dtn/dtn-$version.tgz"
)
md5=\
(
'adfc25b561c1eeda30d9b68a6b088bd8'
)
maintainer=\
(
'Ricardo Martins <rasm@fe.up.pt>'
)
requires=\
(
'db/default'
'tcl/default'
'xerces-c/default'
'oasys/default'
)
configure()
{
"../dtn-$version/configure" \
--prefix="/usr" \
--sysconfdir="/etc/dtn" \
--target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \
--build="$cfg_host_canonical" \
--with-oasys="$cfg_dir_toolchain_sysroot/usr" \
--enable-ecl \
--without-python \
--disable-python
}
build()
{
$cmd_make -j1 -C servlib &&
$cmd_make -j1 -C applib libdtnapi.a &&
$cmd_make -j1 -C applib libdtnapi++.a &&
$cmd_make -j1 -C applib libdtnapisrv.a &&
$cmd_make -j1 -C daemon &&
$cmd_make -j1 -C apps
}
host_install()
{
cp -a servlib/libdtnserv.a "$cfg_dir_toolchain_sysroot/usr/lib" &&
cp -a applib/libdtnapi++.a "$cfg_dir_toolchain_sysroot/usr/lib" &&
cp -a applib/libdtnapi++-$version.a "$cfg_dir_toolchain_sysroot/usr/lib" &&
cp -a applib/libdtnapi-$version.a "$cfg_dir_toolchain_sysroot/usr/lib" &&
cp -a applib/libdtnapi.a "$cfg_dir_toolchain_sysroot/usr/lib" &&
cp -a applib/libdtnapisrv.a "$cfg_dir_toolchain_sysroot/usr/lib" &&
mkdir -p "$cfg_dir_toolchain_sysroot/usr/include/dtn" &&
cp -a applib/dtn_ipc.h "$cfg_dir_toolchain_sysroot/usr/include/dtn" &&
cp -a applib/dtn_errno.h "$cfg_dir_toolchain_sysroot/usr/include/dtn" &&
cp -a applib/sdnv-c.h "$cfg_dir_toolchain_sysroot/usr/include/dtn" &&
cp -a applib/dtn_api.h "$cfg_dir_toolchain_sysroot/usr/include/dtn" &&
cp -a applib/dtn_types.h "$cfg_dir_toolchain_sysroot/usr/include/dtn"
}
target_install()
{
$cmd_target_strip apps/dtnsend/dtnsend -o "$cfg_dir_rootfs/usr/bin/dtnsend" &&
$cmd_target_strip apps/dtnrecv/dtnrecv -o "$cfg_dir_rootfs/usr/bin/dtnrecv" &&
$cmd_target_strip apps/dtncp/dtncp -o "$cfg_dir_rootfs/usr/bin/dtncp" &&
$cmd_target_strip apps/dtnping/dtnping -o "$cfg_dir_rootfs/usr/bin/dtnping" &&
$cmd_target_strip daemon/dtnd -o "$cfg_dir_rootfs/usr/bin/dtnd" &&
$cmd_mkdir "$cfg_dir_rootfs/etc/dtn" "$cfg_dir_rootfs/usr/share/dtn" &&
cp servlib/conv_layers/clevent.xsd "$cfg_dir_rootfs/usr/share/dtn" &&
tar -C "$cfg_package_spec_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
}

View File

@@ -1,29 +0,0 @@
# Configuration parameters
# cfg_dtnd_config: DTN Daemon configuration file.
# cfg_dtnd_name: DTN node name.
start()
{
export DTN_NODE="$cfg_dtnd_name"
db="/opt/lsts/dtn/var/$DTN_NODE/db"
if [ -f "$cfg_dtnd_config" ]; then
mkdir -p /opt/lsts/dtn
if ! [ -d "$db" ]; then
mkdir -p "$db"
/usr/bin/dtnd \
-c "$cfg_dtnd_config" \
--init-db
fi
/usr/bin/dtnd -d \
-c "$cfg_dtnd_config" \
-o /opt/lsts/dtn/log.txt
fi
}
stop()
{
killall dtnd > /dev/null 2>&1
}

View File

@@ -1,6 +1,6 @@
version=\
(
'1.41.9'
'1.42.13'
)
url=\
@@ -10,7 +10,7 @@ url=\
md5=\
(
'52f60a9e19a02f142f5546f1b5681927'
'bc759fc62666786f5436e2075beb3265'
)
configure()

View File

@@ -1,13 +0,0 @@
start()
{
/opt/lsts/dune/bin/dune-gsmux \
/dev/ttyO1 \
/opt/lsts/dune/log \
< /dev/null \
>> /opt/lsts/dune/log/gsmux.log 2>&1 &
}
stop()
{
killall dune-gsmux
}

View File

@@ -23,6 +23,7 @@ target_install()
ln -fs ../tmp "$cfg_dir_rootfs"/var/run &&
ln -fs ../tmp "$cfg_dir_rootfs"/var/log &&
ln -fs ../tmp "$cfg_dir_rootfs"/var/lock &&
ln -fs ../tmp "$cfg_dir_rootfs"/var/lib &&
ln -fs /sbin/init "$cfg_dir_rootfs"/init &&
ln -fs /tmp/resolv.conf "$cfg_dir_rootfs"/etc/resolv.conf &&
ln -fs /proc/self/mounts "$cfg_dir_rootfs"/etc/mtab &&

View File

@@ -5,7 +5,7 @@ version=\
url=\
(
"http://dl.lm-sensors.org/i2c-tools/releases/i2c-tools-$version.tar.bz2"
"http://www.lsts.pt/glued/i2c-tools-$version.tar.bz2"
)
md5=\

View File

@@ -0,0 +1,29 @@
version=\
(
'2.30'
)
url=\
(
"http://sethwklein.net/iana-etc-$version.tar.bz2"
)
md5=\
(
'3ba3afb1d1b261383d247f46cb135ee8'
)
maintainer=\
(
'Ricardo Martins <rasm@fe.up.pt>'
)
build()
{
$cmd_make STRIP=yes
}
target_install()
{
$cmd_make DESTDIR="$cfg_dir_rootfs" install
}

View File

@@ -32,5 +32,5 @@ build()
host_install()
{
$cmd_make install &&
ln -fs kmod "$cfg_dir_toolchain/sbin/depmod"
ln -fs ../bin/kmod "$cfg_dir_toolchain/sbin/depmod"
}

View File

@@ -0,0 +1,56 @@
version=\
(
'0.2.5'
)
url=\
(
"http://downloads.sourceforge.net/libtirpc/$version/libtirpc-$version.tar.bz2"
)
md5=\
(
'8cd41a5ef5a9b50d0fb6abb98af15368'
)
maintainer=\
(
'Ricardo Martins <rasm@fe.up.pt>'
)
configure()
{
"../libtirpc-$version/configure" \
--target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \
--build="$cfg_host_canonical" \
--prefix="$cfg_dir_toolchain_sysroot/usr" \
--disable-gssapi \
--disable-ipv6 \
--disable-static \
--enable-shared
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
}
target_install()
{
$cmd_mkdir "$cfg_dir_rootfs/etc"
$cmd_cp "doc/netconfig" "$cfg_dir_rootfs/etc/netconfig"
for f in "$cfg_dir_toolchain_sysroot/usr/lib/"libtirpc*so*; do
if [ -L "$f" ]; then
cp -vd "$f" "$cfg_dir_rootfs/lib"
else
$cmd_target_strip -v "$f" -o "$cfg_dir_rootfs/lib/$(basename "$f")"
fi
done
}

View File

@@ -36,17 +36,20 @@ build()
$cmd_make \
CROSS_COMPILE=$cfg_target_canonical- \
ARCH=$cfg_target_linux &&
ARCH=$cfg_target_linux || return 1
$cmd_make \
CROSS_COMPILE=$cfg_target_canonical- \
ARCH=$cfg_target_linux \
modules &&
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
modules || return 1
if [ "$(basename $cfg_target_linux_kernel)" = 'uImage' ]; then
$cmd_make \
CROSS_COMPILE=$cfg_target_canonical- \
ARCH=$cfg_target_linux \
uImage
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
uImage || return 1
fi
if [ -n "${cfg_target_linux_size}" ]; then
@@ -82,11 +85,15 @@ target_install()
CROSS_COMPILE="$cfg_target_canonical-" \
ARCH="$cfg_target_linux" \
INSTALL_MOD_PATH="$cfg_dir_rootfs/usr" \
KBUILD_VERBOSE=1 \
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
modules_install
$cmd_make \
CROSS_COMPILE="$cfg_target_canonical-" \
ARCH="$cfg_target_linux" \
INSTALL_MOD_PATH="$cfg_dir_rootfs/usr" \
KBUILD_VERBOSE=1 \
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
firmware_install
}

View File

@@ -34,4 +34,5 @@ build()
host_install()
{
$cmd_make install
cd "$cfg_dir_toolchain/bin" && ln -s make gmake
}

View File

@@ -1,6 +1,6 @@
version=\
(
'3.1.2'
'3.1.4'
)
url=\
@@ -10,7 +10,7 @@ url=\
md5=\
(
"ee2c3ac63bf0c2359bf08fc3ee094c19"
"b8a2f6b0e68bef46e53da2ac439e1cf4"
)
maintainer=\

View File

@@ -0,0 +1,58 @@
version=\
(
'1.3.1'
)
url=\
(
"http://downloads.sourceforge.net/nfs/$version/nfs-utils-$version.tar.bz2"
)
md5=\
(
'97f157f954edb6d4d4385a0c5986f36f'
)
maintainer=\
(
'Ricardo Martins <rasm@fe.up.pt>'
)
requires=\
(
'libtirpc/default'
)
configure()
{
"../nfs-utils-$version/configure" \
--target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \
--build="$cfg_host_canonical" \
--prefix="$cfg_dir_rootfs/usr" \
--disable-gss \
--disable-svcgss \
--disable-ipv6 \
--disable-tirpc \
--disable-uuid \
--disable-nfsv4 \
--without-tcp-wrappers
}
build()
{
$cmd_make
}
target_install()
{
$cmd_target_strip -v "utils/mount/mount.nfs" -o "$cfg_dir_rootfs/usr/bin/mount.nfs" &&
ln -fs mount.nfs "$cfg_dir_rootfs/usr/bin/unmount.nfs" &&
$cmd_target_strip -v "utils/exportfs/exportfs" -o "$cfg_dir_rootfs/usr/bin/exportfs" &&
$cmd_target_strip -v "utils/mountd/mountd" -o "$cfg_dir_rootfs/usr/bin/rpc.mountd" &&
$cmd_target_strip -v "utils/nfsd/nfsd" -o "$cfg_dir_rootfs/usr/bin/rpc.nfsd" &&
$cmd_target_strip -v "utils/statd/statd" -o "$cfg_dir_rootfs/usr/bin/rpc.statd" &&
if [ -d "$cfg_package_spec_dir/fs" ]; then
tar -C "$cfg_package_spec_dir/fs" -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
fi
}

View File

@@ -5,7 +5,7 @@ version=\
url=\
(
"ftp://mirror.ovh.net/gentoo-distfiles/distfiles/ntp-$version.tar.gz"
"https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-$version.tar.gz"
)
md5=\

View File

@@ -1,50 +0,0 @@
version=\
(
'1.6.0'
)
url=\
(
"http://downloads.sourceforge.net/dtn/oasys-$version.tgz"
)
md5=\
(
'fc52baea5fd1db8bceb3031356c7acca'
)
maintainer=\
(
'Ricardo Martins <rasm@fe.up.pt>'
)
configure()
{
"../oasys-$version/configure" \
--prefix="$cfg_dir_toolchain_sysroot/usr" \
--with-dbver=4.8 \
--disable-static \
--target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \
--build="$cfg_host_canonical" \
--with-tcl="$cfg_dir_toolchain_sysroot/usr" \
--with-xerces-c="$cfg_dir_toolchain_sysroot/usr"
}
build()
{
$cmd_make -j1
}
host_install()
{
$cmd_make -j1 install
}
target_install()
{
cp -a "$cfg_dir_toolchain_sysroot/usr/lib/"liboasys* $cfg_dir_rootfs/lib &&
for f in "$cfg_dir_rootfs/lib/"liboasys*so; do
$cmd_target_strip "$f"
done
}

View File

@@ -21,6 +21,7 @@ maintainer=\
requires=\
(
'tcl/default'
'tk/default'
'xorg-libx11/default'
'xorg-libxt/default'
)

View File

@@ -1,6 +1,6 @@
version=\
(
"0.25"
"0.28"
)
url=\
@@ -10,7 +10,7 @@ url=\
md5=\
(
"a3270bab3f4b69b7dc6dbdacbcae9745"
"aa3c86e67551adc3ac865160e34a2a0d"
)
maintainer=\
@@ -23,7 +23,8 @@ configure()
./configure \
--prefix="${cfg_dir_toolchain}" \
--disable-shared \
--enable-static
--enable-static \
--with-internal-glib
}
build()

View File

@@ -5,7 +5,7 @@ version=\
url=\
(
"ftp://ftp.samba.org/pub/ppp/ppp-$version.tar.gz"
"https://ftp.samba.org/pub/ppp/ppp-$version.tar.gz"
)
md5=\

View File

@@ -0,0 +1,62 @@
version=\
(
'0.2.2'
)
url=\
(
"http://downloads.sourceforge.net/rpcbind/rpcbind-$version.tar.bz2"
)
md5=\
(
'8acf839bfef2364a05fbd6be5f8edf9a'
)
maintainer=\
(
'Ricardo Martins <rasm@fe.up.pt>'
)
requires=\
(
'libtirpc/default'
)
post_unpack()
{
sed -i "/servname/s:rpcbind:sunrpc:" src/rpcbind.c &&
sed -i "/error = getaddrinfo/s:rpcbind:sunrpc:" src/rpcinfo.c
}
configure()
{
export PKG_CONFIG_PATH="$cfg_dir_toolchain_sysroot/usr/lib/pkgconfig"
"../rpcbind-$version/configure" \
--target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \
--build="$cfg_host_canonical" \
--prefix="$cfg_dir_toolchain_sysroot/usr" \
--with-rpcuser=root \
--without-systemdsystemunitdir
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
}
target_install()
{
$cmd_mkdir "$cfg_dir_rootfs/usr/bin"
for f in rpcbind rpcinfo; do
$cmd_target_strip "$f" -o "$cfg_dir_rootfs/usr/bin/$f"
done
}

View File

@@ -5,7 +5,7 @@ version=\
url=\
(
"http://www.samba.org/ftp/rsync/rsync-$version.tar.gz"
"https://download.samba.org/pub/rsync/src/rsync-$version.tar.gz"
)
md5=\

View File

@@ -5,7 +5,7 @@ version=\
url=\
(
"http://www.dest-unreach.org/socat/download/socat-$version.tar.bz2"
"http://www.lsts.pt/glued/socat-$version.tar.bz2"
)
md5=\

View File

@@ -5,7 +5,7 @@ version=\
url=\
(
"ftp://ftp.info-zip.org/pub/infozip/src/unzip60.tgz"
"http://downloads.sourceforge.net/infozip/unzip60.tar.gz"
)
md5=\

View File

@@ -5,7 +5,7 @@ version=\
url=\
(
"ftp://ftp.info-zip.org/pub/infozip/src/zip30.tgz"
"http://downloads.sourceforge.net/infozip/Zip%203.x%20%28latest%29/3.0/zip30.tar.gz"
)
md5=\

View File

@@ -27,10 +27,13 @@ fi
source "$1"
toolchain_prefix="glued-$cfg_glued_version-$cfg_sys_family-toolchain-$cfg_host_canonical-$cfg_target_canonical"
tar \
-v \
-j \
-c \
--transform="s,^\./,$toolchain_prefix/," \
-C "$cfg_dir_toolchain" \
-f "$cfg_toolchain_tar" \
.

93
rules/boost/default.bash Normal file
View File

@@ -0,0 +1,93 @@
version=\
(
"1.55.0"
)
vendor_version="$(echo $version | tr . _)"
url=\
(
"http://downloads.sourceforge.net/project/boost/boost/$version/boost_$vendor_version.tar.bz2"
)
maintainer=\
(
'Jose Pinto <zepinto@fe.up.pt>'
)
md5=\
(
"d6eef4b4cacb2183f2bf265a5a03a354"
)
requires=\
(
'bzip2/default'
)
post_unpack()
{
patches=$(ls "$pkg_dir/patches-${version}/"*.patch)
if [ -n "$patches" ]; then
cd "../boost_$vendor_version" && cat $patches | patch -p1
fi
}
configure()
{
cd "../boost_$vendor_version" &&
./bootstrap.sh \
--with-icu="$cfg_dir_toolchain_sysroot/usr"
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 "" >> user-config.jam
}
build()
{
cd "../boost_$vendor_version" &&
./bjam -d+2 \
toolset=gcc \
variant=release \
link=shared \
threading=multi \
runtime-link=shared \
-sICU_PATH="$cfg_dir_toolchain_sysroot/usr" \
--user-config=user-config.jam \
--prefix="${cfg_dir_toolchain_sysroot}/usr" \
--without-python \
--layout=tagged
}
host_install()
{
cd "../boost_$vendor_version" &&
./bjam -d+2 \
toolset=gcc \
variant=release \
link=shared \
threading=multi \
runtime-link=shared \
-sICU_PATH="$cfg_dir_toolchain_sysroot/usr" \
--user-config=user-config.jam \
--prefix="${cfg_dir_toolchain_sysroot}/usr" \
--without-python \
--layout=tagged \
install
mkdir -p "${cfg_dir_toolchain_sysroot}/usr/share"
cp -rvd "../boost_$vendor_version/boost" \
"${cfg_dir_toolchain_sysroot}/usr/share"
}
target_install()
{
base="$cfg_dir_toolchain_sysroot/usr/lib"
for f in "$base/libboost_"*.so*; do
dst="$cfg_dir_rootfs/lib/$(basename "$f")"
cp -v -d "$f" "$dst" &&
$cmd_target_strip "$dst"
done
}

View File

@@ -0,0 +1,10 @@
cfg_hostname='lauv-xplore-2-aux'
cfg_eth_ext_ip='10.0.10.183'
cfg_eth_ext_mk='255.255.0.0'
cfg_eth_ext_gw='10.0.0.1'
cfg_ptpd_interface='eth0'
cfg_services0='network dropbear storage upgrade syslog ptpd'
cfg_services1=''
cfg_services2='trex'
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind nfs-utils rpi-boot-firmware linux/rpi libantlr3c boost europa'

View File

@@ -2,9 +2,8 @@ cfg_hostname='lauv-simulator-1'
cfg_eth_ext_ip='10.0.10.55'
cfg_services0='dropbear network storage upgrade escc syslog ptpd setserial'
cfg_services1=''
cfg_packages='zlib dropbear rsync busybox e2fsprogs socat linux escc syslinux syslinux/host ptpd ntp util-linux/ldattach uswitch pciutils apache-ant/host bzip2 libantlr3c boost europa dtn'
cfg_packages='zlib dropbear rsync busybox e2fsprogs socat linux escc syslinux syslinux/host ptpd ntp util-linux/ldattach uswitch pciutils apache-ant/host bzip2 libantlr3c boost europa'
cfg_target_linux_kernel='arch/x86/boot/bzImage'
cfg_ptpd_master='true'
cfg_ptpd_interface='eth0'
cfg_eth_prv_ip='192.168.0.1'

View File

@@ -1061,15 +1061,15 @@ CONFIG_SCx200_ACB=y
#
# PPS support
#
CONFIG_PPS=m
CONFIG_PPS_DEBUG=y
CONFIG_PPS=y
# CONFIG_PPS_DEBUG is not set
CONFIG_NTP_PPS=y
#
# PPS clients support
#
# CONFIG_PPS_CLIENT_KTIMER is not set
CONFIG_PPS_CLIENT_LDISC=m
CONFIG_PPS_CLIENT_LDISC=y
# CONFIG_PPS_CLIENT_GPIO is not set
#
@@ -1670,7 +1670,24 @@ CONFIG_TMPFS=y
# CONFIG_HUGETLB_PAGE is not set
# CONFIG_CONFIGFS_FS is not set
# CONFIG_MISC_FILESYSTEMS is not set
# CONFIG_NETWORK_FILESYSTEMS is not set
CONFIG_NETWORK_FILESYSTEMS=y
CONFIG_NFS_FS=y
# CONFIG_NFS_V2 is not set
CONFIG_NFS_V3=y
# CONFIG_NFS_V3_ACL is not set
# CONFIG_NFS_V4 is not set
# CONFIG_NFSD is not set
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
CONFIG_NFS_COMMON=y
CONFIG_SUNRPC=y
# CONFIG_RPCSEC_GSS_KRB5 is not set
# CONFIG_SUNRPC_DEBUG is not set
# CONFIG_CEPH_FS is not set
# CONFIG_CIFS is not set
# CONFIG_NCP_FS is not set
# CONFIG_CODA_FS is not set
# CONFIG_AFS_FS is not set
CONFIG_NLS=y
CONFIG_NLS_DEFAULT="utf8"
# CONFIG_NLS_CODEPAGE_437 is not set

View File

@@ -0,0 +1,45 @@
mount_path()
{
rpath="$cfg_lauv_storage_host:$1"
lpath="$1"
mkdir -p "$lpath"
mount -t nfs -o wsize=32768 "$rpath" "$lpath"
if [ $? -eq 0 ]; then
echo "* Mounted '$rpath' in '$lpath'"
return 0
fi
return 1
}
start()
{
/usr/bin/rpcbind
if [ $? -ne 0 ]; then
echo "ERROR: failed to start rpcbind."
return 1
fi
for path in $cfg_lauv_storage_paths; do
n=0; while [ $n -lt "$cfg_lauv_storage_timeout" ]; do
mount_path "$path"
if [ $? -eq 0 ]; then
break
fi
let n++
sleep 1
done
done
}
stop()
{
killall rpcbind
for path in $cfg_lauv_storage_paths; do
umount "$path"
done
}

View File

@@ -1,4 +1,3 @@
cfg_hostname='lauv-noptilus-1'
cfg_eth_ext_ip='10.0.10.60'
cfg_arp_table='192.168.0.2|02:49:58:00:03:26 192.168.0.5|02:49:58:00:02:71'
cfg_dune_i18n='pt_PT'
cfg_escc_script='/etc/escc/hg1700-psimar.sh'

View File

@@ -1,3 +1,3 @@
cfg_hostname='lauv-noptilus-2'
cfg_eth_ext_ip='10.0.10.90'
cfg_arp_table=''
cfg_escc_script='/etc/escc/hg1700-psimar.sh'

View File

@@ -1,3 +1,3 @@
cfg_hostname='lauv-noptilus-3'
cfg_eth_ext_ip='10.0.10.100'
cfg_arp_table='192.168.0.5|02:49:58:00:03:2a'
cfg_escc_script='/etc/escc/hg1700-psimar.sh'

View File

@@ -0,0 +1,3 @@
cfg_hostname='lauv-oceaneco-1'
cfg_eth_ext_ip='10.0.10.160'
cfg_dune_i18n='C'

View File

@@ -0,0 +1,3 @@
cfg_hostname='lauv-oceaneco-2'
cfg_eth_ext_ip='10.0.10.170'
cfg_dune_i18n='C'

View File

@@ -0,0 +1,2 @@
cfg_hostname='lauv-xplore-2'
cfg_eth_ext_ip='10.0.10.180'

View File

@@ -1,4 +1,2 @@
cfg_hostname='lauv-xtreme-2'
cfg_eth_ext_ip='10.0.10.50'
cfg_arp_table='192.168.0.5|02:49:58:00:02:d3'
cfg_dune_i18n='pt_PT'

View File

@@ -0,0 +1,13 @@
diff -Nru linux-3.5.4/drivers/tty/serial/8250/8250.c linux-3.5.4.rasm/drivers/tty/serial/8250/8250.c
--- linux-3.5.4/drivers/tty/serial/8250/8250.c 2012-09-14 23:28:08.000000000 +0100
+++ linux-3.5.4.rasm/drivers/tty/serial/8250/8250.c 2015-03-19 14:49:54.026244446 +0000
@@ -207,8 +207,7 @@
.name = "ST16654",
.fifo_size = 64,
.tx_loadsz = 32,
- .fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_01 |
- UART_FCR_T_TRIG_10,
+ .fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_01,
.flags = UART_CAP_FIFO | UART_CAP_EFR | UART_CAP_SLEEP,
},
[PORT_16850] = {

View File

@@ -1219,10 +1219,11 @@ CONFIG_MMC_BLOCK_BOUNCE=y
# MMC/SD/SDIO Host Controller Drivers
#
CONFIG_MMC_SDHCI=y
# CONFIG_MMC_SDHCI_PCI is not set
# CONFIG_MMC_SDHCI_PLTFM is not set
CONFIG_MMC_WBSD=y
CONFIG_MMC_TIFM_SD=y
CONFIG_MMC_SDHCI_PCI=y
# CONFIG_MMC_RICOH_MMC is not set
CONFIG_MMC_SDHCI_PLTFM=y
# CONFIG_MMC_WBSD is not set
# CONFIG_MMC_TIFM_SD is not set
# CONFIG_MMC_CB710 is not set
# CONFIG_MMC_VIA_SDMMC is not set
# CONFIG_MMC_VUB300 is not set

View File

@@ -1,3 +1,4 @@
cfg_hostname="kontrol-pitx-sp"
cfg_eth_ext_ip="192.168.0.25"
cfg_kernel_boot_dev='b301'
cfg_kernel_boot_dev='/dev/mmcblk0p1'
cfg_kernel_extra_args='noacpi'

View File

@@ -8,7 +8,6 @@ cfg_packages='u-boot dropbear rsync busybox linux uswitch ppp iptables socat bri
cfg_target_linux_kernel='arch/arm/boot/uImage'
cfg_terminal='ttyO2'
cfg_ntpd_config='/etc/ntp/server.cfg'
cfg_dtnd_config='/opt/lsts/dtn/etc/dtn.conf'
cfg_eth_ext_mk='255.255.0.0'
cfg_eth_ext_gw='10.0.0.1'
cfg_eth_ext_soft_mac='true'

View File

@@ -0,0 +1,3 @@
port=53
interface=eth0
dhcp-range=10.0.200.1,10.0.200.50,12h

View File

@@ -0,0 +1,2 @@
cfg_hostname='manta-15'
cfg_eth_ext_ip='10.0.30.15'

View File

@@ -0,0 +1,2 @@
cfg_hostname='manta-16'
cfg_eth_ext_ip='10.0.30.16'

View File

@@ -0,0 +1,2 @@
cfg_hostname='manta-18'
cfg_eth_ext_ip='10.0.30.18'

View File

@@ -0,0 +1,2 @@
cfg_hostname='manta-19'
cfg_eth_ext_ip='10.0.30.19'

View File

@@ -0,0 +1,2 @@
cfg_hostname='manta-21'
cfg_eth_ext_ip='10.0.30.21'

View File

@@ -0,0 +1,2 @@
cfg_hostname='manta-22'
cfg_eth_ext_ip='10.0.30.22'

View File

@@ -0,0 +1,2 @@
cfg_hostname='manta-23'
cfg_eth_ext_ip='10.0.30.23'

View File

@@ -0,0 +1,3 @@
cfg_hostname='x8-03'
cfg_eth_ext_ip='10.0.20.110'
cfg_services1='ntpd'

View File

@@ -1,7 +0,0 @@
cfg_hostname='gsmux'
cfg_storage='data0:ext4:/opt'
cfg_eth_ext_ip='10.0.200.11'
cfg_eth_ext_mk='255.255.0.0'
cfg_eth_ext_gw='10.0.0.1'
cfg_services2='gsmux'
cfg_ptpd_interface='eth0'

View File

@@ -1,7 +0,0 @@
cfg_hostname='x8-03'
cfg_storage='data0:ext4:/opt'
cfg_eth_ext_ip='10.0.20.110'
cfg_eth_ext_mk='255.255.0.0'
cfg_eth_ext_gw='10.0.0.1'
cfg_ptpd_interface='eth0'
cfg_packages='dropbear rsync busybox e2fsprogs ptpd i2c-tools linux/am335x-evm ntp'