Compare commits
4 Commits
feature/ar
...
bugfix/vlc
Author | SHA1 | Date | |
---|---|---|---|
|
0064fc968f | ||
|
77e1fc14e3 | ||
|
b4c331ca14 | ||
|
5b84d7069a |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -10,5 +10,3 @@
|
|||||||
/lauv-aux-rpi
|
/lauv-aux-rpi
|
||||||
/ntnu-b2xx
|
/ntnu-b2xx
|
||||||
/stamp9g20
|
/stamp9g20
|
||||||
/lctr-rpi
|
|
||||||
/lauv-atom
|
|
@@ -2,5 +2,5 @@ cfg_target_canonical="armv11-$cfg_glued_vendor-linux-gnueabi"
|
|||||||
cfg_target_linux='arm'
|
cfg_target_linux='arm'
|
||||||
cfg_target_uboot_arch='arm'
|
cfg_target_uboot_arch='arm'
|
||||||
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mcpu=arm1176jzf-s -mtune=arm1176jzf-s -mfloat-abi=softfp -mfpu=vfpv3'
|
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mcpu=arm1176jzf-s -mtune=arm1176jzf-s -mfloat-abi=softfp -mfpu=vfpv3'
|
||||||
cfg_target_gcc_configure_flags='--with-arch=armv7-a --with-mcpu=arm1176jzf-s --with-mtune=arm1176jzf-s --with-fpu=vfpv3 --with-float=softfp'
|
cfg_target_gcc_configure_flags='--with-arch=armv7-a --with-cpu=arm1176jzf-s --with-tune=arm1176jzf-s --with-fpu=vfpv3 --with-float=softfp'
|
||||||
cfg_target_ar_flags='elf32-littlearm'
|
cfg_target_ar_flags='elf32-littlearm'
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
cfg_target_canonical="armv5te-$cfg_glued_vendor-linux-gnueabi"
|
cfg_target_canonical="armv5te-$cfg_glued_vendor-linux-gnueabi"
|
||||||
cfg_target_linux='arm'
|
cfg_target_linux='arm'
|
||||||
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mtune=arm926ej-s -mfloat-abi=soft'
|
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mtune=arm926ej-s -mfloat-abi=soft'
|
||||||
cfg_target_gcc_configure_flags='--with-arch=armv5te --with-mtune=arm926ej-s --with-float=soft'
|
cfg_target_gcc_configure_flags='--with-arch=armv5te --with-tune=arm926ej-s --with-float=soft'
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
cfg_target_canonical="atom-$cfg_glued_vendor-linux-gnu"
|
cfg_target_canonical="atom-$cfg_glued_vendor-linux-gnu"
|
||||||
cfg_target_linux='x86'
|
cfg_target_linux='x86'
|
||||||
cfg_target_linux_kernel='arch/x86/boot/bzImage'
|
cfg_target_linux_kernel='arch/x86/boot/bzImage'
|
||||||
cfg_target_gcc_configure_flags='--with-arch=atom --with-mcpu=atom --with-mtune=atom'
|
cfg_target_gcc_configure_flags='--with-arch=atom --with-cpu=atom --with-tune=atom'
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
cfg_target_canonical="atom64-$cfg_glued_vendor-linux-gnu"
|
cfg_target_canonical="atom64-$cfg_glued_vendor-linux-gnu"
|
||||||
cfg_target_linux='x86'
|
cfg_target_linux='x86'
|
||||||
cfg_target_gcc_flags='-O2 -pipe -march=atom -funit-at-a-time'
|
cfg_target_gcc_flags='-O2 -pipe -march=atom -funit-at-a-time'
|
||||||
cfg_target_gcc_configure_flags='--with-mcpu=x86-64 --with-mtune=atom'
|
cfg_target_gcc_configure_flags='--with-cpu=x86-64 --with-tune=atom'
|
||||||
cfg_target_linux_kernel='arch/x86/boot/bzImage'
|
cfg_target_linux_kernel='arch/x86/boot/bzImage'
|
||||||
cfg_target_lib64='yes'
|
cfg_target_lib64='yes'
|
||||||
|
@@ -2,5 +2,5 @@ cfg_target_canonical="armv7-$cfg_glued_vendor-linux-gnueabihf"
|
|||||||
cfg_target_linux='arm'
|
cfg_target_linux='arm'
|
||||||
cfg_target_uboot_arch='arm'
|
cfg_target_uboot_arch='arm'
|
||||||
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mcpu=cortex-a8 -mtune=cortex-a8 -mfloat-abi=hard -mfpu=vfpv3'
|
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mcpu=cortex-a8 -mtune=cortex-a8 -mfloat-abi=hard -mfpu=vfpv3'
|
||||||
cfg_target_gcc_configure_flags='--with-arch=armv7-a --with-mcpu=cortex-a8 --with-mtune=cortex-a8 --with-fpu=vfpv3 --with-float=hard'
|
cfg_target_gcc_configure_flags='--with-arch=armv7-a --with-cpu=cortex-a8 --with-tune=cortex-a8 --with-fpu=vfpv3 --with-float=hard'
|
||||||
cfg_target_ar_flags='elf32-littlearm'
|
cfg_target_ar_flags='elf32-littlearm'
|
||||||
|
@@ -2,5 +2,5 @@ cfg_target_canonical="armv7-$cfg_glued_vendor-linux-gnueabi"
|
|||||||
cfg_target_linux='arm'
|
cfg_target_linux='arm'
|
||||||
cfg_target_uboot_arch='arm'
|
cfg_target_uboot_arch='arm'
|
||||||
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mcpu=cortex-a8 -mtune=cortex-a8 -mfloat-abi=softfp -mfpu=vfpv3'
|
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mcpu=cortex-a8 -mtune=cortex-a8 -mfloat-abi=softfp -mfpu=vfpv3'
|
||||||
cfg_target_gcc_configure_flags='--with-arch=armv7-a --with-mcpu=cortex-a8 --with-mtune=cortex-a8 --with-fpu=vfpv3 --with-float=softfp'
|
cfg_target_gcc_configure_flags='--with-arch=armv7-a --with-cpu=cortex-a8 --with-tune=cortex-a8 --with-fpu=vfpv3 --with-float=softfp'
|
||||||
cfg_target_ar_flags='elf32-littlearm'
|
cfg_target_ar_flags='elf32-littlearm'
|
||||||
|
@@ -2,5 +2,5 @@ cfg_target_canonical="armv7-$cfg_glued_vendor-linux-gnueabihf"
|
|||||||
cfg_target_linux='arm'
|
cfg_target_linux='arm'
|
||||||
cfg_target_uboot_arch='arm'
|
cfg_target_uboot_arch='arm'
|
||||||
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mcpu=cortex-a9 -mtune=cortex-a9 -mfloat-abi=hard -mfpu=vfpv3'
|
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mcpu=cortex-a9 -mtune=cortex-a9 -mfloat-abi=hard -mfpu=vfpv3'
|
||||||
cfg_target_gcc_configure_flags='--with-arch=armv7-a --with-mcpu=cortex-a9 --with-mtune=cortex-a9 --with-fpu=vfpv3 --with-float=hard'
|
cfg_target_gcc_configure_flags='--with-arch=armv7-a --with-cpu=cortex-a9 --with-tune=cortex-a9 --with-fpu=vfpv3 --with-float=hard'
|
||||||
cfg_target_ar_flags='elf32-littlearm'
|
cfg_target_ar_flags='elf32-littlearm'
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
cfg_target_canonical="geode-$cfg_glued_vendor-linux-gnu"
|
cfg_target_canonical="geode-$cfg_glued_vendor-linux-gnu"
|
||||||
cfg_target_linux='x86'
|
cfg_target_linux='x86'
|
||||||
cfg_target_gcc_configure_flags='--with-arch=geode --with-mcpu=geode --with-mtune=geode'
|
cfg_target_gcc_configure_flags='--with-arch=geode --with-cpu=geode --with-tune=geode'
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
cfg_target_canonical="i586-$cfg_glued_vendor-linux-gnu"
|
cfg_target_canonical="i586-$cfg_glued_vendor-linux-gnu"
|
||||||
cfg_target_linux='x86'
|
cfg_target_linux='x86'
|
||||||
cfg_target_gcc_configure_flags='--with-arch=i586 --with-mcpu=i586 --with-mtune=i586'
|
cfg_target_gcc_configure_flags='--with-arch=i586 --with-cpu=i586 --with-tune=i586'
|
||||||
cfg_target_gcc_flags='-O2 -pipe -march=i586 -funit-at-a-time'
|
cfg_target_gcc_flags='-O2 -pipe -march=i586 -funit-at-a-time'
|
||||||
cfg_target_glibc_configure_flags='--with-cpu=i586'
|
cfg_target_glibc_configure_flags='--with-cpu=i586'
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
cfg_target_canonical="i686-$cfg_glued_vendor-linux-gnu"
|
cfg_target_canonical="i686-$cfg_glued_vendor-linux-gnu"
|
||||||
cfg_target_linux='x86'
|
cfg_target_linux='x86'
|
||||||
cfg_target_gcc_flags='-O2 -pipe -march=i686 -funit-at-a-time'
|
cfg_target_gcc_flags='-O2 -pipe -march=i686 -funit-at-a-time'
|
||||||
cfg_target_gcc_configure_flags='--mwith-cpu=i686'
|
cfg_target_gcc_configure_flags='--with-cpu=i686'
|
||||||
cfg_target_glibc_configure_flags='--with-mcpu=i686'
|
cfg_target_glibc_configure_flags='--with-cpu=i686'
|
||||||
cfg_target_linux_kernel='arch/x86/boot/bzImage'
|
cfg_target_linux_kernel='arch/x86/boot/bzImage'
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
cfg_target_canonical="mipsisa32r2-$cfg_glued_vendor-linux-gnu"
|
cfg_target_canonical="mipsisa32r2-$cfg_glued_vendor-linux-gnu"
|
||||||
cfg_target_linux='mips'
|
cfg_target_linux='mips'
|
||||||
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mabi=32 -mips32r2 -mtune=mips32r2 -msoft-float'
|
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mabi=32 -mips32r2 -mtune=mips32r2 -msoft-float'
|
||||||
cfg_target_gcc_configure_flags='--with-abi=32 --with-mtune=mips32r2 --with-float=soft'
|
cfg_target_gcc_configure_flags='--with-abi=32 --with-tune=mips32r2 --with-float=soft'
|
||||||
cfg_target_glibc_configure_flags='--without-fp'
|
cfg_target_glibc_configure_flags='--without-fp'
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
cfg_target_canonical="armv5-$cfg_glued_vendor-linux-gnueabi"
|
cfg_target_canonical="armv5-$cfg_glued_vendor-linux-gnueabi"
|
||||||
cfg_target_linux='arm'
|
cfg_target_linux='arm'
|
||||||
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mcpu=iwmmxt -mtune=iwmmxt -mfloat-abi=soft'
|
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mcpu=iwmmxt -mtune=iwmmxt -mfloat-abi=soft'
|
||||||
cfg_target_gcc_configure_flags='--with-arch=iwmmxt --with-mcpu=iwmmxt --with-mtune=iwmmxt --with-float=soft'
|
cfg_target_gcc_configure_flags='--with-arch=iwmmxt --with-cpu=iwmmxt --with-tune=iwmmxt --with-float=soft'
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
cfg_target_canonical="armv5-$cfg_glued_vendor-linux-gnueabi"
|
cfg_target_canonical="armv5-$cfg_glued_vendor-linux-gnueabi"
|
||||||
cfg_target_linux='arm'
|
cfg_target_linux='arm'
|
||||||
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mtune=xscale -mfloat-abi=soft'
|
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mtune=xscale -mfloat-abi=soft'
|
||||||
cfg_target_gcc_configure_flags='--with-arch=armv5te --with-mtune=xscale --with-float=soft'
|
cfg_target_gcc_configure_flags='--with-arch=armv5te --with-tune=xscale --with-float=soft'
|
||||||
|
@@ -20,31 +20,18 @@
|
|||||||
# Author: Ricardo Martins #
|
# Author: Ricardo Martins #
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
|
||||||
FROM debian:9
|
FROM debian:8
|
||||||
|
|
||||||
MAINTAINER Ricardo Martins <rasm@oceanscan-mst.com>
|
MAINTAINER Ricardo Martins <rasm@oceanscan-mst.com>
|
||||||
MAINTAINER Pedro Gonçalves <pedro@lsts.pt>
|
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
# Update distro.
|
# Update distro.
|
||||||
RUN echo "deb http://ftp.us.debian.org/debian testing non-free contrib" >> /etc/apt/sources.list
|
|
||||||
RUN apt-get update
|
|
||||||
RUN apt-get install -y gnupg2
|
|
||||||
RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 40976EAF437D05B5
|
|
||||||
RUN apt-get install -y apt-utils
|
|
||||||
RUN apt-get install -y gpgv
|
|
||||||
RUN apt-get update -y
|
RUN apt-get update -y
|
||||||
RUN apt-get install -y apt-utils
|
|
||||||
RUN apt-get dist-upgrade -y
|
RUN apt-get dist-upgrade -y
|
||||||
RUN apt-get install -y bash-completion
|
|
||||||
RUN apt-get install -y wget
|
RUN apt-get install -y wget
|
||||||
RUN apt-get install -y bzip2
|
RUN apt-get install -y bzip2
|
||||||
RUN apt-get install -y git
|
RUN apt-get install -y git
|
||||||
RUN apt-get install -y g++-multilib
|
RUN apt-get install -y g++-multilib
|
||||||
|
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 vim
|
|
||||||
RUN apt-get install -y nasm
|
|
||||||
RUN apt-get install -y build-essential
|
|
||||||
RUN apt-get install -y make
|
|
||||||
|
@@ -21,24 +21,11 @@
|
|||||||
###########################################################################
|
###########################################################################
|
||||||
|
|
||||||
TAG := glued
|
TAG := glued
|
||||||
VERSION := 2020.07.24
|
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)
|
||||||
|
|
||||||
clean:
|
|
||||||
@echo "* Stopping docker service..."
|
|
||||||
@sudo systemctl stop docker
|
|
||||||
@echo "* Cleaning docker service..."
|
|
||||||
@sudo rm -rf /var/lib/docker
|
|
||||||
@echo "* Starting docker service..."
|
|
||||||
@sudo systemctl start docker
|
|
||||||
@echo "* Done."
|
|
||||||
|
|
||||||
delete_img:
|
|
||||||
@sudo docker system prune -a
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
###########################################################################
|
###########################################################################
|
||||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||||
# Copyright (C) 2007-2017 Universidade do Porto - Faculdade de Engenharia #
|
# Copyright (C) 2007-2014 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 #
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||||
# Copyright (C) 2007-2017 Universidade do Porto - Faculdade de Engenharia #
|
# Copyright (C) 2007-2014 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 #
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
###########################################################################
|
###########################################################################
|
||||||
|
|
||||||
# Config: GLUED version.
|
# Config: GLUED version.
|
||||||
cfg_glued_version='2020.07'
|
cfg_glued_version='2016.05'
|
||||||
# Config: GLUED vendor.
|
# Config: GLUED vendor.
|
||||||
cfg_glued_vendor='lsts'
|
cfg_glued_vendor='lsts'
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||||
# Copyright (C) 2007-2017 Universidade do Porto - Faculdade de Engenharia #
|
# Copyright (C) 2007-2014 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 #
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||||
# Copyright (C) 2007-2017 Universidade do Porto - Faculdade de Engenharia #
|
# Copyright (C) 2007-2014 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 #
|
||||||
@@ -71,22 +71,17 @@ download()
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# First try LSTS mirror.
|
# First try OceanScan-MST mirror.
|
||||||
lsts_url="https://www.lsts.pt/glued/validPackages/$(basename $u)"
|
omst_url="http://www.omst.pt/glued/$(basename $u)"
|
||||||
download_tool "$lsts_url" "$cfg_dir_downloads/$file"
|
download_tool "$omst_url" "$cfg_dir_downloads/$file"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
# Then try OceanScan-MST mirror.
|
# On failure try upstream URL.
|
||||||
omst_url="http://www.omst.pt/glued/$(basename $u)"
|
download_tool "$u" "$cfg_dir_downloads/$file"
|
||||||
download_tool "$omst_url" "$cfg_dir_downloads/$file"
|
if [ $? -ne 0 ]; then
|
||||||
if [ $? -ne 0 ]; then
|
echo "ERROR: download failed"
|
||||||
# On failure try upstream URL.
|
exit 1
|
||||||
download_tool "$u" "$cfg_dir_downloads/$file"
|
fi
|
||||||
if [ $? -ne 0 ]; then
|
fi
|
||||||
echo "ERROR: download failed"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
md5="$(md5sum_tool "$cfg_dir_downloads/$file")"
|
md5="$(md5sum_tool "$cfg_dir_downloads/$file")"
|
||||||
if [ "$s" != "$md5" ]; then
|
if [ "$s" != "$md5" ]; then
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||||
# Copyright (C) 2007-2017 Universidade do Porto - Faculdade de Engenharia #
|
# Copyright (C) 2007-2013 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 #
|
||||||
|
@@ -1,68 +0,0 @@
|
|||||||
#! /bin/bash
|
|
||||||
###########################################################################
|
|
||||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
|
||||||
# Copyright (C) 2007-2017 Universidade do Porto - Faculdade de Engenharia #
|
|
||||||
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
|
||||||
###########################################################################
|
|
||||||
# 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: Tiago Marques #
|
|
||||||
###########################################################################
|
|
||||||
|
|
||||||
update_tool()
|
|
||||||
{
|
|
||||||
rsync -v "$1" root@"$2":/opt/"$cfg_glued_vendor"/glued/
|
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
scp "$1" root@"$2":/opt/"$cfg_glued_vendor"/glued/
|
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
return 1
|
|
||||||
}
|
|
||||||
|
|
||||||
# Check command line arguments.
|
|
||||||
if [ $# -lt 1 ]; then
|
|
||||||
echo "Usage: $0 <config>"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Read system configuration file.
|
|
||||||
if ! [ -f "$1" ]; then
|
|
||||||
echo -e "\e[1;31mERROR: invalid configuration file '$1'\e[0m"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Read system configuration file.
|
|
||||||
source "$1"
|
|
||||||
|
|
||||||
if [ ! -f "$cfg_rootfs_tar" ];
|
|
||||||
then
|
|
||||||
echo -e "\e[1;31mERROR: You should run ./pkrootfs $1\e[0m"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# check for dirty repo
|
|
||||||
if [[ "$cfg_glued_git_version" =~ .*-dirty$ ]]
|
|
||||||
then
|
|
||||||
echo -e "\e[1;31mThis glued's version is dirty\e[0m"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# send package to the system
|
|
||||||
update_tool "$cfg_rootfs_tar" "$cfg_eth_ext_ip"
|
|
@@ -1,7 +1,7 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||||
# Copyright (C) 2007-2017 Universidade do Porto - Faculdade de Engenharia #
|
# Copyright (C) 2007-2014 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 #
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||||
# Copyright (C) 2007-2017 Universidade do Porto - Faculdade de Engenharia #
|
# Copyright (C) 2007-2014 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 #
|
||||||
|
@@ -26,5 +26,4 @@ requires=\
|
|||||||
'parted/host'
|
'parted/host'
|
||||||
'dosfstools/host'
|
'dosfstools/host'
|
||||||
'e2fsprogs/host'
|
'e2fsprogs/host'
|
||||||
'cmake/host'
|
|
||||||
)
|
)
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'2.25'
|
'2.25.1'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
@@ -10,7 +10,7 @@ url=\
|
|||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'd9f3303f802a5b6b0bb73a335ab89d66'
|
'ac493a78de4fee895961d025b7905be4'
|
||||||
)
|
)
|
||||||
|
|
||||||
maintainer=\
|
maintainer=\
|
||||||
|
@@ -1,16 +1,16 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'1.6'
|
'1.5'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
(
|
(
|
||||||
"http://www.kernel.org/pub/linux/utils/net/bridge-utils/bridge-utils-$version.tar.gz"
|
"http://downloads.sourceforge.net/project/bridge/bridge/bridge-utils-$version.tar.gz"
|
||||||
)
|
)
|
||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'f369e90e85e4bb46baa26a7b9d66b578'
|
'ec7b381160b340648dede58c31bb2238'
|
||||||
)
|
)
|
||||||
|
|
||||||
maintainer=\
|
maintainer=\
|
||||||
|
@@ -5,7 +5,7 @@ version=\
|
|||||||
|
|
||||||
url=\
|
url=\
|
||||||
(
|
(
|
||||||
"https://sourceforge.net/projects/bzip2/files/bzip2-$version.tar.gz"
|
"http://bzip.org/1.0.6/bzip2-$version.tar.gz"
|
||||||
)
|
)
|
||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
|
@@ -1,52 +0,0 @@
|
|||||||
version=\
|
|
||||||
(
|
|
||||||
"3.0.2"
|
|
||||||
)
|
|
||||||
|
|
||||||
url=\
|
|
||||||
(
|
|
||||||
"https://github.com/zeromq/czmq/archive/v$version.tar.gz"
|
|
||||||
)
|
|
||||||
|
|
||||||
md5=\
|
|
||||||
(
|
|
||||||
"23e9885f7ee3ce88d99d0425f52e9be1"
|
|
||||||
)
|
|
||||||
|
|
||||||
configure()
|
|
||||||
{
|
|
||||||
./autogen.sh && \
|
|
||||||
./configure \
|
|
||||||
--prefix="${cfg_dir_toolchain_sysroot}/usr" \
|
|
||||||
--target="$cfg_target_canonical" \
|
|
||||||
--host="$cfg_target_canonical" \
|
|
||||||
--build="$cfg_host_canonical"
|
|
||||||
}
|
|
||||||
|
|
||||||
build()
|
|
||||||
{
|
|
||||||
$cmd_make
|
|
||||||
}
|
|
||||||
|
|
||||||
host_install()
|
|
||||||
{
|
|
||||||
$cmd_make install
|
|
||||||
}
|
|
||||||
|
|
||||||
requires=\
|
|
||||||
(
|
|
||||||
'libtool/host'
|
|
||||||
'zeromq'
|
|
||||||
)
|
|
||||||
|
|
||||||
target_install()
|
|
||||||
{
|
|
||||||
# Libs:
|
|
||||||
for f in "$cfg_dir_toolchain_sysroot/usr/lib/"libczmq.*; do
|
|
||||||
if [ -L "$f" ]; then
|
|
||||||
$cmd_cp "$f" "$cfg_dir_rootfs/usr/lib"
|
|
||||||
else
|
|
||||||
$cmd_target_strip -v "$f" -o "$cfg_dir_rootfs/usr/lib/$(basename "$f")"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
@@ -1,37 +0,0 @@
|
|||||||
version=\
|
|
||||||
(
|
|
||||||
'master'
|
|
||||||
)
|
|
||||||
|
|
||||||
requires=\
|
|
||||||
(
|
|
||||||
'cmake/host'
|
|
||||||
)
|
|
||||||
|
|
||||||
download()
|
|
||||||
{
|
|
||||||
git clone "git@github.com:LSTS/dune.git" dune &&
|
|
||||||
cd dune && git checkout "$version" && cd - &&
|
|
||||||
git clone "git@git.lsts.pt:dune-private.git" dune/private &&
|
|
||||||
cd dune/private && git checkout "$version" && cd -
|
|
||||||
}
|
|
||||||
|
|
||||||
configure()
|
|
||||||
{
|
|
||||||
$cmd_mkdir build &&
|
|
||||||
cd build &&
|
|
||||||
cmake \
|
|
||||||
-DCMAKE_INSTALL_PREFIX="$cfg_dir_toolchain_sysroot/usr" \
|
|
||||||
-DCROSS="$cmd_target_cc" \
|
|
||||||
../dune
|
|
||||||
}
|
|
||||||
|
|
||||||
build()
|
|
||||||
{
|
|
||||||
$cmd_make -C build
|
|
||||||
}
|
|
||||||
|
|
||||||
host_install()
|
|
||||||
{
|
|
||||||
$cmd_make -C build install
|
|
||||||
}
|
|
@@ -1,42 +0,0 @@
|
|||||||
version=\
|
|
||||||
(
|
|
||||||
'0.180'
|
|
||||||
)
|
|
||||||
|
|
||||||
url=\
|
|
||||||
(
|
|
||||||
"ftp://sourceware.org/pub/elfutils/$version/elfutils-$version.tar.bz2"
|
|
||||||
)
|
|
||||||
|
|
||||||
md5=\
|
|
||||||
(
|
|
||||||
'23feddb1b3859b03ffdbaf53ba6bd09b'
|
|
||||||
)
|
|
||||||
|
|
||||||
requires=\
|
|
||||||
(
|
|
||||||
'zlib/host'
|
|
||||||
'zlib/default'
|
|
||||||
)
|
|
||||||
|
|
||||||
configure()
|
|
||||||
{
|
|
||||||
MAKEINFO='/bin/true' \
|
|
||||||
"./configure" --disable-debuginfod \
|
|
||||||
--build="$cfg_host_canonical" \
|
|
||||||
--target="$cmd_target_prefix" \
|
|
||||||
--host="$cfg_host_canonical" \
|
|
||||||
--prefix="$cfg_dir_toolchain" \
|
|
||||||
CC="$cmd_target_cc" \
|
|
||||||
CXX="$cmd_target_cxx"
|
|
||||||
}
|
|
||||||
|
|
||||||
build()
|
|
||||||
{
|
|
||||||
$cmd_make
|
|
||||||
}
|
|
||||||
|
|
||||||
host_install()
|
|
||||||
{
|
|
||||||
$cmd_make install
|
|
||||||
}
|
|
@@ -1,6 +1,6 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'1.0.71'
|
'1.0.6'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
@@ -10,7 +10,7 @@ url=\
|
|||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'075c9256fe20cf6ce867dc2b1c974ebe'
|
'07783e66e27601ab0a8250c328b3d6bf'
|
||||||
)
|
)
|
||||||
|
|
||||||
if [ -d "$cfg_dir_builds/linux/linux-"* ]; then
|
if [ -d "$cfg_dir_builds/linux/linux-"* ]; then
|
||||||
|
@@ -1,57 +0,0 @@
|
|||||||
version=\
|
|
||||||
(
|
|
||||||
"0.25"
|
|
||||||
)
|
|
||||||
|
|
||||||
url=\
|
|
||||||
(
|
|
||||||
"http://lsts.pt/glued/exiv2-${version}.tar.gz"
|
|
||||||
)
|
|
||||||
|
|
||||||
md5=\
|
|
||||||
(
|
|
||||||
"258d4831b30f75a01e0234065c6c2806"
|
|
||||||
)
|
|
||||||
|
|
||||||
maintainer=\
|
|
||||||
(
|
|
||||||
'Pedro Gonçalves <pedro@lsts.pt>'
|
|
||||||
)
|
|
||||||
|
|
||||||
requires=\
|
|
||||||
(
|
|
||||||
"gettext/host"
|
|
||||||
)
|
|
||||||
|
|
||||||
configure()
|
|
||||||
{
|
|
||||||
./configure \
|
|
||||||
--datadir="$cfg_dir_toolchain_sysroot" \
|
|
||||||
--prefix="$cfg_dir_rootfs/usr" \
|
|
||||||
--includedir="$cfg_dir_toolchain_sysroot/usr/include" \
|
|
||||||
--enable-cross-compile \
|
|
||||||
--build=$cfg_target_linux \
|
|
||||||
--host="$cfg_target_canonical" \
|
|
||||||
--enable-shared \
|
|
||||||
--disable-static \
|
|
||||||
--disable-xmp
|
|
||||||
}
|
|
||||||
|
|
||||||
build()
|
|
||||||
{
|
|
||||||
$cmd_make
|
|
||||||
}
|
|
||||||
|
|
||||||
host_install()
|
|
||||||
{
|
|
||||||
$cmd_make install
|
|
||||||
}
|
|
||||||
|
|
||||||
target_install()
|
|
||||||
{
|
|
||||||
# Libs:
|
|
||||||
for f in "$cfg_dir_rootfs/lib/"libexiv2*; do
|
|
||||||
cp -av "$f" "$cfg_dir_toolchain_sysroot/usr/lib"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
@@ -15,14 +15,12 @@ md5=\
|
|||||||
|
|
||||||
configure()
|
configure()
|
||||||
{
|
{
|
||||||
mkdir -p ../build
|
|
||||||
./configure \
|
./configure \
|
||||||
--sysroot="$cfg_dir_toolchain_sysroot" \
|
--sysroot="$cfg_dir_toolchain_sysroot" \
|
||||||
--prefix="$cfg_dir_rootfs/usr" \
|
--prefix="$cfg_dir_rootfs/usr" \
|
||||||
--incdir="$cfg_dir_toolchain_sysroot/usr/include" \
|
--incdir="$cfg_dir_toolchain_sysroot/usr/include" \
|
||||||
--enable-cross-compile \
|
--enable-cross-compile \
|
||||||
--cross-prefix="$cfg_target_canonical-" \
|
--cross-prefix="$cfg_target_canonical-" \
|
||||||
--libdir="$cfg_dir_builds/ffmpeg/build" \
|
|
||||||
--target-os="linux" \
|
--target-os="linux" \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
@@ -41,16 +39,10 @@ host_install()
|
|||||||
$cmd_make \
|
$cmd_make \
|
||||||
LIBDIR="$cfg_dir_toolchain_sysroot/usr/lib" \
|
LIBDIR="$cfg_dir_toolchain_sysroot/usr/lib" \
|
||||||
install-headers
|
install-headers
|
||||||
|
|
||||||
$cmd_make \
|
|
||||||
install-libs
|
|
||||||
}
|
}
|
||||||
|
|
||||||
target_install()
|
target_install()
|
||||||
{
|
{
|
||||||
$cmd_make \
|
$cmd_make \
|
||||||
install-libs
|
install-libs
|
||||||
|
|
||||||
$cmd_cp -r "$cfg_dir_builds/ffmpeg/build/"* "$cfg_dir_rootfs/usr/lib/"
|
|
||||||
$cmd_cp -r "$cfg_dir_builds/ffmpeg/build/"* "$cfg_dir_toolchain_sysroot/usr/lib/"
|
|
||||||
}
|
}
|
||||||
|
@@ -1,15 +0,0 @@
|
|||||||
start()
|
|
||||||
{
|
|
||||||
if [ ! -f /opt/check_wlan ]; then
|
|
||||||
cp -ri /etc/check_wlan /opt/
|
|
||||||
fi
|
|
||||||
|
|
||||||
sh /opt/check_wlan < /dev/null > /dev/null 2>&1 &
|
|
||||||
}
|
|
||||||
|
|
||||||
stop()
|
|
||||||
{
|
|
||||||
echo "* Stopping process..."
|
|
||||||
killall sh /opt/check_wlan -9 > /dev/null 2>&1
|
|
||||||
echo "* Process not running."
|
|
||||||
}
|
|
@@ -1,87 +0,0 @@
|
|||||||
start()
|
|
||||||
{
|
|
||||||
ifconfig wlan0 up
|
|
||||||
if [ -n "$cfg_eth_ext_ip$cfg_eth_prv_ip" ]; then
|
|
||||||
while [ 1 ]; do
|
|
||||||
echo "* Waiting for wlan0 device..."
|
|
||||||
ifconfig wlan0 > /dev/null 2>&1
|
|
||||||
[ $? -eq 0 ] && break
|
|
||||||
usleep 250000
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "$cfg_bridge0_ip" ]; then
|
|
||||||
for itf in $cfg_bridge0_itfs; do
|
|
||||||
ifconfig $itf 0.0.0.0
|
|
||||||
done
|
|
||||||
|
|
||||||
brctl addbr bridge0
|
|
||||||
|
|
||||||
for itf in $cfg_bridge0_itfs; do
|
|
||||||
brctl addif bridge0 $itf
|
|
||||||
done
|
|
||||||
|
|
||||||
ifconfig bridge0 $cfg_bridge0_ip netmask $cfg_bridge0_nmask up
|
|
||||||
ifconfig bridge0 multicast
|
|
||||||
route add -net 224.0.0.0 netmask 240.0.0.0 dev bridge0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Public ethernet.
|
|
||||||
if [ -n "$cfg_eth_ext_ip" ]; then
|
|
||||||
if [ -n "$cfg_eth_ext_mk" ]; then
|
|
||||||
ifconfig wlan0 "$cfg_eth_ext_ip" netmask "$cfg_eth_ext_mk" up
|
|
||||||
else
|
|
||||||
ifconfig wlan0 "$cfg_eth_ext_ip" up
|
|
||||||
fi
|
|
||||||
ifconfig wlan0 multicast
|
|
||||||
route add -net 224.0.0.0 netmask 240.0.0.0 dev wlan0
|
|
||||||
|
|
||||||
# Fixed mac address with $cfg_eth_ext_mac based derivated from IP address $cfg_eth_ext_ip
|
|
||||||
if [ -n "$cfg_eth_ext_mac" ]; then
|
|
||||||
ifconfig wlan0 hw ether $cfg_eth_ext_mac
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "$cfg_eth_ext_gw" ]; then
|
|
||||||
route add default gw "$cfg_eth_ext_gw"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "$cfg_eth_ext_dns" ]; then
|
|
||||||
echo "nameserver $cfg_eth_ext_dns" > /etc/resolv.conf
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Private ethernet.
|
|
||||||
if [ -n "$cfg_eth_prv_ip" ]; then
|
|
||||||
ifconfig wlan0:prv "$cfg_eth_prv_ip" up
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Static ARP table.
|
|
||||||
if [ -n "$cfg_arp_table" ]; then
|
|
||||||
for e in $cfg_arp_table; do
|
|
||||||
ip="$(echo $e | cut -f1 -d'|')"
|
|
||||||
mac="$(echo $e | cut -f2 -d'|')"
|
|
||||||
arp -s "$ip" "$mac"
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
iw wlan0 connect LSTS
|
|
||||||
ifconfig eth0 down
|
|
||||||
}
|
|
||||||
|
|
||||||
stop()
|
|
||||||
{
|
|
||||||
# Public ethernet.
|
|
||||||
if [ -n "$cfg_eth_ext_gw" ]; then
|
|
||||||
route del default
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "$cfg_eth_ext_ip" ]; then
|
|
||||||
route del -net 224.0.0.0 netmask 240.0.0.0 dev wlan0
|
|
||||||
ifconfig wlan0 down
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Private ethernet.
|
|
||||||
if [ -n "$cfg_eth_prv_ip" ]; then
|
|
||||||
ifconfig wlan0:prv down
|
|
||||||
fi
|
|
||||||
}
|
|
@@ -1,16 +1,16 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'9.3.0'
|
'4.9.3'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
(
|
(
|
||||||
"http://mirrors.kernel.org/gnu/gcc/gcc-$version/gcc-$version.tar.gz"
|
"http://mirrors.kernel.org/gnu/gcc/gcc-$version/gcc-$version.tar.bz2"
|
||||||
)
|
)
|
||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'9b7e8f6cfad96114e726c752935af58a'
|
'6f831b4d251872736e8e9cc09746f327'
|
||||||
)
|
)
|
||||||
|
|
||||||
build_dir=$pkg_var
|
build_dir=$pkg_var
|
||||||
|
@@ -49,15 +49,10 @@ host_install()
|
|||||||
|
|
||||||
target_install()
|
target_install()
|
||||||
{
|
{
|
||||||
libdir=lib
|
|
||||||
if [ -d "$cfg_dir_toolchain/$cfg_target_canonical/lib64" ]; then
|
|
||||||
libdir=lib64
|
|
||||||
fi
|
|
||||||
|
|
||||||
$cmd_mkdir \
|
$cmd_mkdir \
|
||||||
"$cfg_dir_rootfs/usr/$libdir" &&
|
"$cfg_dir_rootfs/usr/lib" &&
|
||||||
|
|
||||||
for f in "$cfg_dir_toolchain/$cfg_target_canonical/$libdir/"{libgcc_s,libstdc++}.so*; do
|
for f in "$cfg_dir_toolchain/$cfg_target_canonical/lib/"{libgcc_s,libstdc++}.so*; do
|
||||||
base="$(basename $f)"
|
base="$(basename $f)"
|
||||||
|
|
||||||
if [ $(echo "$base" | grep '\.py' 2> /dev/null) ]; then
|
if [ $(echo "$base" | grep '\.py' 2> /dev/null) ]; then
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'7.10.1'
|
'7.8.2'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
@@ -10,5 +10,5 @@ url=\
|
|||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'39e654460c9cdd80200a29ac020cfe11'
|
'a80cf252ed2e775d4e4533341bbf2459'
|
||||||
)
|
)
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'2.26'
|
'2.22'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
@@ -10,7 +10,7 @@ url=\
|
|||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'102f637c3812f81111f48f2427611be1'
|
'e51e02bf552a0a1fbbdc948fb2f5e83c'
|
||||||
)
|
)
|
||||||
|
|
||||||
maintainer=\
|
maintainer=\
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'6.1.2'
|
'5.0.4'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
@@ -10,7 +10,7 @@ url=\
|
|||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'8ddbb26dc3bd4e2302984debba1406a5'
|
'50c3edcb7c9438e04377ee9a1a061b79'
|
||||||
)
|
)
|
||||||
|
|
||||||
maintainer=\
|
maintainer=\
|
||||||
|
@@ -1,50 +0,0 @@
|
|||||||
version=\
|
|
||||||
(
|
|
||||||
'2.2.0'
|
|
||||||
)
|
|
||||||
|
|
||||||
url=\
|
|
||||||
(
|
|
||||||
"https://hisham.hm/htop/releases/$version/htop-$version.tar.gz"
|
|
||||||
)
|
|
||||||
|
|
||||||
md5=\
|
|
||||||
(
|
|
||||||
'0d816b6beed31edc75babcfbf863ffa8'
|
|
||||||
)
|
|
||||||
|
|
||||||
maintainer=\
|
|
||||||
(
|
|
||||||
'Jose Pinto <zepinto@lsts.pt>'
|
|
||||||
)
|
|
||||||
|
|
||||||
requires=\
|
|
||||||
(
|
|
||||||
'ncurses/default'
|
|
||||||
)
|
|
||||||
|
|
||||||
build()
|
|
||||||
{
|
|
||||||
$cmd_make
|
|
||||||
}
|
|
||||||
|
|
||||||
configure()
|
|
||||||
{
|
|
||||||
cd "../htop-$version"
|
|
||||||
./configure --disable-unicode \
|
|
||||||
--disable-dependency-tracking \
|
|
||||||
--build="$cfg_host_canonical" \
|
|
||||||
--host="$cfg_host_canonical" \
|
|
||||||
--prefix="$cfg_dir_rootfs" \
|
|
||||||
HTOP_NCURSESW_CONFIG_SCRIPT="$cfg_dir_toolchain_sysroot/usr/bin/ncursesw6-config" \
|
|
||||||
HTOP_NCURSES_CONFIG_SCRIPT="$cfg_dir_toolchain_sysroot/usr/bin/ncurses6-config" \
|
|
||||||
CC="$cmd_target_cc" \
|
|
||||||
CXX="$cmd_target_cxx"
|
|
||||||
}
|
|
||||||
|
|
||||||
target_install()
|
|
||||||
{
|
|
||||||
cd "../htop-$version"
|
|
||||||
$cmd_make install
|
|
||||||
}
|
|
||||||
|
|
@@ -1,34 +0,0 @@
|
|||||||
version=\
|
|
||||||
(
|
|
||||||
"4.9"
|
|
||||||
)
|
|
||||||
|
|
||||||
url=\
|
|
||||||
(
|
|
||||||
"http://lsts.pt/glued/iw-$version.tar.bz2"
|
|
||||||
)
|
|
||||||
|
|
||||||
md5=\
|
|
||||||
(
|
|
||||||
"ae8ccaa154449300c2c02eb90a37eebb"
|
|
||||||
)
|
|
||||||
|
|
||||||
maintainer=\
|
|
||||||
(
|
|
||||||
'Pedro Gonçalves <pedro@lsts.pt>'
|
|
||||||
)
|
|
||||||
|
|
||||||
configure()
|
|
||||||
{
|
|
||||||
mv "../iw_$version/etc" "../iw-$version/"
|
|
||||||
mv "../iw_$version/lib" "../iw-$version/"
|
|
||||||
mv "../iw_$version/sbin" "../iw-$version/"
|
|
||||||
}
|
|
||||||
|
|
||||||
target_install()
|
|
||||||
{
|
|
||||||
$cmd_cp -r "etc/"* "$cfg_dir_rootfs/etc/"
|
|
||||||
$cmd_cp -r "sbin/"* "$cfg_dir_rootfs/sbin/"
|
|
||||||
$cmd_cp -r "lib/"* "$cfg_dir_rootfs/lib/"
|
|
||||||
$cmd_cp -r "$pkg_dir/fs/"* "$cfg_dir_rootfs/"
|
|
||||||
}
|
|
@@ -1,46 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/bin
|
|
||||||
|
|
||||||
############################# USER INPUT ###########################
|
|
||||||
|
|
||||||
ip_dest=10.0.30.3
|
|
||||||
|
|
||||||
####################################################################
|
|
||||||
|
|
||||||
|
|
||||||
############### DON'T EDIT ##########################################
|
|
||||||
|
|
||||||
check_interval=1
|
|
||||||
log=/opt/.wifi.log
|
|
||||||
wlan=wlan0
|
|
||||||
eth=eth0
|
|
||||||
|
|
||||||
exec 1> /dev/null
|
|
||||||
exec 2>> $log
|
|
||||||
echo $(date) > $log
|
|
||||||
# without check_interval set, we risk a 0 sleep = busy loop
|
|
||||||
if [ ! "$check_interval" ]; then
|
|
||||||
echo "No check interval set!" >> $log
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
startWifi () {
|
|
||||||
iw wlan0 connect LSTS >> $log
|
|
||||||
}
|
|
||||||
|
|
||||||
ifconfig $eth down
|
|
||||||
ifconfig $wlan up
|
|
||||||
|
|
||||||
while [ 1 ]; do
|
|
||||||
ping -q -c1 $ip_dest > /dev/null
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo $(date)" attempting restart..." >> $log
|
|
||||||
startWifi
|
|
||||||
sleep 1
|
|
||||||
else
|
|
||||||
echo "IS LINKED" >> $log
|
|
||||||
sleep $check_interval
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
#####################################################################
|
|
@@ -1,45 +0,0 @@
|
|||||||
version=\
|
|
||||||
(
|
|
||||||
"2.7"
|
|
||||||
)
|
|
||||||
|
|
||||||
url=\
|
|
||||||
(
|
|
||||||
"http://www.digip.org/jansson/releases/jansson-2.7.tar.gz"
|
|
||||||
)
|
|
||||||
|
|
||||||
md5=\
|
|
||||||
(
|
|
||||||
"3a106a465bbb77637550b422f5b262ef"
|
|
||||||
)
|
|
||||||
|
|
||||||
configure()
|
|
||||||
{
|
|
||||||
./configure \
|
|
||||||
--prefix="${cfg_dir_toolchain_sysroot}/usr" \
|
|
||||||
--target="$cfg_target_canonical" \
|
|
||||||
--host="$cfg_target_canonical" \
|
|
||||||
--build="$cfg_host_canonical"
|
|
||||||
}
|
|
||||||
|
|
||||||
build()
|
|
||||||
{
|
|
||||||
$cmd_make
|
|
||||||
}
|
|
||||||
|
|
||||||
host_install()
|
|
||||||
{
|
|
||||||
$cmd_make install
|
|
||||||
}
|
|
||||||
|
|
||||||
target_install()
|
|
||||||
{
|
|
||||||
# Libs:
|
|
||||||
for f in "$cfg_dir_toolchain_sysroot/usr/lib/"libjansson.*; do
|
|
||||||
if [ -L "$f" ]; then
|
|
||||||
$cmd_cp "$f" "$cfg_dir_rootfs/usr/lib"
|
|
||||||
else
|
|
||||||
$cmd_target_strip -v "$f" -o "$cfg_dir_rootfs/usr/lib/$(basename "$f")"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
@@ -19,7 +19,6 @@ configure()
|
|||||||
--prefix="$cfg_dir_toolchain_sysroot/usr" \
|
--prefix="$cfg_dir_toolchain_sysroot/usr" \
|
||||||
--target="$cfg_target_canonical" \
|
--target="$cfg_target_canonical" \
|
||||||
--host="$cfg_target_canonical" \
|
--host="$cfg_target_canonical" \
|
||||||
--disable-examples \
|
|
||||||
--build="$cfg_host_canonical"
|
--build="$cfg_host_canonical"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,16 +1,16 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'4.9.99'
|
'3.14.63'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
(
|
(
|
||||||
"https://www.kernel.org/pub/linux/kernel/v4.x/linux-$version.tar.xz"
|
"https://www.kernel.org/pub/linux/kernel/v3.x/linux-$version.tar.xz"
|
||||||
)
|
)
|
||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'aecc1118040df0c18dbca9f1f163ef84'
|
'6cf8a6b23849f47f511e0e46cfdb6392'
|
||||||
)
|
)
|
||||||
|
|
||||||
maintainer=\
|
maintainer=\
|
||||||
|
@@ -1,16 +1,16 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'4.9.99'
|
'3.14.63'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
(
|
(
|
||||||
"https://www.kernel.org/pub/linux/kernel/v4.x/linux-$version.tar.xz"
|
"https://www.kernel.org/pub/linux/kernel/v3.x/linux-$version.tar.xz"
|
||||||
)
|
)
|
||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'aecc1118040df0c18dbca9f1f163ef84'
|
'6cf8a6b23849f47f511e0e46cfdb6392'
|
||||||
)
|
)
|
||||||
|
|
||||||
maintainer=\
|
maintainer=\
|
||||||
@@ -23,7 +23,6 @@ requires=\
|
|||||||
'bc/host'
|
'bc/host'
|
||||||
'kmod/host'
|
'kmod/host'
|
||||||
'lz4/host'
|
'lz4/host'
|
||||||
# 'elfutils/default'
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# This variable is updated by find_patches().
|
# This variable is updated by find_patches().
|
||||||
@@ -129,12 +128,14 @@ build()
|
|||||||
$cmd_make \
|
$cmd_make \
|
||||||
CROSS_COMPILE=$cfg_target_canonical- \
|
CROSS_COMPILE=$cfg_target_canonical- \
|
||||||
ARCH=$cfg_target_linux \
|
ARCH=$cfg_target_linux \
|
||||||
|
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
|
||||||
modules || return 1
|
modules || return 1
|
||||||
|
|
||||||
if [ "$(basename $cfg_target_linux_kernel)" = 'uImage' ]; then
|
if [ "$(basename $cfg_target_linux_kernel)" = 'uImage' ]; then
|
||||||
$cmd_make \
|
$cmd_make \
|
||||||
CROSS_COMPILE=$cfg_target_canonical- \
|
CROSS_COMPILE=$cfg_target_canonical- \
|
||||||
ARCH=$cfg_target_linux \
|
ARCH=$cfg_target_linux \
|
||||||
|
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
|
||||||
uImage || return 1
|
uImage || return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -143,6 +144,7 @@ build()
|
|||||||
$cmd_make \
|
$cmd_make \
|
||||||
CROSS_COMPILE=$cfg_target_canonical- \
|
CROSS_COMPILE=$cfg_target_canonical- \
|
||||||
ARCH=$cfg_target_linux \
|
ARCH=$cfg_target_linux \
|
||||||
|
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
|
||||||
zImage || return 1
|
zImage || return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -151,6 +153,7 @@ build()
|
|||||||
$cmd_make \
|
$cmd_make \
|
||||||
CROSS_COMPILE=$cfg_target_canonical- \
|
CROSS_COMPILE=$cfg_target_canonical- \
|
||||||
ARCH=$cfg_target_linux \
|
ARCH=$cfg_target_linux \
|
||||||
|
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
|
||||||
dtbs || return 1
|
dtbs || return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -195,6 +198,7 @@ target_install()
|
|||||||
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 \
|
||||||
|
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
|
||||||
modules_install
|
modules_install
|
||||||
|
|
||||||
$cmd_make \
|
$cmd_make \
|
||||||
@@ -202,5 +206,6 @@ target_install()
|
|||||||
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 \
|
||||||
|
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
|
||||||
firmware_install
|
firmware_install
|
||||||
}
|
}
|
||||||
|
@@ -2,19 +2,21 @@
|
|||||||
|
|
||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'4.4_2017-01-27'
|
'3.18_2015-06-03'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
(
|
(
|
||||||
"http://lsts.pt/glued/rpi-linux-$version.zip"
|
"https://github.com/rasmartins/rpi-linux/archive/rpi-linux-$version.tar.gz"
|
||||||
)
|
)
|
||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'f31d48a9d2c93509b35e750be489b44c'
|
'0b0255e50ca358b619bb78653ac2db2e'
|
||||||
)
|
)
|
||||||
|
|
||||||
build_dir="rpi-linux-rpi-linux-$version"
|
post_unpack()
|
||||||
|
{
|
||||||
find_patches
|
rmdir "../linux-$version" &&
|
||||||
|
mv "../rpi-linux-rpi-linux-$version" "../linux-$version"
|
||||||
|
}
|
||||||
|
@@ -2,12 +2,12 @@
|
|||||||
|
|
||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'4.4.66-rt79'
|
'3.14.64-rt67'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
(
|
(
|
||||||
"https://www.kernel.org/pub/linux/kernel/v4.x/linux-$(linux_mmp_version).tar.xz"
|
"https://www.kernel.org/pub/linux/kernel/v3.x/linux-$(linux_mmp_version).tar.xz"
|
||||||
"https://www.kernel.org/pub/linux/kernel/projects/rt/$(linux_mm_version)/patch-$version.patch.gz"
|
"https://www.kernel.org/pub/linux/kernel/projects/rt/$(linux_mm_version)/patch-$version.patch.gz"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -1,206 +0,0 @@
|
|||||||
version=\
|
|
||||||
(
|
|
||||||
'3.14.63'
|
|
||||||
)
|
|
||||||
|
|
||||||
url=\
|
|
||||||
(
|
|
||||||
"https://www.kernel.org/pub/linux/kernel/v3.x/linux-$version.tar.xz"
|
|
||||||
)
|
|
||||||
|
|
||||||
md5=\
|
|
||||||
(
|
|
||||||
'6cf8a6b23849f47f511e0e46cfdb6392'
|
|
||||||
)
|
|
||||||
|
|
||||||
maintainer=\
|
|
||||||
(
|
|
||||||
'Ricardo Martins <rasm@fe.up.pt>'
|
|
||||||
)
|
|
||||||
|
|
||||||
requires=\
|
|
||||||
(
|
|
||||||
'bc/host'
|
|
||||||
'kmod/host'
|
|
||||||
'lz4/host'
|
|
||||||
)
|
|
||||||
|
|
||||||
# This variable is updated by find_patches().
|
|
||||||
patches=()
|
|
||||||
|
|
||||||
# Major/Minor version.
|
|
||||||
linux_mm_version()
|
|
||||||
{
|
|
||||||
echo "$version" | cut -f1-2 -d.
|
|
||||||
}
|
|
||||||
|
|
||||||
# Major/Minor/Patch version.
|
|
||||||
linux_mmp_version()
|
|
||||||
{
|
|
||||||
echo "$version" | cut -f1 -d-
|
|
||||||
}
|
|
||||||
|
|
||||||
find_patches()
|
|
||||||
{
|
|
||||||
patches=(\
|
|
||||||
$(ls -1 \
|
|
||||||
"$pkg_dir/patches/$version/"*.patch \
|
|
||||||
"$pkg_dir/patches/$(linux_mmp_version)/"*.patch \
|
|
||||||
"$pkg_dir/patches/$(linux_mm_version)/"*.patch \
|
|
||||||
"$cfg_dir_system/patches/linux/$version/"*.patch \
|
|
||||||
"$cfg_dir_system/patches/linux/$(linux_mmp_version)/"*.patch \
|
|
||||||
"$cfg_dir_system/patches/linux/$(linux_mm_version)/"*.patch \
|
|
||||||
2> /dev/null | awk '!a[$0]++')
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
find_patches
|
|
||||||
|
|
||||||
# Get configuration file.
|
|
||||||
linux_cfg_file()
|
|
||||||
{
|
|
||||||
for f in "$version" "$(linux_mmp_version)" "$(linux_mm_version)"; do
|
|
||||||
f="$cfg_dir_system/cfg/linux-$f.cfg"
|
|
||||||
if [ -f "$f" ]; then
|
|
||||||
echo "$f"
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Candidate kernel configuration file '$f' doesn't exist." 1>&2
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "ERROR: failed to find a valid kernel configuration file." 1>&2
|
|
||||||
return 1
|
|
||||||
}
|
|
||||||
|
|
||||||
post_unpack()
|
|
||||||
{
|
|
||||||
cp -r ../linux-3.14.63/* ../linux_3.3-3.14.63
|
|
||||||
n=0; while [ -n "${patches[$n]}" ]; do
|
|
||||||
patch="${patches[$n]}"
|
|
||||||
echo "* Applying $patch..."
|
|
||||||
(ucat "$patch" | patch -p1) || return 1
|
|
||||||
let n++
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ -d "$cfg_dir_toolchain/firmware" ]; then
|
|
||||||
tar -C "$cfg_dir_toolchain/firmware" -c -v -f - . | tar -C firmware -x -v -f -
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
refresh()
|
|
||||||
{
|
|
||||||
for rule in configure build target_install; do
|
|
||||||
if [ "$(linux_cfg_file)" -nt "$cfg_dir_builds/linux/$pkg_var/.$rule" ]; then
|
|
||||||
rm "$cfg_dir_builds/linux/$pkg_var/.$rule"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
configure()
|
|
||||||
{
|
|
||||||
$cmd_make \
|
|
||||||
ARCH=${cfg_target_linux} \
|
|
||||||
mrproper || return 1
|
|
||||||
|
|
||||||
cfg="$(linux_cfg_file)"
|
|
||||||
[ -n "$cfg" ] || return 1
|
|
||||||
$cmd_cp "$cfg" .config || return 1
|
|
||||||
|
|
||||||
if [ -f "$cfg_dir_system/files/initramfs_init.sh" ]; then
|
|
||||||
$cmd_mkdir initramfs &&
|
|
||||||
$cmd_cp "$pkg_dir/files/initramfs.conf" . &&
|
|
||||||
$cmd_cp "$cfg_dir_system/files/initramfs_init.sh" initramfs/init.sh &&
|
|
||||||
$cmd_cp "$cfg_dir_rootfs/bin/busybox" initramfs/busybox
|
|
||||||
fi
|
|
||||||
|
|
||||||
yes '' | $cmd_make \
|
|
||||||
CROSS_COMPILE=${cfg_target_canonical}- \
|
|
||||||
ARCH=${cfg_target_linux} \
|
|
||||||
oldconfig
|
|
||||||
}
|
|
||||||
|
|
||||||
build()
|
|
||||||
{
|
|
||||||
$cmd_make \
|
|
||||||
CROSS_COMPILE=$cfg_target_canonical- \
|
|
||||||
ARCH=$cfg_target_linux || return 1
|
|
||||||
|
|
||||||
$cmd_make \
|
|
||||||
CROSS_COMPILE=$cfg_target_canonical- \
|
|
||||||
ARCH=$cfg_target_linux \
|
|
||||||
modules || return 1
|
|
||||||
|
|
||||||
if [ "$(basename $cfg_target_linux_kernel)" = 'uImage' ]; then
|
|
||||||
$cmd_make \
|
|
||||||
CROSS_COMPILE=$cfg_target_canonical- \
|
|
||||||
ARCH=$cfg_target_linux \
|
|
||||||
uImage || return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Compressed image.
|
|
||||||
if [ "$(basename $cfg_target_linux_kernel)" = 'zImage' ]; then
|
|
||||||
$cmd_make \
|
|
||||||
CROSS_COMPILE=$cfg_target_canonical- \
|
|
||||||
ARCH=$cfg_target_linux \
|
|
||||||
zImage || return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Device tree blob.
|
|
||||||
if [ -n "$cfg_target_linux_dtb" ]; then
|
|
||||||
$cmd_make \
|
|
||||||
CROSS_COMPILE=$cfg_target_canonical- \
|
|
||||||
ARCH=$cfg_target_linux \
|
|
||||||
dtbs || return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "${cfg_target_linux_size}" ]; then
|
|
||||||
dd if="$cfg_target_linux_kernel" of="${cfg_target_linux_kernel}.padded" \
|
|
||||||
ibs="${cfg_target_linux_size}" conv=sync &&
|
|
||||||
mv "${cfg_target_linux_kernel}.padded" "${cfg_target_linux_kernel}"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
target_install()
|
|
||||||
{
|
|
||||||
if [ -n "$(file "$cfg_target_linux_kernel" | grep ELF)" ]; then
|
|
||||||
strip="$(echo $cfg_dir_toolchain/bin/*-strip)"
|
|
||||||
$strip -s -R .comment "$cfg_target_linux_kernel"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Kernel image.
|
|
||||||
if [ -n "$cfg_target_linux_kernel" ]; then
|
|
||||||
cp -v "$cfg_target_linux_kernel" "$cfg_dir_rootfs/boot/kernel"
|
|
||||||
else
|
|
||||||
echo "ERROR: failed to find kernel image at '$cfg_target_linux_kernel'"
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Device tree blobs.
|
|
||||||
dts="arch/$cfg_target_linux/boot/dts"
|
|
||||||
if [ -d "$dts" ]; then
|
|
||||||
$cmd_mkdir "$cfg_dir_rootfs/boot" &&
|
|
||||||
cp -v "$dts/"*.dtb "$cfg_dir_rootfs/boot"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Device tree overlays.
|
|
||||||
overlays_dir="arch/$cfg_target_linux/boot/dts/overlays"
|
|
||||||
if [ -d "$overlays_dir" ]; then
|
|
||||||
$cmd_mkdir "$cfg_dir_rootfs/boot/overlays" || return 1
|
|
||||||
$cmd_cp "$overlays_dir"/*.dtbo "$cfg_dir_rootfs/boot/overlays" || return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
$cmd_make \
|
|
||||||
CROSS_COMPILE="$cfg_target_canonical-" \
|
|
||||||
ARCH="$cfg_target_linux" \
|
|
||||||
INSTALL_MOD_PATH="$cfg_dir_rootfs/usr" \
|
|
||||||
KBUILD_VERBOSE=1 \
|
|
||||||
modules_install
|
|
||||||
|
|
||||||
$cmd_make \
|
|
||||||
CROSS_COMPILE="$cfg_target_canonical-" \
|
|
||||||
ARCH="$cfg_target_linux" \
|
|
||||||
INSTALL_MOD_PATH="$cfg_dir_rootfs/usr" \
|
|
||||||
KBUILD_VERBOSE=1 \
|
|
||||||
firmware_install
|
|
||||||
}
|
|
@@ -1,38 +0,0 @@
|
|||||||
version=\
|
|
||||||
(
|
|
||||||
"1.2"
|
|
||||||
)
|
|
||||||
|
|
||||||
url=\
|
|
||||||
(
|
|
||||||
"http://lsts.pt/glued/lpg-$version.tar.gz"
|
|
||||||
)
|
|
||||||
|
|
||||||
md5=\
|
|
||||||
(
|
|
||||||
"d71e2f282372a5cb1021d9e457a3d53f"
|
|
||||||
)
|
|
||||||
|
|
||||||
requires=\
|
|
||||||
(
|
|
||||||
'bison/host'
|
|
||||||
'flex/host'
|
|
||||||
)
|
|
||||||
|
|
||||||
configure()
|
|
||||||
{
|
|
||||||
./configure "$cfg_target_canonical-gcc"
|
|
||||||
}
|
|
||||||
|
|
||||||
build()
|
|
||||||
{
|
|
||||||
$cmd_make \
|
|
||||||
BISON="$cfg_dir_toolchain/bin/bison" \
|
|
||||||
FLEX="$cfg_dir_toolchain/bin/flex"
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
target_install()
|
|
||||||
{
|
|
||||||
$cmd_cp "lpg" "$cfg_dir_rootfs/usr/bin"
|
|
||||||
}
|
|
@@ -1,32 +0,0 @@
|
|||||||
version=\
|
|
||||||
(
|
|
||||||
"5.01"
|
|
||||||
)
|
|
||||||
|
|
||||||
url=\
|
|
||||||
(
|
|
||||||
"http://www.lsts.pt/glued/memtest86+-$version.tar.gz"
|
|
||||||
)
|
|
||||||
|
|
||||||
md5=\
|
|
||||||
(
|
|
||||||
"035b85f2edabc9b4a6b0cf6c9c3acf50"
|
|
||||||
)
|
|
||||||
|
|
||||||
maintainer=\
|
|
||||||
(
|
|
||||||
'Tiago Sá Marques <tsmarques@fe.up.pt>'
|
|
||||||
)
|
|
||||||
|
|
||||||
build()
|
|
||||||
{
|
|
||||||
$cmd_make \
|
|
||||||
CC=$cmd_target_cc \
|
|
||||||
CXX=$cmd_target_cxx
|
|
||||||
}
|
|
||||||
|
|
||||||
target_install()
|
|
||||||
{
|
|
||||||
$cmd_cp ./memtest.bin $cfg_dir_rootfs/boot/
|
|
||||||
tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
|
|
||||||
}
|
|
@@ -1,14 +0,0 @@
|
|||||||
#! /bin/sh
|
|
||||||
|
|
||||||
echo "Starting memtest in 10 seconds (requires reboot), Ctrl-C to cancel..."
|
|
||||||
for r in 0 1 2 3 4 5 6 7 8 9; do
|
|
||||||
printf "."
|
|
||||||
sleep 1
|
|
||||||
done
|
|
||||||
|
|
||||||
mount -o remount,rw /
|
|
||||||
extlinux -o "memtest" /boot/extlinux/
|
|
||||||
mount -o remount,ro /
|
|
||||||
|
|
||||||
echo "* Rebooting now"
|
|
||||||
reboot
|
|
@@ -1,16 +1,16 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
"1.0.2"
|
"0.9"
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
(
|
(
|
||||||
"https://ftp.gnu.org/gnu/mpc/mpc-$version.tar.gz"
|
"http://www.multiprecision.org/mpc/download/mpc-$version.tar.gz"
|
||||||
)
|
)
|
||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
"68fadff3358fb3e7976c7a398a0af4c3"
|
"0d6acab8d214bd7d1fbbc593e83dd00d"
|
||||||
)
|
)
|
||||||
|
|
||||||
maintainer=\
|
maintainer=\
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'3.1.5'
|
'3.1.3'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
@@ -10,7 +10,7 @@ url=\
|
|||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'b1d23a55588e3b2a13e3be66bc69fd8d'
|
'5fdfa3cfa5c86514ee4a241a1affa138'
|
||||||
)
|
)
|
||||||
|
|
||||||
maintainer=\
|
maintainer=\
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
"6.2"
|
"5.9"
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
@@ -10,7 +10,7 @@ url=\
|
|||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
"e812da327b1c2214ac1aed440ea3ae8d"
|
"8cb9c412e5f2d96bc6f459aa8c6282a1"
|
||||||
)
|
)
|
||||||
|
|
||||||
maintainer=\
|
maintainer=\
|
||||||
|
@@ -10,10 +10,7 @@ configure_common()
|
|||||||
--target="$cfg_target_canonical" \
|
--target="$cfg_target_canonical" \
|
||||||
--host="$cfg_target_canonical" \
|
--host="$cfg_target_canonical" \
|
||||||
--build="$cfg_host_canonical" \
|
--build="$cfg_host_canonical" \
|
||||||
--with-build-cc="$cmd_target_cc" \
|
|
||||||
--with-build-cpp="$cmd_target_cpp" \
|
|
||||||
--with-shared \
|
--with-shared \
|
||||||
--enable-ext-colors \
|
|
||||||
--enable-pc-files \
|
--enable-pc-files \
|
||||||
--without-progs \
|
--without-progs \
|
||||||
--without-tests \
|
--without-tests \
|
||||||
|
@@ -5,7 +5,7 @@ version=\
|
|||||||
|
|
||||||
url=\
|
url=\
|
||||||
(
|
(
|
||||||
"ftp://mirror.ovh.net/gentoo-distfiles/distfiles/ntp-$version.tar.gz"
|
"ftp://gentoo.mirrors.ovh.net/gentoo-distfiles/distfiles/ntp-$version.tar.gz"
|
||||||
)
|
)
|
||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
|
@@ -30,7 +30,6 @@ configure()
|
|||||||
--target="$cfg_target_canonical" \
|
--target="$cfg_target_canonical" \
|
||||||
--host="$cfg_target_canonical" \
|
--host="$cfg_target_canonical" \
|
||||||
--build="$cfg_host_canonical" \
|
--build="$cfg_host_canonical" \
|
||||||
--with-privsep-path=$cfg_dir_rootfs/var/empty \
|
|
||||||
--disable-strip
|
--disable-strip
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -5,7 +5,7 @@ version=\
|
|||||||
|
|
||||||
url=\
|
url=\
|
||||||
(
|
(
|
||||||
"http://ftp.riken.jp/Linux/kernel.org/software/utils/pciutils/pciutils-$version.tar.gz"
|
"ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/pciutils-$version.tar.gz"
|
||||||
)
|
)
|
||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
|
@@ -1,46 +0,0 @@
|
|||||||
version=\
|
|
||||||
(
|
|
||||||
"3.19"
|
|
||||||
)
|
|
||||||
|
|
||||||
url=\
|
|
||||||
(
|
|
||||||
"https://www.kernel.org/pub/linux/kernel/v3.x/linux-$version.tar.xz"
|
|
||||||
)
|
|
||||||
|
|
||||||
requires=\
|
|
||||||
(
|
|
||||||
'flex/host'
|
|
||||||
'bison/host'
|
|
||||||
'zlib/default'
|
|
||||||
)
|
|
||||||
|
|
||||||
# v3.19
|
|
||||||
md5=\
|
|
||||||
(
|
|
||||||
'd3fc8316d4d4d04b65cbc2d70799e763'
|
|
||||||
)
|
|
||||||
|
|
||||||
#3.14.63
|
|
||||||
# md5=('6cf8a6b23849f47f511e0e46cfdb6392')
|
|
||||||
|
|
||||||
build()
|
|
||||||
{
|
|
||||||
|
|
||||||
cd ../linux-$version/
|
|
||||||
$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" \
|
|
||||||
NO_LIBELF=1 \
|
|
||||||
LDFLAGS=-static \
|
|
||||||
-C "./tools/perf/"
|
|
||||||
}
|
|
||||||
|
|
||||||
target_install()
|
|
||||||
{
|
|
||||||
$cmd_cp ../linux-$version/tools/perf/perf \
|
|
||||||
$cfg_dir_rootfs/usr/bin/
|
|
||||||
}
|
|
@@ -1,60 +0,0 @@
|
|||||||
version=\
|
|
||||||
(
|
|
||||||
"1.0.0"
|
|
||||||
)
|
|
||||||
|
|
||||||
url=\
|
|
||||||
(
|
|
||||||
"http://lsts.pt/glued/raspicam-$version.zip"
|
|
||||||
)
|
|
||||||
|
|
||||||
md5=\
|
|
||||||
(
|
|
||||||
"169e62fd17d41455a42711a2f9c54fd1"
|
|
||||||
)
|
|
||||||
|
|
||||||
maintainer=\
|
|
||||||
(
|
|
||||||
'Pedro Gonçalves <pedro@lsts.pt>'
|
|
||||||
)
|
|
||||||
|
|
||||||
requires=\
|
|
||||||
(
|
|
||||||
'uv4l/default'
|
|
||||||
'cmake/host'
|
|
||||||
)
|
|
||||||
|
|
||||||
configure()
|
|
||||||
{
|
|
||||||
LINKER_ADDED_FLAGS="-Wl,-rpath,${cfg_dir_rootfs}/usr/lib"
|
|
||||||
|
|
||||||
${cfg_dir_toolchain}/usr/local/bin/cmake \
|
|
||||||
-DCMAKE_SYSTEM_NAME="Linux" \
|
|
||||||
-DCMAKE_SYSTEM_VERSION="1" \
|
|
||||||
-DCMAKE_FIND_ROOT_PATH="${cfg_dir_toolchain_sysroot}/usr ${cfg_dir_rootfs}/usr" \
|
|
||||||
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \
|
|
||||||
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
|
|
||||||
-DCMAKE_C_COMPILER="${cmd_target_cc}" \
|
|
||||||
-DCMAKE_CXX_COMPILER="${cmd_target_cxx}" \
|
|
||||||
-DCMAKE_C_FLAGS="${cfg_target_gcc_flags}" \
|
|
||||||
.
|
|
||||||
}
|
|
||||||
|
|
||||||
build()
|
|
||||||
{
|
|
||||||
$cmd_make VERBOSE=1
|
|
||||||
}
|
|
||||||
|
|
||||||
host_install()
|
|
||||||
{
|
|
||||||
cd build/
|
|
||||||
$cmd_cp -r "lib/"* "$cfg_dir_toolchain_sysroot/usr/lib/"
|
|
||||||
$cmd_cp -r "inc/"* "$cfg_dir_toolchain_sysroot/usr/include/"
|
|
||||||
}
|
|
||||||
|
|
||||||
target_install()
|
|
||||||
{
|
|
||||||
cd build/
|
|
||||||
$cmd_cp -r "lib/"* "$cfg_dir_rootfs/usr/lib/"
|
|
||||||
$cmd_cp -r "bin/"* "$cfg_dir_rootfs/usr/bin/"
|
|
||||||
}
|
|
@@ -1,29 +1,31 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'2017-02-02'
|
'2015-06-03'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
(
|
(
|
||||||
"http://lsts.pt/glued/rpi-boot-firmware-$version.zip"
|
"https://github.com/rasmartins/rpi-boot-firmware/archive/rpi-boot-firmware-$version.tar.gz"
|
||||||
)
|
)
|
||||||
|
|
||||||
maintainer=\
|
maintainer=\
|
||||||
(
|
(
|
||||||
'Ricardo Martins <rasm@fe.up.pt>'
|
'Ricardo Martins <rasm@fe.up.pt>'
|
||||||
'Pedro Gonçalves <pedro@lsts.pt>'
|
|
||||||
)
|
)
|
||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'eb42664fce4d73f167064e697dfacb76'
|
'a80ee36b66cccda4e9ccb7eb26bd6bb8'
|
||||||
)
|
)
|
||||||
|
|
||||||
target_install()
|
target_install()
|
||||||
{
|
{
|
||||||
$cmd_mkdir "$cfg_dir_rootfs/boot"
|
$cmd_mkdir \
|
||||||
|
"$cfg_dir_rootfs/boot" &&
|
||||||
|
|
||||||
$cmd_cp "../$pkg-$version/"* "$cfg_dir_rootfs/boot/"
|
for f in bootcode.bin fixup.dat start.elf; do
|
||||||
|
$cmd_cp -r "../$pkg-$pkg-$version/$f" "$cfg_dir_rootfs/boot"
|
||||||
|
done &&
|
||||||
|
|
||||||
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 -
|
||||||
}
|
}
|
||||||
|
@@ -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
|
||||||
|
@@ -5,12 +5,12 @@ version=\
|
|||||||
|
|
||||||
url=\
|
url=\
|
||||||
(
|
(
|
||||||
"https://github.com/WayneD/rsync/archive/v$version.tar.gz"
|
"http://www.samba.org/ftp/rsync/rsync-$version.tar.gz"
|
||||||
)
|
)
|
||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'e559dd27216db757f4b34d64b8bf789e'
|
'43bd6676f0b404326eee2d63be3cdcfe'
|
||||||
)
|
)
|
||||||
|
|
||||||
maintainer=\
|
maintainer=\
|
||||||
|
@@ -1,16 +1,16 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'6.04'
|
'3.82'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
(
|
(
|
||||||
"https://mirrors.edge.kernel.org/pub/linux/utils/boot/syslinux/Testing/$version/syslinux-$version-pre1.tar.gz"
|
"https://www.kernel.org/pub/linux/utils/boot/syslinux/3.xx/syslinux-$version.tar.bz2"
|
||||||
)
|
)
|
||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'fefbc39becb619339fc22c91ec7112ab'
|
'c9f4e73e385c86b3a8faf9b615a04836'
|
||||||
)
|
)
|
||||||
|
|
||||||
maintainer=\
|
maintainer=\
|
||||||
@@ -22,11 +22,4 @@ requires=\
|
|||||||
(
|
(
|
||||||
'nasm/host'
|
'nasm/host'
|
||||||
'python_host/host'
|
'python_host/host'
|
||||||
'uuid/default'
|
|
||||||
)
|
)
|
||||||
|
|
||||||
post_unpack()
|
|
||||||
{
|
|
||||||
cd ..
|
|
||||||
$cmd_cp syslinux-$version-pre1/* syslinux-$version/
|
|
||||||
}
|
|
||||||
|
@@ -2,9 +2,9 @@ source $pkg_common
|
|||||||
|
|
||||||
host_install()
|
host_install()
|
||||||
{
|
{
|
||||||
$cmd_make_single clean &&
|
$cmd_make clean &&
|
||||||
$cmd_make_single CC="$cmd_target_cc" &&
|
$cmd_make &&
|
||||||
cp -d bios/extlinux/extlinux ${cfg_dir_toolchain}/bin/extlinux
|
cp -d extlinux/extlinux ${cfg_dir_toolchain}/bin/extlinux
|
||||||
}
|
}
|
||||||
|
|
||||||
target_install()
|
target_install()
|
||||||
@@ -19,11 +19,11 @@ target_install()
|
|||||||
export cfg_kernel_boot_dev='/dev/sda1'
|
export cfg_kernel_boot_dev='/dev/sda1'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$cmd_make_single clean &&
|
$cmd_make clean &&
|
||||||
$cmd_make_single CC="$cmd_target_cc" &&
|
$cmd_make CC="$cmd_target_cc" &&
|
||||||
$cmd_target_strip bios/extlinux/extlinux -o $cfg_dir_rootfs/usr/sbin/extlinux &&
|
$cmd_target_strip extlinux/extlinux -o $cfg_dir_rootfs/usr/sbin/extlinux &&
|
||||||
$cmd_mkdir $cfg_dir_rootfs/boot/extlinux &&
|
$cmd_mkdir $cfg_dir_rootfs/boot/extlinux &&
|
||||||
cp -d bios/mbr/mbr.bin $cfg_dir_rootfs/boot/extlinux &&
|
cp -d mbr/mbr.bin $cfg_dir_rootfs/boot/extlinux &&
|
||||||
(echo $console ; cat "$pkg_dir"/extlinux.conf) \
|
(echo $console ; cat "$pkg_dir"/extlinux.conf) \
|
||||||
| sed "s%\$cfg_kernel_extra_args%$cfg_kernel_extra_args%g" \
|
| sed "s%\$cfg_kernel_extra_args%$cfg_kernel_extra_args%g" \
|
||||||
| sed "s%\$cfg_kernel_boot_dev%$cfg_kernel_boot_dev%g" \
|
| sed "s%\$cfg_kernel_boot_dev%$cfg_kernel_boot_dev%g" \
|
||||||
|
@@ -1,6 +1,3 @@
|
|||||||
LABEL linux
|
LABEL linux
|
||||||
KERNEL /boot/kernel
|
KERNEL /boot/kernel
|
||||||
APPEND rootwait root=$cfg_kernel_boot_dev rootfstype=ext2 ro $cfg_kernel_extra_args
|
APPEND rootwait root=$cfg_kernel_boot_dev rootfstype=ext2 ro $cfg_kernel_extra_args
|
||||||
|
|
||||||
LABEL memtest
|
|
||||||
LINUX /boot/memtest.bin
|
|
@@ -2,9 +2,9 @@ source $pkg_common
|
|||||||
|
|
||||||
host_install()
|
host_install()
|
||||||
{
|
{
|
||||||
$cmd_make_single clean &&
|
$cmd_make clean &&
|
||||||
$cmd_make_single CC="$cmd_target_cc" &&
|
$cmd_make &&
|
||||||
cp -d bios/extlinux/extlinux ${cfg_dir_toolchain}/bin &&
|
cp -d extlinux/extlinux ${cfg_dir_toolchain}/bin &&
|
||||||
mkdir -p ${cfg_dir_toolchain}/boot &&
|
mkdir -p ${cfg_dir_toolchain}/boot &&
|
||||||
cp -d bios/mbr/mbr.bin ${cfg_dir_toolchain}/boot/mbr.bin
|
cp -d mbr/mbr.bin ${cfg_dir_toolchain}/boot/mbr.bin
|
||||||
}
|
}
|
||||||
|
@@ -1,10 +0,0 @@
|
|||||||
maintainer=\
|
|
||||||
(
|
|
||||||
'Pedro Gonçalves <pedro@lsts.pt>'
|
|
||||||
)
|
|
||||||
|
|
||||||
host_install()
|
|
||||||
{
|
|
||||||
cp -rv $cfg_dir_toolchain/include/uuid $cfg_dir_toolchain_sysroot/usr/include/
|
|
||||||
$cmd_cp $cfg_dir_toolchain/lib/libuuid* $cfg_dir_toolchain_sysroot/usr/lib/
|
|
||||||
}
|
|
@@ -1,41 +0,0 @@
|
|||||||
version=\
|
|
||||||
(
|
|
||||||
"1.0.0"
|
|
||||||
)
|
|
||||||
|
|
||||||
url=\
|
|
||||||
(
|
|
||||||
"http://lsts.pt/glued/uv4l.$version.tar.bz2"
|
|
||||||
)
|
|
||||||
|
|
||||||
md5=\
|
|
||||||
(
|
|
||||||
"869e884accbfa9c2356e2fd9307dd71c"
|
|
||||||
)
|
|
||||||
|
|
||||||
maintainer=\
|
|
||||||
(
|
|
||||||
'Pedro Gonçalves <pedro@lsts.pt>'
|
|
||||||
)
|
|
||||||
|
|
||||||
post_unpack()
|
|
||||||
{
|
|
||||||
mv "../etc" "../uv4l-$version/"
|
|
||||||
mv "../usr" "../uv4l-$version/"
|
|
||||||
}
|
|
||||||
|
|
||||||
host_install()
|
|
||||||
{
|
|
||||||
$cmd_cp -r "usr/lib/"* "$cfg_dir_toolchain_sysroot/usr/lib/"
|
|
||||||
$cmd_cp -r "usr/include/"* "$cfg_dir_toolchain_sysroot/usr/include/"
|
|
||||||
}
|
|
||||||
|
|
||||||
target_install()
|
|
||||||
{
|
|
||||||
$cmd_cp -r "usr/lib/"* "$cfg_dir_rootfs/usr/lib/"
|
|
||||||
$cmd_cp -r "usr/bin/"* "$cfg_dir_rootfs/usr/bin/"
|
|
||||||
|
|
||||||
tar -C "$pkg_dir/fs" -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
@@ -1,28 +0,0 @@
|
|||||||
start()
|
|
||||||
{
|
|
||||||
killall uv4l
|
|
||||||
modprobe cuse &&
|
|
||||||
uv4l \
|
|
||||||
-nopreview \
|
|
||||||
--auto-video_nr \
|
|
||||||
--driver raspicam \
|
|
||||||
--encoding h264 \
|
|
||||||
--width 1080 \
|
|
||||||
--height 720 \
|
|
||||||
--framerate 20 \
|
|
||||||
--quality 10 \
|
|
||||||
--server-option \
|
|
||||||
--port=9090 \
|
|
||||||
--server-option \
|
|
||||||
--max-queued-connections=30 \
|
|
||||||
--server-option \
|
|
||||||
--max-streams=25 \
|
|
||||||
--server-option \
|
|
||||||
--max-threads=29
|
|
||||||
}
|
|
||||||
|
|
||||||
stop()
|
|
||||||
{
|
|
||||||
killall uv4l
|
|
||||||
rmmod uv4l
|
|
||||||
}
|
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
"1.0.6"
|
"1.1.13"
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
@@ -12,22 +12,28 @@ url=\
|
|||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
"246a3865ec037f8f5757ef6b973a80fc"
|
"9678fb7a04808b6e0de63746d35e4bb1"
|
||||||
|
)
|
||||||
|
|
||||||
|
maintainer=\
|
||||||
|
(
|
||||||
|
'?'
|
||||||
|
'Tiago Marques <tsmarques@fe.up.pt>'
|
||||||
)
|
)
|
||||||
|
|
||||||
requires=\
|
requires=\
|
||||||
(
|
(
|
||||||
'x264/default'
|
'x264/default'
|
||||||
# 'ffmpeg/default'
|
|
||||||
)
|
)
|
||||||
|
|
||||||
configure()
|
configure()
|
||||||
{
|
{
|
||||||
|
./bootstrap
|
||||||
./configure \
|
./configure \
|
||||||
--prefix="${cfg_dir_toolchain_sysroot}/usr" \
|
--prefix="${cfg_dir_toolchain_sysroot}/usr" \
|
||||||
--build="$cfg_host_canonical" \
|
--build="$cfg_host_canonical" \
|
||||||
--host="$cfg_target_canonical" \
|
--host="$cfg_target_canonical" \
|
||||||
--enable-run-as-root \
|
--enable-run-as-root \
|
||||||
--disable-dbus-control \
|
--disable-dbus-control \
|
||||||
--disable-dbus \
|
--disable-dbus \
|
||||||
--disable-hal \
|
--disable-hal \
|
||||||
@@ -42,7 +48,20 @@ configure()
|
|||||||
--disable-skins2 \
|
--disable-skins2 \
|
||||||
--disable-lua \
|
--disable-lua \
|
||||||
--disable-x11 \
|
--disable-x11 \
|
||||||
--disable-glx
|
--disable-glx \
|
||||||
|
--disable-bonjour \
|
||||||
|
--disable-upnp \
|
||||||
|
--disable-udev \
|
||||||
|
--disable-mtp \
|
||||||
|
--disable-libgcrypt \
|
||||||
|
--disable-remoteosd \
|
||||||
|
CC="$cmd_target_cc" \
|
||||||
|
enable_xcb="no" \
|
||||||
|
enable_goom="no" \
|
||||||
|
enable_projectm="no" \
|
||||||
|
enable_alsa="no" \
|
||||||
|
enable_portaudio="no" \
|
||||||
|
enable_v4l2="no"
|
||||||
}
|
}
|
||||||
|
|
||||||
build()
|
build()
|
||||||
|
@@ -19,7 +19,8 @@ configure()
|
|||||||
--sysroot="${cfg_dir_toolchain_sysroot}" \
|
--sysroot="${cfg_dir_toolchain_sysroot}" \
|
||||||
--cross-prefix="${cmd_target_prefix}" \
|
--cross-prefix="${cmd_target_prefix}" \
|
||||||
--host="$cfg_target_canonical" \
|
--host="$cfg_target_canonical" \
|
||||||
--prefix="${cfg_dir_toolchain_sysroot}/usr"
|
--prefix="${cfg_dir_toolchain_sysroot}/usr" \
|
||||||
|
--disable-asm
|
||||||
}
|
}
|
||||||
|
|
||||||
build()
|
build()
|
||||||
|
@@ -1,46 +0,0 @@
|
|||||||
version=\
|
|
||||||
(
|
|
||||||
"4.1.3"
|
|
||||||
)
|
|
||||||
|
|
||||||
url=\
|
|
||||||
(
|
|
||||||
"http://download.zeromq.org/zeromq-$version.tar.gz"
|
|
||||||
)
|
|
||||||
|
|
||||||
md5=\
|
|
||||||
(
|
|
||||||
"d0824317348cfb44b8692e19cc73dc3a"
|
|
||||||
)
|
|
||||||
|
|
||||||
configure()
|
|
||||||
{
|
|
||||||
./configure \
|
|
||||||
--prefix="${cfg_dir_toolchain_sysroot}/usr" \
|
|
||||||
--target="$cfg_target_canonical" \
|
|
||||||
--host="$cfg_target_canonical" \
|
|
||||||
--build="$cfg_host_canonical" \
|
|
||||||
--without-libsodium
|
|
||||||
}
|
|
||||||
|
|
||||||
build()
|
|
||||||
{
|
|
||||||
$cmd_make
|
|
||||||
}
|
|
||||||
|
|
||||||
host_install()
|
|
||||||
{
|
|
||||||
$cmd_make install
|
|
||||||
}
|
|
||||||
|
|
||||||
target_install()
|
|
||||||
{
|
|
||||||
# Libs:
|
|
||||||
for f in "$cfg_dir_toolchain_sysroot/usr/lib/"libzmq.*; do
|
|
||||||
if [ -L "$f" ]; then
|
|
||||||
$cmd_cp "$f" "$cfg_dir_rootfs/usr/lib"
|
|
||||||
else
|
|
||||||
$cmd_target_strip -v "$f" -o "$cfg_dir_rootfs/usr/lib/$(basename "$f")"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
@@ -1,2 +0,0 @@
|
|||||||
cfg_hostname='aries-atom-testbed'
|
|
||||||
cfg_eth_ext_ip='10.0.200.66'
|
|
File diff suppressed because it is too large
Load Diff
2
systems/lauv-atom/lauv-atom-testbed.cfg
Normal file
2
systems/lauv-atom/lauv-atom-testbed.cfg
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
cfg_hostname='lauv-atom-testbed'
|
||||||
|
cfg_eth_ext_ip='10.0.200.92'
|
@@ -1,85 +0,0 @@
|
|||||||
diff -Nru a/drivers/tty/serial/8250/8250_aim104_com8.c b/drivers/tty/serial/8250/8250_aim104_com8.c
|
|
||||||
--- a/drivers/tty/serial/8250/8250_aim104_com8.c 1970-01-01 01:00:00.000000000 +0100
|
|
||||||
+++ b/drivers/tty/serial/8250/8250_aim104_com8.c 2012-05-31 13:13:13.794585528 +0100
|
|
||||||
@@ -0,0 +1,51 @@
|
|
||||||
+#include <linux/module.h>
|
|
||||||
+#include <linux/init.h>
|
|
||||||
+#include <linux/serial_8250.h>
|
|
||||||
+
|
|
||||||
+#define PORT(_base,_irq) \
|
|
||||||
+ { \
|
|
||||||
+ .iobase = _base, \
|
|
||||||
+ .irq = _irq, \
|
|
||||||
+ .uartclk = 1843200, \
|
|
||||||
+ .iotype = UPIO_PORT, \
|
|
||||||
+ .flags = UPF_BOOT_AUTOCONF | UPF_BUGGY_UART, \
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+static struct plat_serial8250_port aim104_data[] = {
|
|
||||||
+ PORT(0x100, 10),
|
|
||||||
+ PORT(0x108, 10),
|
|
||||||
+ PORT(0x110, 10),
|
|
||||||
+ PORT(0x118, 10),
|
|
||||||
+ PORT(0x120, 10),
|
|
||||||
+ PORT(0x128, 10),
|
|
||||||
+ PORT(0x130, 10),
|
|
||||||
+ PORT(0x138, 10),
|
|
||||||
+ PORT(0x300, 6),
|
|
||||||
+ PORT(0x308, 6),
|
|
||||||
+ PORT(0x310, 6),
|
|
||||||
+ PORT(0x318, 6),
|
|
||||||
+ PORT(0x320, 6),
|
|
||||||
+ PORT(0x328, 6),
|
|
||||||
+ PORT(0x330, 6),
|
|
||||||
+ PORT(0x338, 6),
|
|
||||||
+ { },
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
+static struct platform_device exar_device = {
|
|
||||||
+ .name = "serial8250",
|
|
||||||
+ .id = PLAT8250_DEV_PLATFORM,
|
|
||||||
+ .dev = {
|
|
||||||
+ .platform_data = aim104_data,
|
|
||||||
+ },
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
+static int __init exar_init(void)
|
|
||||||
+{
|
|
||||||
+ return platform_device_register(&exar_device);
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+module_init(exar_init);
|
|
||||||
+
|
|
||||||
+MODULE_AUTHOR("Ricardo Martins");
|
|
||||||
+MODULE_DESCRIPTION("8250 serial probe module for Eurotech AIM104-COM8");
|
|
||||||
+MODULE_LICENSE("GPL");
|
|
||||||
diff -Nru a/drivers/tty/serial/8250/Kconfig b/drivers/tty/serial/8250/Kconfig
|
|
||||||
--- a/drivers/tty/serial/8250/Kconfig 2012-05-21 19:42:51.000000000 +0100
|
|
||||||
+++ b/drivers/tty/serial/8250/Kconfig 2012-05-31 13:14:45.942587436 +0100
|
|
||||||
@@ -202,6 +202,15 @@
|
|
||||||
To compile this driver as a module, choose M here: the module
|
|
||||||
will be called 8250_exar_st16c554.
|
|
||||||
|
|
||||||
+config SERIAL_8250_AIM104_COM8
|
|
||||||
+ tristate "Support Eurotech AIM104-COM8 Dual Quad UART"
|
|
||||||
+ depends on SERIAL_8250 != n && ISA && SERIAL_8250_MANY_PORTS
|
|
||||||
+ help
|
|
||||||
+ Eurotech AIM104-COM8 Dual Quad UART.
|
|
||||||
+
|
|
||||||
+ To compile this driver as a module, choose M here: the module
|
|
||||||
+ will be called 8250_aim104_com8.
|
|
||||||
+
|
|
||||||
config SERIAL_8250_HUB6
|
|
||||||
tristate "Support Hub6 cards"
|
|
||||||
depends on SERIAL_8250 != n && ISA && SERIAL_8250_MANY_PORTS
|
|
||||||
diff -Nru a/drivers/tty/serial/8250/Makefile b/drivers/tty/serial/8250/Makefile
|
|
||||||
--- a/drivers/tty/serial/8250/Makefile 2012-05-21 19:42:51.000000000 +0100
|
|
||||||
+++ b/drivers/tty/serial/8250/Makefile 2012-05-31 13:15:15.366347016 +0100
|
|
||||||
@@ -14,6 +14,7 @@
|
|
||||||
obj-$(CONFIG_SERIAL_8250_ACCENT) += 8250_accent.o
|
|
||||||
obj-$(CONFIG_SERIAL_8250_BOCA) += 8250_boca.o
|
|
||||||
obj-$(CONFIG_SERIAL_8250_EXAR_ST16C554) += 8250_exar_st16c554.o
|
|
||||||
+obj-$(CONFIG_SERIAL_8250_AIM104_COM8) += 8250_aim104_com8.o
|
|
||||||
obj-$(CONFIG_SERIAL_8250_HUB6) += 8250_hub6.o
|
|
||||||
obj-$(CONFIG_SERIAL_8250_MCA) += 8250_mca.o
|
|
||||||
obj-$(CONFIG_SERIAL_8250_FSL) += 8250_fsl.o
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -6,12 +6,13 @@ cfg_services1='lauv-storage-server'
|
|||||||
cfg_services2='dune'
|
cfg_services2='dune'
|
||||||
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind nfs-utils rpi-boot-firmware linux/rpi'
|
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind nfs-utils rpi-boot-firmware linux/rpi'
|
||||||
cfg_target_linux_kernel='arch/arm/boot/zImage'
|
cfg_target_linux_kernel='arch/arm/boot/zImage'
|
||||||
|
cfg_target_linux_dtb='arch/arm/boot/dts/bcm2709-rpi-2-b.dtb'
|
||||||
cfg_ptpd_interface='eth0'
|
cfg_ptpd_interface='eth0'
|
||||||
cfg_terminal='ttyAMA0'
|
cfg_terminal='ttyAMA0'
|
||||||
cfg_lauv_storage_dir='/opt/lsts/dune/log'
|
cfg_lauv_storage_dir='/opt/lsts/dune/log'
|
||||||
cfg_partitions=\
|
cfg_partitions=\
|
||||||
(
|
(
|
||||||
rpi-boot BOOT0 512B 32MiB
|
rpi-boot boot0 512B 32MiB
|
||||||
root root0 32MiB 544MiB
|
root root0 32MiB 544MiB
|
||||||
data data0 544MiB -1
|
data data0 544MiB -1
|
||||||
)
|
)
|
||||||
|
@@ -1,9 +1 @@
|
|||||||
# Core.
|
|
||||||
arm_freq=1000
|
arm_freq=1000
|
||||||
|
|
||||||
# Disable BT on Rpi3.
|
|
||||||
dtoverlay=pi3-disable-bt
|
|
||||||
|
|
||||||
# Enable RasPicam
|
|
||||||
start_x=1
|
|
||||||
gpu_mem=128
|
|
||||||
|
@@ -1,2 +0,0 @@
|
|||||||
cfg_hostname='lauv-arpao-aux'
|
|
||||||
cfg_eth_ext_ip='10.0.10.63'
|
|
@@ -3,4 +3,3 @@ cfg_eth_ext_ip='10.0.200.24'
|
|||||||
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_ptpd_interface='eth0'
|
cfg_ptpd_interface='eth0'
|
||||||
cfg_services1=''
|
|
||||||
|
@@ -1,10 +0,0 @@
|
|||||||
cfg_hostname='lauv-xplore-3-aux'
|
|
||||||
cfg_eth_ext_ip='10.0.10.143'
|
|
||||||
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'
|
|
||||||
|
|
@@ -1,10 +0,0 @@
|
|||||||
cfg_hostname='lauv-xplore-4-aux'
|
|
||||||
cfg_eth_ext_ip='10.0.10.153'
|
|
||||||
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'
|
|
||||||
|
|
@@ -1,10 +0,0 @@
|
|||||||
cfg_hostname='lauv-xplore-5-aux'
|
|
||||||
cfg_eth_ext_ip='10.0.10.163'
|
|
||||||
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'
|
|
||||||
|
|
@@ -3,3 +3,4 @@ cfg_eth_ext_ip='10.0.10.53'
|
|||||||
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_ptpd_interface='eth0'
|
cfg_ptpd_interface='eth0'
|
||||||
|
cfg_lauv_storage='internal'
|
||||||
|
@@ -136,7 +136,7 @@ CONFIG_HAVE_PCSPKR_PLATFORM=y
|
|||||||
CONFIG_EXPERT=y
|
CONFIG_EXPERT=y
|
||||||
# CONFIG_UID16 is not set
|
# CONFIG_UID16 is not set
|
||||||
# CONFIG_SYSCTL_SYSCALL is not set
|
# CONFIG_SYSCTL_SYSCALL is not set
|
||||||
CONFIG_KALLSYMS=y
|
# CONFIG_KALLSYMS is not set
|
||||||
CONFIG_PRINTK=y
|
CONFIG_PRINTK=y
|
||||||
CONFIG_BUG=y
|
CONFIG_BUG=y
|
||||||
CONFIG_ELF_CORE=y
|
CONFIG_ELF_CORE=y
|
||||||
@@ -1900,7 +1900,7 @@ CONFIG_DEFAULT_MESSAGE_LOGLEVEL=4
|
|||||||
#
|
#
|
||||||
# Compile-time checks and compiler options
|
# Compile-time checks and compiler options
|
||||||
#
|
#
|
||||||
CONFIG_DEBUG_INFO=y
|
# CONFIG_DEBUG_INFO is not set
|
||||||
# CONFIG_ENABLE_WARN_DEPRECATED is not set
|
# CONFIG_ENABLE_WARN_DEPRECATED is not set
|
||||||
# CONFIG_ENABLE_MUST_CHECK is not set
|
# CONFIG_ENABLE_MUST_CHECK is not set
|
||||||
CONFIG_FRAME_WARN=2048
|
CONFIG_FRAME_WARN=2048
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -4,7 +4,7 @@ cfg_services0='dropbear network storage upgrade syslog escc ptpd setserial'
|
|||||||
cfg_services1=''
|
cfg_services1=''
|
||||||
cfg_services2='dune'
|
cfg_services2='dune'
|
||||||
cfg_modules=''
|
cfg_modules=''
|
||||||
cfg_packages='coreboot-lsts emm-8p-xt-eeprom zlib dropbear rsync busybox flashrom e2fsprogs socat linux escc syslinux syslinux/host ptpd ntp uswitch pciutils bzip2 memtest86+'
|
cfg_packages='coreboot-lsts emm-8p-xt-eeprom zlib dropbear rsync busybox flashrom e2fsprogs socat linux escc syslinux syslinux/host ptpd ntp uswitch pciutils bzip2'
|
||||||
cfg_terminal='ttyS0'
|
cfg_terminal='ttyS0'
|
||||||
cfg_target_linux_kernel='arch/x86/boot/bzImage'
|
cfg_target_linux_kernel='arch/x86/boot/bzImage'
|
||||||
cfg_ptpd_master='true'
|
cfg_ptpd_master='true'
|
||||||
@@ -12,5 +12,5 @@ cfg_ptpd_interface='eth0'
|
|||||||
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_eth_prv_ip='192.168.0.1'
|
cfg_eth_prv_ip='192.168.0.1'
|
||||||
cfg_escc_script=''
|
cfg_escc_script='/etc/escc/hg1700.sh'
|
||||||
cfg_kernel_extra_args='panic=5 quiet'
|
cfg_kernel_extra_args='panic=5 quiet'
|
||||||
|
@@ -1,2 +0,0 @@
|
|||||||
cfg_hostname='lauv-arpao'
|
|
||||||
cfg_eth_ext_ip='10.0.10.60'
|
|
@@ -1,3 +1,2 @@
|
|||||||
cfg_hostname='lauv-xplore-1'
|
cfg_hostname='lauv-xplore-1'
|
||||||
cfg_eth_ext_ip='10.0.10.120'
|
cfg_eth_ext_ip='10.0.10.120'
|
||||||
cfg_modules="$cfg_modules ftdi_sio"
|
|
||||||
|
@@ -1,2 +0,0 @@
|
|||||||
cfg_hostname='lauv-xplore-3'
|
|
||||||
cfg_eth_ext_ip='10.0.10.140'
|
|
@@ -1,2 +0,0 @@
|
|||||||
cfg_hostname='lauv-xplore-4'
|
|
||||||
cfg_eth_ext_ip='10.0.10.150'
|
|
@@ -1,2 +0,0 @@
|
|||||||
cfg_hostname='lauv-xplore-5'
|
|
||||||
cfg_eth_ext_ip='10.0.10.160'
|
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user