Compare commits
313 Commits
glued-1.12
...
feature/ne
Author | SHA1 | Date | |
---|---|---|---|
|
ecd5bf3213 | ||
|
92b1d5609d | ||
|
1e3f781bb3 | ||
|
585e48ab75 | ||
|
c711e7454c | ||
|
09a3e3ecd1 | ||
|
f88cc8a39a | ||
|
f9de3a4f8f | ||
|
fd6fcdeb7b | ||
|
d7964b4c14 | ||
|
a4ac22d3f2 | ||
|
e2fcc7af9c | ||
|
473148fed2 | ||
|
e12ae5d839 | ||
|
98d9eb21f7 | ||
|
8bfe1eb5c0 | ||
|
18fb81b606 | ||
|
23c58281c6 | ||
|
45b3108cb4 | ||
|
11becbd486 | ||
|
dfb270ae35 | ||
|
31911be6d5 | ||
|
8b638e2f27 | ||
|
6075393a97 | ||
|
febcfa0425 | ||
|
de84a56ab3 | ||
|
570819ea0b | ||
|
99e99f3e0f | ||
|
52d6566325 | ||
|
70f86e932b | ||
|
1c415a44ac | ||
|
fe76470a31 | ||
|
06af4b5492 | ||
|
91ab44c833 | ||
|
daf3745e8d | ||
|
dc982505a0 | ||
|
628ae3fefe | ||
|
e8bbadc1d1 | ||
|
b1daef0319 | ||
|
5f732c892b | ||
|
90bf3d8bf8 | ||
|
f9fb2fe49b | ||
|
fd18050b8f | ||
|
3ac1f523e4 | ||
|
f32fa39117 | ||
|
73d5d950ea | ||
|
407d267025 | ||
|
ed94c11db3 | ||
|
0acac46293 | ||
|
5922835236 | ||
|
edc70d528d | ||
|
31bed7ae8f | ||
|
7f19c508c1 | ||
|
849aeba26e | ||
|
fefe950223 | ||
|
de790486a2 | ||
|
b0c958ae59 | ||
|
13fa4d279e | ||
|
7692a45c51 | ||
|
c7ae8c42fe | ||
|
32ca698e19 | ||
|
32b085001a | ||
|
e0a4f27dee | ||
|
e3a519e46a | ||
|
f991959696 | ||
|
7c8a3aec6f | ||
|
262b2f01d2 | ||
|
b2ed7f6185 | ||
|
965171f488 | ||
|
8a3ebb9519 | ||
|
4db766c7c3 | ||
|
f29c6c624a | ||
|
eeedb2be55 | ||
|
e3a9b36e2c | ||
|
ed4aa926ce | ||
|
8ab12cbb31 | ||
|
0738ed2cca | ||
|
e91cdef22f | ||
|
9a503dd066 | ||
|
ddbce85c15 | ||
|
9b3b8defc6 | ||
|
0fd2bcea84 | ||
|
a53baec382 | ||
|
07cd482677 | ||
|
bb7b375e12 | ||
|
f459d4ab3c | ||
|
63e11ff550 | ||
|
8940c89ffb | ||
|
b2935756e5 | ||
|
9d194efc9a | ||
|
a02c06b55b | ||
|
c5ac20cc4c | ||
|
ac8811ccef | ||
|
82c6769448 | ||
|
0f7b1613b6 | ||
|
313cc1abc8 | ||
|
49e344be66 | ||
|
b534d4d992 | ||
|
87b021ab77 | ||
|
6cb46ea056 | ||
|
fb15a41221 | ||
|
b41f62aca1 | ||
|
e8c8ef29b9 | ||
|
bb98b140ba | ||
|
06dbd478e3 | ||
|
34fb3c85c2 | ||
|
2e512d38cf | ||
|
f0f20735fe | ||
|
8ff1bf1d76 | ||
|
6accae5757 | ||
|
8f19e7c93a | ||
|
90bda9a5c6 | ||
|
35bfba1b11 | ||
|
f2a98f9654 | ||
|
7577cd278a | ||
|
823ea58578 | ||
|
cdd4e61144 | ||
|
cab7439296 | ||
|
8c45ce252c | ||
|
38470c2340 | ||
|
c718a942c3 | ||
|
a22c7ed60b | ||
|
06114dd484 | ||
|
2685c24f42 | ||
|
188d926e1e | ||
|
3b77d530dc | ||
|
aea118b878 | ||
|
adb9286caa | ||
|
93a5cf5a12 | ||
|
6e025fac0f | ||
|
8d90e03838 | ||
|
6ca98cb0a1 | ||
|
75e6b2b07d | ||
|
5c80630ba7 | ||
|
cb201ab833 | ||
|
8d03c57239 | ||
|
e1f1290809 | ||
|
3a9a91d06e | ||
|
329d92fbbc | ||
|
ab6c5f7927 | ||
|
f0db652d81 | ||
|
42e277e24f | ||
|
a3512efa21 | ||
|
136c9ae48b | ||
|
684639b9e2 | ||
|
c266998d6f | ||
|
82cbbdf857 | ||
|
7a9fd0f88d | ||
|
bbac306988 | ||
|
68ffa9e038 | ||
|
1ef70f2a1c | ||
|
7aeed40d2d | ||
|
1a6647111b | ||
|
d82a072036 | ||
|
7227be47a8 | ||
|
4f8ab7805a | ||
|
2e1bdc638f | ||
|
a9d220a53e | ||
|
d34d4740e6 | ||
|
81c8368e02 | ||
|
41f6ca083e | ||
|
6239ec2931 | ||
|
c617d028d3 | ||
|
ec55819469 | ||
|
ed9e3393d1 | ||
|
85a1378b8f | ||
|
2c17a66e08 | ||
|
9a91ede3c6 | ||
|
ed40748169 | ||
|
a3301165c1 | ||
|
19f0bb64ea | ||
|
a894c5ba33 | ||
|
60606194dd | ||
|
0e10ec5c26 | ||
|
f5b5040f5b | ||
|
aaecdeb071 | ||
|
f5b6dedad9 | ||
|
0a087bbaa8 | ||
|
dd33112a94 | ||
|
b21b36718b | ||
|
e231a507e1 | ||
|
8d348881ab | ||
|
b188c773b3 | ||
|
e20bb0082a | ||
|
d7627a9b36 | ||
|
8837ab35e8 | ||
|
5b6cda04a2 | ||
|
1dac252899 | ||
|
0e06bd4823 | ||
|
271a171fc7 | ||
|
16fd1a30c5 | ||
|
1afee2214f | ||
|
e3731bdaa7 | ||
|
6ee7cf59ba | ||
|
3c728953b2 | ||
|
207baf47d5 | ||
|
89ac709159 | ||
|
8f7fc2b452 | ||
|
342137c4a7 | ||
|
e31403f964 | ||
|
26644c1ced | ||
|
646f3049a7 | ||
|
b48bc59ee4 | ||
|
8e51b2b405 | ||
|
7e75f00332 | ||
|
d5df6f7836 | ||
|
0dc1c507f2 | ||
|
2d624a72f3 | ||
|
d1ab406c20 | ||
|
b637b297e1 | ||
|
d269ef392c | ||
|
b42267f548 | ||
|
ecfb7619c0 | ||
|
bd5e01fe71 | ||
|
466a53c1f3 | ||
|
086b84253d | ||
|
cf11934132 | ||
|
779283c960 | ||
|
a4bcbfa5f9 | ||
|
21afcd8566 | ||
|
8aaf72cd19 | ||
|
c92da8191e | ||
|
27c5f2764d | ||
|
0a6ba4ef78 | ||
|
d1474af68a | ||
|
347b99e4ab | ||
|
0805319ae0 | ||
|
2fb3283c8c | ||
|
c06e6bde52 | ||
|
49a5682de1 | ||
|
9c34ddfb81 | ||
|
756705da70 | ||
|
d5f146d6d6 | ||
|
900e6ae753 | ||
|
7312395055 | ||
|
78ddba34e6 | ||
|
d95b1c8287 | ||
|
023e27ebbf | ||
|
a9b52e2436 | ||
|
d9d9e0d249 | ||
|
c633c1963f | ||
|
1a1b504676 | ||
|
1873f904dd | ||
|
bb4485ec29 | ||
|
6f91d5c6e5 | ||
|
cfbf86afe3 | ||
|
974a888f55 | ||
|
4b0d068287 | ||
|
14e91089fb | ||
|
f2b07a7ab8 | ||
|
67d24b316f | ||
|
ac1ee7efd9 | ||
|
419d313a0c | ||
|
03713da7e2 | ||
|
27818fd3f7 | ||
|
94e05e581f | ||
|
94c685de8f | ||
|
d5f8a21580 | ||
|
f022a98f07 | ||
|
dbe5e873ab | ||
|
01ec09831e | ||
|
4b2daa4ef8 | ||
|
caef675567 | ||
|
dc9a0be12f | ||
|
3cfd62da49 | ||
|
7e2a4f9e0c | ||
|
b19eb70d84 | ||
|
2ab3dadef9 | ||
|
fae2ab9bb4 | ||
|
0d3903b374 | ||
|
a3ef5d1a7b | ||
|
4352339fe0 | ||
|
2ccad90ad4 | ||
|
cfaaaa1476 | ||
|
2c33d08785 | ||
|
02e988e4bd | ||
|
a0052cbc1a | ||
|
adda9f7614 | ||
|
2cba596d8d | ||
|
0759db5937 | ||
|
40e67343ca | ||
|
8e96dcf771 | ||
|
bbbdb9d54e | ||
|
0456bd2193 | ||
|
01135c56e3 | ||
|
cae6aa46ff | ||
|
08611f5df5 | ||
|
5b78d1f5b5 | ||
|
722d66e44f | ||
|
d803cebac2 | ||
|
56d4d48814 | ||
|
b5e6423a35 | ||
|
4bc42cd533 | ||
|
31d6679322 | ||
|
8c6f3dc50c | ||
|
a677c5cde0 | ||
|
3ef893936b | ||
|
d8049825b3 | ||
|
bc74969ead | ||
|
ae17be3a42 | ||
|
fca7f8bdcf | ||
|
996d6a78eb | ||
|
597a4a709c | ||
|
7a79621a3c | ||
|
eee2296f59 | ||
|
f1265e4e7a | ||
|
25856c4fb9 | ||
|
92a037b248 | ||
|
cb8cc42660 | ||
|
2ef9f90110 | ||
|
e43d6393e2 | ||
|
20ccf0f4f7 | ||
|
3d0a0d189b |
3
.gitignore
vendored
3
.gitignore
vendored
@@ -6,3 +6,6 @@
|
|||||||
/lctr-b1xx
|
/lctr-b1xx
|
||||||
/lctr-b2xx
|
/lctr-b2xx
|
||||||
/qemu-i686
|
/qemu-i686
|
||||||
|
/lauv-aux
|
||||||
|
/lauv-aux-rpi
|
||||||
|
/ntnu-b2xx
|
||||||
|
6
architectures/cortex-a8-hardfp.cfg
Normal file
6
architectures/cortex-a8-hardfp.cfg
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
cfg_target_canonical="armv7-$cfg_glued_vendor-linux-gnueabihf"
|
||||||
|
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=hard -mfpu=vfpv3'
|
||||||
|
cfg_target_gcc_configure_flags='--with-arch=armv7-a --with-cpu=cortex-a8 --with-tune=cortex-a8 --with-fpu=vfpv3 --with-float=hard'
|
||||||
|
cfg_target_ar_flags='elf32-littlearm'
|
6
architectures/cortex-a9-hardfp.cfg
Normal file
6
architectures/cortex-a9-hardfp.cfg
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
cfg_target_canonical="armv7-$cfg_glued_vendor-linux-gnueabihf"
|
||||||
|
cfg_target_linux='arm'
|
||||||
|
cfg_target_uboot_arch='arm'
|
||||||
|
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mcpu=cortex-a9 -mtune=cortex-a9 -mfloat-abi=hard -mfpu=vfpv3'
|
||||||
|
cfg_target_gcc_configure_flags='--with-arch=armv7-a --with-cpu=cortex-a9 --with-tune=cortex-a9 --with-fpu=vfpv3 --with-float=hard'
|
||||||
|
cfg_target_ar_flags='elf32-littlearm'
|
@@ -2,4 +2,4 @@ cfg_target_canonical="i586-$cfg_glued_vendor-linux-gnu"
|
|||||||
cfg_target_linux='x86'
|
cfg_target_linux='x86'
|
||||||
cfg_target_gcc_configure_flags='--with-arch=i586 --with-cpu=i586 --with-tune=i586'
|
cfg_target_gcc_configure_flags='--with-arch=i586 --with-cpu=i586 --with-tune=i586'
|
||||||
cfg_target_gcc_flags='-O2 -pipe -march=i586 -funit-at-a-time'
|
cfg_target_gcc_flags='-O2 -pipe -march=i586 -funit-at-a-time'
|
||||||
cfg_target_eglibc_configure_flags='--with-cpu=i586'
|
cfg_target_glibc_configure_flags='--with-cpu=i586'
|
||||||
|
@@ -2,5 +2,5 @@ cfg_target_canonical="i686-$cfg_glued_vendor-linux-gnu"
|
|||||||
cfg_target_linux='x86'
|
cfg_target_linux='x86'
|
||||||
cfg_target_gcc_flags='-O2 -pipe -march=i686 -funit-at-a-time'
|
cfg_target_gcc_flags='-O2 -pipe -march=i686 -funit-at-a-time'
|
||||||
cfg_target_gcc_configure_flags='--with-cpu=i686'
|
cfg_target_gcc_configure_flags='--with-cpu=i686'
|
||||||
cfg_target_eglibc_configure_flags='--with-cpu=i686'
|
cfg_target_glibc_configure_flags='--with-cpu=i686'
|
||||||
cfg_target_linux_kernel='arch/x86/boot/bzImage'
|
cfg_target_linux_kernel='arch/x86/boot/bzImage'
|
||||||
|
@@ -2,4 +2,4 @@ cfg_target_canonical="mipsisa32r2-$cfg_glued_vendor-linux-gnu"
|
|||||||
cfg_target_linux='mips'
|
cfg_target_linux='mips'
|
||||||
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mabi=32 -mips32r2 -mtune=mips32r2 -msoft-float'
|
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mabi=32 -mips32r2 -mtune=mips32r2 -msoft-float'
|
||||||
cfg_target_gcc_configure_flags='--with-abi=32 --with-tune=mips32r2 --with-float=soft'
|
cfg_target_gcc_configure_flags='--with-abi=32 --with-tune=mips32r2 --with-float=soft'
|
||||||
cfg_target_eglibc_configure_flags='--without-fp'
|
cfg_target_glibc_configure_flags='--without-fp'
|
||||||
|
@@ -23,7 +23,7 @@
|
|||||||
###########################################################################
|
###########################################################################
|
||||||
|
|
||||||
# Config: GLUED version.
|
# Config: GLUED version.
|
||||||
cfg_glued_version='1.12.0'
|
cfg_glued_version='2016.03'
|
||||||
# Config: GLUED vendor.
|
# Config: GLUED vendor.
|
||||||
cfg_glued_vendor='lsts'
|
cfg_glued_vendor='lsts'
|
||||||
|
|
||||||
@@ -166,6 +166,19 @@ if [ -z $cfg_toolchain_tar ]; then
|
|||||||
cfg_toolchain_tar="$cfg_dir_base/$cfg_sys_family/glued-$cfg_glued_version-$cfg_sys_family-toolchain-$cfg_host_canonical-$cfg_target_canonical.tar.bz2"
|
cfg_toolchain_tar="$cfg_dir_base/$cfg_sys_family/glued-$cfg_glued_version-$cfg_sys_family-toolchain-$cfg_host_canonical-$cfg_target_canonical.tar.bz2"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Config: Git revision.
|
||||||
|
git_branch=$(echo $(git rev-parse --symbolic-full-name --abbrev-ref HEAD 2> /dev/null))
|
||||||
|
git_revision=$(echo $(git rev-parse --short HEAD 2> /dev/null))
|
||||||
|
git_status=$(echo $(git status -s 2> /dev/null))
|
||||||
|
if [ -z "$git_branch" ] || [ -z "$git_revision" ]; then
|
||||||
|
cfg_glued_git_version='unknown'
|
||||||
|
else
|
||||||
|
cfg_glued_git_version="$git_branch-$git_revision"
|
||||||
|
if [ -n "$git_status" ]; then
|
||||||
|
cfg_glued_git_version="$cfg_glued_git_version-dirty"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if ! [ -d "$cfg_sys_family" ]; then
|
if ! [ -d "$cfg_sys_family" ]; then
|
||||||
mkdir -p "$cfg_sys_family"
|
mkdir -p "$cfg_sys_family"
|
||||||
fi &&
|
fi &&
|
||||||
|
98
mkdisk.bash
98
mkdisk.bash
@@ -24,16 +24,16 @@
|
|||||||
|
|
||||||
cmd_parted()
|
cmd_parted()
|
||||||
{
|
{
|
||||||
dev="$1"; shift
|
bdev="$1"; shift
|
||||||
"$cmd_parted" "$dev" -a cylinder -s -- $@
|
"$cmd_parted" "$bdev" -a cylinder -s -- $@
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd_mount()
|
cmd_mount()
|
||||||
{
|
{
|
||||||
fs="$1"
|
fs="$1"
|
||||||
dev="$2"
|
bdev="$2"
|
||||||
mkdir -p mount &&
|
mkdir -p mount &&
|
||||||
mount -t "$fs" "$dev" mount
|
mount -t "$fs" "$bdev" mount
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd_unmount()
|
cmd_unmount()
|
||||||
@@ -47,7 +47,7 @@ cmd_unmount()
|
|||||||
|
|
||||||
die()
|
die()
|
||||||
{
|
{
|
||||||
umount mount > /dev/null 2>&1
|
umount -v mount > /dev/null 2>&1
|
||||||
rmdir mount > /dev/null 2>&1
|
rmdir mount > /dev/null 2>&1
|
||||||
[ -n "$dev_loop" ] && losetup -d "$dev_loop"
|
[ -n "$dev_loop" ] && losetup -d "$dev_loop"
|
||||||
exit 1
|
exit 1
|
||||||
@@ -84,6 +84,42 @@ create_part_xboot()
|
|||||||
cmd_parted "$dev_loop" print > /dev/null
|
cmd_parted "$dev_loop" print > /dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
create_part_rpiboot()
|
||||||
|
{
|
||||||
|
nfo1 "RPi-Boot partition ($part_label)"
|
||||||
|
|
||||||
|
nfo2 "Creating partition"
|
||||||
|
cmd_parted "$dev_loop" \
|
||||||
|
mkpart primary fat32 "$part_start" "$part_end" \
|
||||||
|
set "$part_nr" boot on \
|
||||||
|
align-check minimal "$part_nr" \
|
||||||
|
|| die
|
||||||
|
|
||||||
|
nfo2 "Creating filesystem"
|
||||||
|
$cmd_mkdosfs -n "$part_label" "$part_dev" > /dev/null || die
|
||||||
|
|
||||||
|
nfo2 "Populating filesystem"
|
||||||
|
cmd_mount vfat "$part_dev" || die
|
||||||
|
|
||||||
|
for f in "$cfg_sys_family/rootfs/boot/"*; do
|
||||||
|
nfo2 installing $f to boot partition
|
||||||
|
cp "$f" mount || die
|
||||||
|
done
|
||||||
|
|
||||||
|
nfo2 renaming kernel to kernel7.img
|
||||||
|
mv mount/kernel mount/kernel7.img
|
||||||
|
|
||||||
|
dtb=$(basename "$cfg_target_linux_dtb")
|
||||||
|
nfo2 renaming board.dtb to "$dtb"
|
||||||
|
mv "mount/board.dtb" "mount/$dtb"
|
||||||
|
|
||||||
|
cmd_parted "$dev_loop" \
|
||||||
|
set "$part_nr" lba on \
|
||||||
|
|| die
|
||||||
|
|
||||||
|
cmd_parted "$dev_loop" print > /dev/null
|
||||||
|
}
|
||||||
|
|
||||||
create_part_root()
|
create_part_root()
|
||||||
{
|
{
|
||||||
nfo1 "Root partition ($part_label)"
|
nfo1 "Root partition ($part_label)"
|
||||||
@@ -217,27 +253,46 @@ if [ -z "$cfg_partitions" ]; then
|
|||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Loop device.
|
cmd_loop_attach()
|
||||||
dev_loop="$(losetup -f)"
|
{
|
||||||
|
export dev="$1"
|
||||||
|
export dev_loop="$(losetup -f)"
|
||||||
|
|
||||||
nfo1 "Attaching $dev to $dev_loop"
|
nfo1 "Attaching $dev to $dev_loop"
|
||||||
losetup -v "$dev_loop" "$dev"
|
losetup -v "$dev_loop" "$dev"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
unset dev_loop
|
||||||
|
die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
cmd_loop_detach()
|
||||||
|
{
|
||||||
|
nfo1 "Detaching $dev_loop"
|
||||||
|
sync && sync && sync && sync
|
||||||
|
blockdev --flushbufs "$dev_loop"
|
||||||
|
losetup -v -d "$dev_loop"
|
||||||
|
sync && sync && sync && sync
|
||||||
unset dev_loop
|
unset dev_loop
|
||||||
die
|
}
|
||||||
fi
|
|
||||||
|
|
||||||
nfo1 "Obliterating partition table"
|
nfo1 "Obliterating partition table"
|
||||||
|
cmd_loop_attach "$dev"
|
||||||
dd if=/dev/zero of="$dev_loop" bs=1 count=1M count=32 > /dev/null 2>&1 || die
|
dd if=/dev/zero of="$dev_loop" bs=1 count=1M count=32 > /dev/null 2>&1 || die
|
||||||
|
losetup -a
|
||||||
|
cmd_loop_detach
|
||||||
|
losetup -a
|
||||||
|
|
||||||
nfo1 "Creating empty partition table"
|
nfo1 "Creating empty partition table"
|
||||||
cmd_parted "$dev_loop" \
|
cmd_loop_attach "$dev"
|
||||||
mklabel msdos \
|
cmd_parted "$dev_loop" mklabel msdos || die
|
||||||
|| die
|
cmd_loop_detach
|
||||||
|
|
||||||
part_nr=1
|
part_nr=1
|
||||||
xboot_system_id=0
|
xboot_system_id=0
|
||||||
for ((i = 0; i < ${#cfg_partitions[@]}; i += 4)); do
|
for ((i = 0; i < ${#cfg_partitions[@]}; i += 4)); do
|
||||||
|
cmd_loop_attach "$dev"
|
||||||
|
|
||||||
part_type="${cfg_partitions[$i+0]}"
|
part_type="${cfg_partitions[$i+0]}"
|
||||||
part_label="${cfg_partitions[$i+1]}"
|
part_label="${cfg_partitions[$i+1]}"
|
||||||
part_start="${cfg_partitions[$i+2]}"
|
part_start="${cfg_partitions[$i+2]}"
|
||||||
@@ -249,6 +304,10 @@ for ((i = 0; i < ${#cfg_partitions[@]}; i += 4)); do
|
|||||||
create_part_xboot
|
create_part_xboot
|
||||||
xboot_system_id=1
|
xboot_system_id=1
|
||||||
;;
|
;;
|
||||||
|
'rpi-boot')
|
||||||
|
create_part_rpiboot
|
||||||
|
xboot_system_id=1
|
||||||
|
;;
|
||||||
'root')
|
'root')
|
||||||
create_part_root
|
create_part_root
|
||||||
;;
|
;;
|
||||||
@@ -261,22 +320,23 @@ for ((i = 0; i < ${#cfg_partitions[@]}; i += 4)); do
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
cmd_loop_detach
|
||||||
let part_nr++
|
let part_nr++
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ -f "$cfg_sys_family/rootfs/boot/extlinux/mbr.bin" ]; then
|
if [ -f "$cfg_sys_family/rootfs/boot/extlinux/mbr.bin" ]; then
|
||||||
nfo1 "Installing bootloader in MBR..."
|
nfo1 "Installing bootloader in MBR..."
|
||||||
|
cmd_loop_attach "$dev"
|
||||||
dd if="$cfg_sys_family/rootfs/boot/extlinux/mbr.bin" of="$dev_loop" > /dev/null 2>&1
|
dd if="$cfg_sys_family/rootfs/boot/extlinux/mbr.bin" of="$dev_loop" > /dev/null 2>&1
|
||||||
|
cmd_loop_detach
|
||||||
fi
|
fi
|
||||||
|
|
||||||
nfo1 "Synchronizing caches"
|
nfo1 "Synchronizing caches"
|
||||||
sync && sync && sync && sync && sync && sync
|
sync && sync && sync && sync && sync && sync
|
||||||
blockdev --flushbufs "$dev_loop" || die
|
|
||||||
|
|
||||||
# Make sure the partition has 0x0e type.
|
# Make sure the partition has 0x0e type.
|
||||||
if [ $xboot_system_id -eq 1 ]; then
|
if [ $xboot_system_id -eq 1 ]; then
|
||||||
|
cmd_loop_attach "$dev"
|
||||||
echo -en "t\n1\ne\nw\n" | $cmd_fdisk "$dev_loop" > /dev/null 2>&1
|
echo -en "t\n1\ne\nw\n" | $cmd_fdisk "$dev_loop" > /dev/null 2>&1
|
||||||
|
cmd_loop_detach
|
||||||
fi
|
fi
|
||||||
|
|
||||||
nfo1 "Detaching loop device $dev_loop"
|
|
||||||
losetup -v -d "$dev_loop"
|
|
||||||
|
@@ -31,11 +31,12 @@ download_tool()
|
|||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
curl -C - "$1" -o "$2"
|
curl -f -C - "$1" -o "$2"
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
rm -f "$2"
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -56,6 +57,7 @@ md5sum_tool()
|
|||||||
download()
|
download()
|
||||||
{
|
{
|
||||||
n=0; while [ -n "${url[$n]}" ]; do
|
n=0; while [ -n "${url[$n]}" ]; do
|
||||||
|
|
||||||
u="${url[$n]}"
|
u="${url[$n]}"
|
||||||
s="${md5[$n]}"
|
s="${md5[$n]}"
|
||||||
file=$(basename "$u")
|
file=$(basename "$u")
|
||||||
@@ -69,10 +71,16 @@ download()
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
download_tool "$u" "$cfg_dir_downloads/$file"
|
# First try OceanScan-MST mirror.
|
||||||
|
omst_url="http://www.omst.pt/glued/$(basename $u)"
|
||||||
|
download_tool "$omst_url" "$cfg_dir_downloads/$file"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "ERROR: download failed"
|
# On failure try upstream URL.
|
||||||
exit 1
|
download_tool "$u" "$cfg_dir_downloads/$file"
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "ERROR: download failed"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
md5="$(md5sum_tool "$cfg_dir_downloads/$file")"
|
md5="$(md5sum_tool "$cfg_dir_downloads/$file")"
|
||||||
|
@@ -40,10 +40,13 @@ fi
|
|||||||
|
|
||||||
source "$1"
|
source "$1"
|
||||||
|
|
||||||
|
toolchain_prefix="glued-$cfg_glued_version-$cfg_sys_family-toolchain-$cfg_host_canonical-$cfg_target_canonical"
|
||||||
|
|
||||||
tar \
|
tar \
|
||||||
-v \
|
-v \
|
||||||
-j \
|
-j \
|
||||||
-c \
|
-c \
|
||||||
|
--transform="s,^\./,$toolchain_prefix/," \
|
||||||
-C "$cfg_dir_toolchain" \
|
-C "$cfg_dir_toolchain" \
|
||||||
-f "$cfg_toolchain_tar" \
|
-f "$cfg_toolchain_tar" \
|
||||||
.
|
.
|
||||||
|
@@ -5,12 +5,12 @@ version=\
|
|||||||
|
|
||||||
url=\
|
url=\
|
||||||
(
|
(
|
||||||
"http://www.eu.apache.org/dist/apr/apr-util-$version.tar.bz2"
|
"http://archive.apache.org/dist/apr/apr-util-$version.tar.bz2"
|
||||||
)
|
)
|
||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'89c1348aa79e898d7c34a6206311c9c2'
|
'6f3417691c7a27090f36e7cf4d94b36e'
|
||||||
)
|
)
|
||||||
|
|
||||||
maintainer=\
|
maintainer=\
|
||||||
|
@@ -5,7 +5,7 @@ version=\
|
|||||||
|
|
||||||
url=\
|
url=\
|
||||||
(
|
(
|
||||||
"http://www.eu.apache.org/dist/apr/apr-util-$version.tar.bz2"
|
"http://archive.apache.org/dist/apr/apr-util-$version.tar.bz2"
|
||||||
)
|
)
|
||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
|
@@ -5,12 +5,12 @@ version=\
|
|||||||
|
|
||||||
url=\
|
url=\
|
||||||
(
|
(
|
||||||
"http://www.eu.apache.org/dist/apr/apr-$version.tar.bz2"
|
"http://archive.apache.org/dist/apr/apr-$version.tar.bz2"
|
||||||
)
|
)
|
||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'ffee70a111fd07372982b0550bbb14b7'
|
'5486180ec5a23efb5cae6d4292b300ab'
|
||||||
)
|
)
|
||||||
|
|
||||||
maintainer=\
|
maintainer=\
|
||||||
|
@@ -5,7 +5,7 @@ version=\
|
|||||||
|
|
||||||
url=\
|
url=\
|
||||||
(
|
(
|
||||||
"http://mirror.nohup.it/apache/apr/apr-$version.tar.bz2"
|
"http://archive.apache.org/dist/apr/apr-$version.tar.bz2"
|
||||||
)
|
)
|
||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
@@ -15,7 +15,6 @@ md5=\
|
|||||||
|
|
||||||
# @todo patch.
|
# @todo patch.
|
||||||
|
|
||||||
|
|
||||||
configure()
|
configure()
|
||||||
{
|
{
|
||||||
cd apr-${version}
|
cd apr-${version}
|
||||||
|
@@ -4,6 +4,5 @@ requires=\
|
|||||||
(
|
(
|
||||||
'base/host'
|
'base/host'
|
||||||
'gcc/cross'
|
'gcc/cross'
|
||||||
'eglibc/locales'
|
|
||||||
'gdb/cross'
|
'gdb/cross'
|
||||||
)
|
)
|
||||||
|
@@ -4,5 +4,6 @@ requires=\
|
|||||||
(
|
(
|
||||||
'base/host'
|
'base/host'
|
||||||
'base/cross'
|
'base/cross'
|
||||||
|
'iana-etc/default'
|
||||||
'filesystem/target'
|
'filesystem/target'
|
||||||
)
|
)
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
"2.22"
|
'2.25.1'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
@@ -10,30 +10,26 @@ url=\
|
|||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
"ee0f10756c84979622b992a4a61ea3f5"
|
'ac493a78de4fee895961d025b7905be4'
|
||||||
)
|
)
|
||||||
|
|
||||||
maintainer=\
|
maintainer=\
|
||||||
(
|
(
|
||||||
"Ricardo Martins <rasm@fe.up.pt>"
|
'Ricardo Martins <rasm@fe.up.pt>'
|
||||||
)
|
)
|
||||||
|
|
||||||
build_dir=$pkg_var
|
build_dir=$pkg_var
|
||||||
|
|
||||||
configure()
|
configure()
|
||||||
{
|
{
|
||||||
../binutils-$version/configure $extra_flags \
|
"../binutils-$version/configure" \
|
||||||
--prefix=$cfg_dir_toolchain \
|
--prefix="$cfg_dir_toolchain" \
|
||||||
--target=${cfg_target_canonical} \
|
--target="$cfg_target_canonical" \
|
||||||
--host=${cfg_host_canonical} \
|
--host="$cfg_host_canonical" \
|
||||||
--build=${cfg_host_canonical} \
|
--build="$cfg_host_canonical" \
|
||||||
--with-sysroot=$cfg_dir_toolchain_sysroot \
|
--with-sysroot="$cfg_dir_toolchain_sysroot" \
|
||||||
--with-mpfr=${cfg_dir_toolchain} \
|
--disable-multilib \
|
||||||
--with-gmp=${cfg_dir_toolchain} \
|
--disable-nls
|
||||||
--with-mpc=${cfg_dir_toolchain} \
|
|
||||||
--disable-nls \
|
|
||||||
--disable-werror \
|
|
||||||
--disable-multilib
|
|
||||||
}
|
}
|
||||||
|
|
||||||
build()
|
build()
|
||||||
@@ -43,6 +39,5 @@ build()
|
|||||||
|
|
||||||
host_install()
|
host_install()
|
||||||
{
|
{
|
||||||
$cmd_make install
|
$cmd_make install-strip
|
||||||
rm -rf $cfg_dir_toolchain/{info,man}
|
|
||||||
}
|
}
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
"1.53.0"
|
"1.55.0"
|
||||||
)
|
)
|
||||||
|
|
||||||
vendor_version="$(echo $version | tr . _)"
|
vendor_version="$(echo $version | tr . _)"
|
||||||
@@ -17,7 +17,7 @@ maintainer=\
|
|||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
"a00d22605d5dbcfb4c9936a9b35bc4c2"
|
"d6eef4b4cacb2183f2bf265a5a03a354"
|
||||||
)
|
)
|
||||||
|
|
||||||
requires=\
|
requires=\
|
||||||
|
@@ -1,11 +0,0 @@
|
|||||||
--- boost_1_47_0/boost/config/stdlib/libstdcpp3.hpp 2011-04-25 14:10:48.000000000 +0200
|
|
||||||
+++ boost_1_47_0/boost/config/stdlib/libstdcpp3.hpp 2013-04-08 16:26:05.222543782 +0200
|
|
||||||
@@ -33,7 +33,7 @@
|
|
||||||
|
|
||||||
#ifdef __GLIBCXX__ // gcc 3.4 and greater:
|
|
||||||
# if defined(_GLIBCXX_HAVE_GTHR_DEFAULT) \
|
|
||||||
- || defined(_GLIBCXX__PTHREADS)
|
|
||||||
+ || defined(_GLIBCXX__PTHREADS) || defined(_GLIBCXX_HAS_GTHREADS)
|
|
||||||
//
|
|
||||||
// If the std lib has thread support turned on, then turn it on in Boost
|
|
||||||
// as well. We do this because some gcc-3.4 std lib headers define _REENTANT
|
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Automatically generated make config: don't edit
|
# Automatically generated make config: don't edit
|
||||||
# Busybox version: 1.20.2
|
# Busybox version: 1.22.1
|
||||||
# Tue May 14 09:03:37 2013
|
# Sun Feb 8 18:17:19 2015
|
||||||
#
|
#
|
||||||
CONFIG_HAVE_DOT_CONFIG=y
|
CONFIG_HAVE_DOT_CONFIG=y
|
||||||
|
|
||||||
@@ -42,6 +42,7 @@ CONFIG_FEATURE_DEVPTS=y
|
|||||||
# CONFIG_FEATURE_UTMP is not set
|
# CONFIG_FEATURE_UTMP is not set
|
||||||
# CONFIG_FEATURE_WTMP is not set
|
# CONFIG_FEATURE_WTMP is not set
|
||||||
# CONFIG_FEATURE_PIDFILE is not set
|
# CONFIG_FEATURE_PIDFILE is not set
|
||||||
|
CONFIG_PID_FILE_PATH=""
|
||||||
CONFIG_FEATURE_SUID=y
|
CONFIG_FEATURE_SUID=y
|
||||||
# CONFIG_FEATURE_SUID_CONFIG is not set
|
# CONFIG_FEATURE_SUID_CONFIG is not set
|
||||||
# CONFIG_FEATURE_SUID_CONFIG_QUIET is not set
|
# CONFIG_FEATURE_SUID_CONFIG_QUIET is not set
|
||||||
@@ -96,6 +97,7 @@ CONFIG_PREFIX="./_install"
|
|||||||
CONFIG_FEATURE_RTMINMAX=y
|
CONFIG_FEATURE_RTMINMAX=y
|
||||||
CONFIG_PASSWORD_MINLEN=6
|
CONFIG_PASSWORD_MINLEN=6
|
||||||
CONFIG_MD5_SMALL=1
|
CONFIG_MD5_SMALL=1
|
||||||
|
CONFIG_SHA3_SMALL=1
|
||||||
CONFIG_FEATURE_FAST_TOP=y
|
CONFIG_FEATURE_FAST_TOP=y
|
||||||
# CONFIG_FEATURE_ETC_NETWORKS is not set
|
# CONFIG_FEATURE_ETC_NETWORKS is not set
|
||||||
CONFIG_FEATURE_USE_TERMIOS=y
|
CONFIG_FEATURE_USE_TERMIOS=y
|
||||||
@@ -133,7 +135,14 @@ CONFIG_FEATURE_SEAMLESS_BZ2=y
|
|||||||
# CONFIG_AR is not set
|
# CONFIG_AR is not set
|
||||||
# CONFIG_FEATURE_AR_LONG_FILENAMES is not set
|
# CONFIG_FEATURE_AR_LONG_FILENAMES is not set
|
||||||
# CONFIG_FEATURE_AR_CREATE is not set
|
# CONFIG_FEATURE_AR_CREATE is not set
|
||||||
|
# CONFIG_UNCOMPRESS is not set
|
||||||
|
CONFIG_GUNZIP=y
|
||||||
CONFIG_BUNZIP2=y
|
CONFIG_BUNZIP2=y
|
||||||
|
# CONFIG_UNLZMA is not set
|
||||||
|
# CONFIG_FEATURE_LZMA_FAST is not set
|
||||||
|
# CONFIG_LZMA is not set
|
||||||
|
CONFIG_UNXZ=y
|
||||||
|
CONFIG_XZ=y
|
||||||
# CONFIG_BZIP2 is not set
|
# CONFIG_BZIP2 is not set
|
||||||
# CONFIG_CPIO is not set
|
# CONFIG_CPIO is not set
|
||||||
# CONFIG_FEATURE_CPIO_O is not set
|
# CONFIG_FEATURE_CPIO_O is not set
|
||||||
@@ -141,14 +150,13 @@ CONFIG_BUNZIP2=y
|
|||||||
# CONFIG_DPKG is not set
|
# CONFIG_DPKG is not set
|
||||||
# CONFIG_DPKG_DEB is not set
|
# CONFIG_DPKG_DEB is not set
|
||||||
# CONFIG_FEATURE_DPKG_DEB_EXTRACT_ONLY is not set
|
# CONFIG_FEATURE_DPKG_DEB_EXTRACT_ONLY is not set
|
||||||
CONFIG_GUNZIP=y
|
|
||||||
# CONFIG_GZIP is not set
|
# CONFIG_GZIP is not set
|
||||||
# CONFIG_FEATURE_GZIP_LONG_OPTIONS is not set
|
# CONFIG_FEATURE_GZIP_LONG_OPTIONS is not set
|
||||||
CONFIG_GZIP_FAST=0
|
CONFIG_GZIP_FAST=0
|
||||||
# CONFIG_LZOP is not set
|
# CONFIG_LZOP is not set
|
||||||
# CONFIG_LZOP_COMPR_HIGH is not set
|
# CONFIG_LZOP_COMPR_HIGH is not set
|
||||||
# CONFIG_RPM2CPIO is not set
|
|
||||||
# CONFIG_RPM is not set
|
# CONFIG_RPM is not set
|
||||||
|
# CONFIG_RPM2CPIO is not set
|
||||||
CONFIG_TAR=y
|
CONFIG_TAR=y
|
||||||
# CONFIG_FEATURE_TAR_CREATE is not set
|
# CONFIG_FEATURE_TAR_CREATE is not set
|
||||||
CONFIG_FEATURE_TAR_AUTODETECT=y
|
CONFIG_FEATURE_TAR_AUTODETECT=y
|
||||||
@@ -161,12 +169,6 @@ CONFIG_FEATURE_TAR_GNU_EXTENSIONS=y
|
|||||||
# CONFIG_FEATURE_TAR_UNAME_GNAME is not set
|
# CONFIG_FEATURE_TAR_UNAME_GNAME is not set
|
||||||
# CONFIG_FEATURE_TAR_NOPRESERVE_TIME is not set
|
# CONFIG_FEATURE_TAR_NOPRESERVE_TIME is not set
|
||||||
# CONFIG_FEATURE_TAR_SELINUX is not set
|
# CONFIG_FEATURE_TAR_SELINUX is not set
|
||||||
# CONFIG_UNCOMPRESS is not set
|
|
||||||
# CONFIG_UNLZMA is not set
|
|
||||||
# CONFIG_FEATURE_LZMA_FAST is not set
|
|
||||||
# CONFIG_LZMA is not set
|
|
||||||
CONFIG_UNXZ=y
|
|
||||||
CONFIG_XZ=y
|
|
||||||
# CONFIG_UNZIP is not set
|
# CONFIG_UNZIP is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -184,6 +186,7 @@ CONFIG_GROUPS=y
|
|||||||
CONFIG_TEST=y
|
CONFIG_TEST=y
|
||||||
# CONFIG_FEATURE_TEST_64 is not set
|
# CONFIG_FEATURE_TEST_64 is not set
|
||||||
CONFIG_TOUCH=y
|
CONFIG_TOUCH=y
|
||||||
|
CONFIG_FEATURE_TOUCH_NODEREF=y
|
||||||
CONFIG_FEATURE_TOUCH_SUSV3=y
|
CONFIG_FEATURE_TOUCH_SUSV3=y
|
||||||
CONFIG_TR=y
|
CONFIG_TR=y
|
||||||
CONFIG_FEATURE_TR_CLASSES=y
|
CONFIG_FEATURE_TR_CLASSES=y
|
||||||
@@ -263,6 +266,7 @@ CONFIG_SEQ=y
|
|||||||
# CONFIG_SHA1SUM is not set
|
# CONFIG_SHA1SUM is not set
|
||||||
# CONFIG_SHA256SUM is not set
|
# CONFIG_SHA256SUM is not set
|
||||||
# CONFIG_SHA512SUM is not set
|
# CONFIG_SHA512SUM is not set
|
||||||
|
CONFIG_SHA3SUM=y
|
||||||
CONFIG_SLEEP=y
|
CONFIG_SLEEP=y
|
||||||
# CONFIG_FEATURE_FANCY_SLEEP is not set
|
# CONFIG_FEATURE_FANCY_SLEEP is not set
|
||||||
# CONFIG_FEATURE_FLOAT_SLEEP is not set
|
# CONFIG_FEATURE_FLOAT_SLEEP is not set
|
||||||
@@ -270,8 +274,8 @@ CONFIG_SORT=y
|
|||||||
# CONFIG_FEATURE_SORT_BIG is not set
|
# CONFIG_FEATURE_SORT_BIG is not set
|
||||||
# CONFIG_SPLIT is not set
|
# CONFIG_SPLIT is not set
|
||||||
# CONFIG_FEATURE_SPLIT_FANCY is not set
|
# CONFIG_FEATURE_SPLIT_FANCY is not set
|
||||||
# CONFIG_STAT is not set
|
CONFIG_STAT=y
|
||||||
# CONFIG_FEATURE_STAT_FORMAT is not set
|
CONFIG_FEATURE_STAT_FORMAT=y
|
||||||
CONFIG_STTY=y
|
CONFIG_STTY=y
|
||||||
# CONFIG_SUM is not set
|
# CONFIG_SUM is not set
|
||||||
CONFIG_SYNC=y
|
CONFIG_SYNC=y
|
||||||
@@ -310,7 +314,7 @@ CONFIG_FEATURE_AUTOWIDTH=y
|
|||||||
CONFIG_FEATURE_HUMAN_READABLE=y
|
CONFIG_FEATURE_HUMAN_READABLE=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Common options for md5sum, sha1sum, sha256sum, sha512sum
|
# Common options for md5sum, sha1sum, sha256sum, sha512sum, sha3sum
|
||||||
#
|
#
|
||||||
# CONFIG_FEATURE_MD5_SHA1_SUM_CHECK is not set
|
# CONFIG_FEATURE_MD5_SHA1_SUM_CHECK is not set
|
||||||
|
|
||||||
@@ -356,7 +360,16 @@ CONFIG_WHICH=y
|
|||||||
#
|
#
|
||||||
# Editors
|
# Editors
|
||||||
#
|
#
|
||||||
|
CONFIG_AWK=y
|
||||||
|
# CONFIG_FEATURE_AWK_LIBM is not set
|
||||||
|
CONFIG_FEATURE_AWK_GNU_EXTENSIONS=y
|
||||||
|
CONFIG_CMP=y
|
||||||
|
# CONFIG_DIFF is not set
|
||||||
|
# CONFIG_FEATURE_DIFF_LONG_OPTIONS is not set
|
||||||
|
# CONFIG_FEATURE_DIFF_DIR is not set
|
||||||
|
# CONFIG_ED is not set
|
||||||
# CONFIG_PATCH is not set
|
# CONFIG_PATCH is not set
|
||||||
|
CONFIG_SED=y
|
||||||
CONFIG_VI=y
|
CONFIG_VI=y
|
||||||
CONFIG_FEATURE_VI_MAX_LEN=4096
|
CONFIG_FEATURE_VI_MAX_LEN=4096
|
||||||
CONFIG_FEATURE_VI_8BIT=y
|
CONFIG_FEATURE_VI_8BIT=y
|
||||||
@@ -371,15 +384,6 @@ CONFIG_FEATURE_VI_USE_SIGNALS=y
|
|||||||
# CONFIG_FEATURE_VI_SET is not set
|
# CONFIG_FEATURE_VI_SET is not set
|
||||||
CONFIG_FEATURE_VI_WIN_RESIZE=y
|
CONFIG_FEATURE_VI_WIN_RESIZE=y
|
||||||
CONFIG_FEATURE_VI_ASK_TERMINAL=y
|
CONFIG_FEATURE_VI_ASK_TERMINAL=y
|
||||||
# CONFIG_FEATURE_VI_OPTIMIZE_CURSOR is not set
|
|
||||||
CONFIG_AWK=y
|
|
||||||
# CONFIG_FEATURE_AWK_LIBM is not set
|
|
||||||
CONFIG_CMP=y
|
|
||||||
# CONFIG_DIFF is not set
|
|
||||||
# CONFIG_FEATURE_DIFF_LONG_OPTIONS is not set
|
|
||||||
# CONFIG_FEATURE_DIFF_DIR is not set
|
|
||||||
# CONFIG_ED is not set
|
|
||||||
CONFIG_SED=y
|
|
||||||
CONFIG_FEATURE_ALLOW_EXEC=y
|
CONFIG_FEATURE_ALLOW_EXEC=y
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -522,6 +526,7 @@ CONFIG_DEFAULT_DEPMOD_FILE="modules.dep"
|
|||||||
# Linux System Utilities
|
# Linux System Utilities
|
||||||
#
|
#
|
||||||
CONFIG_BLOCKDEV=y
|
CONFIG_BLOCKDEV=y
|
||||||
|
CONFIG_FSTRIM=y
|
||||||
CONFIG_MDEV=y
|
CONFIG_MDEV=y
|
||||||
CONFIG_FEATURE_MDEV_CONF=y
|
CONFIG_FEATURE_MDEV_CONF=y
|
||||||
CONFIG_FEATURE_MDEV_RENAME=y
|
CONFIG_FEATURE_MDEV_RENAME=y
|
||||||
@@ -593,7 +598,7 @@ CONFIG_PIVOT_ROOT=y
|
|||||||
# CONFIG_SETARCH is not set
|
# CONFIG_SETARCH is not set
|
||||||
# CONFIG_SWAPONOFF is not set
|
# CONFIG_SWAPONOFF is not set
|
||||||
# CONFIG_FEATURE_SWAPON_PRI is not set
|
# CONFIG_FEATURE_SWAPON_PRI is not set
|
||||||
# CONFIG_SWITCH_ROOT is not set
|
CONFIG_SWITCH_ROOT=y
|
||||||
CONFIG_UMOUNT=y
|
CONFIG_UMOUNT=y
|
||||||
CONFIG_FEATURE_UMOUNT_ALL=y
|
CONFIG_FEATURE_UMOUNT_ALL=y
|
||||||
|
|
||||||
@@ -608,23 +613,27 @@ CONFIG_VOLUMEID=y
|
|||||||
#
|
#
|
||||||
# Filesystem/Volume identification
|
# Filesystem/Volume identification
|
||||||
#
|
#
|
||||||
CONFIG_FEATURE_VOLUMEID_EXT=y
|
|
||||||
# CONFIG_FEATURE_VOLUMEID_BTRFS is not set
|
# CONFIG_FEATURE_VOLUMEID_BTRFS is not set
|
||||||
# CONFIG_FEATURE_VOLUMEID_REISERFS is not set
|
# CONFIG_FEATURE_VOLUMEID_CRAMFS is not set
|
||||||
|
CONFIG_FEATURE_VOLUMEID_EXFAT=y
|
||||||
|
CONFIG_FEATURE_VOLUMEID_EXT=y
|
||||||
|
CONFIG_FEATURE_VOLUMEID_F2FS=y
|
||||||
CONFIG_FEATURE_VOLUMEID_FAT=y
|
CONFIG_FEATURE_VOLUMEID_FAT=y
|
||||||
# CONFIG_FEATURE_VOLUMEID_HFS is not set
|
# CONFIG_FEATURE_VOLUMEID_HFS is not set
|
||||||
# CONFIG_FEATURE_VOLUMEID_JFS is not set
|
|
||||||
# CONFIG_FEATURE_VOLUMEID_XFS is not set
|
|
||||||
# CONFIG_FEATURE_VOLUMEID_NTFS is not set
|
|
||||||
# CONFIG_FEATURE_VOLUMEID_ISO9660 is not set
|
# CONFIG_FEATURE_VOLUMEID_ISO9660 is not set
|
||||||
# CONFIG_FEATURE_VOLUMEID_UDF is not set
|
# CONFIG_FEATURE_VOLUMEID_JFS is not set
|
||||||
# CONFIG_FEATURE_VOLUMEID_LUKS is not set
|
|
||||||
# CONFIG_FEATURE_VOLUMEID_LINUXSWAP is not set
|
|
||||||
# CONFIG_FEATURE_VOLUMEID_CRAMFS is not set
|
|
||||||
# CONFIG_FEATURE_VOLUMEID_ROMFS is not set
|
|
||||||
# CONFIG_FEATURE_VOLUMEID_SYSV is not set
|
|
||||||
# CONFIG_FEATURE_VOLUMEID_OCFS2 is not set
|
|
||||||
# CONFIG_FEATURE_VOLUMEID_LINUXRAID is not set
|
# CONFIG_FEATURE_VOLUMEID_LINUXRAID is not set
|
||||||
|
# CONFIG_FEATURE_VOLUMEID_LINUXSWAP is not set
|
||||||
|
# CONFIG_FEATURE_VOLUMEID_LUKS is not set
|
||||||
|
CONFIG_FEATURE_VOLUMEID_NILFS=y
|
||||||
|
# CONFIG_FEATURE_VOLUMEID_NTFS is not set
|
||||||
|
# CONFIG_FEATURE_VOLUMEID_OCFS2 is not set
|
||||||
|
# CONFIG_FEATURE_VOLUMEID_REISERFS is not set
|
||||||
|
# CONFIG_FEATURE_VOLUMEID_ROMFS is not set
|
||||||
|
CONFIG_FEATURE_VOLUMEID_SQUASHFS=y
|
||||||
|
# CONFIG_FEATURE_VOLUMEID_SYSV is not set
|
||||||
|
# CONFIG_FEATURE_VOLUMEID_UDF is not set
|
||||||
|
# CONFIG_FEATURE_VOLUMEID_XFS is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Miscellaneous Utilities
|
# Miscellaneous Utilities
|
||||||
@@ -642,6 +651,7 @@ CONFIG_FEATURE_LESS_FLAGS=y
|
|||||||
# CONFIG_FEATURE_LESS_LINENUMS is not set
|
# CONFIG_FEATURE_LESS_LINENUMS is not set
|
||||||
# CONFIG_NANDWRITE is not set
|
# CONFIG_NANDWRITE is not set
|
||||||
# CONFIG_NANDDUMP is not set
|
# CONFIG_NANDDUMP is not set
|
||||||
|
# CONFIG_RFKILL is not set
|
||||||
CONFIG_SETSERIAL=y
|
CONFIG_SETSERIAL=y
|
||||||
# CONFIG_UBIATTACH is not set
|
# CONFIG_UBIATTACH is not set
|
||||||
# CONFIG_UBIDETACH is not set
|
# CONFIG_UBIDETACH is not set
|
||||||
@@ -649,6 +659,7 @@ CONFIG_UBIMKVOL=y
|
|||||||
CONFIG_UBIRMVOL=y
|
CONFIG_UBIRMVOL=y
|
||||||
CONFIG_UBIRSVOL=y
|
CONFIG_UBIRSVOL=y
|
||||||
CONFIG_UBIUPDATEVOL=y
|
CONFIG_UBIUPDATEVOL=y
|
||||||
|
# CONFIG_WALL is not set
|
||||||
# CONFIG_ADJTIMEX is not set
|
# CONFIG_ADJTIMEX is not set
|
||||||
# CONFIG_BBCONFIG is not set
|
# CONFIG_BBCONFIG is not set
|
||||||
# CONFIG_FEATURE_COMPRESS_BBCONFIG is not set
|
# CONFIG_FEATURE_COMPRESS_BBCONFIG is not set
|
||||||
@@ -705,7 +716,6 @@ CONFIG_MOUNTPOINT=y
|
|||||||
# CONFIG_MT is not set
|
# CONFIG_MT is not set
|
||||||
# CONFIG_RAIDAUTORUN is not set
|
# CONFIG_RAIDAUTORUN is not set
|
||||||
# CONFIG_READAHEAD is not set
|
# CONFIG_READAHEAD is not set
|
||||||
# CONFIG_RFKILL is not set
|
|
||||||
# CONFIG_RUNLEVEL is not set
|
# CONFIG_RUNLEVEL is not set
|
||||||
# CONFIG_RX is not set
|
# CONFIG_RX is not set
|
||||||
# CONFIG_SETSID is not set
|
# CONFIG_SETSID is not set
|
||||||
@@ -716,7 +726,6 @@ CONFIG_TIME=y
|
|||||||
# CONFIG_TIMEOUT is not set
|
# CONFIG_TIMEOUT is not set
|
||||||
# CONFIG_TTYSIZE is not set
|
# CONFIG_TTYSIZE is not set
|
||||||
# CONFIG_VOLNAME is not set
|
# CONFIG_VOLNAME is not set
|
||||||
# CONFIG_WALL is not set
|
|
||||||
CONFIG_WATCHDOG=y
|
CONFIG_WATCHDOG=y
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -890,6 +899,13 @@ CONFIG_POWERTOP=y
|
|||||||
CONFIG_PSTREE=y
|
CONFIG_PSTREE=y
|
||||||
CONFIG_PWDX=y
|
CONFIG_PWDX=y
|
||||||
CONFIG_SMEMCAP=y
|
CONFIG_SMEMCAP=y
|
||||||
|
CONFIG_TOP=y
|
||||||
|
CONFIG_FEATURE_TOP_CPU_USAGE_PERCENTAGE=y
|
||||||
|
CONFIG_FEATURE_TOP_CPU_GLOBAL_PERCENTS=y
|
||||||
|
# CONFIG_FEATURE_TOP_SMP_CPU is not set
|
||||||
|
# CONFIG_FEATURE_TOP_DECIMALS is not set
|
||||||
|
# CONFIG_FEATURE_TOP_SMP_PROCESS is not set
|
||||||
|
CONFIG_FEATURE_TOPMEM=y
|
||||||
CONFIG_UPTIME=y
|
CONFIG_UPTIME=y
|
||||||
# CONFIG_FEATURE_UPTIME_UTMP_SUPPORT is not set
|
# CONFIG_FEATURE_UPTIME_UTMP_SUPPORT is not set
|
||||||
CONFIG_FREE=y
|
CONFIG_FREE=y
|
||||||
@@ -910,13 +926,6 @@ CONFIG_FEATURE_PS_LONG=y
|
|||||||
# CONFIG_FEATURE_PS_UNUSUAL_SYSTEMS is not set
|
# CONFIG_FEATURE_PS_UNUSUAL_SYSTEMS is not set
|
||||||
CONFIG_RENICE=y
|
CONFIG_RENICE=y
|
||||||
# CONFIG_BB_SYSCTL is not set
|
# CONFIG_BB_SYSCTL is not set
|
||||||
CONFIG_TOP=y
|
|
||||||
CONFIG_FEATURE_TOP_CPU_USAGE_PERCENTAGE=y
|
|
||||||
CONFIG_FEATURE_TOP_CPU_GLOBAL_PERCENTS=y
|
|
||||||
# CONFIG_FEATURE_TOP_SMP_CPU is not set
|
|
||||||
# CONFIG_FEATURE_TOP_DECIMALS is not set
|
|
||||||
# CONFIG_FEATURE_TOP_SMP_PROCESS is not set
|
|
||||||
CONFIG_FEATURE_TOPMEM=y
|
|
||||||
# CONFIG_FEATURE_SHOW_THREADS is not set
|
# CONFIG_FEATURE_SHOW_THREADS is not set
|
||||||
# CONFIG_WATCH is not set
|
# CONFIG_WATCH is not set
|
||||||
|
|
||||||
@@ -1011,6 +1020,11 @@ CONFIG_FEATURE_IPC_SYSLOG=y
|
|||||||
CONFIG_FEATURE_IPC_SYSLOG_BUFFER_SIZE=16
|
CONFIG_FEATURE_IPC_SYSLOG_BUFFER_SIZE=16
|
||||||
CONFIG_LOGREAD=y
|
CONFIG_LOGREAD=y
|
||||||
CONFIG_FEATURE_LOGREAD_REDUCED_LOCKING=y
|
CONFIG_FEATURE_LOGREAD_REDUCED_LOCKING=y
|
||||||
|
CONFIG_FEATURE_KMSG_SYSLOG=y
|
||||||
CONFIG_KLOGD=y
|
CONFIG_KLOGD=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# klogd should not be used together with syslog to kernel printk buffer
|
||||||
|
#
|
||||||
CONFIG_FEATURE_KLOGD_KLOGCTL=y
|
CONFIG_FEATURE_KLOGD_KLOGCTL=y
|
||||||
CONFIG_LOGGER=y
|
CONFIG_LOGGER=y
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'1.22.1'
|
'1.24.1'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
@@ -10,7 +10,7 @@ url=\
|
|||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'337d1a15ab1cb1d4ed423168b1eb7d7e'
|
'be98a40cadf84ce2d6b05fa41a275c6a'
|
||||||
)
|
)
|
||||||
|
|
||||||
post_unpack()
|
post_unpack()
|
||||||
|
37
rules/cloog/host.bash
Normal file
37
rules/cloog/host.bash
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
version=\
|
||||||
|
(
|
||||||
|
'0.18.1'
|
||||||
|
)
|
||||||
|
|
||||||
|
url=\
|
||||||
|
(
|
||||||
|
"ftp://gcc.gnu.org/pub/gcc/infrastructure/cloog-$version.tar.gz"
|
||||||
|
)
|
||||||
|
|
||||||
|
md5=\
|
||||||
|
(
|
||||||
|
'e34fca0540d840e5d0f6427e98c92252'
|
||||||
|
)
|
||||||
|
|
||||||
|
maintainer=\
|
||||||
|
(
|
||||||
|
'Ricardo Martins <rasm@oceanscan-mst.com>'
|
||||||
|
)
|
||||||
|
|
||||||
|
configure()
|
||||||
|
{
|
||||||
|
"../cloog-$version/configure" \
|
||||||
|
--prefix="$cfg_dir_toolchain" \
|
||||||
|
--disable-shared \
|
||||||
|
--enable-static
|
||||||
|
}
|
||||||
|
|
||||||
|
build()
|
||||||
|
{
|
||||||
|
$cmd_make
|
||||||
|
}
|
||||||
|
|
||||||
|
host_install()
|
||||||
|
{
|
||||||
|
$cmd_make install-strip
|
||||||
|
}
|
50
rules/confuse/default.bash
Normal file
50
rules/confuse/default.bash
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
version=\
|
||||||
|
(
|
||||||
|
'2.8'
|
||||||
|
)
|
||||||
|
|
||||||
|
url=\
|
||||||
|
(
|
||||||
|
"https://github.com/martinh/libconfuse/releases/download/v$version/confuse-$version.tar.gz"
|
||||||
|
)
|
||||||
|
|
||||||
|
md5=\
|
||||||
|
(
|
||||||
|
'e94ade0372a43e80b35031046bbc2a33'
|
||||||
|
)
|
||||||
|
|
||||||
|
maintainer=\
|
||||||
|
(
|
||||||
|
'Ricardo Martins <rasm@oceanscan-mst.com>'
|
||||||
|
)
|
||||||
|
|
||||||
|
configure()
|
||||||
|
{
|
||||||
|
export PKG_CONFIG="${cfg_dir_toolchain}/bin/pkg-config"
|
||||||
|
export PKG_CONFIG_PATH="$cfg_dir_toolchain_sysroot/usr/lib/pkgconfig"
|
||||||
|
"../confuse-$version/configure" \
|
||||||
|
--prefix="$cfg_dir_toolchain_sysroot/usr" \
|
||||||
|
--target="$cfg_target_canonical" \
|
||||||
|
--host="$cfg_target_canonical" \
|
||||||
|
--build="$cfg_host_canonical" \
|
||||||
|
--disable-static \
|
||||||
|
--enable-shared
|
||||||
|
}
|
||||||
|
|
||||||
|
build()
|
||||||
|
{
|
||||||
|
$cmd_make
|
||||||
|
}
|
||||||
|
|
||||||
|
host_install()
|
||||||
|
{
|
||||||
|
export PKG_CONFIG="${cfg_dir_toolchain}/bin/pkg-config"
|
||||||
|
export PKG_CONFIG_PATH="$cfg_dir_toolchain_sysroot/usr/lib/pkgconfig"
|
||||||
|
$cmd_make install
|
||||||
|
}
|
||||||
|
|
||||||
|
target_install()
|
||||||
|
{
|
||||||
|
cp -a "$cfg_dir_toolchain_sysroot/usr/lib/libconfuse"*.so* "$cfg_dir_rootfs/lib" &&
|
||||||
|
$cmd_target_strip "$cfg_dir_rootfs/lib/libconfuse"*.so*
|
||||||
|
}
|
26
rules/coreboot-lsts/default.bash
Normal file
26
rules/coreboot-lsts/default.bash
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
version=\
|
||||||
|
(
|
||||||
|
'1.1.0'
|
||||||
|
)
|
||||||
|
|
||||||
|
url=\
|
||||||
|
(
|
||||||
|
"http://www.lsts.pt/glued/coreboot-lsts-$version.tar.gz"
|
||||||
|
)
|
||||||
|
|
||||||
|
md5=\
|
||||||
|
(
|
||||||
|
'a7c77a981778bec54f28f598814f11c6'
|
||||||
|
)
|
||||||
|
|
||||||
|
maintainer=\
|
||||||
|
(
|
||||||
|
'Ricardo Martins <rasm@fe.up.pt>'
|
||||||
|
)
|
||||||
|
|
||||||
|
target_install()
|
||||||
|
{
|
||||||
|
dir="$cfg_dir_rootfs/usr/share/coreboot-lsts"
|
||||||
|
$cmd_mkdir "$dir" &&
|
||||||
|
$cmd_cp "coreboot-lsts-$version.rom" "$dir"
|
||||||
|
}
|
52
rules/czmq/default.bash
Normal file
52
rules/czmq/default.bash
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
version=\
|
||||||
|
(
|
||||||
|
"3.0.2"
|
||||||
|
)
|
||||||
|
|
||||||
|
url=\
|
||||||
|
(
|
||||||
|
"https://github.com/zeromq/czmq/archive/v$version.tar.gz"
|
||||||
|
)
|
||||||
|
|
||||||
|
md5=\
|
||||||
|
(
|
||||||
|
"23e9885f7ee3ce88d99d0425f52e9be1"
|
||||||
|
)
|
||||||
|
|
||||||
|
configure()
|
||||||
|
{
|
||||||
|
./autogen.sh && \
|
||||||
|
./configure \
|
||||||
|
--prefix="${cfg_dir_toolchain_sysroot}/usr" \
|
||||||
|
--target="$cfg_target_canonical" \
|
||||||
|
--host="$cfg_target_canonical" \
|
||||||
|
--build="$cfg_host_canonical"
|
||||||
|
}
|
||||||
|
|
||||||
|
build()
|
||||||
|
{
|
||||||
|
$cmd_make
|
||||||
|
}
|
||||||
|
|
||||||
|
host_install()
|
||||||
|
{
|
||||||
|
$cmd_make install
|
||||||
|
}
|
||||||
|
|
||||||
|
requires=\
|
||||||
|
(
|
||||||
|
'libtool/host'
|
||||||
|
'zeromq'
|
||||||
|
)
|
||||||
|
|
||||||
|
target_install()
|
||||||
|
{
|
||||||
|
# Libs:
|
||||||
|
for f in "$cfg_dir_toolchain_sysroot/usr/lib/"libczmq.*; do
|
||||||
|
if [ -L "$f" ]; then
|
||||||
|
$cmd_cp "$f" "$cfg_dir_rootfs/usr/lib"
|
||||||
|
else
|
||||||
|
$cmd_target_strip -v "$f" -o "$cfg_dir_rootfs/usr/lib/$(basename "$f")"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
@@ -1,16 +1,16 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
"4.8.26"
|
'4.8.30'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
(
|
(
|
||||||
"ftp://mirror.ovh.net/gentoo-distfiles/distfiles/db-$version.tar.gz"
|
"http://download.oracle.com/berkeley-db/db-$version.tar.gz"
|
||||||
)
|
)
|
||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
"3476bac9ec0f3c40729c8a404151d5e3"
|
'f80022099c5742cd179343556179aa8c'
|
||||||
)
|
)
|
||||||
|
|
||||||
configure()
|
configure()
|
||||||
|
@@ -1,79 +0,0 @@
|
|||||||
version=\
|
|
||||||
(
|
|
||||||
'1.0'
|
|
||||||
)
|
|
||||||
|
|
||||||
ns_version=\
|
|
||||||
(
|
|
||||||
'2.34'
|
|
||||||
)
|
|
||||||
|
|
||||||
url=\
|
|
||||||
(
|
|
||||||
"http://www.lsts.pt/glued/desert-$version.tar.gz"
|
|
||||||
)
|
|
||||||
|
|
||||||
md5=\
|
|
||||||
(
|
|
||||||
'5b83d1d6e5390a44f1dc0c5a3794581c'
|
|
||||||
)
|
|
||||||
|
|
||||||
requires=\
|
|
||||||
(
|
|
||||||
'ns-miracle/default'
|
|
||||||
)
|
|
||||||
|
|
||||||
post_unpack()
|
|
||||||
{
|
|
||||||
patches=$(ls "$pkg_dir/patches/"*.patch)
|
|
||||||
if [ -n "$patches" ]; then
|
|
||||||
cat $patches | patch -p0
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
configure()
|
|
||||||
{
|
|
||||||
find . -name "*.o" -exec rm {} \;
|
|
||||||
/usr/bin/aclocal -I m4 --force && /usr/bin/libtoolize --force && /usr/bin/automake --foreign --add-missing && /usr/bin/autoconf
|
|
||||||
|
|
||||||
prefix="/DESERT_lib"
|
|
||||||
|
|
||||||
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" \
|
|
||||||
--with-ns-allinone=${cfg_dir_builds}/ns/ \
|
|
||||||
--with-nsmiracle=${cfg_dir_builds}/ns-miracle/ns-miracle-1.0/trunk/main/ \
|
|
||||||
--prefix="$prefix"
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
build()
|
|
||||||
{
|
|
||||||
$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()
|
|
||||||
{
|
|
||||||
$cmd_mkdir \
|
|
||||||
"$cfg_dir_toolchain_sysroot/ns2/DESERT_lib/lib" &&
|
|
||||||
|
|
||||||
$cmd_make \
|
|
||||||
DESTDIR="$cfg_dir_toolchain_sysroot/ns2/" \
|
|
||||||
install
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
target_install()
|
|
||||||
{
|
|
||||||
cp -r "${cfg_dir_toolchain_sysroot}/ns2/DESERT_lib/lib" "${cfg_dir_rootfs}/usr/ns2/DESERT/"
|
|
||||||
|
|
||||||
for f in "$cfg_dir_toolchain_sysroot/ns2/DESERT_lib/lib/"lib*.so.0.0.0; do
|
|
||||||
$cmd_target_strip "$f" -o ${cfg_dir_rootfs}/usr/ns2/DESERT/"$(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,11 +0,0 @@
|
|||||||
--- configure.ac 2012-09-27 11:57:58.190424449 +0200
|
|
||||||
+++ configure.ac 2012-09-27 12:03:02.599357310 +0200
|
|
||||||
@@ -42,6 +42,8 @@
|
|
||||||
DESERT_CPPFLAGS="$DESERT_CPPFLAGS "'-I$(top_srcdir)/mobility/uwdriftposition'
|
|
||||||
DESERT_CPPFLAGS="$DESERT_CPPFLAGS "'-I$(top_srcdir)/mobility/uwgmposition'
|
|
||||||
|
|
||||||
+TCL2CPP="qemu-arm -L ${cfg_dir_rootfs} ${cfg_dir_rootfs}/lib/ld-linux.so.3 ${cfg_dir_toolchain_sysroot}/usr/bin/tcl2c++"
|
|
||||||
+
|
|
||||||
AC_SUBST(DESERT_CPPFLAGS)
|
|
||||||
|
|
||||||
AC_SUBST(DESERT_LDFLAGS)
|
|
@@ -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 "$pkg_dir/fs" -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
|
||||||
}
|
}
|
||||||
|
10
rules/dnsmasq/fs/etc/rc.d/dnsmasq
Normal file
10
rules/dnsmasq/fs/etc/rc.d/dnsmasq
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
start()
|
||||||
|
{
|
||||||
|
mkdir -p /var/lib/misc
|
||||||
|
dnsmasq
|
||||||
|
}
|
||||||
|
|
||||||
|
stop()
|
||||||
|
{
|
||||||
|
killall dnsmasq
|
||||||
|
}
|
24
rules/dosfstools/common.bash
Normal file
24
rules/dosfstools/common.bash
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
version=\
|
||||||
|
(
|
||||||
|
'3.0.28'
|
||||||
|
)
|
||||||
|
|
||||||
|
url=\
|
||||||
|
(
|
||||||
|
"https://github.com/dosfstools/dosfstools/releases/download/v$version/dosfstools-$version.tar.xz"
|
||||||
|
)
|
||||||
|
|
||||||
|
md5=\
|
||||||
|
(
|
||||||
|
'6a047a6c65186b9ebb1853709adb36db'
|
||||||
|
)
|
||||||
|
|
||||||
|
maintainer=\
|
||||||
|
(
|
||||||
|
'Ricardo Martins <rasm@fe.up.pt>'
|
||||||
|
)
|
||||||
|
|
||||||
|
configure()
|
||||||
|
{
|
||||||
|
$cmd_make distclean
|
||||||
|
}
|
17
rules/dosfstools/default.bash
Normal file
17
rules/dosfstools/default.bash
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
source $pkg_common
|
||||||
|
|
||||||
|
build()
|
||||||
|
{
|
||||||
|
CC="$cmd_target_cc" \
|
||||||
|
$cmd_make \
|
||||||
|
PREFIX="$cfg_dir_toolchain_sysroot/usr"
|
||||||
|
}
|
||||||
|
|
||||||
|
target_install()
|
||||||
|
{
|
||||||
|
$cmd_target_strip --strip-unneeded "../dosfstools-$version/mkfs.fat" -o "$cfg_dir_rootfs/sbin/mkfs.fat" &&
|
||||||
|
$cmd_target_strip --strip-unneeded "../dosfstools-$version/fsck.fat" -o "$cfg_dir_rootfs/sbin/fsck.fat" &&
|
||||||
|
$cmd_target_strip --strip-unneeded "../dosfstools-$version/fatlabel" -o "$cfg_dir_rootfs/sbin/fatlabel" &&
|
||||||
|
ln -fs mkfs.fat "$cfg_dir_rootfs/sbin/mkfs.vfat" &&
|
||||||
|
ln -fs fsck.fat "$cfg_dir_rootfs/sbin/fsck.vfat"
|
||||||
|
}
|
@@ -1,22 +1,4 @@
|
|||||||
version=\
|
source $pkg_common
|
||||||
(
|
|
||||||
'3.0.20'
|
|
||||||
)
|
|
||||||
|
|
||||||
url=\
|
|
||||||
(
|
|
||||||
"http://daniel-baumann.ch/files/software/dosfstools/dosfstools-$version.tar.gz"
|
|
||||||
)
|
|
||||||
|
|
||||||
md5=\
|
|
||||||
(
|
|
||||||
'7f1c1afd4ae4622e07b24ec0ddfc4184'
|
|
||||||
)
|
|
||||||
|
|
||||||
maintainer=\
|
|
||||||
(
|
|
||||||
'Ricardo Martins <rasm@fe.up.pt>'
|
|
||||||
)
|
|
||||||
|
|
||||||
build()
|
build()
|
||||||
{
|
{
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'2012.55'
|
'2015.67'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
@@ -10,7 +10,7 @@ url=\
|
|||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'8c784baec3054cdb1bb4bfa792c87812'
|
'e967e320344cd4bfebe321e3ab8514d6'
|
||||||
)
|
)
|
||||||
|
|
||||||
maintainer=\
|
maintainer=\
|
||||||
@@ -43,7 +43,7 @@ configure()
|
|||||||
--target="$cfg_target_canonical" \
|
--target="$cfg_target_canonical" \
|
||||||
--host="$cfg_target_canonical" \
|
--host="$cfg_target_canonical" \
|
||||||
--build="$cfg_host_canonical" \
|
--build="$cfg_host_canonical" \
|
||||||
--with-zlib="$cfg_dir_toolchain"
|
--with-zlib="$cfg_dir_toolchain_sysroot/usr"
|
||||||
}
|
}
|
||||||
|
|
||||||
build()
|
build()
|
||||||
|
@@ -1,30 +0,0 @@
|
|||||||
diff --git a/Makefile.in b/Makefile.in
|
|
||||||
index cec35f1..46a9365 100644
|
|
||||||
--- a/Makefile.in
|
|
||||||
+++ b/Makefile.in
|
|
||||||
@@ -56,7 +56,7 @@ HEADERS=options.h dbutil.h session.h packet.h algo.h ssh.h buffer.h kex.h \
|
|
||||||
loginrec.h atomicio.h x11fwd.h agentfwd.h tcpfwd.h compat.h \
|
|
||||||
listener.h fake-rfc2553.h
|
|
||||||
|
|
||||||
-dropbearobjs=$(COMMONOBJS) $(CLISVROBJS) $(SVROBJS) @CRYPTLIB@
|
|
||||||
+dropbearobjs=$(COMMONOBJS) $(CLISVROBJS) $(SVROBJS)
|
|
||||||
dbclientobjs=$(COMMONOBJS) $(CLISVROBJS) $(CLIOBJS)
|
|
||||||
dropbearkeyobjs=$(COMMONOBJS) $(KEYOBJS)
|
|
||||||
dropbearconvertobjs=$(COMMONOBJS) $(CONVERTOBJS)
|
|
||||||
@@ -169,14 +169,14 @@ scp: $(SCPOBJS) $(HEADERS) Makefile
|
|
||||||
# multi-binary compilation.
|
|
||||||
MULTIOBJS=
|
|
||||||
ifeq ($(MULTI),1)
|
|
||||||
- MULTIOBJS=dbmulti.o $(sort $(foreach prog, $(PROGRAMS), $($(prog)objs))) @CRYPTLIB@
|
|
||||||
+ MULTIOBJS=dbmulti.o $(sort $(foreach prog, $(PROGRAMS), $($(prog)objs)))
|
|
||||||
CFLAGS+=$(addprefix -DDBMULTI_, $(PROGRAMS)) -DDROPBEAR_MULTI
|
|
||||||
endif
|
|
||||||
|
|
||||||
dropbearmulti: multilink
|
|
||||||
|
|
||||||
multibinary: $(HEADERS) $(MULTIOBJS) $(LIBTOM_DEPS) Makefile
|
|
||||||
- $(CC) $(LDFLAGS) -o dropbearmulti$(EXEEXT) $(MULTIOBJS) $(LIBS)
|
|
||||||
+ $(CC) $(LDFLAGS) -o dropbearmulti$(EXEEXT) $(MULTIOBJS) $(LIBS) @CRYPTLIB@
|
|
||||||
|
|
||||||
multilink: multibinary $(addprefix link, $(PROGRAMS))
|
|
||||||
|
|
@@ -1,80 +0,0 @@
|
|||||||
version=\
|
|
||||||
(
|
|
||||||
'2.9.0'
|
|
||||||
)
|
|
||||||
|
|
||||||
url=\
|
|
||||||
(
|
|
||||||
"http://downloads.sourceforge.net/dtn/dtn-$version.tgz"
|
|
||||||
)
|
|
||||||
|
|
||||||
md5=\
|
|
||||||
(
|
|
||||||
'adfc25b561c1eeda30d9b68a6b088bd8'
|
|
||||||
)
|
|
||||||
|
|
||||||
maintainer=\
|
|
||||||
(
|
|
||||||
'Ricardo Martins <rasm@fe.up.pt>'
|
|
||||||
)
|
|
||||||
|
|
||||||
requires=\
|
|
||||||
(
|
|
||||||
'db/default'
|
|
||||||
'tcl/default'
|
|
||||||
'xerces-c/default'
|
|
||||||
'oasys/default'
|
|
||||||
)
|
|
||||||
|
|
||||||
configure()
|
|
||||||
{
|
|
||||||
"../dtn-$version/configure" \
|
|
||||||
--prefix="/usr" \
|
|
||||||
--sysconfdir="/etc/dtn" \
|
|
||||||
--target="$cfg_target_canonical" \
|
|
||||||
--host="$cfg_target_canonical" \
|
|
||||||
--build="$cfg_host_canonical" \
|
|
||||||
--with-oasys="$cfg_dir_toolchain_sysroot/usr" \
|
|
||||||
--enable-ecl \
|
|
||||||
--without-python \
|
|
||||||
--disable-python
|
|
||||||
}
|
|
||||||
|
|
||||||
build()
|
|
||||||
{
|
|
||||||
$cmd_make -j1 -C servlib &&
|
|
||||||
$cmd_make -j1 -C applib libdtnapi.a &&
|
|
||||||
$cmd_make -j1 -C applib libdtnapi++.a &&
|
|
||||||
$cmd_make -j1 -C applib libdtnapisrv.a &&
|
|
||||||
$cmd_make -j1 -C daemon &&
|
|
||||||
$cmd_make -j1 -C apps
|
|
||||||
}
|
|
||||||
|
|
||||||
host_install()
|
|
||||||
{
|
|
||||||
cp -a servlib/libdtnserv.a "$cfg_dir_toolchain_sysroot/usr/lib" &&
|
|
||||||
cp -a applib/libdtnapi++.a "$cfg_dir_toolchain_sysroot/usr/lib" &&
|
|
||||||
cp -a applib/libdtnapi++-$version.a "$cfg_dir_toolchain_sysroot/usr/lib" &&
|
|
||||||
cp -a applib/libdtnapi-$version.a "$cfg_dir_toolchain_sysroot/usr/lib" &&
|
|
||||||
cp -a applib/libdtnapi.a "$cfg_dir_toolchain_sysroot/usr/lib" &&
|
|
||||||
cp -a applib/libdtnapisrv.a "$cfg_dir_toolchain_sysroot/usr/lib" &&
|
|
||||||
|
|
||||||
mkdir -p "$cfg_dir_toolchain_sysroot/usr/include/dtn" &&
|
|
||||||
cp -a applib/dtn_ipc.h "$cfg_dir_toolchain_sysroot/usr/include/dtn" &&
|
|
||||||
cp -a applib/dtn_errno.h "$cfg_dir_toolchain_sysroot/usr/include/dtn" &&
|
|
||||||
cp -a applib/sdnv-c.h "$cfg_dir_toolchain_sysroot/usr/include/dtn" &&
|
|
||||||
cp -a applib/dtn_api.h "$cfg_dir_toolchain_sysroot/usr/include/dtn" &&
|
|
||||||
cp -a applib/dtn_types.h "$cfg_dir_toolchain_sysroot/usr/include/dtn"
|
|
||||||
}
|
|
||||||
|
|
||||||
target_install()
|
|
||||||
{
|
|
||||||
$cmd_target_strip apps/dtnsend/dtnsend -o "$cfg_dir_rootfs/usr/bin/dtnsend" &&
|
|
||||||
$cmd_target_strip apps/dtnrecv/dtnrecv -o "$cfg_dir_rootfs/usr/bin/dtnrecv" &&
|
|
||||||
$cmd_target_strip apps/dtncp/dtncp -o "$cfg_dir_rootfs/usr/bin/dtncp" &&
|
|
||||||
$cmd_target_strip apps/dtnping/dtnping -o "$cfg_dir_rootfs/usr/bin/dtnping" &&
|
|
||||||
$cmd_target_strip daemon/dtnd -o "$cfg_dir_rootfs/usr/bin/dtnd" &&
|
|
||||||
$cmd_mkdir "$cfg_dir_rootfs/etc/dtn" "$cfg_dir_rootfs/usr/share/dtn" &&
|
|
||||||
cp servlib/conv_layers/clevent.xsd "$cfg_dir_rootfs/usr/share/dtn" &&
|
|
||||||
tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
|
|
||||||
}
|
|
@@ -1,29 +0,0 @@
|
|||||||
# Configuration parameters
|
|
||||||
# cfg_dtnd_config: DTN Daemon configuration file.
|
|
||||||
# cfg_dtnd_name: DTN node name.
|
|
||||||
|
|
||||||
start()
|
|
||||||
{
|
|
||||||
export DTN_NODE="$cfg_dtnd_name"
|
|
||||||
db="/opt/lsts/dtn/var/$DTN_NODE/db"
|
|
||||||
|
|
||||||
if [ -f "$cfg_dtnd_config" ]; then
|
|
||||||
mkdir -p /opt/lsts/dtn
|
|
||||||
|
|
||||||
if ! [ -d "$db" ]; then
|
|
||||||
mkdir -p "$db"
|
|
||||||
/usr/bin/dtnd \
|
|
||||||
-c "$cfg_dtnd_config" \
|
|
||||||
--init-db
|
|
||||||
fi
|
|
||||||
|
|
||||||
/usr/bin/dtnd -d \
|
|
||||||
-c "$cfg_dtnd_config" \
|
|
||||||
-o /opt/lsts/dtn/log.txt
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
stop()
|
|
||||||
{
|
|
||||||
killall dtnd > /dev/null 2>&1
|
|
||||||
}
|
|
37
rules/dune/default.bash
Normal file
37
rules/dune/default.bash
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
version=\
|
||||||
|
(
|
||||||
|
'mission/necsave'
|
||||||
|
)
|
||||||
|
|
||||||
|
requires=\
|
||||||
|
(
|
||||||
|
'cmake/host'
|
||||||
|
)
|
||||||
|
|
||||||
|
download()
|
||||||
|
{
|
||||||
|
git clone "git@github.com:LSTS/dune.git" dune &&
|
||||||
|
cd dune && git checkout "$version" && cd - &&
|
||||||
|
git clone "git@git.lsts.pt:dune-private.git" dune/private &&
|
||||||
|
cd dune/private && git checkout "$version" && cd -
|
||||||
|
}
|
||||||
|
|
||||||
|
configure()
|
||||||
|
{
|
||||||
|
$cmd_mkdir build &&
|
||||||
|
cd build &&
|
||||||
|
cmake \
|
||||||
|
-DCMAKE_INSTALL_PREFIX="$cfg_dir_toolchain_sysroot/usr" \
|
||||||
|
-DCROSS="$cmd_target_cc" \
|
||||||
|
../dune
|
||||||
|
}
|
||||||
|
|
||||||
|
build()
|
||||||
|
{
|
||||||
|
$cmd_make -C build
|
||||||
|
}
|
||||||
|
|
||||||
|
host_install()
|
||||||
|
{
|
||||||
|
$cmd_make -C build install
|
||||||
|
}
|
@@ -1,6 +1,6 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'1.41.9'
|
'1.42.13'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
@@ -10,5 +10,5 @@ url=\
|
|||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'52f60a9e19a02f142f5546f1b5681927'
|
'bc759fc62666786f5436e2075beb3265'
|
||||||
)
|
)
|
||||||
|
@@ -20,7 +20,13 @@ build()
|
|||||||
|
|
||||||
target_install()
|
target_install()
|
||||||
{
|
{
|
||||||
$cmd_target_strip --strip-unneeded ../e2fsprogs-$version/e2fsck/e2fsck -o $cfg_dir_rootfs/sbin/e2fsck &&
|
$cmd_target_strip --strip-unneeded ../e2fsprogs-$version/e2fsck/e2fsck -o "$cfg_dir_rootfs/sbin/e2fsck" &&
|
||||||
$cmd_target_strip --strip-unneeded ../e2fsprogs-$version/misc/mke2fs -o $cfg_dir_rootfs/sbin/mke2fs &&
|
$cmd_target_strip --strip-unneeded ../e2fsprogs-$version/misc/mke2fs -o "$cfg_dir_rootfs/sbin/mke2fs" &&
|
||||||
$cmd_target_strip --strip-unneeded ../e2fsprogs-$version/misc/tune2fs -o $cfg_dir_rootfs/sbin/tune2fs
|
$cmd_target_strip --strip-unneeded ../e2fsprogs-$version/misc/tune2fs -o "$cfg_dir_rootfs/sbin/tune2fs" &&
|
||||||
|
ln -fs e2fsck "$cfg_dir_rootfs/sbin/fsck.ext2" &&
|
||||||
|
ln -fs e2fsck "$cfg_dir_rootfs/sbin/fsck.ext3" &&
|
||||||
|
ln -fs e2fsck "$cfg_dir_rootfs/sbin/fsck.ext4" &&
|
||||||
|
ln -fs mke2fs "$cfg_dir_rootfs/sbin/mkfs.ext2" &&
|
||||||
|
ln -fs mke2fs "$cfg_dir_rootfs/sbin/mkfs.ext3" &&
|
||||||
|
ln -fs mke2fs "$cfg_dir_rootfs/sbin/mkfs.ext4"
|
||||||
}
|
}
|
||||||
|
@@ -1,199 +0,0 @@
|
|||||||
/*
|
|
||||||
* timepps.h -- PPS API main header
|
|
||||||
*
|
|
||||||
* Copyright (C) 2005-2007 Rodolfo Giometti <giometti@linux.it>
|
|
||||||
*
|
|
||||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _SYS_TIMEPPS_H_
|
|
||||||
#define _SYS_TIMEPPS_H_
|
|
||||||
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <errno.h>
|
|
||||||
#include <sys/time.h>
|
|
||||||
#include <sys/ioctl.h>
|
|
||||||
#include <linux/types.h>
|
|
||||||
#include <linux/pps.h>
|
|
||||||
|
|
||||||
#define LINUXPPS 1 /* signal we are using LinuxPPS */
|
|
||||||
|
|
||||||
/*
|
|
||||||
* New data structures
|
|
||||||
*/
|
|
||||||
|
|
||||||
struct ntp_fp {
|
|
||||||
unsigned int integral;
|
|
||||||
unsigned int fractional;
|
|
||||||
};
|
|
||||||
|
|
||||||
union pps_timeu {
|
|
||||||
struct timespec tspec;
|
|
||||||
struct ntp_fp ntpfp;
|
|
||||||
unsigned long longpad[3];
|
|
||||||
};
|
|
||||||
|
|
||||||
struct pps_info {
|
|
||||||
unsigned long assert_sequence; /* seq. num. of assert event */
|
|
||||||
unsigned long clear_sequence; /* seq. num. of clear event */
|
|
||||||
union pps_timeu assert_tu; /* time of assert event */
|
|
||||||
union pps_timeu clear_tu; /* time of clear event */
|
|
||||||
int current_mode; /* current mode bits */
|
|
||||||
};
|
|
||||||
|
|
||||||
struct pps_params {
|
|
||||||
int api_version; /* API version # */
|
|
||||||
int mode; /* mode bits */
|
|
||||||
union pps_timeu assert_off_tu; /* offset compensation for assert */
|
|
||||||
union pps_timeu clear_off_tu; /* offset compensation for clear */
|
|
||||||
};
|
|
||||||
|
|
||||||
typedef int pps_handle_t; /* represents a PPS source */
|
|
||||||
typedef unsigned long pps_seq_t; /* sequence number */
|
|
||||||
typedef struct ntp_fp ntp_fp_t; /* NTP-compatible time stamp */
|
|
||||||
typedef union pps_timeu pps_timeu_t; /* generic data type for time stamps */
|
|
||||||
typedef struct pps_info pps_info_t;
|
|
||||||
typedef struct pps_params pps_params_t;
|
|
||||||
|
|
||||||
#define assert_timestamp assert_tu.tspec
|
|
||||||
#define clear_timestamp clear_tu.tspec
|
|
||||||
|
|
||||||
#define assert_timestamp_ntpfp assert_tu.ntpfp
|
|
||||||
#define clear_timestamp_ntpfp clear_tu.ntpfp
|
|
||||||
|
|
||||||
#define assert_offset assert_off_tu.tspec
|
|
||||||
#define clear_offset clear_off_tu.tspec
|
|
||||||
|
|
||||||
#define assert_offset_ntpfp assert_off_tu.ntpfp
|
|
||||||
#define clear_offset_ntpfp clear_off_tu.ntpfp
|
|
||||||
|
|
||||||
/*
|
|
||||||
* The PPS API
|
|
||||||
*/
|
|
||||||
|
|
||||||
static __inline int time_pps_create(int source, pps_handle_t *handle)
|
|
||||||
{
|
|
||||||
int ret;
|
|
||||||
struct pps_kparams dummy;
|
|
||||||
|
|
||||||
if (!handle) {
|
|
||||||
errno = EINVAL;
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* First we check if current device is a valid PPS one by
|
|
||||||
* doing a dummy PPS_GETPARAMS...
|
|
||||||
*/
|
|
||||||
ret = ioctl(source, PPS_GETPARAMS, &dummy);
|
|
||||||
if (ret) {
|
|
||||||
errno = EOPNOTSUPP;
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ... then since in LinuxPPS there are no differences between a
|
|
||||||
* "PPS source" and a "PPS handle", we simply return the same value.
|
|
||||||
*/
|
|
||||||
*handle = source;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static __inline int time_pps_destroy(pps_handle_t handle)
|
|
||||||
{
|
|
||||||
return close(handle);
|
|
||||||
}
|
|
||||||
|
|
||||||
static __inline int time_pps_getparams(pps_handle_t handle,
|
|
||||||
pps_params_t *ppsparams)
|
|
||||||
{
|
|
||||||
int ret;
|
|
||||||
struct pps_kparams __ppsparams;
|
|
||||||
|
|
||||||
ret = ioctl(handle, PPS_GETPARAMS, &__ppsparams);
|
|
||||||
|
|
||||||
ppsparams->api_version = __ppsparams.api_version;
|
|
||||||
ppsparams->mode = __ppsparams.mode;
|
|
||||||
ppsparams->assert_off_tu.tspec.tv_sec = __ppsparams.assert_off_tu.sec;
|
|
||||||
ppsparams->assert_off_tu.tspec.tv_nsec = __ppsparams.assert_off_tu.nsec;
|
|
||||||
ppsparams->clear_off_tu.tspec.tv_sec = __ppsparams.clear_off_tu.sec;
|
|
||||||
ppsparams->clear_off_tu.tspec.tv_nsec = __ppsparams.clear_off_tu.nsec;
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
static __inline int time_pps_setparams(pps_handle_t handle,
|
|
||||||
const pps_params_t *ppsparams)
|
|
||||||
{
|
|
||||||
struct pps_kparams __ppsparams;
|
|
||||||
|
|
||||||
__ppsparams.api_version = ppsparams->api_version;
|
|
||||||
__ppsparams.mode = ppsparams->mode;
|
|
||||||
__ppsparams.assert_off_tu.sec = ppsparams->assert_off_tu.tspec.tv_sec;
|
|
||||||
__ppsparams.assert_off_tu.nsec = ppsparams->assert_off_tu.tspec.tv_nsec;
|
|
||||||
__ppsparams.clear_off_tu.sec = ppsparams->clear_off_tu.tspec.tv_sec;
|
|
||||||
__ppsparams.clear_off_tu.nsec = ppsparams->clear_off_tu.tspec.tv_nsec;
|
|
||||||
|
|
||||||
return ioctl(handle, PPS_SETPARAMS, &__ppsparams);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Get capabilities for handle */
|
|
||||||
static __inline int time_pps_getcap(pps_handle_t handle, int *mode)
|
|
||||||
{
|
|
||||||
return ioctl(handle, PPS_GETCAP, mode);
|
|
||||||
}
|
|
||||||
|
|
||||||
static __inline int time_pps_fetch(pps_handle_t handle, const int tsformat,
|
|
||||||
pps_info_t *ppsinfobuf,
|
|
||||||
const struct timespec *timeout)
|
|
||||||
{
|
|
||||||
struct pps_fdata __fdata;
|
|
||||||
int ret;
|
|
||||||
|
|
||||||
/* Sanity checks */
|
|
||||||
if (tsformat != PPS_TSFMT_TSPEC) {
|
|
||||||
errno = EINVAL;
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (timeout) {
|
|
||||||
__fdata.timeout.sec = timeout->tv_sec;
|
|
||||||
__fdata.timeout.nsec = timeout->tv_nsec;
|
|
||||||
__fdata.timeout.flags = ~PPS_TIME_INVALID;
|
|
||||||
} else
|
|
||||||
__fdata.timeout.flags = PPS_TIME_INVALID;
|
|
||||||
|
|
||||||
ret = ioctl(handle, PPS_FETCH, &__fdata);
|
|
||||||
|
|
||||||
ppsinfobuf->assert_sequence = __fdata.info.assert_sequence;
|
|
||||||
ppsinfobuf->clear_sequence = __fdata.info.clear_sequence;
|
|
||||||
ppsinfobuf->assert_tu.tspec.tv_sec = __fdata.info.assert_tu.sec;
|
|
||||||
ppsinfobuf->assert_tu.tspec.tv_nsec = __fdata.info.assert_tu.nsec;
|
|
||||||
ppsinfobuf->clear_tu.tspec.tv_sec = __fdata.info.clear_tu.sec;
|
|
||||||
ppsinfobuf->clear_tu.tspec.tv_nsec = __fdata.info.clear_tu.nsec;
|
|
||||||
ppsinfobuf->current_mode = __fdata.info.current_mode;
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
static __inline int time_pps_kcbind(pps_handle_t handle,
|
|
||||||
const int kernel_consumer,
|
|
||||||
const int edge, const int tsformat)
|
|
||||||
{
|
|
||||||
/* LinuxPPS doesn't implement kernel consumer feature */
|
|
||||||
errno = EOPNOTSUPP;
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif /* _SYS_TIMEPPS_H_ */
|
|
@@ -1,39 +0,0 @@
|
|||||||
source $pkg_common
|
|
||||||
|
|
||||||
requires=\
|
|
||||||
(
|
|
||||||
'eglibc/cross'
|
|
||||||
)
|
|
||||||
|
|
||||||
configure()
|
|
||||||
{
|
|
||||||
"../eglibc-$version/localedef/configure" \
|
|
||||||
--prefix="$cfg_dir_toolchain_sysroot/usr" \
|
|
||||||
--with-glibc=."./eglibc-$version/libc"
|
|
||||||
}
|
|
||||||
|
|
||||||
build()
|
|
||||||
{
|
|
||||||
$cmd_make
|
|
||||||
}
|
|
||||||
|
|
||||||
host_install()
|
|
||||||
{
|
|
||||||
$cmd_mkdir "$cfg_dir_toolchain_sysroot/usr/lib/locale" &&
|
|
||||||
if [ -f "$cfg_dir_toolchain_sysroot/usr/share/i18n/charmaps/UTF-8.gz" ]; then
|
|
||||||
gunzip -f "$cfg_dir_toolchain_sysroot/usr/share/i18n/charmaps/UTF-8.gz"
|
|
||||||
fi &&
|
|
||||||
if [ -f "$cfg_dir_toolchain_sysroot/usr/share/i18n/charmaps/ISO-8859-1.gz" ]; then
|
|
||||||
gunzip -f "$cfg_dir_toolchain_sysroot/usr/share/i18n/charmaps/ISO-8859-1.gz"
|
|
||||||
fi &&
|
|
||||||
|
|
||||||
./localedef -v -c -i pt_PT -f UTF-8 pt_PT
|
|
||||||
./localedef -v -c -i ru_RU -f UTF-8 ru_RU
|
|
||||||
true
|
|
||||||
}
|
|
||||||
|
|
||||||
target_install()
|
|
||||||
{
|
|
||||||
$cmd_mkdir "$cfg_dir_rootfs/usr/lib/locale" &&
|
|
||||||
cp -v "$cfg_dir_toolchain_sysroot/usr/lib/locale/locale-archive" "$cfg_dir_rootfs/usr/lib/locale"
|
|
||||||
}
|
|
@@ -1,24 +0,0 @@
|
|||||||
diff -Nru eglibc-2.15-16611/libc/include/libc-symbols.h eglibc-2.15-16611-rasm/libc/include/libc-symbols.h
|
|
||||||
--- eglibc-2.15-16611/libc/include/libc-symbols.h 2012-01-09 21:16:30.000000000 +0000
|
|
||||||
+++ eglibc-2.15-16611-rasm/libc/include/libc-symbols.h 2012-01-10 23:37:36.863616530 +0000
|
|
||||||
@@ -647,7 +647,7 @@
|
|
||||||
# define libc_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
|
|
||||||
# define libc_hidden_def(name) hidden_def (name)
|
|
||||||
# define libc_hidden_weak(name) hidden_weak (name)
|
|
||||||
-# define libc_hidden_nolink(name, version) hidden_nolink (name, libc, version)
|
|
||||||
+# define libc_hidden_nolink(name, version) hidden_def (name)
|
|
||||||
# define libc_hidden_ver(local, name) hidden_ver (local, name)
|
|
||||||
# define libc_hidden_data_def(name) hidden_data_def (name)
|
|
||||||
# define libc_hidden_data_weak(name) hidden_data_weak (name)
|
|
||||||
diff -Nru eglibc-2.15-16611/libc/sunrpc/Makefile eglibc-2.15-16611-rasm/libc/sunrpc/Makefile
|
|
||||||
--- eglibc-2.15-16611/libc/sunrpc/Makefile 2012-01-09 21:16:30.000000000 +0000
|
|
||||||
+++ eglibc-2.15-16611-rasm/libc/sunrpc/Makefile 2012-01-10 23:38:14.574076188 +0000
|
|
||||||
@@ -55,7 +55,7 @@
|
|
||||||
des_crypt.h)
|
|
||||||
headers-not-in-tirpc = $(addprefix rpc/,key_prot.h rpc_des.h) \
|
|
||||||
$(rpcsvc:%=rpcsvc/%) rpcsvc/bootparam.h
|
|
||||||
-headers = rpc/netdb.h
|
|
||||||
+headers = rpc/netdb.h $(headers-in-tirpc) $(headers-not-in-tirpc)
|
|
||||||
generated = $(rpcsvc:%.x=rpcsvc/%.h) $(rpcsvc:%.x=x%.c) $(rpcsvc:%.x=x%.stmp) \
|
|
||||||
$(rpcsvc:%.x=rpcsvc/%.stmp) rpcgen
|
|
||||||
generated-dirs := rpcsvc
|
|
@@ -1,15 +0,0 @@
|
|||||||
diff -Nru eglibc-2.15-16611/libc/nis/Makefile eglibc-2.15-16611-rasm/libc/nis/Makefile
|
|
||||||
--- eglibc-2.15-16611/libc/nis/Makefile 2012-01-09 21:16:30.000000000 +0000
|
|
||||||
+++ eglibc-2.15-16611-rasm/libc/nis/Makefile 2012-01-10 23:40:26.409018009 +0000
|
|
||||||
@@ -25,9 +25,9 @@
|
|
||||||
|
|
||||||
aux := nis_hash
|
|
||||||
|
|
||||||
+headers := $(wildcard rpcsvc/*.[hx])
|
|
||||||
distribute := nss-nis.h nss-nisplus.h nis_intern.h Banner \
|
|
||||||
- nisplus-parser.h nis_xdr.h nss \
|
|
||||||
- $(wildcard rpcsvc/*.[hx])
|
|
||||||
+ nisplus-parser.h nis_xdr.h nss
|
|
||||||
|
|
||||||
# These are the databases available for the nis (and perhaps later nisplus)
|
|
||||||
# service. This must be a superset of the services in nss.
|
|
@@ -1,107 +0,0 @@
|
|||||||
diff -Nru eglibc-2.15.17955/libc/elf/dl-close.c eglibc-2.15.17955.rasm/libc/elf/dl-close.c
|
|
||||||
--- eglibc-2.15.17955/libc/elf/dl-close.c 2012-04-07 20:58:55.000000000 +0100
|
|
||||||
+++ eglibc-2.15.17955.rasm/libc/elf/dl-close.c 2012-10-23 22:33:33.351846745 +0100
|
|
||||||
@@ -119,17 +119,8 @@
|
|
||||||
if (map->l_direct_opencount > 0 || map->l_type != lt_loaded
|
|
||||||
|| dl_close_state != not_pending)
|
|
||||||
{
|
|
||||||
- if (map->l_direct_opencount == 0)
|
|
||||||
- {
|
|
||||||
- if (map->l_type == lt_loaded)
|
|
||||||
- dl_close_state = rerun;
|
|
||||||
- else if (map->l_type == lt_library)
|
|
||||||
- {
|
|
||||||
- struct link_map **oldp = map->l_initfini;
|
|
||||||
- map->l_initfini = map->l_orig_initfini;
|
|
||||||
- _dl_scope_free (oldp);
|
|
||||||
- }
|
|
||||||
- }
|
|
||||||
+ if (map->l_direct_opencount == 0 && map->l_type == lt_loaded)
|
|
||||||
+ dl_close_state = rerun;
|
|
||||||
|
|
||||||
/* There are still references to this object. Do nothing more. */
|
|
||||||
if (__builtin_expect (GLRO_dl_debug_mask & DL_DEBUG_FILES, 0))
|
|
||||||
diff -Nru eglibc-2.15.17955/libc/elf/dl-deps.c eglibc-2.15.17955.rasm/libc/elf/dl-deps.c
|
|
||||||
--- eglibc-2.15.17955/libc/elf/dl-deps.c 2012-04-07 20:58:55.000000000 +0100
|
|
||||||
+++ eglibc-2.15.17955.rasm/libc/elf/dl-deps.c 2012-10-23 22:38:17.124208092 +0100
|
|
||||||
@@ -689,6 +689,7 @@
|
|
||||||
l_initfini[nlist] = NULL;
|
|
||||||
atomic_write_barrier ();
|
|
||||||
map->l_initfini = l_initfini;
|
|
||||||
+ map->l_free_initfini = 1;
|
|
||||||
if (l_reldeps != NULL)
|
|
||||||
{
|
|
||||||
atomic_write_barrier ();
|
|
||||||
@@ -697,7 +698,7 @@
|
|
||||||
_dl_scope_free (old_l_reldeps);
|
|
||||||
}
|
|
||||||
if (old_l_initfini != NULL)
|
|
||||||
- map->l_orig_initfini = old_l_initfini;
|
|
||||||
+ _dl_scope_free (old_l_initfini);
|
|
||||||
|
|
||||||
if (errno_reason)
|
|
||||||
_dl_signal_error (errno_reason == -1 ? 0 : errno_reason, objname,
|
|
||||||
diff -Nru eglibc-2.15.17955/libc/elf/dl-libc.c eglibc-2.15.17955.rasm/libc/elf/dl-libc.c
|
|
||||||
--- eglibc-2.15.17955/libc/elf/dl-libc.c 2012-04-07 20:58:55.000000000 +0100
|
|
||||||
+++ eglibc-2.15.17955.rasm/libc/elf/dl-libc.c 2012-10-23 22:39:02.388449874 +0100
|
|
||||||
@@ -270,13 +270,13 @@
|
|
||||||
|
|
||||||
for (Lmid_t ns = 0; ns < GL(dl_nns); ++ns)
|
|
||||||
{
|
|
||||||
- /* Remove all additional names added to the objects. */
|
|
||||||
for (l = GL(dl_ns)[ns]._ns_loaded; l != NULL; l = l->l_next)
|
|
||||||
{
|
|
||||||
struct libname_list *lnp = l->l_libname->next;
|
|
||||||
|
|
||||||
l->l_libname->next = NULL;
|
|
||||||
|
|
||||||
+ /* Remove all additional names added to the objects. */
|
|
||||||
while (lnp != NULL)
|
|
||||||
{
|
|
||||||
struct libname_list *old = lnp;
|
|
||||||
@@ -284,6 +284,10 @@
|
|
||||||
if (! old->dont_free)
|
|
||||||
free (old);
|
|
||||||
}
|
|
||||||
+
|
|
||||||
+ /* Free the initfini dependency list. */
|
|
||||||
+ if (l->l_free_initfini)
|
|
||||||
+ free (l->l_initfini);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (__builtin_expect (GL(dl_ns)[ns]._ns_global_scope_alloc, 0) != 0
|
|
||||||
diff -Nru eglibc-2.15.17955/libc/elf/rtld.c eglibc-2.15.17955.rasm/libc/elf/rtld.c
|
|
||||||
--- eglibc-2.15.17955/libc/elf/rtld.c 2012-04-07 20:58:55.000000000 +0100
|
|
||||||
+++ eglibc-2.15.17955.rasm/libc/elf/rtld.c 2012-10-23 22:39:30.692348894 +0100
|
|
||||||
@@ -2277,6 +2277,8 @@
|
|
||||||
lnp->dont_free = 1;
|
|
||||||
lnp = lnp->next;
|
|
||||||
}
|
|
||||||
+ /* Also allocated with the fake malloc(). */
|
|
||||||
+ l->l_free_initfini = 0;
|
|
||||||
|
|
||||||
if (l != &GL(dl_rtld_map))
|
|
||||||
_dl_relocate_object (l, l->l_scope, GLRO(dl_lazy) ? RTLD_LAZY : 0,
|
|
||||||
diff -Nru eglibc-2.15.17955/libc/include/link.h eglibc-2.15.17955.rasm/libc/include/link.h
|
|
||||||
--- eglibc-2.15.17955/libc/include/link.h 2012-04-07 20:58:55.000000000 +0100
|
|
||||||
+++ eglibc-2.15.17955.rasm/libc/include/link.h 2012-10-23 22:40:31.526900046 +0100
|
|
||||||
@@ -192,6 +192,9 @@
|
|
||||||
during LD_TRACE_PRELINKING=1
|
|
||||||
contains any DT_SYMBOLIC
|
|
||||||
libraries. */
|
|
||||||
+ unsigned int l_free_initfini:1; /* Nonzero if l_initfini can be
|
|
||||||
+ freed, ie. not allocated with
|
|
||||||
+ the dummy malloc in ld.so. */
|
|
||||||
|
|
||||||
/* Collected information about own RPATH directories. */
|
|
||||||
struct r_search_path_struct l_rpath_dirs;
|
|
||||||
@@ -240,9 +243,6 @@
|
|
||||||
|
|
||||||
/* List of object in order of the init and fini calls. */
|
|
||||||
struct link_map **l_initfini;
|
|
||||||
- /* The init and fini list generated at startup, saved when the
|
|
||||||
- object is also loaded dynamically. */
|
|
||||||
- struct link_map **l_orig_initfini;
|
|
||||||
|
|
||||||
/* List of the dependencies introduced through symbol binding. */
|
|
||||||
struct link_map_reldeps
|
|
@@ -1,12 +0,0 @@
|
|||||||
diff -Naur eglibc-2.15-16526.orig/config.make.in eglibc-2.15-16526/config.make.in
|
|
||||||
--- eglibc-2.15-16526.orig/libc/config.make.in 2012-07-24 17:49:58.000000000 -0400
|
|
||||||
+++ eglibc-2.15-16526/libc/config.make.in 2012-07-24 17:51:01.000000000 -0400
|
|
||||||
@@ -5,7 +5,7 @@
|
|
||||||
release = @RELEASE@
|
|
||||||
|
|
||||||
# Installation prefixes.
|
|
||||||
-install_root = $(DESTDIR)
|
|
||||||
+install_root ?= $(DESTDIR)
|
|
||||||
prefix = @prefix@
|
|
||||||
exec_prefix = @exec_prefix@
|
|
||||||
datadir = @datadir@
|
|
21
rules/ejre_armhf/default.bash
Normal file
21
rules/ejre_armhf/default.bash
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
version=\
|
||||||
|
(
|
||||||
|
'1.8.0_51'
|
||||||
|
)
|
||||||
|
|
||||||
|
url=\
|
||||||
|
(
|
||||||
|
"https://github.com/zepinto/glued_pkg/raw/master/ejre_armhf_$version.tar.bz2"
|
||||||
|
)
|
||||||
|
|
||||||
|
md5=\
|
||||||
|
(
|
||||||
|
'c1619ad3fe3c069cbb09064711f4f9e4'
|
||||||
|
)
|
||||||
|
|
||||||
|
target_install()
|
||||||
|
{
|
||||||
|
$cmd_mkdir "$cfg_dir_rootfs/usr/share/java" &&
|
||||||
|
$cmd_cp "../ejre$version/"* "$cfg_dir_rootfs/usr/share/java" &&
|
||||||
|
ln -rs "$cfg_dir_rootfs/usr/share/java/bin/java" "$cfg_dir_rootfs/usr/bin/java"
|
||||||
|
}
|
30
rules/emm-8p-xt-eeprom/default.bash
Normal file
30
rules/emm-8p-xt-eeprom/default.bash
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
version=\
|
||||||
|
(
|
||||||
|
'1.0.0'
|
||||||
|
)
|
||||||
|
|
||||||
|
url=\
|
||||||
|
(
|
||||||
|
"http://www.lsts.pt/glued/emm-8p-xt-eeprom-$version.tar.gz"
|
||||||
|
)
|
||||||
|
|
||||||
|
md5=\
|
||||||
|
(
|
||||||
|
'6a71321ad9ea385c9a7c9b53d930d09d'
|
||||||
|
)
|
||||||
|
|
||||||
|
if [ -d "$cfg_dir_builds/linux/linux-"* ]; then
|
||||||
|
kernel="$(echo $cfg_dir_builds/linux/linux-*)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
build()
|
||||||
|
{
|
||||||
|
$cmd_make CC=$cmd_target_cc
|
||||||
|
}
|
||||||
|
|
||||||
|
target_install()
|
||||||
|
{
|
||||||
|
for f in emm-8p-xt-eeprom-lauv; do
|
||||||
|
$cmd_target_strip "$f" -o "$cfg_dir_rootfs/usr/bin/$f"
|
||||||
|
done
|
||||||
|
}
|
@@ -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,7 +40,7 @@ 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 &&
|
||||||
|
|
||||||
|
@@ -1,9 +1,15 @@
|
|||||||
# IMU
|
# Channels:
|
||||||
/usr/bin/setescc 0 0x200 5 0 0 0
|
# * 0: Honeywell HG1700
|
||||||
/usr/bin/esccclock 0 0x5d1460 23
|
# * 1: LSTS PSIMAR
|
||||||
/usr/bin/esccsettings 0 /etc/escc/hg1700.cfg
|
|
||||||
|
|
||||||
# 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 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
|
/usr/bin/esccsettings 1 /etc/escc/psimar.cfg
|
||||||
/usr/bin/esccclock 1 0xc8920 22
|
|
||||||
|
@@ -1,3 +1,11 @@
|
|||||||
|
# Channels:
|
||||||
|
# * 0: Honeywell HG1700
|
||||||
|
|
||||||
|
# Create channels.
|
||||||
/usr/bin/setescc 0 0x200 5 0 0 0
|
/usr/bin/setescc 0 0x200 5 0 0 0
|
||||||
/usr/bin/esccclock 0 0x5d1460 23
|
|
||||||
|
# Set clocks (Hz).
|
||||||
|
"$cmd_escc_set_clock" 0 1000000
|
||||||
|
|
||||||
|
# Set registers.
|
||||||
/usr/bin/esccsettings 0 /etc/escc/hg1700.cfg
|
/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
|
||||||
|
45
rules/ethtool/default.bash
Normal file
45
rules/ethtool/default.bash
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
version=\
|
||||||
|
(
|
||||||
|
"4.2"
|
||||||
|
)
|
||||||
|
|
||||||
|
url=\
|
||||||
|
(
|
||||||
|
"https://www.kernel.org/pub/software/network/ethtool/ethtool-${version}.tar.gz"
|
||||||
|
)
|
||||||
|
|
||||||
|
md5=\
|
||||||
|
(
|
||||||
|
"5b55f7cd76e901dfc2738ac22cab96ca"
|
||||||
|
)
|
||||||
|
maintainer=\
|
||||||
|
(
|
||||||
|
'Kristian Klausen <kristian.klausen@itk.ntnu.no>'
|
||||||
|
)
|
||||||
|
|
||||||
|
configure()
|
||||||
|
{
|
||||||
|
../ethtool-${version}/configure \
|
||||||
|
--prefix="${cfg_dir_toolchain_sysroot}/usr" \
|
||||||
|
--target=$cfg_target_canonical \
|
||||||
|
--host=$cfg_target_canonical \
|
||||||
|
--config-cache
|
||||||
|
}
|
||||||
|
|
||||||
|
build()
|
||||||
|
{
|
||||||
|
$cmd_make
|
||||||
|
}
|
||||||
|
|
||||||
|
host_install()
|
||||||
|
{
|
||||||
|
$cmd_make install
|
||||||
|
}
|
||||||
|
|
||||||
|
target_install()
|
||||||
|
{
|
||||||
|
cp -a "${cfg_dir_toolchain_sysroot}/usr/sbin/ethtool" "${cfg_dir_rootfs}/usr/sbin/" &&
|
||||||
|
$cmd_target_strip "${cfg_dir_rootfs}/usr/sbin/ethtool"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@@ -1,30 +0,0 @@
|
|||||||
version=\
|
|
||||||
(
|
|
||||||
"20080329"
|
|
||||||
)
|
|
||||||
|
|
||||||
url=\
|
|
||||||
(
|
|
||||||
"http://andrzejekiert.ovh.org/software/fconfig/fconfig-$version.tar.gz"
|
|
||||||
)
|
|
||||||
|
|
||||||
md5=\
|
|
||||||
(
|
|
||||||
"dac355e9f2a0f48c414c52e2034b6346"
|
|
||||||
)
|
|
||||||
|
|
||||||
post_unpack()
|
|
||||||
{
|
|
||||||
patch -d ../fconfig -p1 < "$pkg_dir"/patches/limits.patch
|
|
||||||
}
|
|
||||||
|
|
||||||
build()
|
|
||||||
{
|
|
||||||
$cmd_make -C ../fconfig CC=$cmd_target_cc
|
|
||||||
}
|
|
||||||
|
|
||||||
target_install()
|
|
||||||
{
|
|
||||||
cp -a ../fconfig/fconfig $cfg_dir_rootfs/usr/sbin
|
|
||||||
$cmd_target_strip $cfg_dir_rootfs/usr/sbin/fconfig
|
|
||||||
}
|
|
@@ -1,24 +0,0 @@
|
|||||||
diff -uNr fconfig/fconfig.c fconfig.mod/fconfig.c
|
|
||||||
--- fconfig/fconfig.c 2010-02-05 05:01:14.000000000 +0000
|
|
||||||
+++ fconfig.mod/fconfig.c 2010-02-05 05:02:37.000000000 +0000
|
|
||||||
@@ -103,7 +103,7 @@
|
|
||||||
struct config_data *get_fconfig_handle(struct config_data *data,
|
|
||||||
uint8_t *dev, int offset, mode_t mode)
|
|
||||||
{
|
|
||||||
- uint16_t count;
|
|
||||||
+ uint32_t count;
|
|
||||||
|
|
||||||
if ((data->fd = open(dev, mode)) < 0) {
|
|
||||||
MESSAGE(VERB_LOW, "Failed to open device or file %s!\n", dev);
|
|
||||||
diff -uNr fconfig/ftypes.h fconfig.mod/ftypes.h
|
|
||||||
--- fconfig/ftypes.h 2010-02-05 05:01:14.000000000 +0000
|
|
||||||
+++ fconfig.mod/ftypes.h 2010-02-05 05:02:11.000000000 +0000
|
|
||||||
@@ -32,7 +32,7 @@
|
|
||||||
#define MAX_STRING_LENGTH 128
|
|
||||||
|
|
||||||
//CYGNUM_REDBOOT_FLASH_CONFIG_SIZE
|
|
||||||
-#define MAX_CONFIG_DATA 4096
|
|
||||||
+#define MAX_CONFIG_DATA 0x20000
|
|
||||||
|
|
||||||
/*
|
|
||||||
* RedBoot flash configuration type description.
|
|
@@ -1,6 +1,6 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
"1.0"
|
"2.6"
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
@@ -10,7 +10,7 @@ url=\
|
|||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
3ed526cea20c1bffb5a37f7730f710bd
|
'5bf6097833a3fea6a9e51b0a456c6922'
|
||||||
)
|
)
|
||||||
|
|
||||||
configure()
|
configure()
|
||||||
@@ -18,10 +18,13 @@ configure()
|
|||||||
./configure \
|
./configure \
|
||||||
--sysroot="$cfg_dir_toolchain_sysroot" \
|
--sysroot="$cfg_dir_toolchain_sysroot" \
|
||||||
--prefix="$cfg_dir_rootfs/usr" \
|
--prefix="$cfg_dir_rootfs/usr" \
|
||||||
|
--incdir="$cfg_dir_toolchain_sysroot/usr/include" \
|
||||||
|
--enable-cross-compile \
|
||||||
--cross-prefix="$cfg_target_canonical-" \
|
--cross-prefix="$cfg_target_canonical-" \
|
||||||
--target-os="linux" \
|
--target-os="linux" \
|
||||||
--enable-memalign-hack \
|
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
|
--disable-static \
|
||||||
|
--enable-pic \
|
||||||
--enable-gpl \
|
--enable-gpl \
|
||||||
--arch=$cfg_architecture
|
--arch=$cfg_architecture
|
||||||
}
|
}
|
||||||
@@ -31,8 +34,15 @@ build()
|
|||||||
$cmd_make
|
$cmd_make
|
||||||
}
|
}
|
||||||
|
|
||||||
|
host_install()
|
||||||
|
{
|
||||||
|
$cmd_make \
|
||||||
|
LIBDIR="$cfg_dir_toolchain_sysroot/usr/lib" \
|
||||||
|
install-headers
|
||||||
|
}
|
||||||
|
|
||||||
target_install()
|
target_install()
|
||||||
{
|
{
|
||||||
$cmd_make \
|
$cmd_make \
|
||||||
install
|
install-libs
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,14 @@
|
|||||||
start()
|
start()
|
||||||
{
|
{
|
||||||
|
if [ -n "$cfg_eth_ext_ip$cfg_eth_prv_ip" ]; then
|
||||||
|
while [ 1 ]; do
|
||||||
|
echo "* Waiting for eth0 device..."
|
||||||
|
ifconfig eth0 > /dev/null 2>&1
|
||||||
|
[ $? -eq 0 ] && break
|
||||||
|
usleep 250000
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -n "$cfg_bridge0_ip" ]; then
|
if [ -n "$cfg_bridge0_ip" ]; then
|
||||||
for itf in $cfg_bridge0_itfs; do
|
for itf in $cfg_bridge0_itfs; do
|
||||||
ifconfig $itf 0.0.0.0
|
ifconfig $itf 0.0.0.0
|
||||||
|
@@ -130,9 +130,11 @@ uboot_part_upgrade()
|
|||||||
echo 'done'
|
echo 'done'
|
||||||
|
|
||||||
for f in MLO u-boot.img; do
|
for f in MLO u-boot.img; do
|
||||||
echo -en "* $label: Replacing $f... "
|
if [ -f "/mnt/$f" ]; then
|
||||||
cp "$base/.glued-new/boot/$f" /mnt
|
echo -en "* $label: Replacing $f... "
|
||||||
echo 'done'
|
cp "$base/.glued-new/boot/$f" /mnt
|
||||||
|
echo 'done'
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
echo -en "* $label: unmounting bootloader partition... "
|
echo -en "* $label: unmounting bootloader partition... "
|
||||||
@@ -152,7 +154,8 @@ uboot_part_upgrade_check()
|
|||||||
# Check if board is a BeagleBone black.
|
# Check if board is a BeagleBone black.
|
||||||
dmesg | grep -i 'machine model' | grep -i beaglebone > /dev/null 2>&1
|
dmesg | grep -i 'machine model' | grep -i beaglebone > /dev/null 2>&1
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
uboot_part_upgrade 'BeagleBone Black' '/dev/mmcblk1p1'
|
dev="$(ls /sys/class/mmc_host/mmc?/mmc?:0001/block)"
|
||||||
|
uboot_part_upgrade 'BeagleBone Black' "/dev/${dev}p1"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -162,7 +165,7 @@ uboot_part_upgrade_check()
|
|||||||
uboot_part_upgrade 'IGEPv2' '/dev/mmcblk0p1'
|
uboot_part_upgrade 'IGEPv2' '/dev/mmcblk0p1'
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
grep "IGEP v2" /proc/cpuinfo > /dev/null 2>&1
|
dmesg | grep Machine | grep 'IGEP v2' > /dev/null 2>&1
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
uboot_part_upgrade 'IGEPv2' '/dev/mmcblk0p1'
|
uboot_part_upgrade 'IGEPv2' '/dev/mmcblk0p1'
|
||||||
return 0
|
return 0
|
||||||
@@ -171,6 +174,71 @@ uboot_part_upgrade_check()
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rpi2_boot_part_upgrade()
|
||||||
|
{
|
||||||
|
label="$1"
|
||||||
|
dev="$2"
|
||||||
|
|
||||||
|
echo -en "* $label: probing bootloader partition... "
|
||||||
|
if ! [ -b "$dev" ]; then
|
||||||
|
echo 'not present'
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
echo 'present'
|
||||||
|
|
||||||
|
echo -en "* $label: mounting bootloader partition... "
|
||||||
|
mount -t vfat "$dev" /mnt > /dev/null 2>&1
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "failed"
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
echo 'done'
|
||||||
|
|
||||||
|
for f in bootcode.bin cmdline.txt config.txt fixup.dat start.elf; do
|
||||||
|
if [ -f "/mnt/$f" ]; then
|
||||||
|
echo -en "* $label: Replacing $f... "
|
||||||
|
cp "$base/.glued-new/boot/$f" /mnt
|
||||||
|
echo 'done'
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
dtb="bcm2709-rpi-2-b.dtb"
|
||||||
|
if [ -f "/mnt/$dtb" ]; then
|
||||||
|
echo -en "* $label: Replacing $dtb... "
|
||||||
|
cp "$base/.glued-new/boot/board.dtb" "/mnt/$dtb"
|
||||||
|
echo 'done'
|
||||||
|
fi
|
||||||
|
|
||||||
|
kernel='kernel7.img'
|
||||||
|
if [ -f "/mnt/$kernel" ]; then
|
||||||
|
echo -en "* $label: Replacing $kernel... "
|
||||||
|
cp "$base/.glued-new/boot/kernel" "/mnt/$kernel"
|
||||||
|
echo 'done'
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo -en "* $label: unmounting bootloader partition... "
|
||||||
|
umount /mnt > /dev/null 2>&1
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo 'failed'
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
sync && sync && sync && sync
|
||||||
|
echo 'done'
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
# Check if board is a Raspberry Pi 2.
|
||||||
|
rpi2_boot_part_upgrade_check()
|
||||||
|
{
|
||||||
|
dmesg | grep Machine | grep BCM2709 > /dev/null 2>&1
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
echo "* rpi2: machine detected"
|
||||||
|
rpi2_boot_part_upgrade "rpi2" "/dev/mmcblk0p1"
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
old_move()
|
old_move()
|
||||||
{
|
{
|
||||||
echo "* Mounting rootfs read-write..."
|
echo "* Mounting rootfs read-write..."
|
||||||
@@ -219,6 +287,7 @@ start()
|
|||||||
kernel_dst || return 1
|
kernel_dst || return 1
|
||||||
new_unpack || return 1
|
new_unpack || return 1
|
||||||
uboot_part_upgrade_check || return 1
|
uboot_part_upgrade_check || return 1
|
||||||
|
rpi2_boot_part_upgrade_check || return 1
|
||||||
kernel_upgrade || return 1
|
kernel_upgrade || return 1
|
||||||
old_move || return 1
|
old_move || return 1
|
||||||
}
|
}
|
||||||
|
@@ -1,4 +0,0 @@
|
|||||||
ssh 22/tcp # The Secure Shell (SSH) Protocol
|
|
||||||
ssh 22/udp # The Secure Shell (SSH) Protocol
|
|
||||||
ntp 123/tcp # Network Time Protocol
|
|
||||||
ntp 123/udp # Network Time Protocol
|
|
43
rules/filesystem/fs/sbin/mdev-ttyusb
Executable file
43
rules/filesystem/fs/sbin/mdev-ttyusb
Executable file
@@ -0,0 +1,43 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
[ "$SUBSYSTEM" -ne "tty" ] && exit 0
|
||||||
|
if [ -z "$MAJOR" ] || [ -z "$MINOR" ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
MAJOR_HEX=$(echo $(printf %2x "$MAJOR"))
|
||||||
|
MINOR_HEX=$(echo $(printf %2x "$MINOR"))
|
||||||
|
|
||||||
|
# env | while read line; do
|
||||||
|
# logger -t "$0" "$line"
|
||||||
|
# done
|
||||||
|
|
||||||
|
case "$ACTION" in
|
||||||
|
add)
|
||||||
|
dev_root="/sys/$DEVPATH/../../../../"
|
||||||
|
itf_root="/sys/$DEVPATH/../../../"
|
||||||
|
vid="$(cat $dev_root/idVendor 2> /dev/null)"
|
||||||
|
pid="$(cat $dev_root/idProduct 2> /dev/null)"
|
||||||
|
serial="$(cat $dev_root/serial 2> /dev/null)"
|
||||||
|
[ -z "$serial" ] && serial='0'
|
||||||
|
itf="$(cat $itf_root/bInterfaceNumber 2> /dev/null)"
|
||||||
|
dev_name="${vid}_${pid}_${serial}_${itf}"
|
||||||
|
dev_file="/dev/uart/$dev_name"
|
||||||
|
logger -t "$0" "creating device: $dev_file"
|
||||||
|
mknod "$dev_file" c "$MAJOR" "$MINOR"
|
||||||
|
;;
|
||||||
|
|
||||||
|
remove)
|
||||||
|
removed_major_minor="$MAJOR_HEX:$MINOR_HEX"
|
||||||
|
|
||||||
|
for f in /dev/uart/*; do
|
||||||
|
file_major_minor="$(stat -c %t:%T "$f")"
|
||||||
|
#logger -t "$0" "$f | $removed_major_minor | $file_major_minor"
|
||||||
|
|
||||||
|
if [ "$file_major_minor" = "$removed_major_minor" ]; then
|
||||||
|
logger -t "$0" "removing device: $f"
|
||||||
|
rm -f "$f"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
;;
|
||||||
|
esac
|
@@ -14,6 +14,12 @@ fi
|
|||||||
|
|
||||||
sysinit()
|
sysinit()
|
||||||
{
|
{
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
if ! [ -c /dev/null ]; then
|
||||||
|
mount -t devtmpfs devtmpfs /dev
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -f /.reboot ]; then
|
if [ -f /.reboot ]; then
|
||||||
mount -t proc proc /proc
|
mount -t proc proc /proc
|
||||||
mount -o remount,rw /
|
mount -o remount,rw /
|
||||||
@@ -23,44 +29,45 @@ sysinit()
|
|||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Mount pseudo-filesystems.
|
# Mount pseudo-filesystems.
|
||||||
mount -t sysfs sysfs /sys &&
|
mount -t sysfs sysfs /sys &&
|
||||||
mount -t proc proc /proc &&
|
mount -t proc proc /proc &&
|
||||||
mkdir /dev/shm /dev/pts &&
|
mkdir -p /dev/shm /dev/pts &&
|
||||||
mount -t tmpfs -o size="$cfg_tmpfs_size" tmpfs /dev/shm &&
|
mount -t tmpfs -o size="$cfg_tmpfs_size" tmpfs /dev/shm &&
|
||||||
mount -t devpts devpts /dev/pts &&
|
mount -t devpts devpts /dev/pts &&
|
||||||
|
|
||||||
# Register mdev as hotplug event handler.
|
# Register mdev as hotplug event handler.
|
||||||
echo >/dev/mdev.seq &&
|
echo >/dev/mdev.seq &&
|
||||||
echo /sbin/mdev > /proc/sys/kernel/hotplug &&
|
echo /sbin/mdev > /proc/sys/kernel/hotplug &&
|
||||||
|
|
||||||
# Update ld cache, populate /dev.
|
# Update ld cache, populate /dev.
|
||||||
# mount -o remount,rw / &&
|
|
||||||
/sbin/mdev -s &&
|
/sbin/mdev -s &&
|
||||||
# /sbin/ldconfig &&
|
|
||||||
# mount -o remount,ro / &&
|
|
||||||
|
|
||||||
# Set minimum free kbytes.
|
# Set minimum free kbytes.
|
||||||
echo "$cfg_min_free_kbytes" > /proc/sys/vm/min_free_kbytes &&
|
echo "$cfg_min_free_kbytes" > /proc/sys/vm/min_free_kbytes &&
|
||||||
|
|
||||||
# Set hostname.
|
# Set hostname.
|
||||||
hostname "$cfg_hostname" &&
|
hostname "$cfg_hostname" &&
|
||||||
|
|
||||||
# Loopback device.
|
# Loopback device.
|
||||||
ifconfig lo 127.0.0.1 netmask 255.0.0.0 up &&
|
ifconfig lo 127.0.0.1 netmask 255.0.0.0 up &&
|
||||||
|
|
||||||
# Load modules.
|
# Load modules.
|
||||||
modprobe -a $cfg_modules $cfg_modules1
|
modprobe -a $cfg_modules $cfg_modules1
|
||||||
|
|
||||||
# Start services.
|
# Start services.
|
||||||
for service in $cfg_services0 $cfg_services1 $cfg_services2; do
|
for service in $cfg_services0 $cfg_services1 $cfg_services2; do
|
||||||
. /etc/rc.d/$service
|
. /etc/rc.d/$service
|
||||||
start
|
start
|
||||||
done
|
done
|
||||||
|
|
||||||
|
echo ""
|
||||||
}
|
}
|
||||||
|
|
||||||
syshalt()
|
syshalt()
|
||||||
{
|
{
|
||||||
|
echo ""
|
||||||
|
|
||||||
if [ -f /.reboot ]; then
|
if [ -f /.reboot ]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
@@ -76,7 +83,9 @@ syshalt()
|
|||||||
stop
|
stop
|
||||||
done
|
done
|
||||||
|
|
||||||
umount -r /dev/pts /dev/shm /sys / /proc
|
umount -r /dev/pts /dev/shm /sys / /proc > /dev/null 2>&1
|
||||||
|
|
||||||
|
echo ""
|
||||||
}
|
}
|
||||||
|
|
||||||
service()
|
service()
|
||||||
|
@@ -4,7 +4,7 @@ config='/etc/config'
|
|||||||
|
|
||||||
if [ -f "$config" ]; then
|
if [ -f "$config" ]; then
|
||||||
source "$config"
|
source "$config"
|
||||||
echo "$cfg_glued_version"
|
echo "$cfg_glued_version ($cfg_glued_git_version)"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@@ -11,7 +11,7 @@ maintainer=\
|
|||||||
target_install()
|
target_install()
|
||||||
{
|
{
|
||||||
$cmd_mkdir \
|
$cmd_mkdir \
|
||||||
"$cfg_dir_rootfs"/{dev,boot,proc,sys,mnt,etc,bin,sbin,opt,var,root} \
|
"$cfg_dir_rootfs"/{dev,boot,proc,sys,etc,bin,sbin,opt,var,mnt,root} \
|
||||||
"$cfg_dir_rootfs"/usr/{bin,sbin,lib,lib/firmware} \
|
"$cfg_dir_rootfs"/usr/{bin,sbin,lib,lib/firmware} \
|
||||||
"$cfg_dir_rootfs"/opt \
|
"$cfg_dir_rootfs"/opt \
|
||||||
"$cfg_dir_rootfs"/dev/{shm,pts} \
|
"$cfg_dir_rootfs"/dev/{shm,pts} \
|
||||||
@@ -23,6 +23,7 @@ target_install()
|
|||||||
ln -fs ../tmp "$cfg_dir_rootfs"/var/run &&
|
ln -fs ../tmp "$cfg_dir_rootfs"/var/run &&
|
||||||
ln -fs ../tmp "$cfg_dir_rootfs"/var/log &&
|
ln -fs ../tmp "$cfg_dir_rootfs"/var/log &&
|
||||||
ln -fs ../tmp "$cfg_dir_rootfs"/var/lock &&
|
ln -fs ../tmp "$cfg_dir_rootfs"/var/lock &&
|
||||||
|
ln -fs ../tmp "$cfg_dir_rootfs"/var/lib &&
|
||||||
ln -fs /sbin/init "$cfg_dir_rootfs"/init &&
|
ln -fs /sbin/init "$cfg_dir_rootfs"/init &&
|
||||||
ln -fs /tmp/resolv.conf "$cfg_dir_rootfs"/etc/resolv.conf &&
|
ln -fs /tmp/resolv.conf "$cfg_dir_rootfs"/etc/resolv.conf &&
|
||||||
ln -fs /proc/self/mounts "$cfg_dir_rootfs"/etc/mtab &&
|
ln -fs /proc/self/mounts "$cfg_dir_rootfs"/etc/mtab &&
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'4.8.2'
|
'4.9.3'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
@@ -10,7 +10,7 @@ url=\
|
|||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'a3d7d63b9cb6b6ea049469a0c4a43c9d'
|
'6f831b4d251872736e8e9cc09746f327'
|
||||||
)
|
)
|
||||||
|
|
||||||
build_dir=$pkg_var
|
build_dir=$pkg_var
|
||||||
|
@@ -2,7 +2,7 @@ source $pkg_common
|
|||||||
|
|
||||||
requires=\
|
requires=\
|
||||||
(
|
(
|
||||||
'eglibc/cross'
|
'glibc/cross'
|
||||||
)
|
)
|
||||||
|
|
||||||
configure()
|
configure()
|
||||||
@@ -11,6 +11,7 @@ configure()
|
|||||||
"../gcc-$version/configure" $cfg_target_gcc_configure_flags \
|
"../gcc-$version/configure" $cfg_target_gcc_configure_flags \
|
||||||
--target="$cfg_target_canonical" \
|
--target="$cfg_target_canonical" \
|
||||||
--prefix="$cfg_dir_toolchain" \
|
--prefix="$cfg_dir_toolchain" \
|
||||||
|
--with-build-sysroot="$cfg_dir_toolchain_sysroot" \
|
||||||
--with-sysroot="$cfg_dir_toolchain_sysroot" \
|
--with-sysroot="$cfg_dir_toolchain_sysroot" \
|
||||||
--with-mpfr="$cfg_dir_toolchain" \
|
--with-mpfr="$cfg_dir_toolchain" \
|
||||||
--with-gmp="$cfg_dir_toolchain" \
|
--with-gmp="$cfg_dir_toolchain" \
|
||||||
@@ -31,14 +32,19 @@ build()
|
|||||||
|
|
||||||
host_install()
|
host_install()
|
||||||
{
|
{
|
||||||
|
libdir=lib
|
||||||
|
if [ -d "$cfg_dir_toolchain/$cfg_target_canonical/lib64" ]; then
|
||||||
|
libdir=lib64
|
||||||
|
fi
|
||||||
|
|
||||||
$cmd_make install &&
|
$cmd_make install &&
|
||||||
|
|
||||||
cp -d \
|
cp -d \
|
||||||
"$cfg_dir_toolchain/$cfg_target_canonical/lib/"libgcc_s.so* \
|
"$cfg_dir_toolchain/$cfg_target_canonical/$libdir"/libgcc_s.so* \
|
||||||
"$cfg_dir_toolchain_sysroot/lib" &&
|
"$cfg_dir_toolchain_sysroot/lib" &&
|
||||||
cp -d \
|
cp -d \
|
||||||
"$cfg_dir_toolchain/$cfg_target_canonical/lib/"libstdc++.so* \
|
"$cfg_dir_toolchain/$cfg_target_canonical/$libdir"/libstdc++.so* \
|
||||||
"$cfg_dir_toolchain_sysroot/usr/lib"
|
"$cfg_dir_toolchain_sysroot/usr/lib"
|
||||||
}
|
}
|
||||||
|
|
||||||
target_install()
|
target_install()
|
||||||
|
@@ -2,7 +2,7 @@ source $pkg_common
|
|||||||
|
|
||||||
requires=\
|
requires=\
|
||||||
(
|
(
|
||||||
'eglibc/headers'
|
'glibc/headers'
|
||||||
)
|
)
|
||||||
|
|
||||||
configure()
|
configure()
|
||||||
@@ -10,6 +10,7 @@ configure()
|
|||||||
MAKEINFO='/bin/true' \
|
MAKEINFO='/bin/true' \
|
||||||
"../gcc-$version/configure" $cfg_target_gcc_configure_flags \
|
"../gcc-$version/configure" $cfg_target_gcc_configure_flags \
|
||||||
--prefix="$cfg_dir_toolchain" \
|
--prefix="$cfg_dir_toolchain" \
|
||||||
|
--with-build-sysroot="$cfg_dir_toolchain_sysroot" \
|
||||||
--with-sysroot="$cfg_dir_toolchain_sysroot" \
|
--with-sysroot="$cfg_dir_toolchain_sysroot" \
|
||||||
--target="$cfg_target_canonical" \
|
--target="$cfg_target_canonical" \
|
||||||
--host="$cfg_host_canonical" \
|
--host="$cfg_host_canonical" \
|
||||||
|
@@ -1,14 +1,14 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'7.7.1'
|
'7.8.2'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
(
|
(
|
||||||
"http://ftp.gnu.org/gnu/gdb/gdb-$version.tar.bz2"
|
"http://ftp.gnu.org/gnu/gdb/gdb-$version.tar.xz"
|
||||||
)
|
)
|
||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'77b20b515e7c25f032cb9732a66620fe'
|
'a80cf252ed2e775d4e4533341bbf2459'
|
||||||
)
|
)
|
||||||
|
@@ -8,13 +8,14 @@ requires=\
|
|||||||
configure()
|
configure()
|
||||||
{
|
{
|
||||||
cd "$pkg_build_dir" &&
|
cd "$pkg_build_dir" &&
|
||||||
CFLAGS=-I"$cfg_dir_toolchain/include" \
|
LDFLAGS="-static -L$cfg_dir_toolchain/lib" \
|
||||||
LDFLAGS=-L"$cfg_dir_toolchain/lib" \
|
CFLAGS="-I$cfg_dir_toolchain/include" \
|
||||||
"../gdb-$version/configure" \
|
"../gdb-$version/configure" \
|
||||||
--prefix="$cfg_dir_toolchain" \
|
--prefix="$cfg_dir_toolchain" \
|
||||||
--target="$cfg_target_canonical" \
|
--target="$cfg_target_canonical" \
|
||||||
--host="$cfg_host_canonical" \
|
--host="$cfg_host_canonical" \
|
||||||
--build="$cfg_host_canonical" \
|
--build="$cfg_host_canonical" \
|
||||||
|
--with-build-sysroot="$cfg_dir_toolchain_sysroot" \
|
||||||
--with-sysroot="$cfg_dir_toolchain_sysroot" \
|
--with-sysroot="$cfg_dir_toolchain_sysroot" \
|
||||||
--disable-nls \
|
--disable-nls \
|
||||||
--disable-tui
|
--disable-tui
|
||||||
@@ -28,5 +29,4 @@ build()
|
|||||||
host_install()
|
host_install()
|
||||||
{
|
{
|
||||||
$cmd_make -C "$pkg_build_dir" install
|
$cmd_make -C "$pkg_build_dir" install
|
||||||
rm -rf "$cfg_dir_toolchain"/{info,man}
|
|
||||||
}
|
}
|
||||||
|
@@ -1,16 +1,16 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'2.15.17955'
|
'2.22'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
(
|
(
|
||||||
"http://www.lsts.pt/glued/eglibc-$version.tar.bz2"
|
"http://ftp.gnu.org/pub/gnu/glibc/glibc-$version.tar.xz"
|
||||||
)
|
)
|
||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'0694f304863e3c97562857388137a83e'
|
'e51e02bf552a0a1fbbdc948fb2f5e83c'
|
||||||
)
|
)
|
||||||
|
|
||||||
maintainer=\
|
maintainer=\
|
||||||
@@ -22,11 +22,9 @@ build_dir=$pkg_var
|
|||||||
|
|
||||||
post_unpack()
|
post_unpack()
|
||||||
{
|
{
|
||||||
ln -fs ../ports ../eglibc-$version/libc/ports
|
|
||||||
|
|
||||||
patches=$(ls "$pkg_dir"/patches/*.patch)
|
patches=$(ls "$pkg_dir"/patches/*.patch)
|
||||||
|
|
||||||
cd ../eglibc-$version
|
cd ../glibc-$version
|
||||||
if [ -n "$patches" ]; then
|
if [ -n "$patches" ]; then
|
||||||
cat $patches | patch -p1
|
cat $patches | patch -p1
|
||||||
fi
|
fi
|
||||||
@@ -41,17 +39,24 @@ configure()
|
|||||||
CC="$cfg_dir_toolchain/bin/$cfg_target_canonical-gcc" \
|
CC="$cfg_dir_toolchain/bin/$cfg_target_canonical-gcc" \
|
||||||
CXX="$cfg_dir_toolchain/bin/$cfg_target_canonical-g++" \
|
CXX="$cfg_dir_toolchain/bin/$cfg_target_canonical-g++" \
|
||||||
CFLAGS=$cfg_target_gcc_flags \
|
CFLAGS=$cfg_target_gcc_flags \
|
||||||
"../eglibc-$version/libc/configure" \
|
"../glibc-$version/configure" \
|
||||||
$cfg_target_eglibc_configure_flags \
|
$cfg_target_glibc_configure_flags \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--with-headers="$cfg_dir_toolchain_sysroot/usr/include" \
|
--with-headers="$cfg_dir_toolchain_sysroot/usr/include" \
|
||||||
|
--with-build-sysroot="$cfg_dir_toolchain_sysroot" \
|
||||||
|
--with-sysroot="$cfg_dir_toolchain_sysroot" \
|
||||||
--build="$cfg_host_canonical" \
|
--build="$cfg_host_canonical" \
|
||||||
--host="$cfg_target_canonical" \
|
--host="$cfg_target_canonical" \
|
||||||
|
--disable-multilib \
|
||||||
--disable-profile \
|
--disable-profile \
|
||||||
--without-gd \
|
--without-gd \
|
||||||
--without-cvs \
|
--without-cvs \
|
||||||
--enable-add-ons \
|
--enable-add-ons \
|
||||||
--with-tls \
|
--with-tls \
|
||||||
--enable-kernel=2.6.32 \
|
--enable-kernel=2.6.32 \
|
||||||
--disable-nls
|
--disable-nls \
|
||||||
|
--enable-static-nss \
|
||||||
|
--disable-werror \
|
||||||
|
--enable-obsolete-rpc \
|
||||||
|
--enable-bind-now
|
||||||
}
|
}
|
@@ -7,13 +7,12 @@ requires=\
|
|||||||
|
|
||||||
build()
|
build()
|
||||||
{
|
{
|
||||||
$cmd_make -j1
|
$cmd_make
|
||||||
}
|
}
|
||||||
|
|
||||||
host_install()
|
host_install()
|
||||||
{
|
{
|
||||||
$cmd_make install_root="$cfg_dir_toolchain_sysroot" -j1 install &&
|
$cmd_make install_root="$cfg_dir_toolchain_sysroot" install
|
||||||
cp "$pkg_dir"/files/timepps.h "$cfg_dir_toolchain_sysroot/usr/include"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
target_install()
|
target_install()
|
@@ -21,4 +21,6 @@ EOF
|
|||||||
$cmd_make csu/subdir_lib &&
|
$cmd_make csu/subdir_lib &&
|
||||||
cp csu/crt1.o csu/crti.o csu/crtn.o "$cfg_dir_toolchain_sysroot/usr/lib" &&
|
cp csu/crt1.o csu/crti.o csu/crtn.o "$cfg_dir_toolchain_sysroot/usr/lib" &&
|
||||||
$cmd_target_cc -nostdlib -nostartfiles -shared -x c /dev/null -o "$cfg_dir_toolchain_sysroot/usr/lib/libc.so"
|
$cmd_target_cc -nostdlib -nostartfiles -shared -x c /dev/null -o "$cfg_dir_toolchain_sysroot/usr/lib/libc.so"
|
||||||
|
$cmd_mkdir "$cfg_dir_toolchain_sysroot/usr/include/gnu" &&
|
||||||
|
touch "$cfg_dir_toolchain_sysroot/usr/include/gnu/stubs.h"
|
||||||
}
|
}
|
@@ -1,27 +1,27 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
"5.0.4"
|
'5.0.4'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
(
|
(
|
||||||
"ftp://ftp.gmplib.org/pub/gmp-$version/gmp-$version.tar.bz2"
|
"http://ftp.gnu.org/pub/gnu/gmp/gmp-$version.tar.bz2"
|
||||||
)
|
)
|
||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
"50c3edcb7c9438e04377ee9a1a061b79"
|
'50c3edcb7c9438e04377ee9a1a061b79'
|
||||||
)
|
)
|
||||||
|
|
||||||
maintainer=\
|
maintainer=\
|
||||||
(
|
(
|
||||||
"Ricardo Martins <rasm@fe.up.pt>"
|
'Ricardo Martins <rasm@oceanscan-mst.com>'
|
||||||
)
|
)
|
||||||
|
|
||||||
configure()
|
configure()
|
||||||
{
|
{
|
||||||
./configure \
|
./configure \
|
||||||
--prefix="${cfg_dir_toolchain}" \
|
--prefix="$cfg_dir_toolchain" \
|
||||||
--disable-shared \
|
--disable-shared \
|
||||||
--enable-static
|
--enable-static
|
||||||
}
|
}
|
||||||
|
34
rules/gperf/host.bash
Normal file
34
rules/gperf/host.bash
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
version=\
|
||||||
|
(
|
||||||
|
'3.0.4'
|
||||||
|
)
|
||||||
|
url=\
|
||||||
|
(
|
||||||
|
"http://ftp.gnu.org/pub/gnu/gperf/gperf-$version.tar.gz"
|
||||||
|
)
|
||||||
|
|
||||||
|
md5=\
|
||||||
|
(
|
||||||
|
'c1f1db32fb6598d6a93e6e88796a8632'
|
||||||
|
)
|
||||||
|
|
||||||
|
maintainer=\
|
||||||
|
(
|
||||||
|
'Ricardo Martins <rasm@oceanscan-mst.com>'
|
||||||
|
)
|
||||||
|
|
||||||
|
configure()
|
||||||
|
{
|
||||||
|
"../gperf-$version/configure" \
|
||||||
|
--prefix="$cfg_dir_toolchain"
|
||||||
|
}
|
||||||
|
|
||||||
|
build()
|
||||||
|
{
|
||||||
|
$cmd_make
|
||||||
|
}
|
||||||
|
|
||||||
|
host_install()
|
||||||
|
{
|
||||||
|
$cmd_make install
|
||||||
|
}
|
66
rules/hidapi/default.bash
Normal file
66
rules/hidapi/default.bash
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
version=\
|
||||||
|
(
|
||||||
|
'0.8.0-rc1'
|
||||||
|
)
|
||||||
|
|
||||||
|
url=\
|
||||||
|
(
|
||||||
|
"https://github.com/signal11/hidapi/archive/hidapi-$version.tar.gz"
|
||||||
|
)
|
||||||
|
|
||||||
|
md5=\
|
||||||
|
(
|
||||||
|
'069f9dd746edc37b6b6d0e3656f47199'
|
||||||
|
)
|
||||||
|
|
||||||
|
maintainer=\
|
||||||
|
(
|
||||||
|
'Ricardo Martins <rasm@oceanscan-mst.com>'
|
||||||
|
)
|
||||||
|
|
||||||
|
requires=\
|
||||||
|
(
|
||||||
|
'libtool/host'
|
||||||
|
'libusb/default'
|
||||||
|
'systemd/default'
|
||||||
|
)
|
||||||
|
|
||||||
|
post_unpack()
|
||||||
|
{
|
||||||
|
patches=$(ls "$pkg_dir/patches/"*.patch)
|
||||||
|
if [ -n "$patches" ]; then
|
||||||
|
cat $patches | patch -p1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
configure()
|
||||||
|
{
|
||||||
|
cd "../hidapi-hidapi-$version" &&
|
||||||
|
./bootstrap
|
||||||
|
|
||||||
|
./configure \
|
||||||
|
--prefix="$cfg_dir_toolchain_sysroot/usr" \
|
||||||
|
--target="$cfg_target_canonical" \
|
||||||
|
--host="$cfg_target_canonical" \
|
||||||
|
--build="$cfg_host_canonical"
|
||||||
|
}
|
||||||
|
|
||||||
|
build()
|
||||||
|
{
|
||||||
|
$cmd_make -C "../hidapi-hidapi-$version"
|
||||||
|
}
|
||||||
|
|
||||||
|
host_install()
|
||||||
|
{
|
||||||
|
$cmd_make -C "../hidapi-hidapi-$version" install
|
||||||
|
}
|
||||||
|
|
||||||
|
target_install()
|
||||||
|
{
|
||||||
|
$cmd_cp \
|
||||||
|
"$cfg_dir_toolchain_sysroot/usr/lib/libhidapi"*.so* \
|
||||||
|
"$cfg_dir_rootfs/lib" &&
|
||||||
|
|
||||||
|
$cmd_target_strip \
|
||||||
|
"$cfg_dir_rootfs/lib/libhidapi"*.so*
|
||||||
|
}
|
@@ -1,16 +1,18 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'3.0.2'
|
'3.1.0'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
git_tag="$(echo $version | sed 's/\./-/g')"
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
(
|
(
|
||||||
"http://dl.lm-sensors.org/i2c-tools/releases/i2c-tools-$version.tar.bz2"
|
"https://github.com/groeck/i2c-tools/archive/V$git_tag.tar.gz"
|
||||||
)
|
)
|
||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'b546345ac19db56719dea6b8199f11e0'
|
'7ed75853fe3c3dfd2d0d70d5831abfef'
|
||||||
)
|
)
|
||||||
|
|
||||||
maintainer=\
|
maintainer=\
|
||||||
@@ -20,12 +22,12 @@ maintainer=\
|
|||||||
|
|
||||||
build()
|
build()
|
||||||
{
|
{
|
||||||
$cmd_make CC="$cmd_target_cc"
|
$cmd_make -C "../i2c-tools-$git_tag" CC="$cmd_target_cc"
|
||||||
}
|
}
|
||||||
|
|
||||||
target_install()
|
target_install()
|
||||||
{
|
{
|
||||||
$cmd_target_strip tools/i2cdetect -o "$cfg_dir_rootfs/usr/bin/i2cdetect" &&
|
for t in i2cdetect i2cget i2cset; do
|
||||||
$cmd_target_strip tools/i2cget -o "$cfg_dir_rootfs/usr/bin/i2cget" &&
|
$cmd_target_strip "../i2c-tools-$git_tag/tools/$t" -o "$cfg_dir_rootfs/usr/bin/$t"
|
||||||
$cmd_target_strip tools/i2cset -o "$cfg_dir_rootfs/usr/bin/i2cset"
|
done
|
||||||
}
|
}
|
||||||
|
29
rules/iana-etc/default.bash
Normal file
29
rules/iana-etc/default.bash
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
version=\
|
||||||
|
(
|
||||||
|
'2.30'
|
||||||
|
)
|
||||||
|
|
||||||
|
url=\
|
||||||
|
(
|
||||||
|
"http://sethwklein.net/iana-etc-$version.tar.bz2"
|
||||||
|
)
|
||||||
|
|
||||||
|
md5=\
|
||||||
|
(
|
||||||
|
'3ba3afb1d1b261383d247f46cb135ee8'
|
||||||
|
)
|
||||||
|
|
||||||
|
maintainer=\
|
||||||
|
(
|
||||||
|
'Ricardo Martins <rasm@fe.up.pt>'
|
||||||
|
)
|
||||||
|
|
||||||
|
build()
|
||||||
|
{
|
||||||
|
$cmd_make STRIP=yes
|
||||||
|
}
|
||||||
|
|
||||||
|
target_install()
|
||||||
|
{
|
||||||
|
$cmd_make DESTDIR="$cfg_dir_rootfs" install
|
||||||
|
}
|
37
rules/isl/host.bash
Normal file
37
rules/isl/host.bash
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
version=\
|
||||||
|
(
|
||||||
|
'0.12.2'
|
||||||
|
)
|
||||||
|
|
||||||
|
url=\
|
||||||
|
(
|
||||||
|
"ftp://gcc.gnu.org/pub/gcc/infrastructure/isl-$version.tar.bz2"
|
||||||
|
)
|
||||||
|
|
||||||
|
md5=\
|
||||||
|
(
|
||||||
|
'e039bfcfb6c2ab039b8ee69bf883e824'
|
||||||
|
)
|
||||||
|
|
||||||
|
maintainer=\
|
||||||
|
(
|
||||||
|
'Ricardo Martins <rasm@oceanscan-mst.com>'
|
||||||
|
)
|
||||||
|
|
||||||
|
configure()
|
||||||
|
{
|
||||||
|
"../isl-$version/configure" \
|
||||||
|
--prefix="$cfg_dir_toolchain" \
|
||||||
|
--disable-shared \
|
||||||
|
--enable-static
|
||||||
|
}
|
||||||
|
|
||||||
|
build()
|
||||||
|
{
|
||||||
|
$cmd_make
|
||||||
|
}
|
||||||
|
|
||||||
|
host_install()
|
||||||
|
{
|
||||||
|
$cmd_make install-strip
|
||||||
|
}
|
45
rules/jansson/default.bash
Normal file
45
rules/jansson/default.bash
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
version=\
|
||||||
|
(
|
||||||
|
"2.7"
|
||||||
|
)
|
||||||
|
|
||||||
|
url=\
|
||||||
|
(
|
||||||
|
"http://www.digip.org/jansson/releases/jansson-2.7.tar.gz"
|
||||||
|
)
|
||||||
|
|
||||||
|
md5=\
|
||||||
|
(
|
||||||
|
"3a106a465bbb77637550b422f5b262ef"
|
||||||
|
)
|
||||||
|
|
||||||
|
configure()
|
||||||
|
{
|
||||||
|
./configure \
|
||||||
|
--prefix="${cfg_dir_toolchain_sysroot}/usr" \
|
||||||
|
--target="$cfg_target_canonical" \
|
||||||
|
--host="$cfg_target_canonical" \
|
||||||
|
--build="$cfg_host_canonical"
|
||||||
|
}
|
||||||
|
|
||||||
|
build()
|
||||||
|
{
|
||||||
|
$cmd_make
|
||||||
|
}
|
||||||
|
|
||||||
|
host_install()
|
||||||
|
{
|
||||||
|
$cmd_make install
|
||||||
|
}
|
||||||
|
|
||||||
|
target_install()
|
||||||
|
{
|
||||||
|
# Libs:
|
||||||
|
for f in "$cfg_dir_toolchain_sysroot/usr/lib/"libjansson.*; do
|
||||||
|
if [ -L "$f" ]; then
|
||||||
|
$cmd_cp "$f" "$cfg_dir_rootfs/usr/lib"
|
||||||
|
else
|
||||||
|
$cmd_target_strip -v "$f" -o "$cfg_dir_rootfs/usr/lib/$(basename "$f")"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
19
rules/kmod/common.bash
Normal file
19
rules/kmod/common.bash
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
version=\
|
||||||
|
(
|
||||||
|
'21'
|
||||||
|
)
|
||||||
|
|
||||||
|
url=\
|
||||||
|
(
|
||||||
|
"http://ftp.kernel.org/pub/linux/utils/kernel/kmod/kmod-$version.tar.xz"
|
||||||
|
)
|
||||||
|
|
||||||
|
md5=\
|
||||||
|
(
|
||||||
|
'ee246fab2e1cba9fbdcad6a86ec31531'
|
||||||
|
)
|
||||||
|
|
||||||
|
maintainer=\
|
||||||
|
(
|
||||||
|
'Ricardo Martins <rasm@oceanscan-mst.com>'
|
||||||
|
)
|
30
rules/kmod/default.bash
Normal file
30
rules/kmod/default.bash
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
. "$pkg_common"
|
||||||
|
|
||||||
|
configure()
|
||||||
|
{
|
||||||
|
make distclean
|
||||||
|
|
||||||
|
./configure \
|
||||||
|
--prefix="$cfg_dir_toolchain_sysroot/usr" \
|
||||||
|
--target="$cfg_target_canonical" \
|
||||||
|
--host="$cfg_target_canonical" \
|
||||||
|
--build="$cfg_host_canonical" \
|
||||||
|
--disable-static \
|
||||||
|
--enable-shared
|
||||||
|
}
|
||||||
|
|
||||||
|
build()
|
||||||
|
{
|
||||||
|
$cmd_make
|
||||||
|
}
|
||||||
|
|
||||||
|
host_install()
|
||||||
|
{
|
||||||
|
$cmd_make install
|
||||||
|
}
|
||||||
|
|
||||||
|
target_install()
|
||||||
|
{
|
||||||
|
cp -a "$cfg_dir_toolchain_sysroot/usr/lib/libkmod"*.so* "$cfg_dir_rootfs/lib" &&
|
||||||
|
$cmd_target_strip "$cfg_dir_rootfs/lib/libkmod"*.so*
|
||||||
|
}
|
@@ -1,25 +1,9 @@
|
|||||||
version=\
|
. "$pkg_common"
|
||||||
(
|
|
||||||
'9'
|
|
||||||
)
|
|
||||||
|
|
||||||
url=\
|
|
||||||
(
|
|
||||||
"ftp://ftp.kernel.org/pub/linux/utils/kernel/kmod/kmod-$version.tar.bz2"
|
|
||||||
)
|
|
||||||
|
|
||||||
md5=\
|
|
||||||
(
|
|
||||||
'29bd0fec976c1664a4abc83f1c7e57ed'
|
|
||||||
)
|
|
||||||
|
|
||||||
maintainer=\
|
|
||||||
(
|
|
||||||
'Ricardo Martins <rasm@fe.up.pt>'
|
|
||||||
)
|
|
||||||
|
|
||||||
configure()
|
configure()
|
||||||
{
|
{
|
||||||
|
make distclean
|
||||||
|
|
||||||
./configure \
|
./configure \
|
||||||
--prefix="$cfg_dir_toolchain"
|
--prefix="$cfg_dir_toolchain"
|
||||||
}
|
}
|
||||||
|
68
rules/libcap/default.bash
Normal file
68
rules/libcap/default.bash
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
version=\
|
||||||
|
(
|
||||||
|
'2.24'
|
||||||
|
)
|
||||||
|
|
||||||
|
url=\
|
||||||
|
(
|
||||||
|
"https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-$version.tar.xz"
|
||||||
|
)
|
||||||
|
|
||||||
|
md5=\
|
||||||
|
(
|
||||||
|
'd43ab9f680435a7fff35b4ace8d45b80'
|
||||||
|
)
|
||||||
|
|
||||||
|
maintainer=\
|
||||||
|
(
|
||||||
|
'Ricardo Martins <rasm@oceanscan-mst.com>'
|
||||||
|
)
|
||||||
|
|
||||||
|
post_unpack()
|
||||||
|
{
|
||||||
|
patches=$(ls "$pkg_dir"/patches/*.patch)
|
||||||
|
|
||||||
|
cd ../libcap-$version
|
||||||
|
if [ -n "$patches" ]; then
|
||||||
|
cat $patches | patch -p1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
build()
|
||||||
|
{
|
||||||
|
$cmd_make \
|
||||||
|
-C "../libcap-$version/libcap" \
|
||||||
|
CC="$cmd_target_cc" \
|
||||||
|
LIBATTR=no
|
||||||
|
}
|
||||||
|
|
||||||
|
host_install()
|
||||||
|
{
|
||||||
|
$cmd_make \
|
||||||
|
-C "../libcap-$version/libcap" \
|
||||||
|
LIBATTR=no \
|
||||||
|
prefix="$cfg_dir_toolchain_sysroot/usr" \
|
||||||
|
DESTDIR="$cfg_dir_toolchain_sysroot/usr" \
|
||||||
|
inc_prefix="$cfg_dir_toolchain_sysroot/usr" \
|
||||||
|
INCDIR="$cfg_dir_toolchain_sysroot/usr/include" \
|
||||||
|
lib_prefix="$cfg_dir_toolchain_sysroot/usr" \
|
||||||
|
LIBDIR="$cfg_dir_toolchain_sysroot/usr/lib" \
|
||||||
|
PKGCONFIGDIR="$cfg_dir_toolchain_sysroot/usr/lib/pkgconfig" \
|
||||||
|
install &&
|
||||||
|
|
||||||
|
deps="$(grep Libs.private "$cfg_dir_toolchain_sysroot/usr/lib/pkgconfig/libcap.pc" | cut -f2- -d:)"
|
||||||
|
|
||||||
|
sed -e "s,@prefix@,$cfg_dir_toolchain_sysroot/usr," \
|
||||||
|
-e 's,@exec_prefix@,${prefix}/bin,' \
|
||||||
|
-e 's,@libdir@,${prefix}/lib,' \
|
||||||
|
-e 's,@includedir@,${prefix}/include,' \
|
||||||
|
-e "s,@VERSION@,$version," \
|
||||||
|
-e "s,@deps@,$deps," \
|
||||||
|
"../libcap-$version/libcap/libcap.pc.in" > "$cfg_dir_toolchain_sysroot/usr/lib/pkgconfig/libcap.pc"
|
||||||
|
}
|
||||||
|
|
||||||
|
target_install()
|
||||||
|
{
|
||||||
|
cp -a "$cfg_dir_toolchain_sysroot/usr/lib/libcap"*.so* "$cfg_dir_rootfs/lib" &&
|
||||||
|
$cmd_target_strip "$cfg_dir_rootfs/lib/libcap"*.so*
|
||||||
|
}
|
12
rules/libcap/patches/00-makenames-host-cc.patch
Normal file
12
rules/libcap/patches/00-makenames-host-cc.patch
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
diff -Nru libcap-2.24.rasm/libcap/Makefile libcap-2.24/libcap/Makefile
|
||||||
|
--- libcap-2.24.rasm/libcap/Makefile 2014-01-06 00:55:03.000000000 +0000
|
||||||
|
+++ libcap-2.24/libcap/Makefile 2015-09-28 15:42:42.298857032 +0100
|
||||||
|
@@ -43,7 +43,7 @@
|
||||||
|
$< >$@
|
||||||
|
|
||||||
|
_makenames: _makenames.c cap_names.list.h
|
||||||
|
- $(BUILD_CC) $(BUILD_CFLAGS) $< -o $@
|
||||||
|
+ gcc $< -o $@
|
||||||
|
|
||||||
|
cap_names.h: _makenames
|
||||||
|
./_makenames > cap_names.h
|
36
rules/libftd2xx/default.bash
Normal file
36
rules/libftd2xx/default.bash
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
version=\
|
||||||
|
(
|
||||||
|
'1.3.6'
|
||||||
|
)
|
||||||
|
|
||||||
|
url=\
|
||||||
|
(
|
||||||
|
"http://www.ftdichip.com/Drivers/D2XX/Linux/libftd2xx-arm-v7-hf-1.3.6.tgz"
|
||||||
|
)
|
||||||
|
|
||||||
|
md5=\
|
||||||
|
(
|
||||||
|
'8310dc499386dc5151c035222883e6fc'
|
||||||
|
)
|
||||||
|
|
||||||
|
maintainer=\
|
||||||
|
(
|
||||||
|
'Ricardo Martins <rasm@oceanscan-mst.com>'
|
||||||
|
)
|
||||||
|
|
||||||
|
host_install()
|
||||||
|
{
|
||||||
|
$cmd_cp \
|
||||||
|
../release/{ftd2xx.h,WinTypes.h} \
|
||||||
|
"$cfg_dir_toolchain_sysroot/usr/include" &&
|
||||||
|
$cmd_cp \
|
||||||
|
../release/build/libftd2xx.* \
|
||||||
|
"$cfg_dir_toolchain_sysroot/usr/lib"
|
||||||
|
}
|
||||||
|
|
||||||
|
target_install()
|
||||||
|
{
|
||||||
|
for f in "$cfg_dir_toolchain_sysroot/usr/lib/libftd2xx"*so*; do
|
||||||
|
$cmd_target_strip "$f" -o "$cfg_dir_rootfs/lib/$(basename "$f")"
|
||||||
|
done
|
||||||
|
}
|
66
rules/libftdi1/default.bash
Normal file
66
rules/libftdi1/default.bash
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
version=\
|
||||||
|
(
|
||||||
|
'1.2'
|
||||||
|
)
|
||||||
|
|
||||||
|
url=\
|
||||||
|
(
|
||||||
|
"http://www.intra2net.com/en/developer/libftdi/download/libftdi1-$version.tar.bz2"
|
||||||
|
)
|
||||||
|
|
||||||
|
md5=\
|
||||||
|
(
|
||||||
|
'89dff802d89c4c0d55d8b4665fd52d0b'
|
||||||
|
)
|
||||||
|
|
||||||
|
maintainer=\
|
||||||
|
(
|
||||||
|
'Ricardo Martins <rasm@oceanscan-mst.com>'
|
||||||
|
)
|
||||||
|
|
||||||
|
requires=\
|
||||||
|
(
|
||||||
|
'cmake/host'
|
||||||
|
'libusb/default'
|
||||||
|
'confuse/default'
|
||||||
|
)
|
||||||
|
|
||||||
|
configure()
|
||||||
|
{
|
||||||
|
export PKG_CONFIG="${cfg_dir_toolchain}/bin/pkg-config"
|
||||||
|
export PKG_CONFIG_PATH="$cfg_dir_toolchain_sysroot/usr/lib/pkgconfig"
|
||||||
|
|
||||||
|
rm -rf build && mkdir build && cd build
|
||||||
|
|
||||||
|
echo "set(CMAKE_SYSTEM_NAME Linux)" > Toolchain.cmake
|
||||||
|
echo "set(CMAKE_C_COMPILER $cmd_target_cc)" >> Toolchain.cmake
|
||||||
|
echo "set(CMAKE_CXX_COMPILER $cmd_target_cxx)" >> Toolchain.cmake
|
||||||
|
echo "set(CMAKE_FIND_ROOT_PATH \"$cfg_dir_toolchain_sysroot/usr\")" >> Toolchain.cmake
|
||||||
|
echo "set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)" >> Toolchain.cmake
|
||||||
|
echo "set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)" >> Toolchain.cmake
|
||||||
|
echo "set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)" >> Toolchain.cmake
|
||||||
|
|
||||||
|
cmake \
|
||||||
|
-DCMAKE_TOOLCHAIN_FILE=./Toolchain.cmake \
|
||||||
|
-DCMAKE_INSTALL_PREFIX="$cfg_dir_toolchain_sysroot/usr" \
|
||||||
|
-DPKG_CONFIG_EXECUTABLE="$PKG_CONFIG" \
|
||||||
|
..
|
||||||
|
}
|
||||||
|
|
||||||
|
build()
|
||||||
|
{
|
||||||
|
cmake --build build
|
||||||
|
}
|
||||||
|
|
||||||
|
host_install()
|
||||||
|
{
|
||||||
|
export PKG_CONFIG="${cfg_dir_toolchain}/bin/pkg-config"
|
||||||
|
export PKG_CONFIG_PATH="$cfg_dir_toolchain_sysroot/usr/lib/pkgconfig"
|
||||||
|
cmake --build build --target install
|
||||||
|
}
|
||||||
|
|
||||||
|
target_install()
|
||||||
|
{
|
||||||
|
cp -a "$cfg_dir_toolchain_sysroot/usr/lib/libftdi"*.so* "$cfg_dir_rootfs/lib" &&
|
||||||
|
$cmd_target_strip "$cfg_dir_rootfs/lib/libftdi"*.so*
|
||||||
|
}
|
55
rules/libphidget/default.bash
Normal file
55
rules/libphidget/default.bash
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
version=\
|
||||||
|
(
|
||||||
|
'2.1.8.20150410'
|
||||||
|
)
|
||||||
|
|
||||||
|
url=\
|
||||||
|
(
|
||||||
|
"http://www.phidgets.com/downloads/libraries/libphidget_$version.tar.gz"
|
||||||
|
)
|
||||||
|
|
||||||
|
md5=\
|
||||||
|
(
|
||||||
|
'a1ee9be405179370767d70c8304c3ac8'
|
||||||
|
)
|
||||||
|
|
||||||
|
maintainer=\
|
||||||
|
(
|
||||||
|
'Kristian Klausen <kristian.klausen@itk.ntnu.no>'
|
||||||
|
)
|
||||||
|
|
||||||
|
requires=\
|
||||||
|
(
|
||||||
|
'libusb'
|
||||||
|
)
|
||||||
|
|
||||||
|
configure()
|
||||||
|
{
|
||||||
|
export PKG_CONFIG="${cfg_dir_toolchain}/bin/pkg-config"
|
||||||
|
export PKG_CONFIG_PATH="$cfg_dir_toolchain_sysroot/usr/lib/pkgconfig"
|
||||||
|
"../libphidget-$version/configure" \
|
||||||
|
--prefix="$cfg_dir_toolchain_sysroot/usr" \
|
||||||
|
--target="$cfg_target_canonical" \
|
||||||
|
--host="$cfg_target_canonical" \
|
||||||
|
--build="$cfg_host_canonical"
|
||||||
|
}
|
||||||
|
|
||||||
|
build()
|
||||||
|
{
|
||||||
|
$cmd_make
|
||||||
|
}
|
||||||
|
|
||||||
|
host_install()
|
||||||
|
{
|
||||||
|
export PKG_CONFIG="${cfg_dir_toolchain}/bin/pkg-config"
|
||||||
|
export PKG_CONFIG_PATH="$cfg_dir_toolchain_sysroot/usr/lib/pkgconfig"
|
||||||
|
$cmd_make install
|
||||||
|
}
|
||||||
|
|
||||||
|
target_install()
|
||||||
|
{
|
||||||
|
cp -a "$cfg_dir_toolchain_sysroot/usr/lib/libphidget"*.so* "$cfg_dir_rootfs/lib" &&
|
||||||
|
$cmd_target_strip "$cfg_dir_rootfs/lib/libphidget"*.so*
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@@ -1,6 +1,6 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'1.6.12'
|
'1.6.19'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
@@ -10,7 +10,7 @@ url=\
|
|||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'ee752da8aa75076500e4cf31318e636e'
|
'1e6a458429e850fc93c1f3b6dc00a48f'
|
||||||
)
|
)
|
||||||
|
|
||||||
configure()
|
configure()
|
||||||
|
56
rules/libtirpc/default.bash
Normal file
56
rules/libtirpc/default.bash
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
version=\
|
||||||
|
(
|
||||||
|
'0.2.5'
|
||||||
|
)
|
||||||
|
|
||||||
|
url=\
|
||||||
|
(
|
||||||
|
"http://downloads.sourceforge.net/libtirpc/$version/libtirpc-$version.tar.bz2"
|
||||||
|
)
|
||||||
|
|
||||||
|
md5=\
|
||||||
|
(
|
||||||
|
'8cd41a5ef5a9b50d0fb6abb98af15368'
|
||||||
|
)
|
||||||
|
|
||||||
|
maintainer=\
|
||||||
|
(
|
||||||
|
'Ricardo Martins <rasm@fe.up.pt>'
|
||||||
|
)
|
||||||
|
|
||||||
|
configure()
|
||||||
|
{
|
||||||
|
"../libtirpc-$version/configure" \
|
||||||
|
--target="$cfg_target_canonical" \
|
||||||
|
--host="$cfg_target_canonical" \
|
||||||
|
--build="$cfg_host_canonical" \
|
||||||
|
--prefix="$cfg_dir_toolchain_sysroot/usr" \
|
||||||
|
--disable-gssapi \
|
||||||
|
--disable-ipv6 \
|
||||||
|
--disable-static \
|
||||||
|
--enable-shared
|
||||||
|
}
|
||||||
|
|
||||||
|
build()
|
||||||
|
{
|
||||||
|
$cmd_make
|
||||||
|
}
|
||||||
|
|
||||||
|
host_install()
|
||||||
|
{
|
||||||
|
$cmd_make install
|
||||||
|
}
|
||||||
|
|
||||||
|
target_install()
|
||||||
|
{
|
||||||
|
$cmd_mkdir "$cfg_dir_rootfs/etc"
|
||||||
|
$cmd_cp "doc/netconfig" "$cfg_dir_rootfs/etc/netconfig"
|
||||||
|
|
||||||
|
for f in "$cfg_dir_toolchain_sysroot/usr/lib/"libtirpc*so*; do
|
||||||
|
if [ -L "$f" ]; then
|
||||||
|
cp -vd "$f" "$cfg_dir_rootfs/lib"
|
||||||
|
else
|
||||||
|
$cmd_target_strip -v "$f" -o "$cfg_dir_rootfs/lib/$(basename "$f")"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
35
rules/libtool/host.bash
Normal file
35
rules/libtool/host.bash
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
version=\
|
||||||
|
(
|
||||||
|
'2.4.6'
|
||||||
|
)
|
||||||
|
|
||||||
|
url=\
|
||||||
|
(
|
||||||
|
"http://ftpmirror.gnu.org/libtool/libtool-$version.tar.gz"
|
||||||
|
)
|
||||||
|
|
||||||
|
md5=\
|
||||||
|
(
|
||||||
|
'addf44b646ddb4e3919805aa88fa7c5e'
|
||||||
|
)
|
||||||
|
|
||||||
|
maintainer=\
|
||||||
|
(
|
||||||
|
"Ricardo Martins <rasm@oceanscan-mst.com>"
|
||||||
|
)
|
||||||
|
|
||||||
|
configure()
|
||||||
|
{
|
||||||
|
"../libtool-$version/configure" \
|
||||||
|
--prefix="$cfg_dir_toolchain"
|
||||||
|
}
|
||||||
|
|
||||||
|
build()
|
||||||
|
{
|
||||||
|
$cmd_make
|
||||||
|
}
|
||||||
|
|
||||||
|
host_install()
|
||||||
|
{
|
||||||
|
$cmd_make install
|
||||||
|
}
|
@@ -1,6 +1,6 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'0.1.4'
|
'0.1.5'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
@@ -10,7 +10,7 @@ url=\
|
|||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'2ca521fffadd0c28fdf174e6ec73865b'
|
'2780b6a758a1e2c2943bdbf7faf740e4'
|
||||||
)
|
)
|
||||||
|
|
||||||
maintainer=\
|
maintainer=\
|
||||||
@@ -20,7 +20,7 @@ maintainer=\
|
|||||||
|
|
||||||
requires=\
|
requires=\
|
||||||
(
|
(
|
||||||
'libusbx/default'
|
'libusb/default'
|
||||||
)
|
)
|
||||||
|
|
||||||
post_unpack()
|
post_unpack()
|
||||||
|
@@ -1,18 +0,0 @@
|
|||||||
diff -Nru libusb-compat-0.1.4/libusb/core.c libusb-compat-0.1.4.rasm/libusb/core.c
|
|
||||||
--- libusb-compat-0.1.4/libusb/core.c 2012-04-24 06:37:34.000000000 +0100
|
|
||||||
+++ libusb-compat-0.1.4.rasm/libusb/core.c 2012-08-07 01:45:40.251527822 +0100
|
|
||||||
@@ -32,12 +32,14 @@
|
|
||||||
static libusb_context *ctx = NULL;
|
|
||||||
static int usb_debug = 0;
|
|
||||||
|
|
||||||
+#if 0
|
|
||||||
enum usbi_log_level {
|
|
||||||
LOG_LEVEL_DEBUG,
|
|
||||||
LOG_LEVEL_INFO,
|
|
||||||
LOG_LEVEL_WARNING,
|
|
||||||
LOG_LEVEL_ERROR,
|
|
||||||
};
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
#ifdef ENABLE_LOGGING
|
|
||||||
#define _usbi_log(level, fmt...) usbi_log(level, __FUNCTION__, fmt)
|
|
@@ -1,46 +1,47 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'1.0.12'
|
'1.0.20'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
(
|
(
|
||||||
"http://downloads.sourceforge.net/libusbx/libusbx-$version.tar.bz2"
|
"http://downloads.sourceforge.net/libusb/libusb-$version.tar.bz2"
|
||||||
)
|
)
|
||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'c41352ac755c7992edfcbb2ea4ad1349'
|
'1d4eb194eaaa2bcfbba28102768c7dbf'
|
||||||
)
|
)
|
||||||
|
|
||||||
maintainer=\
|
maintainer=\
|
||||||
(
|
(
|
||||||
'Ricardo Martins <rasm@fe.up.pt>'
|
'Ricardo Martins <rasm@oceanscan-mst.com>'
|
||||||
)
|
)
|
||||||
|
|
||||||
configure()
|
configure()
|
||||||
{
|
{
|
||||||
export PKG_CONFIG="${cfg_dir_toolchain}/bin/pkg-config"
|
export PKG_CONFIG="${cfg_dir_toolchain}/bin/pkg-config"
|
||||||
export PKG_CONFIG_PATH="$cfg_dir_toolchain_sysroot/usr/lib/pkgconfig"
|
export PKG_CONFIG_PATH="$cfg_dir_toolchain_sysroot/usr/lib/pkgconfig"
|
||||||
"../libusbx-$version/configure" \
|
"../libusb-$version/configure" \
|
||||||
--prefix="$cfg_dir_toolchain_sysroot/usr" \
|
--prefix="$cfg_dir_toolchain_sysroot/usr" \
|
||||||
--target="$cfg_target_canonical" \
|
--target="$cfg_target_canonical" \
|
||||||
--host="$cfg_target_canonical" \
|
--host="$cfg_target_canonical" \
|
||||||
--build="$cfg_host_canonical" \
|
--build="$cfg_host_canonical" \
|
||||||
|
--disable-udev \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
--enable-shared
|
--enable-shared
|
||||||
}
|
}
|
||||||
|
|
||||||
build()
|
build()
|
||||||
{
|
{
|
||||||
$cmd_make
|
$cmd_make -j1
|
||||||
}
|
}
|
||||||
|
|
||||||
host_install()
|
host_install()
|
||||||
{
|
{
|
||||||
export PKG_CONFIG="${cfg_dir_toolchain}/bin/pkg-config"
|
export PKG_CONFIG="${cfg_dir_toolchain}/bin/pkg-config"
|
||||||
export PKG_CONFIG_PATH="$cfg_dir_toolchain_sysroot/usr/lib/pkgconfig"
|
export PKG_CONFIG_PATH="$cfg_dir_toolchain_sysroot/usr/lib/pkgconfig"
|
||||||
$cmd_make install
|
$cmd_make -j1 install
|
||||||
}
|
}
|
||||||
|
|
||||||
target_install()
|
target_install()
|
@@ -1,6 +1,6 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'3.10.27'
|
'3.14.63'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
@@ -10,7 +10,7 @@ url=\
|
|||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'4edaaea57dc940969c54ac249e49f7e7'
|
'6cf8a6b23849f47f511e0e46cfdb6392'
|
||||||
)
|
)
|
||||||
|
|
||||||
maintainer=\
|
maintainer=\
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'3.14.16'
|
'3.14.63'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
@@ -10,7 +10,7 @@ url=\
|
|||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'469c879236ed694f60b81122e91ca02e'
|
'6cf8a6b23849f47f511e0e46cfdb6392'
|
||||||
)
|
)
|
||||||
|
|
||||||
maintainer=\
|
maintainer=\
|
||||||
@@ -55,6 +55,13 @@ configure()
|
|||||||
|
|
||||||
cp "$cfg_dir_system/cfg/linux-${version}.cfg" .config &&
|
cp "$cfg_dir_system/cfg/linux-${version}.cfg" .config &&
|
||||||
|
|
||||||
|
if [ -f "$cfg_dir_system/files/initramfs_init.sh" ]; then
|
||||||
|
$cmd_mkdir initramfs &&
|
||||||
|
$cmd_cp "$pkg_dir/files/initramfs.conf" . &&
|
||||||
|
$cmd_cp "$cfg_dir_system/files/initramfs_init.sh" initramfs/init.sh &&
|
||||||
|
$cmd_cp "$cfg_dir_rootfs/bin/busybox" initramfs/busybox
|
||||||
|
fi
|
||||||
|
|
||||||
yes '' | $cmd_make \
|
yes '' | $cmd_make \
|
||||||
CROSS_COMPILE=${cfg_target_canonical}- \
|
CROSS_COMPILE=${cfg_target_canonical}- \
|
||||||
ARCH=${cfg_target_linux} \
|
ARCH=${cfg_target_linux} \
|
||||||
@@ -112,8 +119,6 @@ host_install()
|
|||||||
|
|
||||||
target_install()
|
target_install()
|
||||||
{
|
{
|
||||||
kernel="$cfg_dir_base/${cfg_sys_family}/glued-${cfg_glued_version}-${cfg_sys_family}-kernel.bin"
|
|
||||||
|
|
||||||
if [ -n "$(file "$cfg_target_linux_kernel" | grep ELF)" ]; then
|
if [ -n "$(file "$cfg_target_linux_kernel" | grep ELF)" ]; then
|
||||||
strip="$(echo $cfg_dir_toolchain/bin/*-strip)"
|
strip="$(echo $cfg_dir_toolchain/bin/*-strip)"
|
||||||
$strip -s -R .comment "$cfg_target_linux_kernel"
|
$strip -s -R .comment "$cfg_target_linux_kernel"
|
||||||
@@ -121,8 +126,10 @@ target_install()
|
|||||||
|
|
||||||
# Kernel image.
|
# Kernel image.
|
||||||
if [ -n "$cfg_target_linux_kernel" ]; then
|
if [ -n "$cfg_target_linux_kernel" ]; then
|
||||||
cp -v "$cfg_target_linux_kernel" "$kernel"
|
|
||||||
cp -v "$cfg_target_linux_kernel" "$cfg_dir_rootfs/boot/kernel"
|
cp -v "$cfg_target_linux_kernel" "$cfg_dir_rootfs/boot/kernel"
|
||||||
|
else
|
||||||
|
echo "ERROR: failed to find kernel image at '$cfg_target_linux_kernel'"
|
||||||
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$cmd_make \
|
$cmd_make \
|
||||||
|
21
rules/linux/files/initramfs.conf
Normal file
21
rules/linux/files/initramfs.conf
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
dir /bin 755 0 0
|
||||||
|
dir /dev 755 0 0
|
||||||
|
dir /proc 755 0 0
|
||||||
|
dir /sys 755 0 0
|
||||||
|
dir /mnt 755 0 0
|
||||||
|
|
||||||
|
nod /dev/console 644 0 0 c 5 1
|
||||||
|
nod /dev/null 644 0 0 c 1 3
|
||||||
|
|
||||||
|
slink /bin/echo busybox 777 0 0
|
||||||
|
slink /bin/sed busybox 777 0 0
|
||||||
|
slink /bin/tr busybox 777 0 0
|
||||||
|
slink /bin/ls busybox 777 0 0
|
||||||
|
slink /bin/sh busybox 777 0 0
|
||||||
|
slink /bin/mount busybox 777 0 0
|
||||||
|
slink /bin/umount busybox 777 0 0
|
||||||
|
slink /bin/usleep busybox 777 0 0
|
||||||
|
slink /bin/switch_root busybox 777 0 0
|
||||||
|
|
||||||
|
file /bin/busybox initramfs/busybox 755 0 0
|
||||||
|
file /init initramfs/init.sh 755 0 0
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user