Compare commits
187 Commits
glued-1.8.
...
glued-1.11
Author | SHA1 | Date | |
---|---|---|---|
|
45030c6f61 | ||
|
dc09e4a511 | ||
|
3f1ded3754 | ||
|
05ca6917e6 | ||
|
3422f09171 | ||
|
01c8b31a6b | ||
|
e124fbd933 | ||
|
b09fc122bb | ||
|
6f4d20747f | ||
|
d8b985474c | ||
|
4f76b5e091 | ||
|
2d60ba874c | ||
|
f3c4d8a793 | ||
|
d3fffebd36 | ||
|
af1c9e2e5a | ||
|
52515e0854 | ||
|
9ec68a7f99 | ||
|
dd980c2220 | ||
|
178dfec636 | ||
|
b356406c7e | ||
|
a05cd25ffa | ||
|
bef85cd228 | ||
|
d559f5fd72 | ||
|
6830d49697 | ||
|
fa4914abb3 | ||
|
ab0accd012 | ||
|
effad90f25 | ||
|
074e6518c3 | ||
|
fc6b7d700a | ||
|
5ae68aaf7b | ||
|
039639982b | ||
|
1ee48444f2 | ||
|
d7432d39ea | ||
|
8fe415232d | ||
|
6d110a03f9 | ||
|
6b37797193 | ||
|
08d73a4667 | ||
|
f8f71d49da | ||
|
4c47cf9bb1 | ||
|
ff6257a6ca | ||
|
ce006946d3 | ||
|
b5b200d9bf | ||
|
40ca3c2f6f | ||
|
55179a6a95 | ||
|
64cfe628dc | ||
|
ddb004cb14 | ||
|
587b422db7 | ||
|
ddd0f2714d | ||
|
69afe31569 | ||
|
d11f1edbd2 | ||
|
932c6aed4a | ||
|
1779cb1156 | ||
|
806e9839d7 | ||
|
da30019e2a | ||
|
f7a8d8c433 | ||
|
8f541724ba | ||
|
ba16f069b0 | ||
|
d70ea5668d | ||
|
7e1449f0be | ||
|
1902de8be2 | ||
|
79840465ad | ||
|
3713a4548f | ||
|
1776a7f9f9 | ||
|
2f143b5697 | ||
|
c02b3f3e00 | ||
|
bebfb9e2b4 | ||
|
a29015ba33 | ||
|
2b6ae382c9 | ||
|
4dcbe0b787 | ||
|
eaf0c7d347 | ||
|
6420cb1823 | ||
|
ae75cb017f | ||
|
bfb17158e6 | ||
|
96e867964a | ||
|
4a840271f3 | ||
|
82dea6e18b | ||
|
842d6da359 | ||
|
2b744185dd | ||
|
56dd20083d | ||
|
0868d856c1 | ||
|
f51e0a604d | ||
|
b3f8e3a3af | ||
|
1259bc6928 | ||
|
116e0ce235 | ||
|
f582c053ac | ||
|
14ea580d6d | ||
|
2fc8349a50 | ||
|
1c5f9b8a7f | ||
|
2307adfc8b | ||
|
26e028f142 | ||
|
bc9064fcce | ||
|
0d7a4a8308 | ||
|
f68d95b29c | ||
|
1a3c4aafdd | ||
|
e7d24740cb | ||
|
40e678ddf5 | ||
|
0b5525d2dd | ||
|
2ed1e7f1cb | ||
|
866a0d0a62 | ||
|
5b67da014a | ||
|
ed699ec2aa | ||
|
3266b92172 | ||
|
c54efd3d76 | ||
|
518a0af694 | ||
|
b3cf64ddc3 | ||
|
8cc2c75a3c | ||
|
5dc43cb8cf | ||
|
4385db8758 | ||
|
bdb5effbf8 | ||
|
886d2217ae | ||
|
ebed4a1738 | ||
|
2aa9510159 | ||
|
c6def817f8 | ||
|
aa596e2980 | ||
|
84c92934a0 | ||
|
1f589b02cf | ||
|
37fc0728bb | ||
|
11506f7697 | ||
|
9cb6141508 | ||
|
7d5ce0c2e4 | ||
|
be7eac325d | ||
|
f1df793465 | ||
|
d5930d76d2 | ||
|
930348e7fa | ||
|
c53a963048 | ||
|
87ba2c2876 | ||
|
ff654d7e9a | ||
|
772ee47676 | ||
|
9bebfe527c | ||
|
e4923485cf | ||
|
9e120b528c | ||
|
982207507a | ||
|
857c442b97 | ||
|
aa023f7765 | ||
|
b16839538d | ||
|
fac4f7c532 | ||
|
e707a403cc | ||
|
61867d7f74 | ||
|
6ac8e69acd | ||
|
d30869adba | ||
|
7bfe490e3b | ||
|
ede06d07c8 | ||
|
b1a87076a3 | ||
|
9c2e8b4c8a | ||
|
362a668c25 | ||
|
287da9073b | ||
|
3512bba3ca | ||
|
78e00599cc | ||
|
3bfa7e176c | ||
|
c28411208a | ||
|
5bda410e3e | ||
|
56c065b51b | ||
|
132fcaa531 | ||
|
194d6116eb | ||
|
e4b430b23c | ||
|
a0efadc2d5 | ||
|
1650a8becd | ||
|
e6ed397a9f | ||
|
77ef845247 | ||
|
6d29df1ded | ||
|
6990d3f0f8 | ||
|
660a2a20f0 | ||
|
e257522a21 | ||
|
b95a2f9f9b | ||
|
4255957dca | ||
|
0912c074c8 | ||
|
59a8643fb1 | ||
|
07caf7eec9 | ||
|
0e2f041f30 | ||
|
eb7b97af99 | ||
|
e50b1c84d3 | ||
|
70ce9a9f63 | ||
|
23eda780fc | ||
|
fa2366ad0b | ||
|
adc9ee5076 | ||
|
7d2a65b207 | ||
|
b61cf9c209 | ||
|
bdf0eabb3f | ||
|
0be67b7a8a | ||
|
ca92d8c2cb | ||
|
8c1168dd62 | ||
|
017b61c00a | ||
|
ef064bd167 | ||
|
2ed647f110 | ||
|
dc023bdc37 | ||
|
2de0e986f9 | ||
|
d68ebd33e6 |
9
.gitignore
vendored
9
.gitignore
vendored
@@ -1 +1,8 @@
|
||||
downloads
|
||||
/downloads
|
||||
/lctr-a4xx
|
||||
/lctr-a6xx
|
||||
/lctr-a8xx
|
||||
/lctr-a9xx
|
||||
/lctr-b1xx
|
||||
/lctr-b2xx
|
||||
/qemu-i686
|
||||
|
12
README.md
12
README.md
@@ -18,10 +18,10 @@ terminal:
|
||||
./mkconfig.bash list
|
||||
|
||||
Once you have identified the name of the system you want to build,
|
||||
issue the following command, replacing <system_name> with the name of
|
||||
issue the following command, replacing \<system_name> with the name of
|
||||
that system:
|
||||
|
||||
./mkconfig.bash <system_name>
|
||||
./mkconfig.bash \<system_name>
|
||||
|
||||
Building
|
||||
========
|
||||
@@ -31,7 +31,7 @@ necessary packages.
|
||||
|
||||
To start the compilation process, issue the following command:
|
||||
|
||||
./mksystem.bash <config_file>
|
||||
./mksystem.bash \<config_file>
|
||||
|
||||
Archives
|
||||
========
|
||||
@@ -46,7 +46,7 @@ To create a package containing all the necessary tools to
|
||||
cross-compile C/C++ programs for you target system, issue the
|
||||
following command:
|
||||
|
||||
./pktoolchain.bash <config_file>
|
||||
./pktoolchain.bash \<config_file>
|
||||
|
||||
Root Filesystem Archive
|
||||
-----------------------
|
||||
@@ -56,7 +56,7 @@ GLUED system. It allows you to upgrade existing GLUED systems and
|
||||
initialize storage devices. To create a root filesystem archive, issue
|
||||
the following command:
|
||||
|
||||
./pkrootfs.bash <config_file>
|
||||
./pkrootfs.bash \<config_file>
|
||||
|
||||
Initializing Storage Devices
|
||||
============================
|
||||
@@ -72,7 +72,7 @@ To perform all of the previous steps, you must first identify the
|
||||
target block device file and then issue the following command (as
|
||||
root):
|
||||
|
||||
./mkdisk.bash <config_file> <block_device>
|
||||
./mkdisk.bash \<config_file> \<block_device>
|
||||
|
||||
Example
|
||||
=======
|
||||
|
@@ -1,3 +1,26 @@
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2007-2014 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: Ricardo Martins #
|
||||
###########################################################################
|
||||
|
||||
nfo1()
|
||||
{
|
||||
echo -e "[$(date +"%Y-%m-%d %H:%M:%S")] \033[0m\033[1;34m* $*\033[0m"
|
||||
|
@@ -1,16 +1,29 @@
|
||||
#! /bin/bash
|
||||
#############################################################################
|
||||
# Copyright (C) 2007-2012 Laboratório de Sistemas e Tecnologia Subaquática #
|
||||
# Departamento de Engenharia Electrotécnica e de Computadores #
|
||||
# Rua Dr. Roberto Frias, 4200-465 Porto, Portugal #
|
||||
#############################################################################
|
||||
# Author: Ricardo Martins #
|
||||
#############################################################################
|
||||
# $Id:: mkconfig.bash 1629 2013-06-30 11:39:30Z rasm $:#
|
||||
#############################################################################
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2007-2014 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: Ricardo Martins #
|
||||
###########################################################################
|
||||
|
||||
# Config: GLUED version.
|
||||
cfg_glued_version='1.8.3'
|
||||
cfg_glued_version='1.11.1'
|
||||
# Config: GLUED vendor.
|
||||
cfg_glued_vendor='lsts'
|
||||
|
||||
@@ -77,14 +90,15 @@ if ! [ -f "architectures/$cfg_architecture.cfg" ]; then
|
||||
fi
|
||||
source "architectures/$cfg_architecture.cfg"
|
||||
|
||||
# Creating the mac address if not set in configuration file we create one derivated from the IP address:
|
||||
if [ -n $cfg_eth_ext_ip ]; then
|
||||
ips=(`echo $cfg_eth_ext_ip | sed -e 's/\./\n/g'`)
|
||||
for i in "${ips[@]}"
|
||||
do
|
||||
hip=("${hip[@]}" `printf '%x' $i`)
|
||||
done
|
||||
cfg_eth_ext_mac="80:c1:${hip[0]}:${hip[1]}:${hip[2]}:${hip[3]}"
|
||||
# Create a MAC address based on the IP address if cfg_eth_ext_soft_mac
|
||||
# is set.
|
||||
if [ -n "$cfg_eth_ext_ip" ] && [ -n "$cfg_eth_ext_soft_mac" ]; then
|
||||
ips=(`echo $cfg_eth_ext_ip | sed -e 's/\./\n/g'`)
|
||||
for i in "${ips[@]}"
|
||||
do
|
||||
hip=("${hip[@]}" `printf '%x' $i`)
|
||||
done
|
||||
cfg_eth_ext_mac="80:c1:${hip[0]}:${hip[1]}:${hip[2]}:${hip[3]}"
|
||||
fi
|
||||
|
||||
# Config: system name.
|
||||
@@ -98,7 +112,7 @@ cfg_dir_base="$PWD"
|
||||
# Config: system configuration folder.
|
||||
cfg_dir_system="$cfg_dir_base/$family_dir"
|
||||
# Config: package rules folder.
|
||||
cfg_dir_packages="$cfg_dir_base/packages"
|
||||
cfg_dir_rules="$cfg_dir_base/rules"
|
||||
# Config: configuration rules folder.
|
||||
cfg_dir_postconfiguration="$cfg_dir_base/postconfiguration"
|
||||
# Config: package sources folder.
|
||||
|
31
mkdisk.bash
31
mkdisk.bash
@@ -1,13 +1,26 @@
|
||||
#! /bin/bash
|
||||
#############################################################################
|
||||
# Copyright (C) 2007-2012 Laboratório de Sistemas e Tecnologia Subaquática #
|
||||
# Departamento de Engenharia Electrotécnica e de Computadores #
|
||||
# Rua Dr. Roberto Frias, 4200-465 Porto, Portugal #
|
||||
#############################################################################
|
||||
# Author: Ricardo Martins #
|
||||
#############################################################################
|
||||
# $Id:: $:#
|
||||
#############################################################################
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2007-2014 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: Ricardo Martins #
|
||||
###########################################################################
|
||||
|
||||
cmd_parted()
|
||||
{
|
||||
|
110
mkpackage.bash
110
mkpackage.bash
@@ -1,13 +1,26 @@
|
||||
#! /bin/bash
|
||||
#############################################################################
|
||||
# Copyright (C) 2007-2012 Laboratório de Sistemas e Tecnologia Subaquática #
|
||||
# Departamento de Engenharia Electrotécnica e de Computadores #
|
||||
# Rua Dr. Roberto Frias, 4200-465 Porto, Portugal #
|
||||
#############################################################################
|
||||
# Author: Ricardo Martins #
|
||||
#############################################################################
|
||||
# $Id:: mkpackage.bash 1408 2013-02-06 14:10:34Z nurc $:#
|
||||
#############################################################################
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2007-2014 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: Ricardo Martins #
|
||||
###########################################################################
|
||||
|
||||
source "functions.bash"
|
||||
|
||||
@@ -80,6 +93,21 @@ download()
|
||||
let n++
|
||||
done
|
||||
|
||||
n=0; while [ -n "${git[$n]}" ]; do
|
||||
u="$(echo ${git[$n]} | cut -f1 -d'#')"
|
||||
b="$(echo ${git[$n]} | cut -f2 -d'#')"
|
||||
dir=$(basename $u)
|
||||
des="${cfg_dir_builds}/$pkg/$dir-git"
|
||||
|
||||
if [[ "$u" == git* ]]; then
|
||||
git clone --verbose --branch "$b" "$u" "$des"
|
||||
else
|
||||
git clone --verbose "$u" "$des"
|
||||
fi
|
||||
|
||||
let n++
|
||||
done
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
@@ -97,10 +125,10 @@ unpack()
|
||||
|
||||
case $file in
|
||||
*tar*|*tgz|*tbz*)
|
||||
tar -C "$cfg_dir_builds/$PKG" -x -f "$cfg_dir_downloads/$file" || exit 1
|
||||
tar -C "$cfg_dir_builds/$pkg" -x -f "$cfg_dir_downloads/$file" || exit 1
|
||||
;;
|
||||
*zip)
|
||||
unzip "$cfg_dir_downloads/$file" -d "$cfg_dir_builds/$PKG" || exit 1
|
||||
unzip "$cfg_dir_downloads/$file" -d "$cfg_dir_builds/$pkg" || exit 1
|
||||
;;
|
||||
*)
|
||||
echo "File $file can't be handled."
|
||||
@@ -111,11 +139,11 @@ unpack()
|
||||
|
||||
dir_gnu_cfg="$cfg_dir_toolchain/share/gnu-config"
|
||||
if [ "$cfg_dir_cfg/config.sub" ]; then
|
||||
find "$cfg_dir_builds/$PKG" -name config.sub -exec install -v -m 0755 "$dir_gnu_cfg/config.sub" '{}' \;
|
||||
find "$cfg_dir_builds/$pkg" -name config.sub -exec install -v -m 0755 "$dir_gnu_cfg/config.sub" '{}' \;
|
||||
fi
|
||||
|
||||
if [ "$cfg_dir_cfg/config.guess" ]; then
|
||||
find "$cfg_dir_builds/$PKG" -name config.guess -exec install -v -m 0755 "$dir_gnu_cfg/config.guess" '{}' \;
|
||||
find "$cfg_dir_builds/$pkg" -name config.guess -exec install -v -m 0755 "$dir_gnu_cfg/config.guess" '{}' \;
|
||||
fi
|
||||
|
||||
return 0
|
||||
@@ -153,48 +181,48 @@ postconfigure()
|
||||
|
||||
perform_clean()
|
||||
{
|
||||
rm -rf "$cfg_dir_builds/$PKG/$PKG_VAR"
|
||||
rm -rf "$cfg_dir_builds/$pkg/$pkg_var"
|
||||
}
|
||||
|
||||
perform_all()
|
||||
{
|
||||
start="$(date +%s)"
|
||||
nfo1 "$PKG / $PKG_VAR"
|
||||
nfo1 "$pkg / $pkg_var"
|
||||
|
||||
export pkg_build_dir="$cfg_dir_builds/$PKG/$PKG_VAR"
|
||||
export pkg_build_dir="$cfg_dir_builds/$pkg/$pkg_var"
|
||||
|
||||
for rule in download unpack post_unpack refresh configure build host_install target_install postconfigure; do
|
||||
case $rule in
|
||||
download | unpack | post_unpack)
|
||||
marker="$cfg_dir_builds/$PKG/.$rule"
|
||||
marker="$cfg_dir_builds/$pkg/.$rule"
|
||||
;;
|
||||
*)
|
||||
marker="$cfg_dir_builds/$PKG/$PKG_VAR/.$rule"
|
||||
marker="$cfg_dir_builds/$pkg/$pkg_var/.$rule"
|
||||
;;
|
||||
esac
|
||||
|
||||
mkdir -p "$cfg_dir_builds/$PKG/$PKG_VAR" && cd "$cfg_dir_builds/$PKG/$PKG_VAR"
|
||||
mkdir -p "$cfg_dir_builds/$pkg/$pkg_var" && cd "$cfg_dir_builds/$pkg/$pkg_var"
|
||||
|
||||
if [ -z "$build_dir" ]; then
|
||||
build_dir="$PKG-$version"
|
||||
build_dir="$pkg-$version"
|
||||
fi
|
||||
|
||||
if [ -n "$build_dir" ]; then
|
||||
mkdir -p "$cfg_dir_builds/$PKG/$build_dir" && cd "$cfg_dir_builds/$PKG/$build_dir"
|
||||
mkdir -p "$cfg_dir_builds/$pkg/$build_dir" && cd "$cfg_dir_builds/$pkg/$build_dir"
|
||||
fi
|
||||
|
||||
if [ -n "$build_always" ] || [ "$rule" = 'refresh' ]; then
|
||||
nfo2 "$rule"
|
||||
$rule > "$cfg_dir_builds/$PKG/$PKG_VAR/$rule.log" 2>&1
|
||||
$rule > "$cfg_dir_builds/$pkg/$pkg_var/$rule.log" 2>&1
|
||||
else
|
||||
if ! [ -f "$marker" ]; then
|
||||
nfo2 "$rule"
|
||||
$rule > "$cfg_dir_builds/$PKG/$PKG_VAR/$rule.log" 2>&1
|
||||
$rule > "$cfg_dir_builds/$pkg/$pkg_var/$rule.log" 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
touch "$marker"
|
||||
else
|
||||
err "failed to execute rule $rule of $PKG / $PKG_VAR"
|
||||
tail "$cfg_dir_builds/$PKG/$PKG_VAR/$rule.log"
|
||||
err "failed to execute rule $rule of $pkg / $pkg_var"
|
||||
tail "$cfg_dir_builds/$pkg/$pkg_var/$rule.log"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
@@ -203,7 +231,7 @@ perform_all()
|
||||
|
||||
elapsed=$[ $(date +%s)-$start ]
|
||||
ok "completed in ${elapsed}s"
|
||||
touch "$cfg_dir_builds/$PKG/$PKG_VAR/.complete"
|
||||
touch "$cfg_dir_builds/$pkg/$pkg_var/.complete"
|
||||
}
|
||||
|
||||
# Check shell.
|
||||
@@ -270,17 +298,17 @@ if [ "$pkg_var" = "$pkg" ]; then
|
||||
pkg_var='default'
|
||||
fi
|
||||
|
||||
export PKG="$pkg"
|
||||
export PKG_VAR="$pkg_var"
|
||||
export PKG_COMMON="$cfg_dir_packages/$PKG/common.bash"
|
||||
export pkg
|
||||
export pkg_var
|
||||
export pkg_common="$cfg_dir_rules/$pkg/common.bash"
|
||||
|
||||
if ! [ -d "$cfg_dir_packages/$PKG" ]; then
|
||||
echo "ERROR: package '$PKG' does not exist."
|
||||
if ! [ -d "$cfg_dir_rules/$pkg" ]; then
|
||||
echo "ERROR: package '$pkg' does not exist."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! [ -f "$cfg_dir_packages/$PKG/$PKG_VAR.bash" ]; then
|
||||
echo "ERROR: variant '$PKG_VAR' of package '$PKG' does not exist."
|
||||
if ! [ -f "$cfg_dir_rules/$pkg/$pkg_var.bash" ]; then
|
||||
echo "ERROR: variant '$pkg_var' of package '$pkg' does not exist."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -290,18 +318,18 @@ else
|
||||
rule="$3"
|
||||
fi
|
||||
|
||||
mkdir -p "$cfg_dir_downloads" "$cfg_dir_rootfs" "$cfg_dir_toolchain" "$cfg_dir_builds/$PKG"
|
||||
mkdir -p "$cfg_dir_downloads" "$cfg_dir_rootfs" "$cfg_dir_toolchain" "$cfg_dir_builds/$pkg"
|
||||
|
||||
export cfg_package_spec_dir="$cfg_dir_base/packages/$PKG"
|
||||
export pkg_dir="$cfg_dir_rules/$pkg"
|
||||
|
||||
. "$cfg_dir_packages/$PKG/$PKG_VAR.bash"
|
||||
. "$cfg_dir_rules/$pkg/$pkg_var.bash"
|
||||
|
||||
# Postconfiguration:
|
||||
if [ -e "$cfg_dir_postconfiguration/$PKG/$cfg_sys_name.bash" ]; then
|
||||
# echo "ERROR: postconfiguration exists '$PKG'."
|
||||
# echo "$cfg_dir_postconfiguration/$PKG/$cfg_sys_name.bash"
|
||||
if [ -e "$cfg_dir_postconfiguration/$pkg/$cfg_sys_name.bash" ]; then
|
||||
# echo "ERROR: postconfiguration exists '$pkg'."
|
||||
# echo "$cfg_dir_postconfiguration/$pkg/$cfg_sys_name.bash"
|
||||
# exit 1
|
||||
. "$cfg_dir_postconfiguration/$PKG/$cfg_sys_name.bash"
|
||||
. "$cfg_dir_postconfiguration/$pkg/$cfg_sys_name.bash"
|
||||
fi
|
||||
|
||||
# Handle dependencies.
|
||||
@@ -319,7 +347,7 @@ n=0; while [ -n "${requires[$n]}" ]; do
|
||||
|
||||
"$0" "$1" "$req"
|
||||
if [ $? -ne 0 ]; then
|
||||
err "failed to build dependecy for package $PKG / $PKG_VAR"
|
||||
err "failed to build dependency for package $pkg / $pkg_var"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
@@ -1,13 +1,26 @@
|
||||
#! /bin/bash
|
||||
#############################################################################
|
||||
# Copyright (C) 2007-2012 Laboratório de Sistemas e Tecnologia Subaquática #
|
||||
# Departamento de Engenharia Electrotécnica e de Computadores #
|
||||
# Rua Dr. Roberto Frias, 4200-465 Porto, Portugal #
|
||||
#############################################################################
|
||||
# Author: Ricardo Martins #
|
||||
#############################################################################
|
||||
# $Id:: mksystem.bash 1152 2012-09-14 02:06:10Z rasm $:#
|
||||
#############################################################################
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2007-2013 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: Ricardo Martins #
|
||||
###########################################################################
|
||||
|
||||
# Check shell type.
|
||||
if [ -z "$BASH_VERSION" ]; then
|
||||
|
@@ -1,104 +0,0 @@
|
||||
version=\
|
||||
(
|
||||
'1.1.4'
|
||||
)
|
||||
|
||||
ns_version=\
|
||||
(
|
||||
'2.34'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://www.lsts.pt/glued/dei80211mr-$version.tar.gz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'8ad1adcd02fc41933d6528c093e1c3d9'
|
||||
)
|
||||
|
||||
requires=\
|
||||
(
|
||||
'ns/default'
|
||||
)
|
||||
|
||||
post_unpack()
|
||||
{
|
||||
patches=$(ls "$cfg_package_spec_dir/patches/"*.patch)
|
||||
if [ -n "$patches" ]; then
|
||||
cat $patches | patch -p0
|
||||
fi
|
||||
}
|
||||
|
||||
configure()
|
||||
{
|
||||
prefix="/ns2_lib"
|
||||
|
||||
cd ../dei80211mr-$version/
|
||||
|
||||
make distclean
|
||||
rm -fr autom4te.cache/
|
||||
rm config.*
|
||||
rm missing
|
||||
rm Makefile.in
|
||||
rm install-sh
|
||||
rm depcomp
|
||||
rm configure
|
||||
rm ltmain.sh
|
||||
rm m4/libtool*
|
||||
rm m4/Makefile
|
||||
rm m4/Makefile.in
|
||||
rm aclocal.m4
|
||||
rm m4/lt*
|
||||
|
||||
find . -name "*.o" -exec rm {} \;
|
||||
|
||||
cd -
|
||||
|
||||
/usr/bin/aclocal -I m4 --force && /usr/bin/libtoolize --force && /usr/bin/automake --foreign --add-missing && /usr/bin/autoconf
|
||||
|
||||
sed "s#@TCL2CPP@#qemu-arm -L ${cfg_dir_rootfs} ${cfg_dir_rootfs}/lib/ld-linux.so.3 ${cfg_dir_toolchain_sysroot}/usr/bin/tcl2c++#g" "./m4/Makefile.in" -i
|
||||
|
||||
sed "s#@TCL2CPP@#qemu-arm -L ${cfg_dir_rootfs} ${cfg_dir_rootfs}/lib/ld-linux.so.3 ${cfg_dir_toolchain_sysroot}/usr/bin/tcl2c++#g" "./Makefile.in" -i
|
||||
|
||||
sed "s#@TCL2CPP@#qemu-arm -L ${cfg_dir_rootfs} ${cfg_dir_rootfs}/lib/ld-linux.so.3 ${cfg_dir_toolchain_sysroot}/usr/bin/tcl2c++#g" "./src/Makefile.in" -i
|
||||
|
||||
"../dei80211mr-$version/configure" \
|
||||
--target="$cfg_target_canonical" \
|
||||
--host="$cfg_target_canonical" \
|
||||
--build="$cfg_host_canonical" \
|
||||
--prefix="$prefix" \
|
||||
--disable-static \
|
||||
--enable-shared \
|
||||
--with-ns-allinone=${cfg_dir_builds}/ns/ \
|
||||
--x-includes=no --x-libraries=no
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
|
||||
$cmd_make -j1
|
||||
}
|
||||
|
||||
host_install()
|
||||
{
|
||||
$cmd_mkdir \
|
||||
"$cfg_dir_toolchain_sysroot/ns2/ns2_lib/lib" \
|
||||
"$cfg_dir_toolchain_sysroot/ns2/ns2_lib/share" &&
|
||||
|
||||
$cmd_make \
|
||||
DESTDIR="$cfg_dir_toolchain_sysroot/ns2" \
|
||||
install
|
||||
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
$cmd_mkdir \
|
||||
"${cfg_dir_rootfs}/usr/ns2/lib/"
|
||||
|
||||
for f in "$cfg_dir_toolchain_sysroot/ns2/ns2_lib/lib/"lib*.so*; do
|
||||
$cmd_target_strip "$f" -o ${cfg_dir_rootfs}/usr/ns2/lib/"$(basename "$f")"
|
||||
done
|
||||
}
|
@@ -1,19 +0,0 @@
|
||||
--- m4/nsallinone.m4 2012-09-21 14:09:26.000000000 +0200
|
||||
+++ m4/nsallinone.m4 2012-09-21 17:08:21.807075643 +0200
|
||||
@@ -49,12 +49,10 @@
|
||||
NS_ALLINONE_PATH=$withval
|
||||
|
||||
NS_PATH=$NS_ALLINONE_PATH/`cd $NS_ALLINONE_PATH; ls -d ns-* | head -n 1`
|
||||
- TCL_PATH=$NS_ALLINONE_PATH/`cd $NS_ALLINONE_PATH; ls -d * | grep -e 'tcl[0-9].*' | head -n 1`
|
||||
- TCLCL_PATH=$NS_ALLINONE_PATH/`cd $NS_ALLINONE_PATH; ls -d tclcl-* | head -n 1`
|
||||
- OTCL_PATH=$NS_ALLINONE_PATH/`cd $NS_ALLINONE_PATH; ls -d otcl-* | head -n 1`
|
||||
-
|
||||
- NS_CPPFLAGS="-I$NS_ALLINONE_PATH/include -I$NS_PATH -I$TCLCL_PATH -I$OTCL_PATH"
|
||||
-
|
||||
+ TCL_PATH="${cfg_dir_builds}/tcl/"`cd "${cfg_dir_builds}/tcl/"; ls -d * | grep -e 'tcl[0-9].*' | head -n 1`
|
||||
+ TCLCL_PATH="${cfg_dir_builds}/tclcl/"`cd "${cfg_dir_builds}/tclcl"; ls -d tclcl-* | head -n 1`
|
||||
+ OTCL_PATH="${cfg_dir_builds}/otcl/"`cd "${cfg_dir_builds}/otcl/"; ls -d otcl-* | head -n 1`
|
||||
+ NS_CPPFLAGS="${cfg_dir_toolchain_sysroot}/usr/include -I$NS_PATH -I$TCLCL_PATH -I$OTCL_PATH"
|
||||
|
||||
NS_ALLINONE_DISTCHECK_CONFIGURE_FLAGS="--with-ns-allinone=$withval"
|
||||
AC_SUBST(NS_ALLINONE_DISTCHECK_CONFIGURE_FLAGS)
|
@@ -1,10 +0,0 @@
|
||||
start()
|
||||
{
|
||||
mount -t debugfs debugfs /sys/kernel/debug &&
|
||||
|
||||
# UART1.
|
||||
echo 0 > /sys/kernel/debug/omap_mux/uart1_txd &&
|
||||
echo 20 > /sys/kernel/debug/omap_mux/uart1_rxd &&
|
||||
|
||||
umount /sys/kernel/debug
|
||||
}
|
@@ -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
|
||||
}
|
@@ -1,9 +0,0 @@
|
||||
start()
|
||||
{
|
||||
/usr/bin/ldattach PPS "$cfg_pps_attach_dev"
|
||||
}
|
||||
|
||||
stop()
|
||||
{
|
||||
killall ldattach
|
||||
}
|
@@ -1,46 +0,0 @@
|
||||
version=\
|
||||
(
|
||||
"1.6.2"
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://downloads.sourceforge.net/project/libpng/libpng16/$version/libpng-$version.tar.xz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
"9d838f6fca9948a9f360a0cc1b516d5f"
|
||||
)
|
||||
|
||||
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/"libpng*.so*; 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,27 +0,0 @@
|
||||
source "$PKG_COMMON"
|
||||
|
||||
version=\
|
||||
(
|
||||
'3.2.0-psp04.06.00.10'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://www.lsts.pt/glued/linux-$version.tar.bz2"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'e2f71c151b44df5552b04c73b14d2c98'
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
'Ricardo Martins <rasm@fe.up.pt>'
|
||||
)
|
||||
|
||||
requires=\
|
||||
(
|
||||
'u-boot'
|
||||
'kmod/host'
|
||||
)
|
@@ -1,26 +0,0 @@
|
||||
source "$PKG_COMMON"
|
||||
|
||||
version=\
|
||||
(
|
||||
'3.5.4'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://www.kernel.org/pub/linux/kernel/v3.0/linux-$version.tar.bz2"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'95d5c7271ad448bc965bdb29339b6923'
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
'Ricardo Martins <rasm@fe.up.pt>'
|
||||
)
|
||||
|
||||
requires=\
|
||||
(
|
||||
'kmod/host'
|
||||
)
|
@@ -1,12 +0,0 @@
|
||||
--- linux-3.2.0-psp04.06.00.10/arch/arm/mach-omap2/board-am335xevm.c 2013-04-05 05:43:27.000000000 +0100
|
||||
+++ linux-3.2.0-psp04.06.00.10.rasm/arch/arm/mach-omap2/board-am335xevm.c 2013-05-29 17:34:03.003915746 +0100
|
||||
@@ -2362,6 +2362,9 @@
|
||||
setup_beaglebone_old();
|
||||
else
|
||||
setup_beaglebone();
|
||||
+ } else if (!strncmp("A335BNLT", config.name, 8)) {
|
||||
+ daughter_brd_detected = false;
|
||||
+ setup_beaglebone();
|
||||
} else if (!strncmp("A335X_SK", config.name, 8)) {
|
||||
daughter_brd_detected = false;
|
||||
setup_starterkit();
|
@@ -1,12 +0,0 @@
|
||||
diff -Nru a/scripts/depmod.sh b/scripts/depmod.sh
|
||||
--- a/scripts/depmod.sh 2012-07-21 21:58:29.000000000 +0100
|
||||
+++ b/scripts/depmod.sh 2012-08-07 00:31:44.400656765 +0100
|
||||
@@ -14,7 +14,7 @@
|
||||
fi
|
||||
# older versions of depmod require the version string to start with three
|
||||
# numbers, so we cheat with a symlink here
|
||||
-depmod_hack_needed=true
|
||||
+depmod_hack_needed=false
|
||||
tmp_dir=$(mktemp -d ${TMPDIR:-/tmp}/depmod.XXXXXX)
|
||||
mkdir -p "$tmp_dir/lib/modules/$KERNELRELEASE"
|
||||
if "$DEPMOD" -b "$tmp_dir" $KERNELRELEASE 2>/dev/null; then
|
@@ -1,42 +0,0 @@
|
||||
version=\
|
||||
(
|
||||
'0.29.5'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://www.webdav.org/neon/neon-$version.tar.gz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'ff369e69ef0f0143beb5626164e87ae2'
|
||||
)
|
||||
|
||||
requires=\
|
||||
(
|
||||
'gnutls/default'
|
||||
)
|
||||
|
||||
configure()
|
||||
{
|
||||
"../neon-$version/configure" \
|
||||
--target="$cfg_target_canonical" \
|
||||
--host="$cfg_target_canonical" \
|
||||
--build="$cfg_host_canonical" \
|
||||
--prefix="$cfg_dir_toolchain_sysroot/usr" \
|
||||
--disable-static \
|
||||
--enable-shared \
|
||||
--with-ssl=gnutls \
|
||||
--without-libproxy
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
$cmd_make
|
||||
}
|
||||
|
||||
host_install()
|
||||
{
|
||||
$cmd_make install
|
||||
}
|
@@ -1,106 +0,0 @@
|
||||
version=\
|
||||
(
|
||||
'1.0'
|
||||
)
|
||||
|
||||
dei_version=\
|
||||
(
|
||||
'1.1.4'
|
||||
)
|
||||
|
||||
ns_version=\
|
||||
(
|
||||
'2.34'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://www.lsts.pt/glued/ns-miracle-$version.tar.gz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'860072ac58b2d1274da46d02b5608229'
|
||||
)
|
||||
|
||||
requires=\
|
||||
(
|
||||
'ns/default'
|
||||
'dei80211mr/default'
|
||||
)
|
||||
|
||||
post_unpack()
|
||||
{
|
||||
patches=$(ls "$cfg_package_spec_dir/patches/"*.patch)
|
||||
if [ -n "$patches" ]; then
|
||||
cat $patches | patch -p0
|
||||
fi
|
||||
}
|
||||
|
||||
configure()
|
||||
{
|
||||
cd ../ns-miracle-$version/trunk/main/
|
||||
prefix="/ns2_lib"
|
||||
make distclean
|
||||
rm -fr autom4te.cache/
|
||||
rm config.*
|
||||
rm missing
|
||||
rm Makefile.in
|
||||
rm install-sh
|
||||
rm depcomp
|
||||
rm configure
|
||||
rm ltmain.sh
|
||||
rm m4/libtool*
|
||||
rm m4/Makefile
|
||||
rm m4/Makefile.in
|
||||
rm aclocal.m4
|
||||
rm m4/lt*
|
||||
|
||||
find . -name "*.o" -exec rm {} \;
|
||||
/usr/bin/aclocal -I m4 --force && /usr/bin/libtoolize --force && /usr/bin/automake --foreign --add-missing && /usr/bin/autoconf
|
||||
|
||||
sed "s#@TCL2CPP@#qemu-arm -L ${cfg_dir_rootfs} ${cfg_dir_rootfs}/lib/ld-linux.so.3 ${cfg_dir_toolchain_sysroot}/usr/bin/tcl2c++#g" "./m4/Makefile.in" -i
|
||||
|
||||
sed "s#@TCL2CPP@#qemu-arm -L ${cfg_dir_rootfs} ${cfg_dir_rootfs}/lib/ld-linux.so.3 ${cfg_dir_toolchain_sysroot}/usr/bin/tcl2c++#g" "./Makefile.in" -i
|
||||
|
||||
|
||||
"./configure" \
|
||||
--target="$cfg_target_canonical" \
|
||||
--host="$cfg_target_canonical" \
|
||||
--build="$cfg_host_canonical" \
|
||||
--prefix="$prefix" \
|
||||
--disable-static \
|
||||
--enable-shared \
|
||||
--with-ns-allinone=${cfg_dir_builds}/ns/ \
|
||||
--with-dei80211mr=${cfg_dir_builds}/dei80211mr/dei80211mr-$dei_version
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
cd ../ns-miracle-$version/trunk/main/
|
||||
|
||||
$cmd_make -j1 \
|
||||
TCL2CPP="qemu-arm -L ${cfg_dir_rootfs} ${cfg_dir_rootfs}/lib/ld-linux.so.3 ${cfg_dir_toolchain_sysroot}/usr/bin/tcl2c++"
|
||||
}
|
||||
|
||||
host_install()
|
||||
{
|
||||
cd ../ns-miracle-$version/trunk/main/
|
||||
$cmd_mkdir \
|
||||
"$cfg_dir_toolchain_sysroot/ns2/ns2_lib/lib" \
|
||||
"$cfg_dir_toolchain_sysroot/ns2/ns2_lib/share" &&
|
||||
|
||||
$cmd_make \
|
||||
DESTDIR="$cfg_dir_toolchain_sysroot/ns2" \
|
||||
install
|
||||
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
$cmd_mkdir \
|
||||
"${cfg_dir_rootfs}/usr/ns2/lib/"
|
||||
for f in "$cfg_dir_toolchain_sysroot/ns2/ns2_lib/lib/"lib*.so*; do
|
||||
$cmd_target_strip "$f" -o ${cfg_dir_rootfs}/usr/ns2/lib/"$(basename "$f")"
|
||||
done
|
||||
}
|
@@ -1,19 +0,0 @@
|
||||
--- trunk/main/m4/nsallinone.m4 2012-09-21 14:09:26.000000000 +0200
|
||||
+++ trunk/main/m4/nsallinone.m4 2012-09-21 17:08:21.807075643 +0200
|
||||
@@ -49,12 +49,10 @@
|
||||
NS_ALLINONE_PATH=$withval
|
||||
|
||||
NS_PATH=$NS_ALLINONE_PATH/`cd $NS_ALLINONE_PATH; ls -d ns-* | head -n 1`
|
||||
- TCL_PATH=$NS_ALLINONE_PATH/`cd $NS_ALLINONE_PATH; ls -d * | grep -e 'tcl[0-9].*' | head -n 1`
|
||||
- TCLCL_PATH=$NS_ALLINONE_PATH/`cd $NS_ALLINONE_PATH; ls -d tclcl-* | head -n 1`
|
||||
- OTCL_PATH=$NS_ALLINONE_PATH/`cd $NS_ALLINONE_PATH; ls -d otcl-* | head -n 1`
|
||||
-
|
||||
- NS_CPPFLAGS="-I$NS_ALLINONE_PATH/include -I$NS_PATH -I$TCLCL_PATH -I$OTCL_PATH"
|
||||
-
|
||||
+ TCL_PATH="${cfg_dir_builds}/tcl/"`cd "${cfg_dir_builds}/tcl/"; ls -d * | grep -e 'tcl[0-9].*' | head -n 1`
|
||||
+ TCLCL_PATH="${cfg_dir_builds}/tclcl/"`cd "${cfg_dir_builds}/tclcl"; ls -d tclcl-* | head -n 1`
|
||||
+ OTCL_PATH="${cfg_dir_builds}/otcl/"`cd "${cfg_dir_builds}/otcl/"; ls -d otcl-* | head -n 1`
|
||||
+ NS_CPPFLAGS="${cfg_dir_toolchain_sysroot}/usr/include -I$NS_PATH -I$TCLCL_PATH -I$OTCL_PATH"
|
||||
|
||||
NS_ALLINONE_DISTCHECK_CONFIGURE_FLAGS="--with-ns-allinone=$withval"
|
||||
AC_SUBST(NS_ALLINONE_DISTCHECK_CONFIGURE_FLAGS)
|
@@ -1,11 +0,0 @@
|
||||
--- trunk/main/configure.ac 2012-09-26 14:56:59.532858970 +0200
|
||||
+++ trunk/main/configure.ac 2012-09-26 14:55:04.897973134 +0200
|
||||
@@ -70,7 +70,7 @@
|
||||
|
||||
dnl Activate all compile warnings & debug symbols
|
||||
CFLAGS="${CFLAGS=} -Wall -g"
|
||||
-
|
||||
+TCL2CPP="qemu-arm -L ${cfg_dir_rootfs} ${cfg_dir_rootfs}/lib/ld-linux.so.3 ${cfg_dir_toolchain_sysroot}/usr/bin/tcl2c++"
|
||||
|
||||
AC_DEFINE(CPP_NAMESPACE,std)
|
||||
|
@@ -1,60 +0,0 @@
|
||||
version=\
|
||||
(
|
||||
'1.6.15'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://subversion.tigris.org/downloads/subversion-$version.tar.bz2"
|
||||
"http://www.sqlite.org/sqlite-amalgamation-3.6.13.tar.gz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'113fca1d9e4aa389d7dc2b210010fa69'
|
||||
'681722e7cdc6d9ab3be836736ed50641'
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
'Ricardo Martins <rasm@fe.up.pt>'
|
||||
)
|
||||
|
||||
requires=\
|
||||
(
|
||||
'neon/default'
|
||||
'zlib/default'
|
||||
'apr/default'
|
||||
'apr-utils/default'
|
||||
)
|
||||
|
||||
post_unpack()
|
||||
{
|
||||
mkdir sqlite-amalgamation &&
|
||||
cp ../sqlite-3.6.13/sqlite3.{c,h} sqlite-amalgamation
|
||||
}
|
||||
|
||||
configure()
|
||||
{
|
||||
"../subversion-$version/configure" \
|
||||
--target="$cfg_target_canonical" \
|
||||
--host="$cfg_target_canonical" \
|
||||
--build="$cfg_host_canonical" \
|
||||
--prefix="$cfg_dir_toolchain_sysroot/usr" \
|
||||
--without-apxs \
|
||||
--with-neon="$cfg_dir_toolchain_sysroot/usr" \
|
||||
--with-zlib="$cfg_dir_toolchain_sysroot/usr" \
|
||||
--with-apr="$cfg_dir_toolchain_sysroot/usr" \
|
||||
--with-apr-util="$cfg_dir_toolchain_sysroot/usr" \
|
||||
--disable-static
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
$cmd_make
|
||||
}
|
||||
|
||||
host_install()
|
||||
{
|
||||
$cmd_make -j1 install
|
||||
}
|
@@ -1,64 +0,0 @@
|
||||
trex_base='/opt/lsts/trex'
|
||||
|
||||
maybe_upgrade()
|
||||
{
|
||||
echo -n "* Searching TREX upgrade... "
|
||||
if ! [ -f $trex_base/trex-*.tar.gz ]; then
|
||||
echo "none found"
|
||||
return 1
|
||||
fi
|
||||
echo "found"
|
||||
|
||||
echo -n "* Starting TREX upgrade... "
|
||||
rm -rf $trex_base/.trex-upgrade &&
|
||||
mkdir $trex_base/.trex-upgrade &&
|
||||
tar -x -C $trex_base/.trex-upgrade -f $trex_base/trex-*.tar.gz &&
|
||||
rm $trex_base/trex-*.tar.gz &&
|
||||
for dir in $trex_base/.trex-upgrade/trex-*/*; do
|
||||
d="$(basename "$dir")"
|
||||
rm -rf "$trex_base/$d"
|
||||
mv -v "$dir" $trex_base
|
||||
done
|
||||
|
||||
rm -rf $trex_base/.trex-upgrade
|
||||
echo "done"
|
||||
}
|
||||
|
||||
start()
|
||||
{
|
||||
maybe_upgrade
|
||||
|
||||
export TREX_LOG_DIR=$trex_base/log
|
||||
export TREX_EXTRA=$trex_base
|
||||
export EUROPA_HOME='/usr/share/europa'
|
||||
mkdir -p "$TREX_LOG_DIR"
|
||||
|
||||
if [ -z "$cfg_trex_config" ]; then
|
||||
export cfg_trex_config="$TREX_EXTRA/cfg/lsts.cfg"
|
||||
fi
|
||||
|
||||
export TREX_PATH=$PATH:$TREX_EXTRA/cfg:$TREX_EXTRA/plugins:$EUROPA_HOME/lib
|
||||
/usr/bin/amc "$cfg_trex_config" < /dev/null > /dev/null 2>&1 &
|
||||
}
|
||||
|
||||
stop()
|
||||
{
|
||||
while [ 1 ]; do
|
||||
echo "* Stopping TREX..."
|
||||
killall amc > /dev/null 2>&1
|
||||
|
||||
for r in 0 1 2 3 4 5 6 7 8 9; do
|
||||
if [ -n "$(pidof amc)" ]; then
|
||||
echo "* Waiting for TREX to exit ($r)..."
|
||||
sleep 1
|
||||
else
|
||||
echo "* TREX not running."
|
||||
return 1
|
||||
fi
|
||||
done
|
||||
|
||||
echo "* Forcing TREX to exit..."
|
||||
killall -9 amc > /dev/null 2>&1
|
||||
sleep 1
|
||||
done
|
||||
}
|
@@ -1,17 +0,0 @@
|
||||
--- u-boot-2013.01/board/ti/am335x/board.c 2013-01-15 21:47:42.000000000 +0000
|
||||
+++ u-boot-2013.01.rasm/board/ti/am335x/board.c 2013-04-09 18:39:45.938442622 +0100
|
||||
@@ -73,6 +73,14 @@
|
||||
return !strncmp(header.config, "SKU#02", 6);
|
||||
}
|
||||
|
||||
+#ifndef CONFIG_SYS_DCACHE_OFF
|
||||
+void enable_caches(void)
|
||||
+{
|
||||
+ /* Enable D-cache. I-cache is already enabled in start.S */
|
||||
+ dcache_enable();
|
||||
+}
|
||||
+#endif
|
||||
+
|
||||
/*
|
||||
* Read header information from EEPROM into global structure.
|
||||
*/
|
@@ -1,58 +0,0 @@
|
||||
--- a/include/configs/igep00x0.h
|
||||
+++ b/include/configs/igep00x0.h
|
||||
@@ -104,6 +104,8 @@
|
||||
/* commands to include */
|
||||
#include <config_cmd_default.h>
|
||||
|
||||
+#undef CONFIG_BOOT_ONENAND
|
||||
+
|
||||
#define CONFIG_CMD_CACHE
|
||||
#define CONFIG_CMD_EXT2 /* EXT2 Support */
|
||||
#define CONFIG_CMD_FAT /* FAT support */
|
||||
@@ -119,8 +121,8 @@
|
||||
#define CONFIG_CMD_DHCP
|
||||
#define CONFIG_CMD_PING
|
||||
#define CONFIG_CMD_NFS /* NFS support */
|
||||
-#define CONFIG_CMD_MTDPARTS /* Enable MTD parts commands */
|
||||
-#define CONFIG_MTD_DEVICE
|
||||
+/* #define CONFIG_CMD_MTDPARTS /\* Enable MTD parts commands *\/ */
|
||||
+/* #define CONFIG_MTD_DEVICE */
|
||||
|
||||
#undef CONFIG_CMD_FLASH /* flinfo, erase, protect */
|
||||
#undef CONFIG_CMD_IMLS /* List all found images */
|
||||
@@ -142,6 +144,7 @@
|
||||
#define CONFIG_ZERO_BOOTDELAY_CHECK
|
||||
|
||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||
+ "bootfile=uImage\0" \
|
||||
"usbtty=cdc_acm\0" \
|
||||
"loadaddr=0x82000000\0" \
|
||||
"usbtty=cdc_acm\0" \
|
||||
@@ -150,7 +153,7 @@
|
||||
"vram=12M\0" \
|
||||
"dvimode=1024x768MR-16@60\0" \
|
||||
"defaultdisplay=dvi\0" \
|
||||
- "mmcdev=0\0" \
|
||||
+ "mmcdev=0:1\0" \
|
||||
"mmcroot=/dev/mmcblk0p2 rw\0" \
|
||||
"mmcrootfstype=ext4 rootwait\0" \
|
||||
"nandroot=/dev/mtdblock4 rw\0" \
|
||||
@@ -174,7 +177,7 @@
|
||||
"loadbootenv=fatload mmc ${mmcdev} ${loadaddr} uEnv.txt\0" \
|
||||
"importbootenv=echo Importing environment from mmc ...; " \
|
||||
"env import -t $loadaddr $filesize\0" \
|
||||
- "loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage\0" \
|
||||
+ "loaduimage=ext2load mmc ${mmcdev} ${loadaddr} ${bootfile}\0" \
|
||||
"mmcboot=echo Booting from mmc ...; " \
|
||||
"run mmcargs; " \
|
||||
"bootm ${loadaddr}\0" \
|
||||
@@ -234,6 +237,9 @@
|
||||
#define CONFIG_SYS_PTV 2 /* Divisor: 2^(PTV+1) => 8 */
|
||||
#define CONFIG_SYS_HZ 1000
|
||||
|
||||
+#define CONFIG_ENV_IS_NOWHERE
|
||||
+#define CONFIG_ENV_SIZE (512 << 10) /* Total Size Environment */
|
||||
+
|
||||
/*
|
||||
* Physical Memory Map
|
||||
*
|
@@ -1,56 +0,0 @@
|
||||
--- u-boot-2013.01/include/configs/am335x_evm.h 2013-01-15 21:47:42.000000000 +0000
|
||||
+++ u-boot-2013.01.rasm/include/configs/am335x_evm.h 2013-04-09 18:25:22.027878365 +0100
|
||||
@@ -46,7 +46,9 @@
|
||||
#define CONFIG_VERSION_VARIABLE
|
||||
|
||||
/* set to negative value for no autoboot */
|
||||
-#define CONFIG_BOOTDELAY 1
|
||||
+#define CONFIG_BOOTDELAY 0
|
||||
+#define CONFIG_ZERO_BOOTDELAY_CHECK
|
||||
+
|
||||
#define CONFIG_ENV_VARS_UBOOT_CONFIG
|
||||
#define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
|
||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||
@@ -241,6 +243,7 @@
|
||||
#define CONFIG_SPL_LDSCRIPT "$(CPUDIR)/omap-common/u-boot-spl.lds"
|
||||
|
||||
#define CONFIG_SPL_BOARD_INIT
|
||||
+#if 0
|
||||
#define CONFIG_SPL_NAND_AM33XX_BCH
|
||||
#define CONFIG_SPL_NAND_SUPPORT
|
||||
#define CONFIG_SPL_NAND_BASE
|
||||
@@ -271,6 +274,7 @@
|
||||
#define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_TEXT_BASE
|
||||
|
||||
#define CONFIG_SYS_NAND_U_BOOT_OFFS 0x80000
|
||||
+#endif
|
||||
|
||||
/*
|
||||
* 1MB into the SDRAM to allow for SPL's bss at the beginning of SDRAM
|
||||
@@ -292,6 +296,7 @@
|
||||
/*
|
||||
* USB configuration
|
||||
*/
|
||||
+#if 0
|
||||
#define CONFIG_USB_MUSB_DSPS
|
||||
#define CONFIG_ARCH_MISC_INIT
|
||||
#define CONFIG_MUSB_GADGET
|
||||
@@ -302,6 +307,7 @@
|
||||
#define CONFIG_AM335X_USB0_MODE MUSB_PERIPHERAL
|
||||
#define CONFIG_AM335X_USB1
|
||||
#define CONFIG_AM335X_USB1_MODE MUSB_HOST
|
||||
+#endif
|
||||
|
||||
#ifdef CONFIG_MUSB_HOST
|
||||
#define CONFIG_CMD_USB
|
||||
@@ -334,7 +340,9 @@
|
||||
#define CONFIG_PHY_ADDR 0
|
||||
#define CONFIG_PHY_SMSC
|
||||
|
||||
-#define CONFIG_NAND
|
||||
+#undef CONFIG_NAND
|
||||
+#define CONFIG_ENV_SIZE (128 << 10) /* 128 KiB */
|
||||
+
|
||||
/* NAND support */
|
||||
#ifdef CONFIG_NAND
|
||||
#define CONFIG_CMD_NAND
|
@@ -1,14 +0,0 @@
|
||||
diff -Nru u-boot-2013.01.01/board/isee/igep0020/igep0020.h u-boot-2013.01.01.rasm/board/isee/igep0020/igep0020.h
|
||||
--- u-boot-2013.01.01/board/isee/igep0020/igep0020.h 2013-01-31 19:47:42.000000000 +0000
|
||||
+++ u-boot-2013.01.01.rasm/board/isee/igep0020/igep0020.h 2013-06-24 01:56:54.066266486 +0100
|
||||
@@ -146,6 +146,10 @@
|
||||
MUX_VAL(CP(SYS_BOOT4), (IEN | PTD | DIS | M4)) /* GPIO_6 */\
|
||||
MUX_VAL(CP(SYS_BOOT5), (IEN | PTD | DIS | M4)) /* GPIO_7 */\
|
||||
MUX_VAL(CP(SYS_BOOT6), (IEN | PTD | DIS | M4)) /* GPIO_8 */\
|
||||
+ MUX_VAL(CP(MCBSP2_FSX), (IEN | PTD | DIS | M0)) /*McBSP2_FSX*/\
|
||||
+ MUX_VAL(CP(MCBSP2_CLKX), (IEN | PTD | DIS | M0)) /*McBSP2_CLKX*/\
|
||||
+ MUX_VAL(CP(MCBSP2_DR), (IEN | PTD | DIS | M0)) /*McBSP2_DR*/\
|
||||
+ MUX_VAL(CP(MCBSP2_DX), (IDIS | PTD | DIS | M0)) /*McBSP2_DX*/\
|
||||
MUX_VAL(CP(SDRC_CKE0), (IDIS | PTU | EN | M0)) /* SDRC_CKE0 */\
|
||||
MUX_VAL(CP(SDRC_CKE1), (IDIS | PTU | EN | M0)) /* SDRC_CKE1 */
|
||||
#endif
|
@@ -1,12 +0,0 @@
|
||||
--- a/include/configs/igep00x0.h
|
||||
+++ b/include/configs/igep00x0.h
|
||||
@@ -138,7 +138,8 @@
|
||||
*/
|
||||
#define CONFIG_TWL4030_POWER 1
|
||||
|
||||
-#define CONFIG_BOOTDELAY 3
|
||||
+#define CONFIG_BOOTDELAY 0
|
||||
+#define CONFIG_ZERO_BOOTDELAY_CHECK
|
||||
|
||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||
"usbtty=cdc_acm\0" \
|
@@ -1,25 +0,0 @@
|
||||
source "$PKG_COMMON"
|
||||
|
||||
configure()
|
||||
{
|
||||
cd "$pkg_build_dir" &&
|
||||
"../util-linux-$version/configure" \
|
||||
--prefix="$cfg_dir_toolchain" \
|
||||
--target="$cfg_target_canonical" \
|
||||
--host="$cfg_target_canonical" \
|
||||
--build="$cfg_host_canonical" \
|
||||
--disable-wall \
|
||||
--disable-static \
|
||||
--enable-shared \
|
||||
--without-ncurses
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
$cmd_make -C $pkg_build_dir
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
$cmd_target_strip $pkg_build_dir/sys-utils/ldattach -o $cfg_dir_rootfs/usr/bin/ldattach
|
||||
}
|
@@ -1,13 +1,26 @@
|
||||
#! /bin/bash
|
||||
#############################################################################
|
||||
# Copyright (C) 2007-2012 Laboratório de Sistemas e Tecnologia Subaquática #
|
||||
# Departamento de Engenharia Electrotécnica e de Computadores #
|
||||
# Rua Dr. Roberto Frias, 4200-465 Porto, Portugal #
|
||||
#############################################################################
|
||||
# Author: Ricardo Martins #
|
||||
#############################################################################
|
||||
# $Id:: $:#
|
||||
#############################################################################
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2007-2014 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: Ricardo Martins #
|
||||
###########################################################################
|
||||
|
||||
# Check shell type.
|
||||
if [ -z "$BASH_VERSION" ]; then
|
||||
|
@@ -1,13 +1,26 @@
|
||||
#! /bin/bash
|
||||
#############################################################################
|
||||
# Copyright (C) 2007-2012 Laboratório de Sistemas e Tecnologia Subaquática #
|
||||
# Departamento de Engenharia Electrotécnica e de Computadores #
|
||||
# Rua Dr. Roberto Frias, 4200-465 Porto, Portugal #
|
||||
#############################################################################
|
||||
# Author: Ricardo Martins #
|
||||
#############################################################################
|
||||
# $Id:: $:#
|
||||
#############################################################################
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2007-2014 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: Ricardo Martins #
|
||||
###########################################################################
|
||||
|
||||
# Check shell type.
|
||||
if [ -z "$BASH_VERSION" ]; then
|
||||
|
30
rules/am33xx-cm3/host.bash
Normal file
30
rules/am33xx-cm3/host.bash
Normal file
@@ -0,0 +1,30 @@
|
||||
version=\
|
||||
(
|
||||
'v05.00.00.01'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
'git://arago-project.org/git/projects/am33x-cm3.git'
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
'Ricardo Martins <rasm@fe.up.pt>'
|
||||
)
|
||||
|
||||
download()
|
||||
{
|
||||
git clone "$url" "$cfg_dir_builds/$pkg/$pkg-$version"
|
||||
}
|
||||
|
||||
unpack()
|
||||
{
|
||||
git checkout "$version"
|
||||
}
|
||||
|
||||
host_install()
|
||||
{
|
||||
$cmd_mkdir "$cfg_dir_toolchain/firmware"
|
||||
cp -v "bin/am335x-pm-firmware.bin" "$cfg_dir_toolchain/firmware"
|
||||
}
|
@@ -1,16 +1,16 @@
|
||||
version=\
|
||||
(
|
||||
'1.9.2'
|
||||
'1.9.3'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://www.eu.apache.org/dist/ant/binaries/apache-ant-$version-bin.tar.bz2"
|
||||
"http://www.lsts.pt/glued/apache-ant-$version-bin.tar.bz2"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'20c6dc8e57d5dc8af595ec4faefd515c'
|
||||
'6e6d888140858f3926c34081c4bd2227'
|
||||
)
|
||||
|
||||
maintainer=\
|
@@ -21,7 +21,7 @@ requires=\
|
||||
|
||||
post_unpack()
|
||||
{
|
||||
patches=$(ls "$cfg_package_spec_dir/patches-$version/"*.patch 2>/dev/null)
|
||||
patches=$(ls "$pkg_dir/patches-$version/"*.patch 2>/dev/null)
|
||||
if [ -n "$patches" ]; then
|
||||
cat $patches | patch -p1
|
||||
fi
|
0
packages/atk/default.bash → rules/atk/default.bash
Executable file → Normal file
0
packages/atk/default.bash → rules/atk/default.bash
Executable file → Normal file
@@ -1,4 +1,4 @@
|
||||
source $PKG_COMMON
|
||||
source $pkg_common
|
||||
|
||||
requires=\
|
||||
(
|
@@ -1,4 +1,4 @@
|
||||
source $PKG_COMMON
|
||||
source $pkg_common
|
||||
|
||||
requires=\
|
||||
(
|
@@ -18,7 +18,7 @@ maintainer=\
|
||||
"Ricardo Martins <rasm@fe.up.pt>"
|
||||
)
|
||||
|
||||
build_dir=$PKG_VAR
|
||||
build_dir=$pkg_var
|
||||
|
||||
configure()
|
||||
{
|
@@ -27,7 +27,7 @@ requires=\
|
||||
|
||||
post_unpack()
|
||||
{
|
||||
patches=$(ls "$cfg_package_spec_dir/patches-${version}/"*.patch)
|
||||
patches=$(ls "$pkg_dir/patches-${version}/"*.patch)
|
||||
if [ -n "$patches" ]; then
|
||||
cd "../boost_$vendor_version" && cat $patches | patch -p1
|
||||
fi
|
@@ -1,26 +1,31 @@
|
||||
version=\
|
||||
(
|
||||
"1.4"
|
||||
'1.5'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://downloads.sourceforge.net/project/bridge/bridge/bridge-utils-$version/bridge-utils-$version.tar.gz"
|
||||
"http://downloads.sourceforge.net/project/bridge/bridge/bridge-utils-$version.tar.gz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
"0182fcac3a2b307113bbec34e5f1c673"
|
||||
'ec7b381160b340648dede58c31bb2238'
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
"Ricardo Martins <rasm@fe.up.pt>"
|
||||
'Ricardo Martins <rasm@fe.up.pt>'
|
||||
)
|
||||
|
||||
post_unpack()
|
||||
{
|
||||
cd ../bridge-utils-$version && autoreconf
|
||||
patches=$(ls "$pkg_dir/patches-$version/"*.patch 2>/dev/null)
|
||||
if [ -n "$patches" ]; then
|
||||
cat $patches | patch -p1
|
||||
fi &&
|
||||
|
||||
autoreconf
|
||||
}
|
||||
|
||||
configure()
|
54
rules/bridge-utils/patches-1.5/00-build-fix.patch
Normal file
54
rules/bridge-utils/patches-1.5/00-build-fix.patch
Normal file
@@ -0,0 +1,54 @@
|
||||
Submitted By: Bruce Dubbs <bdubbs_at_linuxfromscratch_dot_org>
|
||||
Date: 2013-03-10
|
||||
Initial Package Version: 1.5
|
||||
Upstream Status: Unknown
|
||||
Origin: LFS
|
||||
Description: This patch contains fixes a problem with
|
||||
the omission of a needed include file in the kernel's linux/if_bridge.h.
|
||||
It also fixes some autoconf warnings.
|
||||
|
||||
|
||||
diff -Naur bridge-utils-1.5.orig/Makefile.in bridge-utils-1.5/Makefile.in
|
||||
--- bridge-utils-1.5.orig/Makefile.in 2011-03-28 19:52:54.000000000 -0500
|
||||
+++ bridge-utils-1.5/Makefile.in 2013-03-10 13:44:41.000000000 -0500
|
||||
@@ -9,6 +9,7 @@
|
||||
bindir=@bindir@
|
||||
sbindir=@sbindir@
|
||||
mandir=@mandir@
|
||||
+datarootdir=@datarootdir@
|
||||
distdir = $(PACKAGE)-$(VERSION)
|
||||
|
||||
SUBDIRS=libbridge brctl doc
|
||||
diff -Naur bridge-utils-1.5.orig/brctl/Makefile.in bridge-utils-1.5/brctl/Makefile.in
|
||||
--- bridge-utils-1.5.orig/brctl/Makefile.in 2011-03-28 19:52:54.000000000 -0500
|
||||
+++ bridge-utils-1.5/brctl/Makefile.in 2013-03-10 13:44:15.000000000 -0500
|
||||
@@ -12,6 +12,7 @@
|
||||
bindir=@bindir@
|
||||
sbindir=@sbindir@
|
||||
mandir=@mandir@
|
||||
+datarootdir=@datarootdir@
|
||||
|
||||
INSTALL=@INSTALL@
|
||||
|
||||
diff -Naur bridge-utils-1.5.orig/doc/Makefile.in bridge-utils-1.5/doc/Makefile.in
|
||||
--- bridge-utils-1.5.orig/doc/Makefile.in 2011-03-28 19:52:54.000000000 -0500
|
||||
+++ bridge-utils-1.5/doc/Makefile.in 2013-03-10 13:43:39.000000000 -0500
|
||||
@@ -9,6 +9,7 @@
|
||||
bindir=@bindir@
|
||||
sbindir=@sbindir@
|
||||
mandir=@mandir@
|
||||
+datarootdir=@datarootdir@
|
||||
|
||||
SUBDIRS=libbridge brctl
|
||||
|
||||
diff -Naur bridge-utils-1.5.orig/libbridge/libbridge.h bridge-utils-1.5/libbridge/libbridge.h
|
||||
--- bridge-utils-1.5.orig/libbridge/libbridge.h 2011-03-28 19:52:54.000000000 -0500
|
||||
+++ bridge-utils-1.5/libbridge/libbridge.h 2013-03-10 13:46:23.000000000 -0500
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#include <sys/socket.h>
|
||||
#include <linux/if.h>
|
||||
+#include <netinet/ip6.h>
|
||||
#include <linux/if_bridge.h>
|
||||
|
||||
/* defined in net/if.h but that conflicts with linux/if.h... */
|
@@ -1,6 +1,6 @@
|
||||
version=\
|
||||
(
|
||||
"1.20.2"
|
||||
'1.22.0'
|
||||
)
|
||||
|
||||
url=\
|
||||
@@ -10,12 +10,12 @@ url=\
|
||||
|
||||
md5=\
|
||||
(
|
||||
"e025414bc6cd79579cc7a32a45d3ae1c"
|
||||
'ac1881d1cdeb0729b22c663feaf1c663'
|
||||
)
|
||||
|
||||
post_unpack()
|
||||
{
|
||||
patches=$(ls "$cfg_package_spec_dir"/patches/*.patch)
|
||||
patches=$(ls "$pkg_dir"/patches/*.patch)
|
||||
|
||||
if [ -n "$patches" ]; then
|
||||
cat $patches | patch -p1
|
||||
@@ -24,7 +24,7 @@ post_unpack()
|
||||
|
||||
configure()
|
||||
{
|
||||
cp "$cfg_package_spec_dir"/config .config &&
|
||||
cp "$pkg_dir"/config .config &&
|
||||
yes '' | $cmd_make CROSS_COMPILE="$cfg_target_canonical"- oldconfig
|
||||
}
|
||||
|
||||
@@ -36,5 +36,5 @@ build()
|
||||
target_install()
|
||||
{
|
||||
$cmd_make CROSS_COMPILE="$cfg_target_canonical"- CONFIG_PREFIX=$cfg_dir_rootfs install &&
|
||||
tar -C "$cfg_package_spec_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
|
||||
tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
|
||||
}
|
@@ -1,4 +1,4 @@
|
||||
source $PKG_COMMON
|
||||
source $pkg_common
|
||||
|
||||
|
||||
configure()
|
@@ -1,4 +1,4 @@
|
||||
source $PKG_COMMON
|
||||
source $pkg_common
|
||||
|
||||
build()
|
||||
{
|
@@ -88,7 +88,7 @@ target_install()
|
||||
# Collectd:
|
||||
$cmd_mkdir "$cfg_dir_rootfs/usr/share/"
|
||||
$cmd_cp "$cfg_dir_toolchain_sysroot/usr/share/collectd/" "$cfg_dir_rootfs/usr/share/"
|
||||
$cmd_cp "${cfg_package_spec_dir}/fs/etc/rc.d/collectd" "$cfg_dir_rootfs/etc/rc.d/"
|
||||
$cmd_cp "${pkg_dir}/fs/etc/rc.d/collectd" "$cfg_dir_rootfs/etc/rc.d/"
|
||||
|
||||
# Configuration:
|
||||
echo "# Client
|
@@ -25,7 +25,7 @@ requires=\
|
||||
|
||||
post_unpack()
|
||||
{
|
||||
patches=$(ls "$cfg_package_spec_dir/patches/"*.patch)
|
||||
patches=$(ls "$pkg_dir/patches/"*.patch)
|
||||
if [ -n "$patches" ]; then
|
||||
cat $patches | patch -p0
|
||||
fi
|
0
packages/dosfstools/host.bash → rules/dosfstools/host.bash
Executable file → Normal file
0
packages/dosfstools/host.bash → rules/dosfstools/host.bash
Executable file → Normal file
@@ -25,7 +25,7 @@ requires=\
|
||||
|
||||
post_unpack()
|
||||
{
|
||||
patches=$(ls "$cfg_package_spec_dir/patches/"*.patch)
|
||||
patches=$(ls "$pkg_dir/patches/"*.patch)
|
||||
if [ -n "$patches" ]; then
|
||||
cat $patches | patch -p1
|
||||
fi
|
||||
@@ -62,5 +62,5 @@ target_install()
|
||||
ln -fs dropbearmulti "$cfg_dir_rootfs/usr/bin/ssh" &&
|
||||
ln -fs dropbearmulti "$cfg_dir_rootfs/usr/bin/dbclient" &&
|
||||
ln -fs ../bin/dropbearmulti "$cfg_dir_rootfs/usr/sbin/dropbear" &&
|
||||
tar -C "$cfg_package_spec_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
|
||||
tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
|
||||
}
|
@@ -76,5 +76,5 @@ target_install()
|
||||
$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 -
|
||||
tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
|
||||
}
|
@@ -18,13 +18,13 @@ maintainer=\
|
||||
'Ricardo Martins <rasm@fe.up.pt>'
|
||||
)
|
||||
|
||||
build_dir=$PKG_VAR
|
||||
build_dir=$pkg_var
|
||||
|
||||
post_unpack()
|
||||
{
|
||||
ln -fs ../ports ../eglibc-$version/libc/ports
|
||||
|
||||
patches=$(ls "$cfg_package_spec_dir"/patches/*.patch)
|
||||
patches=$(ls "$pkg_dir"/patches/*.patch)
|
||||
|
||||
cd ../eglibc-$version
|
||||
if [ -n "$patches" ]; then
|
@@ -1,4 +1,4 @@
|
||||
source $PKG_COMMON
|
||||
source $pkg_common
|
||||
|
||||
requires=\
|
||||
(
|
||||
@@ -13,7 +13,7 @@ build()
|
||||
host_install()
|
||||
{
|
||||
$cmd_make install_root="$cfg_dir_toolchain_sysroot" -j1 install &&
|
||||
cp "$cfg_package_spec_dir"/files/timepps.h "$cfg_dir_toolchain_sysroot/usr/include"
|
||||
cp "$pkg_dir"/files/timepps.h "$cfg_dir_toolchain_sysroot/usr/include"
|
||||
}
|
||||
|
||||
target_install()
|
||||
@@ -33,5 +33,5 @@ target_install()
|
||||
|
||||
$cmd_target_strip -v --strip-unneeded "elf/ldconfig" \
|
||||
-o "$cfg_dir_rootfs/sbin/ldconfig" &&
|
||||
tar -C "$cfg_package_spec_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
|
||||
tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
|
||||
}
|
@@ -1,4 +1,4 @@
|
||||
source $PKG_COMMON
|
||||
source $pkg_common
|
||||
|
||||
requires=\
|
||||
(
|
@@ -1,4 +1,4 @@
|
||||
source $PKG_COMMON
|
||||
source $pkg_common
|
||||
|
||||
requires=\
|
||||
(
|
@@ -1,6 +1,6 @@
|
||||
version=\
|
||||
(
|
||||
'1.0.3'
|
||||
'1.0.4'
|
||||
)
|
||||
|
||||
url=\
|
||||
@@ -10,7 +10,7 @@ url=\
|
||||
|
||||
md5=\
|
||||
(
|
||||
'd8729636cc2d7f46f62141d392898bfa'
|
||||
'b9ee6a3d921643535c336b7c740b2c60'
|
||||
)
|
||||
|
||||
if [ -d "$cfg_dir_builds/linux/linux-"* ]; then
|
||||
@@ -44,5 +44,5 @@ target_install()
|
||||
$cmd_target_strip "utils/$util/$util" -o "$cfg_dir_rootfs/usr/bin/$util"
|
||||
done &&
|
||||
|
||||
tar -C "$cfg_package_spec_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
|
||||
tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
|
||||
}
|
9
rules/escc/fs/etc/escc/hg1700-psimar.sh
Executable file
9
rules/escc/fs/etc/escc/hg1700-psimar.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
# IMU
|
||||
/usr/bin/setescc 0 0x200 5 0 0 0
|
||||
/usr/bin/esccclock 0 0x5d1460 23
|
||||
/usr/bin/esccsettings 0 /etc/escc/hg1700.cfg
|
||||
|
||||
# PSIMAR
|
||||
/usr/bin/setescc 1 0x200 5 0 0 1
|
||||
/usr/bin/esccsettings 1 /etc/escc/psimar.cfg
|
||||
/usr/bin/esccclock 1 0xc8920 22
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user