Compare commits
93 Commits
glued-1.12
...
glued-1.9.
Author | SHA1 | Date | |
---|---|---|---|
|
f5bfe76a82 | ||
|
88edd69395 | ||
|
c3a875aaad | ||
|
3d61f41f13 | ||
|
a39c3c4c67 | ||
|
f09082179e | ||
|
0c5f6ca811 | ||
|
d358335097 | ||
|
f7ebc02923 | ||
|
bf874138ac | ||
|
06288b9fed | ||
|
283d09a73f | ||
|
b190ddad04 | ||
|
0fac03e798 | ||
|
3ee9754b26 | ||
|
8e4a5e8fd6 | ||
|
97d1c610c8 | ||
|
e717d722ab | ||
|
856bd832ce | ||
|
fc5685fa40 | ||
|
341d6676ad | ||
|
07f82e04f7 | ||
|
b3cd04f1e4 | ||
|
b3b2a4edfd | ||
|
eff7f5927c | ||
|
2c9888096c | ||
|
ec1bf09d1f | ||
|
09f5463715 | ||
|
ac520a9c1b | ||
|
4d32c16079 | ||
|
e9c2f389fd | ||
|
b6c34a1172 | ||
|
66c1da6d25 | ||
|
71775a3734 | ||
|
8439ec05e8 | ||
|
1368c66223 | ||
|
3e069e7027 | ||
|
11fe6069c1 | ||
|
58b5f37f30 | ||
|
ae92cad20f | ||
|
7bc39c42cd | ||
|
d6d31cc585 | ||
|
4809ef5537 | ||
|
12321bd4bc | ||
|
ba83c7a108 | ||
|
9b0c150f47 | ||
|
e2e006cc33 | ||
|
4cbc20eda6 | ||
|
b6a866422a | ||
|
9c879ac1ad | ||
|
28e3a2f4b0 | ||
|
5c5c8ea50d | ||
|
58bd6dded1 | ||
|
187a2bebd4 | ||
|
60f8ef41fc | ||
|
8baaca2665 | ||
|
fa0956a7f9 | ||
|
3142a7f473 | ||
|
9906a6f9dc | ||
|
e1137a4ee5 | ||
|
d1aede925a | ||
|
00bb88ce54 | ||
|
a650535d90 | ||
|
77b021c469 | ||
|
1616c418ad | ||
|
ff609d20cc | ||
|
1b1a3b663c | ||
|
74a2058410 | ||
|
f4f30a7501 | ||
|
0e871214bf | ||
|
00b616b7c7 | ||
|
f6a3973c9b | ||
|
d71cd0f31c | ||
|
e395e75b04 | ||
|
c00c27649b | ||
|
61529350c5 | ||
|
108ce638ed | ||
|
d0381c9b62 | ||
|
f90424a424 | ||
|
9854a87f75 | ||
|
53bd90bb42 | ||
|
e53a6fc1b4 | ||
|
5171aee6a3 | ||
|
2950ac0ccc | ||
|
90b0e4d5cc | ||
|
3575ea7021 | ||
|
6fe4727a85 | ||
|
c2c0689b70 | ||
|
b0112ec61c | ||
|
e6e9a01c1d | ||
|
23e5f9b34c | ||
|
5abb3e220a | ||
|
9686a1cefa |
@@ -1,6 +1,5 @@
|
|||||||
cfg_target_canonical="armv11-$cfg_glued_vendor-linux-gnueabi"
|
cfg_target_canonical="armv11-$cfg_glued_vendor-linux-gnueabi"
|
||||||
cfg_target_linux='arm'
|
cfg_target_linux='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-cpu=arm1176jzf-s --with-tune=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,6 +1,6 @@
|
|||||||
cfg_target_canonical="armv7-$cfg_glued_vendor-linux-gnueabi"
|
cfg_target_canonical="armv7-$cfg_glued_vendor-linux-gnueabi"
|
||||||
cfg_target_linux='arm'
|
cfg_target_linux='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-cpu=cortex-a8 --with-tune=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'
|
||||||
|
cfg_target_uboot_arch='arm'
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
###########################################################################
|
###########################################################################
|
||||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||||
# Copyright (C) 2007-2014 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 #
|
||||||
@@ -18,8 +18,6 @@
|
|||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
|
||||||
# 02110-1301 USA. #
|
# 02110-1301 USA. #
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# Author: Ricardo Martins #
|
|
||||||
###########################################################################
|
|
||||||
|
|
||||||
nfo1()
|
nfo1()
|
||||||
{
|
{
|
||||||
|
@@ -27,7 +27,7 @@ tar czf "$1/${backupsystem}_backup/${backupfile}" \
|
|||||||
architectures \
|
architectures \
|
||||||
scripts \
|
scripts \
|
||||||
product \
|
product \
|
||||||
rules \
|
packages \
|
||||||
systems
|
systems
|
||||||
|
|
||||||
echo "Done ... "
|
echo "Done ... "
|
@@ -1,7 +1,7 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||||
# Copyright (C) 2007-2014 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 #
|
||||||
@@ -19,11 +19,9 @@
|
|||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
|
||||||
# 02110-1301 USA. #
|
# 02110-1301 USA. #
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# Author: Ricardo Martins #
|
|
||||||
###########################################################################
|
|
||||||
|
|
||||||
# Config: GLUED version.
|
# Config: GLUED version.
|
||||||
cfg_glued_version='1.12.1'
|
cfg_glued_version='1.9.14'
|
||||||
# Config: GLUED vendor.
|
# Config: GLUED vendor.
|
||||||
cfg_glued_vendor='lsts'
|
cfg_glued_vendor='lsts'
|
||||||
|
|
||||||
@@ -112,7 +110,7 @@ cfg_dir_base="$PWD"
|
|||||||
# Config: system configuration folder.
|
# Config: system configuration folder.
|
||||||
cfg_dir_system="$cfg_dir_base/$family_dir"
|
cfg_dir_system="$cfg_dir_base/$family_dir"
|
||||||
# Config: package rules folder.
|
# Config: package rules folder.
|
||||||
cfg_dir_rules="$cfg_dir_base/rules"
|
cfg_dir_packages="$cfg_dir_base/packages"
|
||||||
# Config: configuration rules folder.
|
# Config: configuration rules folder.
|
||||||
cfg_dir_postconfiguration="$cfg_dir_base/postconfiguration"
|
cfg_dir_postconfiguration="$cfg_dir_base/postconfiguration"
|
||||||
# Config: package sources folder.
|
# Config: package sources folder.
|
||||||
|
36
mkdisk.bash
36
mkdisk.bash
@@ -1,7 +1,7 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||||
# Copyright (C) 2007-2014 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 #
|
||||||
@@ -19,8 +19,6 @@
|
|||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
|
||||||
# 02110-1301 USA. #
|
# 02110-1301 USA. #
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# Author: Ricardo Martins #
|
|
||||||
###########################################################################
|
|
||||||
|
|
||||||
cmd_parted()
|
cmd_parted()
|
||||||
{
|
{
|
||||||
@@ -95,7 +93,7 @@ create_part_root()
|
|||||||
|| die
|
|| die
|
||||||
|
|
||||||
nfo2 "Creating filesystem"
|
nfo2 "Creating filesystem"
|
||||||
"$cmd_mkfs_ext2" -q -F -L "$part_label" "$part_dev" > /dev/null 2>&1 || die
|
mkfs.ext2 -q -L "$part_label" "$part_dev" || die
|
||||||
|
|
||||||
nfo2 "Populating filesystem"
|
nfo2 "Populating filesystem"
|
||||||
cmd_mount ext2 "$part_dev" || die
|
cmd_mount ext2 "$part_dev" || die
|
||||||
@@ -128,7 +126,7 @@ create_part_data()
|
|||||||
|| die
|
|| die
|
||||||
|
|
||||||
nfo2 "Creating filesystem"
|
nfo2 "Creating filesystem"
|
||||||
"$cmd_mkfs_ext4" -q -F -L "$part_label" -O dir_index "$part_dev" > /dev/null 2>&1 || die
|
mkfs.ext4 -q -L "$part_label" -O dir_index "$part_dev" || die
|
||||||
|
|
||||||
nfo2 "Populating filesystem"
|
nfo2 "Populating filesystem"
|
||||||
cmd_mount ext4 "$part_dev" || die
|
cmd_mount ext4 "$part_dev" || die
|
||||||
@@ -167,13 +165,6 @@ else
|
|||||||
cmd_parted="parted"
|
cmd_parted="parted"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -x "$cfg_dir_toolchain/sbin/fdisk" ]; then
|
|
||||||
cmd_fdisk="$cfg_dir_toolchain/sbin/fdisk"
|
|
||||||
else
|
|
||||||
echo "Warning: using system fdisk, this might lead to errors"
|
|
||||||
cmd_fdisk="fdisk"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -x "$cfg_dir_toolchain/sbin/mkdosfs" ]; then
|
if [ -x "$cfg_dir_toolchain/sbin/mkdosfs" ]; then
|
||||||
cmd_mkdosfs="$cfg_dir_toolchain/sbin/mkdosfs"
|
cmd_mkdosfs="$cfg_dir_toolchain/sbin/mkdosfs"
|
||||||
else
|
else
|
||||||
@@ -181,20 +172,6 @@ else
|
|||||||
cmd_mkdosfs="mkdosfs"
|
cmd_mkdosfs="mkdosfs"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -x "$cfg_dir_toolchain/sbin/mkfs.ext2" ]; then
|
|
||||||
cmd_mkfs_ext2="$cfg_dir_toolchain/sbin/mkfs.ext2"
|
|
||||||
else
|
|
||||||
echo "Warning: using system mkfs.ext2, this might lead to errors"
|
|
||||||
cmd_mkfs_ext2="mkfs.ext2"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -x "$cfg_dir_toolchain/sbin/mkfs.ext4" ]; then
|
|
||||||
cmd_mkfs_ext4="$cfg_dir_toolchain/sbin/mkfs.ext4"
|
|
||||||
else
|
|
||||||
echo "Warning: using system mkfs.ext4, this might lead to errors"
|
|
||||||
cmd_mkfs_ext4="mkfs.ext4"
|
|
||||||
fi
|
|
||||||
|
|
||||||
source "functions.bash"
|
source "functions.bash"
|
||||||
|
|
||||||
dev="$2"
|
dev="$2"
|
||||||
@@ -236,7 +213,6 @@ cmd_parted "$dev_loop" \
|
|||||||
|| die
|
|| die
|
||||||
|
|
||||||
part_nr=1
|
part_nr=1
|
||||||
xboot_system_id=0
|
|
||||||
for ((i = 0; i < ${#cfg_partitions[@]}; i += 4)); do
|
for ((i = 0; i < ${#cfg_partitions[@]}; i += 4)); do
|
||||||
part_type="${cfg_partitions[$i+0]}"
|
part_type="${cfg_partitions[$i+0]}"
|
||||||
part_label="${cfg_partitions[$i+1]}"
|
part_label="${cfg_partitions[$i+1]}"
|
||||||
@@ -247,7 +223,6 @@ for ((i = 0; i < ${#cfg_partitions[@]}; i += 4)); do
|
|||||||
case $part_type in
|
case $part_type in
|
||||||
'x-boot')
|
'x-boot')
|
||||||
create_part_xboot
|
create_part_xboot
|
||||||
xboot_system_id=1
|
|
||||||
;;
|
;;
|
||||||
'root')
|
'root')
|
||||||
create_part_root
|
create_part_root
|
||||||
@@ -273,10 +248,5 @@ nfo1 "Synchronizing caches"
|
|||||||
sync && sync && sync && sync && sync && sync
|
sync && sync && sync && sync && sync && sync
|
||||||
blockdev --flushbufs "$dev_loop" || die
|
blockdev --flushbufs "$dev_loop" || die
|
||||||
|
|
||||||
# Make sure the partition has 0x0e type.
|
|
||||||
if [ $xboot_system_id -eq 1 ]; then
|
|
||||||
echo -en "t\n1\ne\nw\n" | $cmd_fdisk "$dev_loop" > /dev/null 2>&1
|
|
||||||
fi
|
|
||||||
|
|
||||||
nfo1 "Detaching loop device $dev_loop"
|
nfo1 "Detaching loop device $dev_loop"
|
||||||
losetup -v -d "$dev_loop"
|
losetup -v -d "$dev_loop"
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||||
# Copyright (C) 2007-2014 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 #
|
||||||
@@ -19,8 +19,6 @@
|
|||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
|
||||||
# 02110-1301 USA. #
|
# 02110-1301 USA. #
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# Author: Ricardo Martins #
|
|
||||||
###########################################################################
|
|
||||||
|
|
||||||
source "functions.bash"
|
source "functions.bash"
|
||||||
|
|
||||||
@@ -97,7 +95,7 @@ download()
|
|||||||
u="$(echo ${git[$n]} | cut -f1 -d'#')"
|
u="$(echo ${git[$n]} | cut -f1 -d'#')"
|
||||||
b="$(echo ${git[$n]} | cut -f2 -d'#')"
|
b="$(echo ${git[$n]} | cut -f2 -d'#')"
|
||||||
dir=$(basename $u)
|
dir=$(basename $u)
|
||||||
des="${cfg_dir_builds}/$pkg/$dir-git"
|
des="${cfg_dir_builds}/$PKG/$dir-git"
|
||||||
|
|
||||||
if [[ "$u" == git* ]]; then
|
if [[ "$u" == git* ]]; then
|
||||||
git clone --verbose --branch "$b" "$u" "$des"
|
git clone --verbose --branch "$b" "$u" "$des"
|
||||||
@@ -125,10 +123,10 @@ unpack()
|
|||||||
|
|
||||||
case $file in
|
case $file in
|
||||||
*tar*|*tgz|*tbz*)
|
*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)
|
*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."
|
echo "File $file can't be handled."
|
||||||
@@ -139,11 +137,11 @@ unpack()
|
|||||||
|
|
||||||
dir_gnu_cfg="$cfg_dir_toolchain/share/gnu-config"
|
dir_gnu_cfg="$cfg_dir_toolchain/share/gnu-config"
|
||||||
if [ "$cfg_dir_cfg/config.sub" ]; then
|
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
|
fi
|
||||||
|
|
||||||
if [ "$cfg_dir_cfg/config.guess" ]; then
|
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
|
fi
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
@@ -181,48 +179,48 @@ postconfigure()
|
|||||||
|
|
||||||
perform_clean()
|
perform_clean()
|
||||||
{
|
{
|
||||||
rm -rf "$cfg_dir_builds/$pkg/$pkg_var"
|
rm -rf "$cfg_dir_builds/$PKG/$PKG_VAR"
|
||||||
}
|
}
|
||||||
|
|
||||||
perform_all()
|
perform_all()
|
||||||
{
|
{
|
||||||
start="$(date +%s)"
|
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
|
for rule in download unpack post_unpack refresh configure build host_install target_install postconfigure; do
|
||||||
case $rule in
|
case $rule in
|
||||||
download | unpack | post_unpack)
|
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
|
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
|
if [ -z "$build_dir" ]; then
|
||||||
build_dir="$pkg-$version"
|
build_dir="$PKG-$version"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$build_dir" ]; then
|
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
|
fi
|
||||||
|
|
||||||
if [ -n "$build_always" ] || [ "$rule" = 'refresh' ]; then
|
if [ -n "$build_always" ] || [ "$rule" = 'refresh' ]; then
|
||||||
nfo2 "$rule"
|
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
|
else
|
||||||
if ! [ -f "$marker" ]; then
|
if ! [ -f "$marker" ]; then
|
||||||
nfo2 "$rule"
|
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
|
if [ $? -eq 0 ]; then
|
||||||
touch "$marker"
|
touch "$marker"
|
||||||
else
|
else
|
||||||
err "failed to execute rule $rule of $pkg / $pkg_var"
|
err "failed to execute rule $rule of $PKG / $PKG_VAR"
|
||||||
tail "$cfg_dir_builds/$pkg/$pkg_var/$rule.log"
|
tail "$cfg_dir_builds/$PKG/$PKG_VAR/$rule.log"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@@ -231,7 +229,7 @@ perform_all()
|
|||||||
|
|
||||||
elapsed=$[ $(date +%s)-$start ]
|
elapsed=$[ $(date +%s)-$start ]
|
||||||
ok "completed in ${elapsed}s"
|
ok "completed in ${elapsed}s"
|
||||||
touch "$cfg_dir_builds/$pkg/$pkg_var/.complete"
|
touch "$cfg_dir_builds/$PKG/$PKG_VAR/.complete"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Check shell.
|
# Check shell.
|
||||||
@@ -298,17 +296,17 @@ if [ "$pkg_var" = "$pkg" ]; then
|
|||||||
pkg_var='default'
|
pkg_var='default'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export pkg
|
export PKG="$pkg"
|
||||||
export pkg_var
|
export PKG_VAR="$pkg_var"
|
||||||
export pkg_common="$cfg_dir_rules/$pkg/common.bash"
|
export PKG_COMMON="$cfg_dir_packages/$PKG/common.bash"
|
||||||
|
|
||||||
if ! [ -d "$cfg_dir_rules/$pkg" ]; then
|
if ! [ -d "$cfg_dir_packages/$PKG" ]; then
|
||||||
echo "ERROR: package '$pkg' does not exist."
|
echo "ERROR: package '$PKG' does not exist."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! [ -f "$cfg_dir_rules/$pkg/$pkg_var.bash" ]; then
|
if ! [ -f "$cfg_dir_packages/$PKG/$PKG_VAR.bash" ]; then
|
||||||
echo "ERROR: variant '$pkg_var' of package '$pkg' does not exist."
|
echo "ERROR: variant '$PKG_VAR' of package '$PKG' does not exist."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -318,18 +316,18 @@ else
|
|||||||
rule="$3"
|
rule="$3"
|
||||||
fi
|
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 pkg_dir="$cfg_dir_rules/$pkg"
|
export cfg_package_spec_dir="$cfg_dir_base/packages/$PKG"
|
||||||
|
|
||||||
. "$cfg_dir_rules/$pkg/$pkg_var.bash"
|
. "$cfg_dir_packages/$PKG/$PKG_VAR.bash"
|
||||||
|
|
||||||
# Postconfiguration:
|
# Postconfiguration:
|
||||||
if [ -e "$cfg_dir_postconfiguration/$pkg/$cfg_sys_name.bash" ]; then
|
if [ -e "$cfg_dir_postconfiguration/$PKG/$cfg_sys_name.bash" ]; then
|
||||||
# echo "ERROR: postconfiguration exists '$pkg'."
|
# echo "ERROR: postconfiguration exists '$PKG'."
|
||||||
# echo "$cfg_dir_postconfiguration/$pkg/$cfg_sys_name.bash"
|
# echo "$cfg_dir_postconfiguration/$PKG/$cfg_sys_name.bash"
|
||||||
# exit 1
|
# exit 1
|
||||||
. "$cfg_dir_postconfiguration/$pkg/$cfg_sys_name.bash"
|
. "$cfg_dir_postconfiguration/$PKG/$cfg_sys_name.bash"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Handle dependencies.
|
# Handle dependencies.
|
||||||
@@ -347,7 +345,7 @@ n=0; while [ -n "${requires[$n]}" ]; do
|
|||||||
|
|
||||||
"$0" "$1" "$req"
|
"$0" "$1" "$req"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
err "failed to build dependency for package $pkg / $pkg_var"
|
err "failed to build dependency for package $PKG / $PKG_VAR"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@@ -19,8 +19,6 @@
|
|||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
|
||||||
# 02110-1301 USA. #
|
# 02110-1301 USA. #
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# Author: Ricardo Martins #
|
|
||||||
###########################################################################
|
|
||||||
|
|
||||||
# Check shell type.
|
# Check shell type.
|
||||||
if [ -z "$BASH_VERSION" ]; then
|
if [ -z "$BASH_VERSION" ]; then
|
||||||
|
@@ -21,7 +21,7 @@ requires=\
|
|||||||
|
|
||||||
post_unpack()
|
post_unpack()
|
||||||
{
|
{
|
||||||
patches=$(ls "$pkg_dir/patches-$version/"*.patch 2>/dev/null)
|
patches=$(ls "$cfg_package_spec_dir/patches-$version/"*.patch 2>/dev/null)
|
||||||
if [ -n "$patches" ]; then
|
if [ -n "$patches" ]; then
|
||||||
cat $patches | patch -p1
|
cat $patches | patch -p1
|
||||||
fi
|
fi
|
@@ -1,6 +1,6 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'1.5.3'
|
'1.5.2'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
@@ -1,6 +1,6 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'1.5.1'
|
'1.4.6'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
0
rules/atk/default.bash → packages/atk/default.bash
Normal file → Executable file
0
rules/atk/default.bash → packages/atk/default.bash
Normal file → Executable file
@@ -1,4 +1,4 @@
|
|||||||
source $pkg_common
|
source $PKG_COMMON
|
||||||
|
|
||||||
requires=\
|
requires=\
|
||||||
(
|
(
|
@@ -1,4 +1,4 @@
|
|||||||
source $pkg_common
|
source $PKG_COMMON
|
||||||
|
|
||||||
requires=\
|
requires=\
|
||||||
(
|
(
|
@@ -25,5 +25,4 @@ requires=\
|
|||||||
'texinfo/host'
|
'texinfo/host'
|
||||||
'parted/host'
|
'parted/host'
|
||||||
'dosfstools/host'
|
'dosfstools/host'
|
||||||
'e2fsprogs/host'
|
|
||||||
)
|
)
|
@@ -18,7 +18,7 @@ maintainer=\
|
|||||||
"Ricardo Martins <rasm@fe.up.pt>"
|
"Ricardo Martins <rasm@fe.up.pt>"
|
||||||
)
|
)
|
||||||
|
|
||||||
build_dir=$pkg_var
|
build_dir=$PKG_VAR
|
||||||
|
|
||||||
configure()
|
configure()
|
||||||
{
|
{
|
93
packages/boost/default.bash
Normal file
93
packages/boost/default.bash
Normal file
@@ -0,0 +1,93 @@
|
|||||||
|
version=\
|
||||||
|
(
|
||||||
|
"1.53.0"
|
||||||
|
)
|
||||||
|
|
||||||
|
vendor_version="$(echo $version | tr . _)"
|
||||||
|
|
||||||
|
url=\
|
||||||
|
(
|
||||||
|
"http://downloads.sourceforge.net/project/boost/boost/$version/boost_$vendor_version.tar.bz2"
|
||||||
|
)
|
||||||
|
|
||||||
|
maintainer=\
|
||||||
|
(
|
||||||
|
'Jose Pinto <zepinto@fe.up.pt>'
|
||||||
|
)
|
||||||
|
|
||||||
|
md5=\
|
||||||
|
(
|
||||||
|
"a00d22605d5dbcfb4c9936a9b35bc4c2"
|
||||||
|
)
|
||||||
|
|
||||||
|
requires=\
|
||||||
|
(
|
||||||
|
'bzip2/default'
|
||||||
|
)
|
||||||
|
|
||||||
|
post_unpack()
|
||||||
|
{
|
||||||
|
patches=$(ls "$cfg_package_spec_dir/patches-${version}/"*.patch)
|
||||||
|
if [ -n "$patches" ]; then
|
||||||
|
cd "../boost_$vendor_version" && cat $patches | patch -p1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
configure()
|
||||||
|
{
|
||||||
|
cd "../boost_$vendor_version" &&
|
||||||
|
./bootstrap.sh \
|
||||||
|
--with-icu="$cfg_dir_toolchain_sysroot/usr"
|
||||||
|
|
||||||
|
GXX_VER=$(${cmd_target_cxx} -dumpversion)
|
||||||
|
echo "using gcc : ${GXX_VER} : ${cmd_target_cxx} : <cxxflags>\"-pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 ${cfg_target_gcc_flags} \" <linkflags>\"\" ;" > user-config.jam
|
||||||
|
echo "" >> user-config.jam
|
||||||
|
}
|
||||||
|
|
||||||
|
build()
|
||||||
|
{
|
||||||
|
cd "../boost_$vendor_version" &&
|
||||||
|
./bjam -d+2 \
|
||||||
|
toolset=gcc \
|
||||||
|
variant=release \
|
||||||
|
link=shared \
|
||||||
|
threading=multi \
|
||||||
|
runtime-link=shared \
|
||||||
|
-sICU_PATH="$cfg_dir_toolchain_sysroot/usr" \
|
||||||
|
--user-config=user-config.jam \
|
||||||
|
--prefix="${cfg_dir_toolchain_sysroot}/usr" \
|
||||||
|
--without-python \
|
||||||
|
--layout=tagged
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
host_install()
|
||||||
|
{
|
||||||
|
cd "../boost_$vendor_version" &&
|
||||||
|
./bjam -d+2 \
|
||||||
|
toolset=gcc \
|
||||||
|
variant=release \
|
||||||
|
link=shared \
|
||||||
|
threading=multi \
|
||||||
|
runtime-link=shared \
|
||||||
|
-sICU_PATH="$cfg_dir_toolchain_sysroot/usr" \
|
||||||
|
--user-config=user-config.jam \
|
||||||
|
--prefix="${cfg_dir_toolchain_sysroot}/usr" \
|
||||||
|
--without-python \
|
||||||
|
--layout=tagged \
|
||||||
|
install
|
||||||
|
|
||||||
|
mkdir -p "${cfg_dir_toolchain_sysroot}/usr/share"
|
||||||
|
cp -rvd "../boost_$vendor_version/boost" \
|
||||||
|
"${cfg_dir_toolchain_sysroot}/usr/share"
|
||||||
|
}
|
||||||
|
|
||||||
|
target_install()
|
||||||
|
{
|
||||||
|
base="$cfg_dir_toolchain_sysroot/usr/lib"
|
||||||
|
for f in "$base/libboost_"*.so*; do
|
||||||
|
dst="$cfg_dir_rootfs/lib/$(basename "$f")"
|
||||||
|
cp -v -d "$f" "$dst" &&
|
||||||
|
$cmd_target_strip "$dst"
|
||||||
|
done
|
||||||
|
}
|
@@ -1,31 +1,26 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'1.5'
|
"1.4"
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
(
|
(
|
||||||
"http://downloads.sourceforge.net/project/bridge/bridge/bridge-utils-$version.tar.gz"
|
"http://downloads.sourceforge.net/project/bridge/bridge/bridge-utils-$version/bridge-utils-$version.tar.gz"
|
||||||
)
|
)
|
||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'ec7b381160b340648dede58c31bb2238'
|
"0182fcac3a2b307113bbec34e5f1c673"
|
||||||
)
|
)
|
||||||
|
|
||||||
maintainer=\
|
maintainer=\
|
||||||
(
|
(
|
||||||
'Ricardo Martins <rasm@fe.up.pt>'
|
"Ricardo Martins <rasm@fe.up.pt>"
|
||||||
)
|
)
|
||||||
|
|
||||||
post_unpack()
|
post_unpack()
|
||||||
{
|
{
|
||||||
patches=$(ls "$pkg_dir/patches-$version/"*.patch 2>/dev/null)
|
cd ../bridge-utils-$version && autoreconf
|
||||||
if [ -n "$patches" ]; then
|
|
||||||
cat $patches | patch -p1
|
|
||||||
fi &&
|
|
||||||
|
|
||||||
autoreconf
|
|
||||||
}
|
}
|
||||||
|
|
||||||
configure()
|
configure()
|
@@ -1,6 +1,6 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'1.22.1'
|
"1.20.2"
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
@@ -10,12 +10,12 @@ url=\
|
|||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'337d1a15ab1cb1d4ed423168b1eb7d7e'
|
"e025414bc6cd79579cc7a32a45d3ae1c"
|
||||||
)
|
)
|
||||||
|
|
||||||
post_unpack()
|
post_unpack()
|
||||||
{
|
{
|
||||||
patches=$(ls "$pkg_dir"/patches/*.patch)
|
patches=$(ls "$cfg_package_spec_dir"/patches/*.patch)
|
||||||
|
|
||||||
if [ -n "$patches" ]; then
|
if [ -n "$patches" ]; then
|
||||||
cat $patches | patch -p1
|
cat $patches | patch -p1
|
||||||
@@ -24,7 +24,7 @@ post_unpack()
|
|||||||
|
|
||||||
configure()
|
configure()
|
||||||
{
|
{
|
||||||
cp "$pkg_dir"/config .config &&
|
cp "$cfg_package_spec_dir"/config .config &&
|
||||||
yes '' | $cmd_make CROSS_COMPILE="$cfg_target_canonical"- oldconfig
|
yes '' | $cmd_make CROSS_COMPILE="$cfg_target_canonical"- oldconfig
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -36,5 +36,5 @@ build()
|
|||||||
target_install()
|
target_install()
|
||||||
{
|
{
|
||||||
$cmd_make CROSS_COMPILE="$cfg_target_canonical"- CONFIG_PREFIX=$cfg_dir_rootfs install &&
|
$cmd_make CROSS_COMPILE="$cfg_target_canonical"- CONFIG_PREFIX=$cfg_dir_rootfs install &&
|
||||||
tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
|
tar -C "$cfg_package_spec_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()
|
configure()
|
@@ -1,4 +1,4 @@
|
|||||||
source $pkg_common
|
source $PKG_COMMON
|
||||||
|
|
||||||
build()
|
build()
|
||||||
{
|
{
|
53
packages/cdk/default.bash
Normal file
53
packages/cdk/default.bash
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
version=\
|
||||||
|
(
|
||||||
|
"5.0-20120323"
|
||||||
|
)
|
||||||
|
|
||||||
|
url=\
|
||||||
|
(
|
||||||
|
"ftp://invisible-island.net/cdk/cdk.tar.gz"
|
||||||
|
)
|
||||||
|
|
||||||
|
md5=\
|
||||||
|
(
|
||||||
|
"929969d06ce034e862976bb7d1a36b25"
|
||||||
|
)
|
||||||
|
|
||||||
|
requires=\
|
||||||
|
(
|
||||||
|
'ncurses/default'
|
||||||
|
)
|
||||||
|
|
||||||
|
configure()
|
||||||
|
{
|
||||||
|
# --target="${cfg_target_canonical}" \
|
||||||
|
./configure \
|
||||||
|
--prefix="$cfg_dir_toolchain_sysroot/usr" \
|
||||||
|
--host="${cfg_target_canonical}" \
|
||||||
|
--build="${cfg_host_canonical}" \
|
||||||
|
--target="${cfg_target_canonical}" \
|
||||||
|
--with-ncursesw \
|
||||||
|
--with-shared \
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
build()
|
||||||
|
{
|
||||||
|
$cmd_make
|
||||||
|
}
|
||||||
|
|
||||||
|
host_install()
|
||||||
|
{
|
||||||
|
$cmd_make install
|
||||||
|
}
|
||||||
|
|
||||||
|
target_install()
|
||||||
|
{
|
||||||
|
for f in "$cfg_dir_toolchain_sysroot/usr/lib/libcdk"* ; do
|
||||||
|
if [ -L "$f" ]; then
|
||||||
|
cp -av "$f" "$cfg_dir_rootfs/usr/lib"
|
||||||
|
else
|
||||||
|
$cmd_target_strip -v "$f" -o "$cfg_dir_rootfs/usr/lib/$(basename "$f")"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
@@ -1,6 +1,6 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
"2.8.9"
|
"2.8.8"
|
||||||
)
|
)
|
||||||
|
|
||||||
version_major=\
|
version_major=\
|
||||||
@@ -15,7 +15,7 @@ url=\
|
|||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
"801f4c87f8b604f727df5bf1f05a59e7"
|
"ba74b22c788a0c8547976b880cd02b17"
|
||||||
)
|
)
|
||||||
|
|
||||||
configure()
|
configure()
|
||||||
@@ -26,12 +26,10 @@ configure()
|
|||||||
|
|
||||||
build()
|
build()
|
||||||
{
|
{
|
||||||
# Remove the trailling 'ncurses' folder from the CURSES_INCLUDE_PATH
|
|
||||||
cat CMakeCache.txt | sed '/^CURSES_INCLUDE_PATH/s/\/ncurses$/\//g' > CMakeCache.txt &&
|
|
||||||
$cmd_make
|
$cmd_make
|
||||||
}
|
}
|
||||||
|
|
||||||
host_install()
|
host_install()
|
||||||
{
|
{
|
||||||
$cmd_make DESTDIR="$cfg_dir_toolchain" install
|
$cmd_make install
|
||||||
}
|
}
|
@@ -88,7 +88,7 @@ target_install()
|
|||||||
# Collectd:
|
# Collectd:
|
||||||
$cmd_mkdir "$cfg_dir_rootfs/usr/share/"
|
$cmd_mkdir "$cfg_dir_rootfs/usr/share/"
|
||||||
$cmd_cp "$cfg_dir_toolchain_sysroot/usr/share/collectd/" "$cfg_dir_rootfs/usr/share/"
|
$cmd_cp "$cfg_dir_toolchain_sysroot/usr/share/collectd/" "$cfg_dir_rootfs/usr/share/"
|
||||||
$cmd_cp "${pkg_dir}/fs/etc/rc.d/collectd" "$cfg_dir_rootfs/etc/rc.d/"
|
$cmd_cp "${cfg_package_spec_dir}/fs/etc/rc.d/collectd" "$cfg_dir_rootfs/etc/rc.d/"
|
||||||
|
|
||||||
# Configuration:
|
# Configuration:
|
||||||
echo "# Client
|
echo "# Client
|
@@ -5,7 +5,7 @@ version=\
|
|||||||
|
|
||||||
url=\
|
url=\
|
||||||
(
|
(
|
||||||
"ftp://mirror.ovh.net/gentoo-distfiles/distfiles/db-$version.tar.gz"
|
"http://www.lsts.pt/glued/db-$version.tar.gz"
|
||||||
)
|
)
|
||||||
|
|
||||||
md5=\
|
md5=\
|
@@ -25,7 +25,7 @@ requires=\
|
|||||||
|
|
||||||
post_unpack()
|
post_unpack()
|
||||||
{
|
{
|
||||||
patches=$(ls "$pkg_dir/patches/"*.patch)
|
patches=$(ls "$cfg_package_spec_dir/patches/"*.patch)
|
||||||
if [ -n "$patches" ]; then
|
if [ -n "$patches" ]; then
|
||||||
cat $patches | patch -p0
|
cat $patches | patch -p0
|
||||||
fi
|
fi
|
@@ -26,5 +26,6 @@ build()
|
|||||||
|
|
||||||
target_install()
|
target_install()
|
||||||
{
|
{
|
||||||
$cmd_target_strip src/dnsmasq -o "$cfg_dir_rootfs/usr/sbin/dnsmasq"
|
$cmd_target_strip src/dnsmasq -o "$cfg_dir_rootfs/usr/sbin/dnsmasq" &&
|
||||||
|
tar -C "$cfg_package_spec_dir/fs" -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
|
||||||
}
|
}
|
10
packages/dnsmasq/fs/etc/rc.d/dnsmasq
Normal file
10
packages/dnsmasq/fs/etc/rc.d/dnsmasq
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
start()
|
||||||
|
{
|
||||||
|
mkdir -p /var/lib/misc
|
||||||
|
dnsmasq
|
||||||
|
}
|
||||||
|
|
||||||
|
stop()
|
||||||
|
{
|
||||||
|
killall dnsmasq
|
||||||
|
}
|
0
rules/dosfstools/host.bash → packages/dosfstools/host.bash
Normal file → Executable file
0
rules/dosfstools/host.bash → packages/dosfstools/host.bash
Normal file → Executable file
@@ -25,7 +25,7 @@ requires=\
|
|||||||
|
|
||||||
post_unpack()
|
post_unpack()
|
||||||
{
|
{
|
||||||
patches=$(ls "$pkg_dir/patches/"*.patch)
|
patches=$(ls "$cfg_package_spec_dir/patches/"*.patch)
|
||||||
if [ -n "$patches" ]; then
|
if [ -n "$patches" ]; then
|
||||||
cat $patches | patch -p1
|
cat $patches | patch -p1
|
||||||
fi
|
fi
|
||||||
@@ -62,5 +62,5 @@ target_install()
|
|||||||
ln -fs dropbearmulti "$cfg_dir_rootfs/usr/bin/ssh" &&
|
ln -fs dropbearmulti "$cfg_dir_rootfs/usr/bin/ssh" &&
|
||||||
ln -fs dropbearmulti "$cfg_dir_rootfs/usr/bin/dbclient" &&
|
ln -fs dropbearmulti "$cfg_dir_rootfs/usr/bin/dbclient" &&
|
||||||
ln -fs ../bin/dropbearmulti "$cfg_dir_rootfs/usr/sbin/dropbear" &&
|
ln -fs ../bin/dropbearmulti "$cfg_dir_rootfs/usr/sbin/dropbear" &&
|
||||||
tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
|
tar -C "$cfg_package_spec_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
|
||||||
}
|
}
|
@@ -1,9 +1,20 @@
|
|||||||
source "$pkg_common"
|
version=\
|
||||||
|
(
|
||||||
|
'1.42.13'
|
||||||
|
)
|
||||||
|
|
||||||
|
url=\
|
||||||
|
(
|
||||||
|
"http://downloads.sourceforge.net/e2fsprogs/e2fsprogs-$version.tar.gz"
|
||||||
|
)
|
||||||
|
|
||||||
|
md5=\
|
||||||
|
(
|
||||||
|
'bc759fc62666786f5436e2075beb3265'
|
||||||
|
)
|
||||||
|
|
||||||
configure()
|
configure()
|
||||||
{
|
{
|
||||||
$cmd_make distclean
|
|
||||||
|
|
||||||
export CC=$cmd_target_cc
|
export CC=$cmd_target_cc
|
||||||
export CROSS_COMPILE=$cfg_target_canonical
|
export CROSS_COMPILE=$cfg_target_canonical
|
||||||
"../e2fsprogs-$version/configure" \
|
"../e2fsprogs-$version/configure" \
|
@@ -18,13 +18,13 @@ maintainer=\
|
|||||||
'Ricardo Martins <rasm@fe.up.pt>'
|
'Ricardo Martins <rasm@fe.up.pt>'
|
||||||
)
|
)
|
||||||
|
|
||||||
build_dir=$pkg_var
|
build_dir=$PKG_VAR
|
||||||
|
|
||||||
post_unpack()
|
post_unpack()
|
||||||
{
|
{
|
||||||
ln -fs ../ports ../eglibc-$version/libc/ports
|
ln -fs ../ports ../eglibc-$version/libc/ports
|
||||||
|
|
||||||
patches=$(ls "$pkg_dir"/patches/*.patch)
|
patches=$(ls "$cfg_package_spec_dir"/patches/*.patch)
|
||||||
|
|
||||||
cd ../eglibc-$version
|
cd ../eglibc-$version
|
||||||
if [ -n "$patches" ]; then
|
if [ -n "$patches" ]; then
|
@@ -1,4 +1,4 @@
|
|||||||
source $pkg_common
|
source $PKG_COMMON
|
||||||
|
|
||||||
requires=\
|
requires=\
|
||||||
(
|
(
|
||||||
@@ -13,7 +13,7 @@ build()
|
|||||||
host_install()
|
host_install()
|
||||||
{
|
{
|
||||||
$cmd_make install_root="$cfg_dir_toolchain_sysroot" -j1 install &&
|
$cmd_make install_root="$cfg_dir_toolchain_sysroot" -j1 install &&
|
||||||
cp "$pkg_dir"/files/timepps.h "$cfg_dir_toolchain_sysroot/usr/include"
|
cp "$cfg_package_spec_dir"/files/timepps.h "$cfg_dir_toolchain_sysroot/usr/include"
|
||||||
}
|
}
|
||||||
|
|
||||||
target_install()
|
target_install()
|
||||||
@@ -33,5 +33,5 @@ target_install()
|
|||||||
|
|
||||||
$cmd_target_strip -v --strip-unneeded "elf/ldconfig" \
|
$cmd_target_strip -v --strip-unneeded "elf/ldconfig" \
|
||||||
-o "$cfg_dir_rootfs/sbin/ldconfig" &&
|
-o "$cfg_dir_rootfs/sbin/ldconfig" &&
|
||||||
tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
|
tar -C "$cfg_package_spec_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=\
|
requires=\
|
||||||
(
|
(
|
@@ -1,4 +1,4 @@
|
|||||||
source $pkg_common
|
source $PKG_COMMON
|
||||||
|
|
||||||
requires=\
|
requires=\
|
||||||
(
|
(
|
@@ -1,6 +1,6 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'1.0.5'
|
'1.0.6'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
@@ -10,7 +10,7 @@ url=\
|
|||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'8400860f2daa98d559b1b9b6fcc630c2'
|
'07783e66e27601ab0a8250c328b3d6bf'
|
||||||
)
|
)
|
||||||
|
|
||||||
if [ -d "$cfg_dir_builds/linux/linux-"* ]; then
|
if [ -d "$cfg_dir_builds/linux/linux-"* ]; then
|
||||||
@@ -25,7 +25,7 @@ build()
|
|||||||
M=`pwd` \
|
M=`pwd` \
|
||||||
-C "$kernel" &&
|
-C "$kernel" &&
|
||||||
|
|
||||||
for util in setescc esccclock esccsettings; do
|
for util in setescc esccclock esccsettings esccfs6131; do
|
||||||
make CC="$cmd_target_cc" -C "utils/$util"
|
make CC="$cmd_target_cc" -C "utils/$util"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
@@ -40,9 +40,9 @@ target_install()
|
|||||||
-C "$kernel" \
|
-C "$kernel" \
|
||||||
modules_install &&
|
modules_install &&
|
||||||
|
|
||||||
for util in setescc esccclock esccsettings; do
|
for util in setescc esccclock esccsettings esccfs6131; do
|
||||||
$cmd_target_strip "utils/$util/$util" -o "$cfg_dir_rootfs/usr/bin/$util"
|
$cmd_target_strip "utils/$util/$util" -o "$cfg_dir_rootfs/usr/bin/$util"
|
||||||
done &&
|
done &&
|
||||||
|
|
||||||
tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
|
tar -C "$cfg_package_spec_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
|
||||||
}
|
}
|
15
packages/escc/fs/etc/escc/hg1700-psimar.sh
Executable file
15
packages/escc/fs/etc/escc/hg1700-psimar.sh
Executable file
@@ -0,0 +1,15 @@
|
|||||||
|
# Channels:
|
||||||
|
# * 0: Honeywell HG1700
|
||||||
|
# * 1: LSTS PSIMAR
|
||||||
|
|
||||||
|
# Create channels.
|
||||||
|
/usr/bin/setescc 0 0x200 5 0 0 0
|
||||||
|
/usr/bin/setescc 1 0x200 5 0 0 1
|
||||||
|
|
||||||
|
# Set clocks (Hz).
|
||||||
|
"$cmd_escc_set_clock" 0 1000000
|
||||||
|
"$cmd_escc_set_clock" 1 25804800
|
||||||
|
|
||||||
|
# Set registers.
|
||||||
|
/usr/bin/esccsettings 0 /etc/escc/hg1700.cfg
|
||||||
|
/usr/bin/esccsettings 1 /etc/escc/psimar.cfg
|
11
packages/escc/fs/etc/escc/hg1700.sh
Executable file
11
packages/escc/fs/etc/escc/hg1700.sh
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
# Channels:
|
||||||
|
# * 0: Honeywell HG1700
|
||||||
|
|
||||||
|
# Create channels.
|
||||||
|
/usr/bin/setescc 0 0x200 5 0 0 0
|
||||||
|
|
||||||
|
# Set clocks (Hz).
|
||||||
|
"$cmd_escc_set_clock" 0 1000000
|
||||||
|
|
||||||
|
# Set registers.
|
||||||
|
/usr/bin/esccsettings 0 /etc/escc/hg1700.cfg
|
@@ -1,8 +1,14 @@
|
|||||||
# IMU
|
# Channels:
|
||||||
/usr/bin/setescc 0 0x200 5 0 0 0
|
# * 0: iMAR iFOG-IMU-1-A
|
||||||
/usr/bin/esccsettings 0 /etc/escc/ifog-imu-1-a.cfg
|
# * 1: LSTS PSIMAR
|
||||||
|
|
||||||
# PSIMAR
|
# Create channels.
|
||||||
|
/usr/bin/setescc 0 0x200 5 0 0 0
|
||||||
/usr/bin/setescc 1 0x200 5 0 0 1
|
/usr/bin/setescc 1 0x200 5 0 0 1
|
||||||
|
|
||||||
|
# Set clock.
|
||||||
|
"$cmd_escc_set_clock" 1 25804800
|
||||||
|
|
||||||
|
# Set registers.
|
||||||
|
/usr/bin/esccsettings 0 /etc/escc/ifog-imu-1-a.cfg
|
||||||
/usr/bin/esccsettings 1 /etc/escc/psimar.cfg
|
/usr/bin/esccsettings 1 /etc/escc/psimar.cfg
|
||||||
/usr/bin/esccclock 1 0xc8920 22
|
|
@@ -5,6 +5,14 @@ start()
|
|||||||
mknod /dev/escc0 c 261 0 &&
|
mknod /dev/escc0 c 261 0 &&
|
||||||
rm -f /dev/escc1 &&
|
rm -f /dev/escc1 &&
|
||||||
mknod /dev/escc1 c 261 1 &&
|
mknod /dev/escc1 c 261 1 &&
|
||||||
|
|
||||||
|
# Clock command.
|
||||||
|
if [ -z "$cfg_escc_et" ]; then
|
||||||
|
cmd_escc_set_clock='/usr/bin/esccclock'
|
||||||
|
else
|
||||||
|
cmd_escc_set_clock='/usr/bin/esccfs6131'
|
||||||
|
fi &&
|
||||||
|
|
||||||
if [ -f "$cfg_escc_script" ]; then
|
if [ -f "$cfg_escc_script" ]; then
|
||||||
source "$cfg_escc_script"
|
source "$cfg_escc_script"
|
||||||
fi
|
fi
|
@@ -27,7 +27,7 @@ requires=\
|
|||||||
|
|
||||||
post_unpack()
|
post_unpack()
|
||||||
{
|
{
|
||||||
patches=$(ls "$pkg_dir"/patches-$version/*.patch)
|
patches=$(ls "$cfg_package_spec_dir"/patches-$version/*.patch)
|
||||||
|
|
||||||
if [ -n "$patches" ]; then
|
if [ -n "$patches" ]; then
|
||||||
cat $patches | patch -p1
|
cat $patches | patch -p1
|
||||||
@@ -37,7 +37,7 @@ post_unpack()
|
|||||||
build()
|
build()
|
||||||
{
|
{
|
||||||
OLD_PATH="$PATH"
|
OLD_PATH="$PATH"
|
||||||
export PATH="$pkg_dir/compat:$PATH"
|
export PATH="$cfg_package_spec_dir/compat:$PATH"
|
||||||
export PLASMA_HOME="$PWD/../europa-$version"
|
export PLASMA_HOME="$PWD/../europa-$version"
|
||||||
export EUROPA_HOME="$cfg_dir_toolchain_sysroot/usr"
|
export EUROPA_HOME="$cfg_dir_toolchain_sysroot/usr"
|
||||||
|
|
@@ -21,7 +21,7 @@ requires=\
|
|||||||
post_unpack()
|
post_unpack()
|
||||||
{
|
{
|
||||||
cd ../expect${version}
|
cd ../expect${version}
|
||||||
patches=$(ls "$pkg_dir/patches/"*.patch)
|
patches=$(ls "$cfg_package_spec_dir/patches/"*.patch)
|
||||||
if [ -n "$patches" ]; then
|
if [ -n "$patches" ]; then
|
||||||
cat $patches | patch -p1
|
cat $patches | patch -p1
|
||||||
fi
|
fi
|
@@ -15,7 +15,7 @@ md5=\
|
|||||||
|
|
||||||
post_unpack()
|
post_unpack()
|
||||||
{
|
{
|
||||||
patch -d ../fconfig -p1 < "$pkg_dir"/patches/limits.patch
|
patch -d ../fconfig -p1 < "$cfg_package_spec_dir"/patches/limits.patch
|
||||||
}
|
}
|
||||||
|
|
||||||
build()
|
build()
|
0
rules/fftw/default.bash → packages/fftw/default.bash
Normal file → Executable file
0
rules/fftw/default.bash → packages/fftw/default.bash
Normal file → Executable file
13
packages/filesystem/fs/etc/rc.d/bbb-mux
Normal file
13
packages/filesystem/fs/etc/rc.d/bbb-mux
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
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 &&
|
||||||
|
|
||||||
|
# Camera/Strobe
|
||||||
|
echo 0x07 > /sys/kernel/debug/omap_mux/lcd_data6 &&
|
||||||
|
|
||||||
|
umount /sys/kernel/debug
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user