Compare commits

...

279 Commits

Author SHA1 Message Date
Ricardo Martins
4b4ebc0a5d GLUED v1.12.2. 2015-10-24 13:12:09 +01:00
José Braga
01b3433a10 i2c-tools: updated source URL. 2015-10-01 11:18:22 +01:00
Ricardo Martins
b715dd7ce5 mpfr: upgraded to v3.1.3. 2015-10-01 11:17:26 +01:00
mariacosta
aa86bc5954 Preparing v1.12.1. 2015-06-30 11:03:22 +01:00
mariacosta
01595e7bc8 lctr-b2xx: Create x8-04. 2015-06-30 11:00:45 +01:00
mariacosta
be95978ec5 lctr-b2xx: Create x8-01. 2015-06-30 11:00:13 +01:00
mariacosta
3e125fd0ed lctr-b2xx: Updated packages of x8-03. 2015-06-30 10:58:18 +01:00
mariacosta
70eb403ecc lctr-b2xx: Updated packages of aero-01. 2015-06-30 10:57:39 +01:00
Ricardo Martins
ca89cd22be lctr-b2xx: create x8-03. 2015-06-30 10:54:59 +01:00
mariacosta
b79ae47a25 lctr-b2xx: Create mariner-01. 2015-06-30 10:52:23 +01:00
mariacosta
9389e352b8 lctr-b2xx: Create aero-01. 2015-06-30 10:49:29 +01:00
Ricardo Martins
2c47127f0f Preparing v1.12.0. 2014-10-28 19:24:23 +00:00
Ricardo Martins
de06f16d02 Merge pull request #8 from krisklau/feature/ntnu-device-tree
lctr-b2xx/patches/linux: Added device-tree file patch for uart2,4 and gpio
2014-10-24 12:29:51 +01:00
Ricardo Martins
764fd6670a Merge pull request #9 from krisklau/feature/device-tree-ntnu-systems
lctr-b2xx: ntnu-x: Update device tree files and packages
2014-10-24 12:29:13 +01:00
Kristian Klausen
7409a86722 lctr-b2xx: ntnu-nest-0x: Updated device-tree file and added package libswiftnav 2014-10-24 09:35:29 +02:00
Kristian Klausen
f7ba7d9b4d lctr-b2xx: ntnu-hexa-xxx: Updated device-tree files and added libswiftnav package. 2014-10-24 09:34:13 +02:00
Kristian Klausen
e467dab07c lctr-b2xx: ntnu-x8-0xx: Updated device-tree files, and added package libswiftnav 2014-10-24 09:34:06 +02:00
Kristian Klausen
fe2b81d6d5 lctr-b2xx/patches/linux: Added device-tree file patch for uart2,4 and gpio 2014-10-24 09:08:32 +02:00
Ricardo Martins
5951983d1e pkrootfs: copy board DTB to /boot/board.dtb when creating root package. 2014-10-24 03:11:50 +01:00
Ricardo Martins
45078ae86b linux: copy all architecture DTBs too /boot. 2014-10-24 03:11:08 +01:00
Ricardo Martins
df4184c67b Merge pull request #6 from krisklau/feature/cmake-upgrade
rules/cmake: Update 2.8.8 -> 2.8.9
2014-10-24 01:57:30 +01:00
Ricardo Martins
5bfb823a47 Merge pull request #7 from krisklau/feature/libswiftnav
rules/libswiftnav: New package
2014-10-24 01:56:41 +01:00
Kristian Klausen
e8894c9c3f lctr-b2xx: Added support for libswiftnav by adding a patch for f2c hw specifications 2014-10-23 09:56:08 +02:00
Kristian Klausen
7d86c823f3 rules/libswiftnav: Added new package. 2014-10-23 09:54:55 +02:00
Kristian Klausen
c43c52c548 rules/cmake: Updated to version 2.8.9 2014-10-23 09:53:40 +02:00
Ricardo Martins
41a67a24da Merge pull request #5 from krisklau/feature/ntnu-nest
lctr-b2xx: Added ntnu-nest-01 and ntnu-nest-02
2014-10-22 22:44:20 +01:00
Ricardo Martins
500bf28fd0 Merge pull request #4 from krisklau/feature/ntnu-testbed
lctr-b2xx: Added ntnu-hexa-testbed
2014-10-22 22:43:57 +01:00
Kristian Klausen
02376a4469 lctr-b2xx: Added ntnu-nest-01 and ntnu-nest-02 2014-10-22 18:12:44 +02:00
Kristian Klausen
179c9fa196 lctr-b2xx: Added ntnu-hexa-testbed 2014-10-22 16:01:35 +02:00
Ricardo Martins
60f9017b34 Merge pull request #3 from krisklau/feature/ntnu-ip-range
Edit IP addresses of NTNU vehicles, and adding some new X8s
2014-10-10 16:56:30 +01:00
Kristian Klausen
f5ef0e428a lctr-b2xx: ntnu-penguin-001: Updated IP address. 2014-10-10 17:50:52 +02:00
Kristian Klausen
98b25e5234 lctr-b2xx: Added ntnu-x8-005 -- ntnu-x8-010 2014-10-10 17:50:46 +02:00
Kristian Klausen
ffd083ebcc lctr-b2xx: ntnu-x8-00x: Updated IP addresses. 2014-10-10 17:50:14 +02:00
Kristian Klausen
4a19d17380 lctr-b2xx: ntnu-hexa-00x: Updated IP addresses. 2014-10-10 17:46:34 +02:00
Ricardo Martins
132c020910 mkdisk: make sure xloader partition has WIN95 system type. 2014-10-09 21:28:09 +01:00
Ricardo Martins
1f57d7ab08 lctr-b2xx: added LED triggers. 2014-10-09 21:26:50 +01:00
Ricardo Martins
5e8bb91f6f filesystem: removed obsolete script mobile-internet. 2014-10-06 19:06:48 +01:00
Ricardo Martins
9517ff6b8a lctr-b2xx: added last ditch effort fix. 2014-09-30 17:09:02 +01:00
Ricardo Martins
e731c8b8cf lctr-b2xx: forced u-boot to wait for a specific string to stop autoboot, otherwise the BBB will sometimes enter the bootloader with spurious characters. 2014-09-30 12:52:28 +01:00
Ricardo Martins
fb61cca332 lctr-b2xx: added lauv-dolphin-2-aux and lauv-dolphin-3-aux 2014-09-12 17:18:06 +01:00
Ricardo Martins
5f6f35f211 lctr-a6xx: added lauv-dolphin-2 and lauv-dolphin-3. 2014-09-09 19:23:39 +01:00
Ricardo Martins
1ad4b0b16f Merge pull request #2 from krisklau/feature/ntnu-vehicles
Add NTNU vehicle configuration files
2014-09-05 14:33:20 +01:00
Kristian Klausen
a8fc01df80 lctr-b2xx: Added ntnu-penguin-001 2014-09-05 15:09:56 +02:00
Kristian Klausen
02517c3931 lctr-b2xx: Added ntnu-x8-001, ntnu-x8-002, ntnu-x8-003, ntnu-x8-004 2014-09-05 15:01:04 +02:00
Kristian Klausen
a0e223dff8 lctr-b2xx: Added ntnu-hexa-001, ntnu-hexa-002, ntnu-hexa-003, ntnu-hexa-004 2014-09-05 15:00:24 +02:00
Ricardo Martins
306e07e50c Cleanup. 2014-08-19 18:26:49 +01:00
Ricardo Martins
75c4714bca lctr-a6xx: updated kernel config. 2014-08-14 19:42:44 +01:00
Ricardo Martins
0c6465b23c escc: updated to version 1.0.5. 2014-08-14 19:42:35 +01:00
Ricardo Martins
489ddb9119 lctr-a9xx: moved pinmux initialization of pins without a kernel driver to u-boot. 2014-08-14 14:27:39 +01:00
Ricardo Martins
7d4b8f71c9 lctr-a9xx: disable twl power button events. 2014-08-14 14:27:09 +01:00
Ricardo Martins
51972ed4cc lctr-a9xx: moved fixed mux config to u-boot. More pins will have to be moved. 2014-08-11 23:39:50 +01:00
Ricardo Martins
131ee3b4a9 lctr-b2xx: updated linux and uboot. 2014-08-11 23:39:50 +01:00
Ricardo Martins
e5e82d2ba6 filesystem: fixed IGEPv2 handling. 2014-08-11 23:39:50 +01:00
Ricardo Martins
bbba4bf9ac lctr-a9xx: updated linux config to version 3.14.16. 2014-08-11 23:39:50 +01:00
Ricardo Martins
c0782c4310 lctr-a9xx: changed u-boot config name. 2014-08-11 23:39:50 +01:00
Ricardo Martins
3080065a4e lctr-a9xx: updated u-boot patches. 2014-08-11 23:39:50 +01:00
Ricardo Martins
5c2bc141df u-boot: upgraded to version 2014.07. 2014-08-11 23:39:50 +01:00
Ricardo Martins
7f735200d0 linux: upgraded to version 3.14.16. 2014-08-11 23:39:50 +01:00
Ricardo Martins
f68f6c95f8 filesystem: fixed upgrade script. 2014-08-11 23:39:50 +01:00
Ricardo Martins
2276ca19fa filesystem: use same code for upgrading BBB and IGEPv2. 2014-08-11 23:39:50 +01:00
Ricardo Martins
ecd45a9d8d linux: upgraded to version 3.14.15. 2014-08-11 23:39:50 +01:00
Ricardo Martins
050fa7c849 apt: upgraded to version 1.5.1. 2014-08-11 23:39:50 +01:00
Ricardo Martins
241e8a200d apr-util: upgraded to version 1.5.3. 2014-08-11 23:39:50 +01:00
Ricardo Martins
ef47422f3e muparser: upgraded to version 2.2.3. 2014-08-11 23:39:50 +01:00
Ricardo Martins
346e4b60a7 cdk: updated download URL. 2014-08-11 23:39:49 +01:00
Ricardo Martins
f1d49eba03 gnuplot: upgraded to version 4.6.5. 2014-08-11 23:39:49 +01:00
Ricardo Martins
bed6cd2253 libpng: upgraded to version 1.6.12. 2014-08-11 23:39:49 +01:00
Ricardo Martins
7ab772c363 glued-download-sources: added maximum 30 second timeout. 2014-08-11 23:39:49 +01:00
Ricardo Martins
10846e4f3d gpsd: removed obsolete package. 2014-08-11 23:39:49 +01:00
Ricardo Martins
38c382470d Fixed bug #1. 2014-08-10 19:49:09 +01:00
Ricardo Martins
9e3c75a0ab tcpdump: updated to version 4.6.1. 2014-07-23 18:51:58 +01:00
Ricardo Martins
dd4841ca02 libcap: updated to version 1.6.1. 2014-07-23 18:51:27 +01:00
Ricardo Martins
f065b339fc termcap: added host rules. 2014-06-28 13:28:17 +01:00
Ricardo Martins
82e1ada242 util-linux: added termcap as requirement. 2014-06-28 13:26:35 +01:00
Ricardo Martins
f5a53a6378 mkdisk: use compiled e2fsprogs. 2014-06-27 22:40:56 +01:00
Ricardo Martins
0ac97ce889 base: added e2fsprogs to host. 2014-06-27 22:40:38 +01:00
Ricardo Martins
0dc888df33 e2fsprogs: added host rule. 2014-06-27 22:37:38 +01:00
Ricardo Martins
0b43b299e8 leviathan: added uswitch. 2014-06-27 17:17:42 +01:00
Ricardo Martins
5974184000 lctr-b2xx: added CONFIG_USB_SERIAL_OPTION. 2014-06-27 17:17:23 +01:00
José Braga
3bc6b3dec0 rsync: updated to 3.1.1. 2014-06-26 16:03:26 +01:00
Ricardo Martins
87599fc9f4 arm-1176: added u-boot arch. 2014-06-19 20:26:16 +01:00
Ricardo Martins
3ef84d36e8 cortex-a8: reordered variables. 2014-06-19 20:26:16 +01:00
Ricardo Martins
7b61512978 arm-1176: added u-boot arch. 2014-06-19 20:26:16 +01:00
Ricardo Martins
63cae9d437 u-boot: removed unneeded configure(). 2014-06-19 20:26:16 +01:00
Ricardo Martins
3afc4d7e93 busybox: upgraded to v1.22.1. 2014-06-19 20:26:16 +01:00
Ricardo Martins
6b454f1a52 lctr-b2xx: removed SYSRQ support. 2014-06-17 20:33:18 +01:00
Ricardo Martins
de2abe89c7 leviathan: removed rsyncd. 2014-06-17 20:33:01 +01:00
Ricardo Martins
84157535da lctr-b2xx: added leviathan. 2014-06-16 15:35:44 +01:00
Ricardo Martins
7be96bd7dd lctr-a9xx: added manta-12. 2014-06-16 15:34:43 +01:00
Ricardo Martins
29d3378dc8 bc: added flex/host as requirement. 2014-06-13 00:00:14 +01:00
Ricardo Martins
ee8eae8520 linux: added bc/host as a requirement. 2014-06-11 19:33:27 +01:00
Ricardo Martins
9898f97491 bc: added package. 2014-06-11 19:33:08 +01:00
José Braga
5ce97d6921 Updated lauv-noptilus-3-aux hostname. 2014-06-06 17:06:21 +01:00
Joao Fortuna
897a147fcd configurations: updated UAVs. 2014-06-02 15:30:17 +01:00
Joao Fortuna
a5ca7f0cae libav: added new rule. Installs avconv used for video recording. 2014-06-02 15:30:17 +01:00
Ricardo Martins
63d60d4c02 lctr-b2xx: added lauv-noptilus-3-aux. 2014-06-02 14:48:05 +01:00
Ricardo Martins
2e28260682 Starting v1.12.x development cycle. 2014-05-22 15:21:14 +01:00
Ricardo Martins
05ca6917e6 apache-ant: changed URL. 2014-05-13 21:09:40 +01:00
Jose Braga
3422f09171 lauv-lupis-1: added config. 2014-05-13 19:11:43 +01:00
Ricardo Martins
01c8b31a6b lauv-lupis-1-aux: added system. 2014-05-12 10:21:17 +01:00
Ricardo Martins
e124fbd933 lctr-b200-testbed: added BeagleBone White evaluation config. 2014-05-11 06:30:19 +01:00
Ricardo Martins
b09fc122bb lauv-dolphin-1-doam: fixed DTB file. 2014-05-11 06:29:30 +01:00
Ricardo Martins
6f4d20747f lctr-b2xx-testbed: added comment. 2014-05-11 06:28:57 +01:00
Ricardo Martins
d8b985474c u-boot: fixed configuration command. 2014-05-11 06:28:29 +01:00
Ricardo Martins
4f76b5e091 gdb: upgraded to version 7.7.1. 2014-05-08 04:24:09 +01:00
Ricardo Martins
2d60ba874c glued: starting 1.11.x 2014-04-29 03:38:44 +01:00
Ricardo Martins
f3c4d8a793 filesystem: added sync-digest-clean script. 2014-04-29 02:12:14 +01:00
Ricardo Martins
d3fffebd36 rsync: added sync module. 2014-04-29 01:19:19 +01:00
Ricardo Martins
af1c9e2e5a manta-wg: enabled sync-digest script. 2014-04-29 01:12:38 +01:00
Ricardo Martins
52515e0854 filesystem: added sync-digest script. 2014-04-29 01:12:18 +01:00
Ricardo Martins
9ec68a7f99 manta-wg: enable rsync daemon by default. 2014-04-28 22:23:04 +01:00
Ricardo Martins
dd980c2220 rsync: added daemon script and config file. 2014-04-28 22:22:22 +01:00
Ricardo Martins
178dfec636 filesystem: added support to upgrade BeagleBone Black bootloader. 2014-04-24 18:20:33 +01:00
Ricardo Martins
b356406c7e manta-wg: removed data1. 2014-04-24 17:20:03 +01:00
Ricardo Martins
a05cd25ffa manta-wg: added new system. 2014-04-24 17:09:26 +01:00
Ricardo Martins
bef85cd228 linux: updated to version 3.13.11. 2014-04-23 22:37:24 +01:00
Jose Braga
d559f5fd72 Added lauv-seacon-2-aux and lauv-seacon-3-aux configurations. 2014-04-09 15:36:39 +01:00
Jose Pinto
6830d49697 TREX started only after clock is synchronized. 2014-03-23 22:17:39 +00:00
Jose Pinto
fa4914abb3 TREX started only after clock is synchronized. 2014-03-23 22:07:20 +00:00
José Pinto
ab0accd012 Added lauv-xplore-1-aux configuration. 2014-03-20 16:23:26 +00:00
Ricardo Martins
effad90f25 glued: next version will be 1.10.0 and not 2.0.0. 2014-03-06 22:48:58 +00:00
Jose Braga
074e6518c3 utils: packages folder is now rules folder. 2014-02-28 17:07:45 +00:00
Jose Braga
fc6b7d700a lauv-xplore-1: new vehicle. 2014-02-04 16:54:50 +00:00
Ricardo Martins
5ae68aaf7b neon: removed obsolete package. 2014-02-04 11:41:18 +00:00
Ricardo Martins
039639982b subversion: removed obsolete package. 2014-02-04 11:40:51 +00:00
Ricardo Martins
1ee48444f2 mkbackup: moved utility to utils. 2014-02-04 07:49:51 +00:00
Ricardo Martins
d7432d39ea mknfs: moved utility to utils. 2014-02-04 07:45:20 +00:00
Ricardo Martins
8fe415232d GLUED: renamed cfg_package_spec_dir to pkg_dir. 2014-02-04 07:44:17 +00:00
Ricardo Martins
6d110a03f9 lctr-a8xx: removed obsolete patches. 2014-02-04 07:09:22 +00:00
Ricardo Martins
6b37797193 lctr-a8xx: removed kontron-pitx-sp. 2014-02-04 07:08:41 +00:00
Ricardo Martins
08d73a4667 lctr-a8xx: added lctr-a8xx-testbed. 2014-02-04 07:08:17 +00:00
Ricardo Martins
f8f71d49da lctr-a8xx: removed acpi=hack, board seems to boot fine with newer kernel without it. 2014-02-04 07:07:50 +00:00
Ricardo Martins
4c47cf9bb1 lctr-a8xx: updated kernel config. 2014-02-04 07:07:07 +00:00
Ricardo Martins
ff6257a6ca zlib: removed executable bit. 2014-02-03 05:22:04 +00:00
Ricardo Martins
ce006946d3 xz: removed executable bit. 2014-02-03 05:22:04 +00:00
Ricardo Martins
b5b200d9bf wxgtk: removed executable bit. 2014-02-03 05:22:03 +00:00
Ricardo Martins
40ca3c2f6f util-linux: removed executable bit. 2014-02-03 05:22:03 +00:00
Ricardo Martins
55179a6a95 uswitch: removed executable bit. 2014-02-03 05:22:03 +00:00
Ricardo Martins
64cfe628dc texinfo: removed executable bit. 2014-02-03 05:22:03 +00:00
Ricardo Martins
ddb004cb14 renderproto: removed executable bit. 2014-02-03 05:22:03 +00:00
Ricardo Martins
587b422db7 pango: removed executable bit. 2014-02-03 05:22:03 +00:00
Ricardo Martins
ddd0f2714d lsts: removed executable bit. 2014-02-03 05:22:02 +00:00
Ricardo Martins
69afe31569 libxrender: removed executable bit. 2014-02-03 05:22:02 +00:00
Ricardo Martins
d11f1edbd2 libxft: removed executable bit. 2014-02-03 05:22:02 +00:00
Ricardo Martins
932c6aed4a libxext: removed executable bit. 2014-02-03 05:22:02 +00:00
Ricardo Martins
1779cb1156 libffi: removed executable bit. 2014-02-03 05:22:02 +00:00
Ricardo Martins
806e9839d7 harfbuzz: removed executable bit. 2014-02-03 05:22:01 +00:00
Ricardo Martins
da30019e2a gtk+: removed executable bit. 2014-02-03 05:22:01 +00:00
Ricardo Martins
f7a8d8c433 gnu-config: removed executable bit. 2014-02-03 05:22:01 +00:00
Ricardo Martins
8f541724ba glib: removed executable bit. 2014-02-03 05:22:01 +00:00
Ricardo Martins
ba16f069b0 gettext: removed executable bit. 2014-02-03 05:22:01 +00:00
Ricardo Martins
d70ea5668d gdk-pixbuf: removed executable bit. 2014-02-03 05:22:01 +00:00
Ricardo Martins
7e1449f0be freetype2: removed executable bit. 2014-02-03 05:22:01 +00:00
Ricardo Martins
1902de8be2 fontconfig: removed executable bit. 2014-02-03 05:22:01 +00:00
Ricardo Martins
79840465ad fftw: removed executable bit. 2014-02-03 05:22:01 +00:00
Ricardo Martins
3713a4548f dosfstools: removed executable bit. 2014-02-03 05:22:01 +00:00
Ricardo Martins
1776a7f9f9 atk: removed executable bit. 2014-02-03 05:22:01 +00:00
Ricardo Martins
2f143b5697 escc: updated source MD5. 2014-02-03 04:38:48 +00:00
Ricardo Martins
c02b3f3e00 lctr-a6xx: start syslog before escc. 2014-02-03 04:34:13 +00:00
Ricardo Martins
bebfb9e2b4 util-linux: removed ldattach rule. 2014-02-03 03:52:36 +00:00
Ricardo Martins
a29015ba33 lctr-a6xx: removed util-linux/ldattach from list of packages. 2014-02-03 03:51:59 +00:00
Ricardo Martins
2b6ae382c9 lctr-a4xx: removed util-linux/ldattach from list of packages. 2014-02-03 03:51:52 +00:00
Ricardo Martins
4dcbe0b787 filesystem: removed obsolete pps service. 2014-02-03 03:50:25 +00:00
Ricardo Martins
eaf0c7d347 GLUED: renamed packages to rules, cfg_dir_packages to cfg_dir_rules. 2014-02-02 09:53:29 +00:00
Ricardo Martins
6420cb1823 GLUED: replaced PKG with pkg. 2014-02-02 09:50:11 +00:00
Ricardo Martins
ae75cb017f GLUED: replaced PKG_COMMON with pkg_common. 2014-02-02 09:47:16 +00:00
Ricardo Martins
bfb17158e6 GLUED: renamed PKG_VAR to pkg_var. 2014-02-02 09:43:32 +00:00
Ricardo Martins
96e867964a lctr-a4xx: removed dtn from lauv-testbed. 2014-02-02 04:07:00 +00:00
Ricardo Martins
4a840271f3 lctr-a6xx: removed dtn. 2014-02-02 04:06:34 +00:00
Ricardo Martins
82dea6e18b GLUED: updated copyrights. 2014-02-02 04:04:03 +00:00
Ricardo Martins
842d6da359 lctr-a8xx: changed lauv-xtreme-2-doam IP address to 10.0.10.53. 2014-02-02 03:24:15 +00:00
Ricardo Martins
2b744185dd lctr-a9xx: added static initialization of hsusbb1 pins. 2014-02-02 02:20:43 +00:00
Ricardo Martins
56dd20083d lctr-a9xx: added testbed config. 2014-02-02 02:20:13 +00:00
Ricardo Martins
0868d856c1 lctr-a9xx: replaced device tree blob. 2014-02-02 02:19:46 +00:00
Ricardo Martins
f51e0a604d lctr-b2xx: added NFS client support. 2014-02-02 00:00:12 +00:00
Ricardo Martins
b3f8e3a3af filesystem: removed obsolete gsmux service. 2014-02-01 23:59:54 +00:00
Ricardo Martins
1259bc6928 lctr-b2xx: added proper device tree patch. 2014-02-01 23:59:38 +00:00
Ricardo Martins
116e0ce235 lctr-b2xx: added proper device tree. 2014-02-01 07:09:33 +00:00
Ricardo Martins
f582c053ac lctr-b2xx: renamed bbb-testbed to lctr-b2xx-testbed. 2014-02-01 01:51:48 +00:00
Ricardo Martins
14ea580d6d lctr-a9xx: enabled NFSv3 client and kernel level IP config. 2014-02-01 01:51:48 +00:00
Jose Braga
2fc8349a50 Renamed lauv-seacon-4-aux to lauv-seacon-1-aux. 2014-01-31 19:27:26 +00:00
Ricardo Martins
1c5f9b8a7f lctr-a9xx: cleaning up kernel config. 2014-01-31 06:29:20 +00:00
Ricardo Martins
2307adfc8b linux: updated to version 3.13.1. 2014-01-31 05:38:28 +00:00
Ricardo Martins
26e028f142 lctr-a9xx: update kernel configuration and patches. 2014-01-31 05:28:46 +00:00
Ricardo Martins
bc9064fcce lctr-a9xx: use soft MAC address. 2014-01-29 00:21:40 +00:00
Ricardo Martins
0d7a4a8308 u-boot: upgraded package to version 2014.01. 2014-01-28 23:19:38 +00:00
Jose Braga
f68d95b29c lauv-seacon-4: deleted cfg. 2014-01-27 17:32:16 +00:00
Jose Braga
1a3c4aafdd lauv-seacon-1: renamed lauv-seacon-4. 2014-01-27 17:32:02 +00:00
Jose Braga
e7d24740cb lauv-seacon-4: no need for arp table. 2014-01-27 16:39:24 +00:00
Jose Braga
40e678ddf5 lauv-seacon-4: arp table for imagenex 872. 2014-01-27 15:50:39 +00:00
João Fortuna
0b5525d2dd filesystem: fixed script 'dune' crash on update
Crashing occurred when there was no etc/*-saved.ini file.
Happens at least for every system that is running for the first time.
2014-01-21 16:59:46 +00:00
Jose Braga
2ed1e7f1cb lauv-seacon-4: is activated by psimar. 2014-01-21 15:29:24 +00:00
Jose Braga
866a0d0a62 escc: script to configure hg1700 plus psimar. 2014-01-21 15:28:58 +00:00
Ricardo Martins
5b67da014a lctr-b2xx: removed obsolete system. 2014-01-21 01:16:54 +00:00
Ricardo Martins
ed699ec2aa lz4: fixed build rules. 2014-01-21 01:15:23 +00:00
Ricardo Martins
3266b92172 linux: removed obsolete LOADADDR. 2014-01-21 00:38:19 +00:00
Ricardo Martins
c54efd3d76 linux: added lz4 as dependency. 2014-01-21 00:37:37 +00:00
Ricardo Martins
518a0af694 lz4: added package. 2014-01-21 00:37:16 +00:00
Ricardo Martins
b3cf64ddc3 lctr-a8xx: upgraded to linux 3.13. 2014-01-21 00:30:44 +00:00
Ricardo Martins
8cc2c75a3c lctr-a4xx: upgraded to linux 3.13. 2014-01-21 00:30:32 +00:00
Ricardo Martins
5dc43cb8cf qemu-i686: upgraded to linux 3.13. 2014-01-21 00:30:20 +00:00
Ricardo Martins
4385db8758 lctr-a9xx: removed obsolete configs. 2014-01-21 00:30:03 +00:00
Ricardo Martins
bdb5effbf8 lctr-a6xx: upgraded to linux 3.13. 2014-01-21 00:29:38 +00:00
Ricardo Martins
886d2217ae linux: upgraded to version 3.13. 2014-01-21 00:28:51 +00:00
Ricardo Martins
ebed4a1738 u-boot: upgraded to version 2014.01-rc3. 2014-01-21 00:28:22 +00:00
Ricardo Martins
2aa9510159 lctr-b2xx: update kernel config. 2014-01-21 00:27:47 +00:00
Ricardo Martins
c6def817f8 lctr-b2xx: update master config. 2014-01-21 00:27:37 +00:00
Ricardo Martins
aa596e2980 lctr-a9xx: update master config. 2014-01-21 00:27:10 +00:00
Ricardo Martins
84c92934a0 lctr-a9xx: update kernel config. 2014-01-21 00:26:59 +00:00
Ricardo Martins
1f589b02cf lctr-a9xx: added patches for u-boot 2014.01-rc3. 2014-01-21 00:26:35 +00:00
Ricardo Martins
37fc0728bb lctr-b2xx: added patches for linux 3.13. 2014-01-21 00:25:51 +00:00
Ricardo Martins
11506f7697 lctr-b2xx: added patches for linux 3.13. 2014-01-21 00:25:15 +00:00
Ricardo Martins
9cb6141508 lctr-b2xx: added patches for u-boot 2014.01-rc3. 2014-01-21 00:24:42 +00:00
Ricardo Martins
7d5ce0c2e4 lctr-b2xx: fixed hostname of bbb-testbed. 2014-01-21 00:23:24 +00:00
Ricardo Martins
be7eac325d linux-headers: upgraded to version 3.10.27. 2014-01-20 19:38:04 +00:00
Ricardo Martins
f1df793465 bridge-utils: upgraded to version 1.5. 2014-01-20 19:37:22 +00:00
Ricardo Martins
d5930d76d2 lctr-a6xx: updated kernel config. 2014-01-07 18:31:22 +00:00
Ricardo Martins
930348e7fa lctr-a6xx: made kernel quiet. 2014-01-07 18:28:23 +00:00
Ricardo Martins
c53a963048 mkconfig: only generate MAC address if cfg_eth_ext_soft_mac is set. 2014-01-07 18:25:29 +00:00
Ricardo Martins
87ba2c2876 lctr-a6xx: added testbed config. 2014-01-07 18:21:36 +00:00
Ricardo Martins
ff654d7e9a lctr-a6xx: upgrading to kernel 3.13-rc7. 2014-01-07 18:11:23 +00:00
Ricardo Martins
772ee47676 lctr-a4xx: upgrading to kernel 3.14-rc7.cfg 2014-01-07 18:11:10 +00:00
Ricardo Martins
9bebfe527c escc: updated to version 1.0.4. 2014-01-07 18:10:16 +00:00
Ricardo Martins
e4923485cf linux: renamed unstable to default. 2014-01-07 17:24:46 +00:00
Ricardo Martins
9e120b528c linux: u-boot is not required. 2014-01-07 17:23:28 +00:00
Ricardo Martins
982207507a linux: removed obsolete patches. 2014-01-07 17:22:52 +00:00
Ricardo Martins
857c442b97 lctr-b2xx: removed obsolete kernel rule. 2014-01-07 17:20:33 +00:00
Ricardo Martins
aa023f7765 lctr-b2xx: removed obsolete kernel config. 2014-01-07 17:19:54 +00:00
Ricardo Martins
b16839538d filesystem: added empty mnt folder. 2014-01-07 16:31:06 +00:00
Ricardo Martins
fac4f7c532 lctr-b2xx: added u-boot patches. 2014-01-07 16:06:21 +00:00
Ricardo Martins
e707a403cc linux: added unstable version 3.13-rc7. 2014-01-07 16:05:10 +00:00
Ricardo Martins
61867d7f74 filesystem: removed obsolete bbb-mux. 2014-01-07 16:03:15 +00:00
Ricardo Martins
6ac8e69acd u-boot: upgraded to version 2014.01-rc2. 2014-01-07 16:02:47 +00:00
Ricardo Martins
d30869adba lauv-seacon-4: moved data1 to board config. 2014-01-07 16:02:19 +00:00
Ricardo Martins
7bfe490e3b lauv-dolphin-1: moved data1 to board config. 2014-01-07 16:02:05 +00:00
Ricardo Martins
ede06d07c8 am33xx-cm3: added host package. 2014-01-07 16:01:20 +00:00
Ricardo Martins
b1a87076a3 lctr-a4xx: disable swap, added hardpps. 2014-01-07 12:43:53 +00:00
Ricardo Martins
9c2e8b4c8a lctr-a4xx: added flashrom and ldattach. 2014-01-07 12:43:29 +00:00
Ricardo Martins
362a668c25 busybox: update to version 1.22.0. 2014-01-07 10:56:25 +00:00
Ricardo Martins
287da9073b lctr-a4xx: added missing mdev.conf. 2014-01-07 10:49:58 +00:00
Ricardo Martins
3512bba3ca Fixed gitignore. 2014-01-07 10:49:40 +00:00
Ricardo Martins
78e00599cc parted: cleanup. 2014-01-07 09:51:38 +00:00
Ricardo Martins
3bfa7e176c gawk: upgraded to version 4.1.0. 2014-01-07 09:50:34 +00:00
Ricardo Martins
c28411208a Merge branch 'feature/gcc-4.8' 2014-01-06 18:47:42 +00:00
Ricardo Martins
5bda410e3e Starting v2.0.x cycle. 2014-01-06 18:45:50 +00:00
Ricardo Martins
56c065b51b Marking version 1.9.0. 2014-01-06 18:43:50 +00:00
Ricardo Martins
132fcaa531 Added builds to gitignore. 2014-01-06 18:40:14 +00:00
Ricardo Martins
194d6116eb gcc: upgraded to version 4.8.2. 2014-01-06 17:11:16 +00:00
Ricardo Martins
e4b430b23c apache-ant: upgraded to version 1.9.3. 2014-01-06 17:07:43 +00:00
Ricardo Martins
a0efadc2d5 libpng: updated to 1.6.8. 2014-01-06 17:07:23 +00:00
Ricardo Martins
1650a8becd lctr-b2xx: renamed lauv-seacon-4-camera to lauv-seacon-4-aux. 2014-01-06 16:56:41 +00:00
Ricardo Martins
e6ed397a9f lctr-b2xx: added lauv-seacon-4-camera. 2014-01-06 16:13:30 +00:00
Ricardo Martins
77ef845247 gettext: upgraded to 0.18.3.1. 2014-01-06 12:02:13 +00:00
Ricardo Martins
6d29df1ded mkpackage: added support for downloading git repositories. 2014-01-06 10:03:10 +00:00
Ricardo Martins
6990d3f0f8 filesystem: script 'dune' now saves user parameters on upgrade. This commit closes #2603 2013-12-02 11:41:20 +00:00
Jose Braga
660a2a20f0 lauv-lsts-1: added config. 2013-11-25 11:27:35 +00:00
Ricardo Martins
e257522a21 rsync: upgraded to 3.1.0. 2013-11-20 18:17:18 +00:00
Ricardo Martins
b95a2f9f9b mkpackage: fixed typo. 2013-11-20 16:36:33 +00:00
Jose Braga
4255957dca LAUV Noptilus 3: missing zeros in mac address. 2013-10-16 08:47:33 +01:00
Jose Braga
0912c074c8 LAUV Noptilus 3: defined ARP table for Imagenex sidescan. 2013-10-16 08:39:47 +01:00
Ricardo Martins
59a8643fb1 lctr-a9xx: removed DTN from list of packages. 2013-10-09 01:33:17 +01:00
Jose Pinto
07caf7eec9 Delete default.bash~ 2013-09-14 23:51:40 +01:00
Jose Pinto
0e2f041f30 Update default.bash 2013-09-14 23:51:24 +01:00
Jose Pinto
eb7b97af99 Added node.js package. 2013-09-14 23:49:40 +01:00
Ricardo Martins
e50b1c84d3 dei80211mr: removed package for now. 2013-09-12 18:12:52 +01:00
Ricardo Martins
70ce9a9f63 ns-miracle: removed package for now. 2013-09-12 18:12:32 +01:00
Joao Fortuna
23eda780fc Added configuration file for X8-03. 2013-09-10 19:01:54 +01:00
João Fortuna
fa2366ad0b README.md: Escaped angle bracket symbol for correct display on GitHub. 2013-09-10 11:07:04 +01:00
Jose Pinto
adc9ee5076 Added configuration for TREX execution on kontron (lauv-xtreme-2). 2013-09-10 09:59:37 +01:00
Ricardo Martins
7d2a65b207 lctr-a6xx: added second octo-UART. 2013-09-05 01:43:39 +01:00
Ricardo Martins
b61cf9c209 lctr-a6xx: probe additional octo-UART board. 2013-09-05 00:09:04 +01:00
Ricardo Martins
bdf0eabb3f lctr-a6xx: increased number of UARTs. 2013-09-05 00:08:42 +01:00
Ricardo Martins
0be67b7a8a flashrom: added dependencies. 2013-09-04 16:30:15 +01:00
Ricardo Martins
ca92d8c2cb lctr-a6xx: added flashrom to list of packages. 2013-08-29 14:21:10 +01:00
Ricardo Martins
8c1168dd62 Merge branch 'glued-1.8.x'
Conflicts:
	mkconfig.bash
	systems/lctr-a6xx/lauv-dolphin-1.cfg
2013-08-19 21:11:12 +01:00
Ricardo Martins
2ed647f110 Updated licence. 2013-08-19 14:31:11 +01:00
Ricardo Martins
dc023bdc37 filesystem: increased mount retries to 120. 2013-08-12 13:31:30 +01:00
Ricardo Martins
2de0e986f9 lauv-dolphin-1: changed DUNE language to ru_RU. 2013-08-03 17:42:21 +01:00
Ricardo Martins
d68ebd33e6 Starting v1.9.x development. 2013-08-03 16:35:58 +01:00
489 changed files with 4900 additions and 5811 deletions

9
.gitignore vendored
View File

@@ -1 +1,8 @@
downloads /downloads
/lctr-a4xx
/lctr-a6xx
/lctr-a8xx
/lctr-a9xx
/lctr-b1xx
/lctr-b2xx
/qemu-i686

View File

@@ -18,10 +18,10 @@ terminal:
./mkconfig.bash list ./mkconfig.bash list
Once you have identified the name of the system you want to build, Once you have identified the name of the system you want to build,
issue the following command, replacing <system_name> with the name of issue the following command, replacing \<system_name> with the name of
that system: that system:
./mkconfig.bash <system_name> ./mkconfig.bash \<system_name>
Building Building
======== ========
@@ -31,7 +31,7 @@ necessary packages.
To start the compilation process, issue the following command: To start the compilation process, issue the following command:
./mksystem.bash <config_file> ./mksystem.bash \<config_file>
Archives Archives
======== ========
@@ -46,7 +46,7 @@ To create a package containing all the necessary tools to
cross-compile C/C++ programs for you target system, issue the cross-compile C/C++ programs for you target system, issue the
following command: following command:
./pktoolchain.bash <config_file> ./pktoolchain.bash \<config_file>
Root Filesystem Archive Root Filesystem Archive
----------------------- -----------------------
@@ -56,7 +56,7 @@ GLUED system. It allows you to upgrade existing GLUED systems and
initialize storage devices. To create a root filesystem archive, issue initialize storage devices. To create a root filesystem archive, issue
the following command: the following command:
./pkrootfs.bash <config_file> ./pkrootfs.bash \<config_file>
Initializing Storage Devices Initializing Storage Devices
============================ ============================
@@ -72,7 +72,7 @@ To perform all of the previous steps, you must first identify the
target block device file and then issue the following command (as target block device file and then issue the following command (as
root): root):
./mkdisk.bash <config_file> <block_device> ./mkdisk.bash \<config_file> \<block_device>
Example Example
======= =======

View File

@@ -1,5 +1,6 @@
cfg_target_canonical="armv11-$cfg_glued_vendor-linux-gnueabi" cfg_target_canonical="armv11-$cfg_glued_vendor-linux-gnueabi"
cfg_target_linux='arm' cfg_target_linux='arm'
cfg_target_uboot_arch='arm'
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mcpu=arm1176jzf-s -mtune=arm1176jzf-s -mfloat-abi=softfp -mfpu=vfpv3' cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mcpu=arm1176jzf-s -mtune=arm1176jzf-s -mfloat-abi=softfp -mfpu=vfpv3'
cfg_target_gcc_configure_flags='--with-arch=armv7-a --with-cpu=arm1176jzf-s --with-tune=arm1176jzf-s --with-fpu=vfpv3 --with-float=softfp' cfg_target_gcc_configure_flags='--with-arch=armv7-a --with-cpu=arm1176jzf-s --with-tune=arm1176jzf-s --with-fpu=vfpv3 --with-float=softfp'
cfg_target_ar_flags='elf32-littlearm' cfg_target_ar_flags='elf32-littlearm'

View File

@@ -1,6 +1,6 @@
cfg_target_canonical="armv7-$cfg_glued_vendor-linux-gnueabi" cfg_target_canonical="armv7-$cfg_glued_vendor-linux-gnueabi"
cfg_target_linux='arm' cfg_target_linux='arm'
cfg_target_uboot_arch='arm'
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mcpu=cortex-a8 -mtune=cortex-a8 -mfloat-abi=softfp -mfpu=vfpv3' cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mcpu=cortex-a8 -mtune=cortex-a8 -mfloat-abi=softfp -mfpu=vfpv3'
cfg_target_gcc_configure_flags='--with-arch=armv7-a --with-cpu=cortex-a8 --with-tune=cortex-a8 --with-fpu=vfpv3 --with-float=softfp' cfg_target_gcc_configure_flags='--with-arch=armv7-a --with-cpu=cortex-a8 --with-tune=cortex-a8 --with-fpu=vfpv3 --with-float=softfp'
cfg_target_ar_flags='elf32-littlearm' cfg_target_ar_flags='elf32-littlearm'
cfg_target_uboot_arch='arm'

View File

@@ -1,3 +1,26 @@
###########################################################################
# GLUED: GNU/Linux Uniform Environment Distribution #
# Copyright (C) 2007-2014 Universidade do Porto - Faculdade de Engenharia #
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
###########################################################################
# This program is free software; you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation; either version 2 of the License, or (at #
# your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, but #
# WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
# General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program; if not, write to the Free Software #
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
# 02110-1301 USA. #
###########################################################################
# Author: Ricardo Martins #
###########################################################################
nfo1() nfo1()
{ {
echo -e "[$(date +"%Y-%m-%d %H:%M:%S")] \033[0m\033[1;34m* $*\033[0m" echo -e "[$(date +"%Y-%m-%d %H:%M:%S")] \033[0m\033[1;34m* $*\033[0m"

View File

@@ -1,16 +1,29 @@
#! /bin/bash #! /bin/bash
############################################################################# ###########################################################################
# Copyright (C) 2007-2012 Laboratório de Sistemas e Tecnologia Subaquática # # GLUED: GNU/Linux Uniform Environment Distribution #
# Departamento de Engenharia Electrotécnica e de Computadores # # Copyright (C) 2007-2014 Universidade do Porto - Faculdade de Engenharia #
# Rua Dr. Roberto Frias, 4200-465 Porto, Portugal # # Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
############################################################################# ###########################################################################
# Author: Ricardo Martins # # 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 #
# $Id:: mkconfig.bash 1629 2013-06-30 11:39:30Z rasm $:# # the Free Software Foundation; either version 2 of the License, or (at #
############################################################################# # your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, but #
# WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
# General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program; if not, write to the Free Software #
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
# 02110-1301 USA. #
###########################################################################
# Author: Ricardo Martins #
###########################################################################
# Config: GLUED version. # Config: GLUED version.
cfg_glued_version='1.8.4' cfg_glued_version='1.12.2'
# Config: GLUED vendor. # Config: GLUED vendor.
cfg_glued_vendor='lsts' cfg_glued_vendor='lsts'
@@ -77,14 +90,15 @@ if ! [ -f "architectures/$cfg_architecture.cfg" ]; then
fi fi
source "architectures/$cfg_architecture.cfg" source "architectures/$cfg_architecture.cfg"
# Creating the mac address if not set in configuration file we create one derivated from the IP address: # Create a MAC address based on the IP address if cfg_eth_ext_soft_mac
if [ -n $cfg_eth_ext_ip ]; then # is set.
ips=(`echo $cfg_eth_ext_ip | sed -e 's/\./\n/g'`) if [ -n "$cfg_eth_ext_ip" ] && [ -n "$cfg_eth_ext_soft_mac" ]; then
for i in "${ips[@]}" ips=(`echo $cfg_eth_ext_ip | sed -e 's/\./\n/g'`)
do for i in "${ips[@]}"
hip=("${hip[@]}" `printf '%x' $i`) do
done hip=("${hip[@]}" `printf '%x' $i`)
cfg_eth_ext_mac="80:c1:${hip[0]}:${hip[1]}:${hip[2]}:${hip[3]}" done
cfg_eth_ext_mac="80:c1:${hip[0]}:${hip[1]}:${hip[2]}:${hip[3]}"
fi fi
# Config: system name. # Config: system name.
@@ -98,7 +112,7 @@ cfg_dir_base="$PWD"
# Config: system configuration folder. # Config: system configuration folder.
cfg_dir_system="$cfg_dir_base/$family_dir" cfg_dir_system="$cfg_dir_base/$family_dir"
# Config: package rules folder. # Config: package rules folder.
cfg_dir_packages="$cfg_dir_base/packages" cfg_dir_rules="$cfg_dir_base/rules"
# Config: configuration rules folder. # Config: configuration rules folder.
cfg_dir_postconfiguration="$cfg_dir_base/postconfiguration" cfg_dir_postconfiguration="$cfg_dir_base/postconfiguration"
# Config: package sources folder. # Config: package sources folder.

View File

@@ -1,13 +1,26 @@
#! /bin/bash #! /bin/bash
############################################################################# ###########################################################################
# Copyright (C) 2007-2012 Laboratório de Sistemas e Tecnologia Subaquática # # GLUED: GNU/Linux Uniform Environment Distribution #
# Departamento de Engenharia Electrotécnica e de Computadores # # Copyright (C) 2007-2014 Universidade do Porto - Faculdade de Engenharia #
# Rua Dr. Roberto Frias, 4200-465 Porto, Portugal # # Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
############################################################################# ###########################################################################
# Author: Ricardo Martins # # 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 #
# $Id:: $:# # the Free Software Foundation; either version 2 of the License, or (at #
############################################################################# # your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, but #
# WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
# General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program; if not, write to the Free Software #
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
# 02110-1301 USA. #
###########################################################################
# Author: Ricardo Martins #
###########################################################################
cmd_parted() cmd_parted()
{ {
@@ -82,7 +95,7 @@ create_part_root()
|| die || die
nfo2 "Creating filesystem" nfo2 "Creating filesystem"
mkfs.ext2 -q -L "$part_label" "$part_dev" || die "$cmd_mkfs_ext2" -q -F -L "$part_label" "$part_dev" > /dev/null 2>&1 || die
nfo2 "Populating filesystem" nfo2 "Populating filesystem"
cmd_mount ext2 "$part_dev" || die cmd_mount ext2 "$part_dev" || die
@@ -115,7 +128,7 @@ create_part_data()
|| die || die
nfo2 "Creating filesystem" nfo2 "Creating filesystem"
mkfs.ext4 -q -L "$part_label" -O dir_index "$part_dev" || die "$cmd_mkfs_ext4" -q -F -L "$part_label" -O dir_index "$part_dev" > /dev/null 2>&1 || die
nfo2 "Populating filesystem" nfo2 "Populating filesystem"
cmd_mount ext4 "$part_dev" || die cmd_mount ext4 "$part_dev" || die
@@ -154,6 +167,13 @@ else
cmd_parted="parted" cmd_parted="parted"
fi fi
if [ -x "$cfg_dir_toolchain/sbin/fdisk" ]; then
cmd_fdisk="$cfg_dir_toolchain/sbin/fdisk"
else
echo "Warning: using system fdisk, this might lead to errors"
cmd_fdisk="fdisk"
fi
if [ -x "$cfg_dir_toolchain/sbin/mkdosfs" ]; then if [ -x "$cfg_dir_toolchain/sbin/mkdosfs" ]; then
cmd_mkdosfs="$cfg_dir_toolchain/sbin/mkdosfs" cmd_mkdosfs="$cfg_dir_toolchain/sbin/mkdosfs"
else else
@@ -161,6 +181,20 @@ else
cmd_mkdosfs="mkdosfs" cmd_mkdosfs="mkdosfs"
fi fi
if [ -x "$cfg_dir_toolchain/sbin/mkfs.ext2" ]; then
cmd_mkfs_ext2="$cfg_dir_toolchain/sbin/mkfs.ext2"
else
echo "Warning: using system mkfs.ext2, this might lead to errors"
cmd_mkfs_ext2="mkfs.ext2"
fi
if [ -x "$cfg_dir_toolchain/sbin/mkfs.ext4" ]; then
cmd_mkfs_ext4="$cfg_dir_toolchain/sbin/mkfs.ext4"
else
echo "Warning: using system mkfs.ext4, this might lead to errors"
cmd_mkfs_ext4="mkfs.ext4"
fi
source "functions.bash" source "functions.bash"
dev="$2" dev="$2"
@@ -202,6 +236,7 @@ cmd_parted "$dev_loop" \
|| die || die
part_nr=1 part_nr=1
xboot_system_id=0
for ((i = 0; i < ${#cfg_partitions[@]}; i += 4)); do for ((i = 0; i < ${#cfg_partitions[@]}; i += 4)); do
part_type="${cfg_partitions[$i+0]}" part_type="${cfg_partitions[$i+0]}"
part_label="${cfg_partitions[$i+1]}" part_label="${cfg_partitions[$i+1]}"
@@ -212,6 +247,7 @@ for ((i = 0; i < ${#cfg_partitions[@]}; i += 4)); do
case $part_type in case $part_type in
'x-boot') 'x-boot')
create_part_xboot create_part_xboot
xboot_system_id=1
;; ;;
'root') 'root')
create_part_root create_part_root
@@ -237,5 +273,10 @@ nfo1 "Synchronizing caches"
sync && sync && sync && sync && sync && sync sync && sync && sync && sync && sync && sync
blockdev --flushbufs "$dev_loop" || die blockdev --flushbufs "$dev_loop" || die
# Make sure the partition has 0x0e type.
if [ $xboot_system_id -eq 1 ]; then
echo -en "t\n1\ne\nw\n" | $cmd_fdisk "$dev_loop" > /dev/null 2>&1
fi
nfo1 "Detaching loop device $dev_loop" nfo1 "Detaching loop device $dev_loop"
losetup -v -d "$dev_loop" losetup -v -d "$dev_loop"

View File

@@ -1,13 +1,26 @@
#! /bin/bash #! /bin/bash
############################################################################# ###########################################################################
# Copyright (C) 2007-2012 Laboratório de Sistemas e Tecnologia Subaquática # # GLUED: GNU/Linux Uniform Environment Distribution #
# Departamento de Engenharia Electrotécnica e de Computadores # # Copyright (C) 2007-2014 Universidade do Porto - Faculdade de Engenharia #
# Rua Dr. Roberto Frias, 4200-465 Porto, Portugal # # Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
############################################################################# ###########################################################################
# Author: Ricardo Martins # # 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 #
# $Id:: mkpackage.bash 1408 2013-02-06 14:10:34Z nurc $:# # the Free Software Foundation; either version 2 of the License, or (at #
############################################################################# # your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, but #
# WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
# General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program; if not, write to the Free Software #
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
# 02110-1301 USA. #
###########################################################################
# Author: Ricardo Martins #
###########################################################################
source "functions.bash" source "functions.bash"
@@ -80,6 +93,21 @@ download()
let n++ let n++
done done
n=0; while [ -n "${git[$n]}" ]; do
u="$(echo ${git[$n]} | cut -f1 -d'#')"
b="$(echo ${git[$n]} | cut -f2 -d'#')"
dir=$(basename $u)
des="${cfg_dir_builds}/$pkg/$dir-git"
if [[ "$u" == git* ]]; then
git clone --verbose --branch "$b" "$u" "$des"
else
git clone --verbose "$u" "$des"
fi
let n++
done
return 0 return 0
} }
@@ -97,10 +125,10 @@ unpack()
case $file in case $file in
*tar*|*tgz|*tbz*) *tar*|*tgz|*tbz*)
tar -C "$cfg_dir_builds/$PKG" -x -f "$cfg_dir_downloads/$file" || exit 1 tar -C "$cfg_dir_builds/$pkg" -x -f "$cfg_dir_downloads/$file" || exit 1
;; ;;
*zip) *zip)
unzip "$cfg_dir_downloads/$file" -d "$cfg_dir_builds/$PKG" || exit 1 unzip "$cfg_dir_downloads/$file" -d "$cfg_dir_builds/$pkg" || exit 1
;; ;;
*) *)
echo "File $file can't be handled." echo "File $file can't be handled."
@@ -111,11 +139,11 @@ unpack()
dir_gnu_cfg="$cfg_dir_toolchain/share/gnu-config" dir_gnu_cfg="$cfg_dir_toolchain/share/gnu-config"
if [ "$cfg_dir_cfg/config.sub" ]; then if [ "$cfg_dir_cfg/config.sub" ]; then
find "$cfg_dir_builds/$PKG" -name config.sub -exec install -v -m 0755 "$dir_gnu_cfg/config.sub" '{}' \; find "$cfg_dir_builds/$pkg" -name config.sub -exec install -v -m 0755 "$dir_gnu_cfg/config.sub" '{}' \;
fi fi
if [ "$cfg_dir_cfg/config.guess" ]; then if [ "$cfg_dir_cfg/config.guess" ]; then
find "$cfg_dir_builds/$PKG" -name config.guess -exec install -v -m 0755 "$dir_gnu_cfg/config.guess" '{}' \; find "$cfg_dir_builds/$pkg" -name config.guess -exec install -v -m 0755 "$dir_gnu_cfg/config.guess" '{}' \;
fi fi
return 0 return 0
@@ -153,48 +181,48 @@ postconfigure()
perform_clean() perform_clean()
{ {
rm -rf "$cfg_dir_builds/$PKG/$PKG_VAR" rm -rf "$cfg_dir_builds/$pkg/$pkg_var"
} }
perform_all() perform_all()
{ {
start="$(date +%s)" start="$(date +%s)"
nfo1 "$PKG / $PKG_VAR" nfo1 "$pkg / $pkg_var"
export pkg_build_dir="$cfg_dir_builds/$PKG/$PKG_VAR" export pkg_build_dir="$cfg_dir_builds/$pkg/$pkg_var"
for rule in download unpack post_unpack refresh configure build host_install target_install postconfigure; do for rule in download unpack post_unpack refresh configure build host_install target_install postconfigure; do
case $rule in case $rule in
download | unpack | post_unpack) download | unpack | post_unpack)
marker="$cfg_dir_builds/$PKG/.$rule" marker="$cfg_dir_builds/$pkg/.$rule"
;; ;;
*) *)
marker="$cfg_dir_builds/$PKG/$PKG_VAR/.$rule" marker="$cfg_dir_builds/$pkg/$pkg_var/.$rule"
;; ;;
esac esac
mkdir -p "$cfg_dir_builds/$PKG/$PKG_VAR" && cd "$cfg_dir_builds/$PKG/$PKG_VAR" mkdir -p "$cfg_dir_builds/$pkg/$pkg_var" && cd "$cfg_dir_builds/$pkg/$pkg_var"
if [ -z "$build_dir" ]; then if [ -z "$build_dir" ]; then
build_dir="$PKG-$version" build_dir="$pkg-$version"
fi fi
if [ -n "$build_dir" ]; then if [ -n "$build_dir" ]; then
mkdir -p "$cfg_dir_builds/$PKG/$build_dir" && cd "$cfg_dir_builds/$PKG/$build_dir" mkdir -p "$cfg_dir_builds/$pkg/$build_dir" && cd "$cfg_dir_builds/$pkg/$build_dir"
fi fi
if [ -n "$build_always" ] || [ "$rule" = 'refresh' ]; then if [ -n "$build_always" ] || [ "$rule" = 'refresh' ]; then
nfo2 "$rule" nfo2 "$rule"
$rule > "$cfg_dir_builds/$PKG/$PKG_VAR/$rule.log" 2>&1 $rule > "$cfg_dir_builds/$pkg/$pkg_var/$rule.log" 2>&1
else else
if ! [ -f "$marker" ]; then if ! [ -f "$marker" ]; then
nfo2 "$rule" nfo2 "$rule"
$rule > "$cfg_dir_builds/$PKG/$PKG_VAR/$rule.log" 2>&1 $rule > "$cfg_dir_builds/$pkg/$pkg_var/$rule.log" 2>&1
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
touch "$marker" touch "$marker"
else else
err "failed to execute rule $rule of $PKG / $PKG_VAR" err "failed to execute rule $rule of $pkg / $pkg_var"
tail "$cfg_dir_builds/$PKG/$PKG_VAR/$rule.log" tail "$cfg_dir_builds/$pkg/$pkg_var/$rule.log"
exit 1 exit 1
fi fi
fi fi
@@ -203,7 +231,7 @@ perform_all()
elapsed=$[ $(date +%s)-$start ] elapsed=$[ $(date +%s)-$start ]
ok "completed in ${elapsed}s" ok "completed in ${elapsed}s"
touch "$cfg_dir_builds/$PKG/$PKG_VAR/.complete" touch "$cfg_dir_builds/$pkg/$pkg_var/.complete"
} }
# Check shell. # Check shell.
@@ -270,17 +298,17 @@ if [ "$pkg_var" = "$pkg" ]; then
pkg_var='default' pkg_var='default'
fi fi
export PKG="$pkg" export pkg
export PKG_VAR="$pkg_var" export pkg_var
export PKG_COMMON="$cfg_dir_packages/$PKG/common.bash" export pkg_common="$cfg_dir_rules/$pkg/common.bash"
if ! [ -d "$cfg_dir_packages/$PKG" ]; then if ! [ -d "$cfg_dir_rules/$pkg" ]; then
echo "ERROR: package '$PKG' does not exist." echo "ERROR: package '$pkg' does not exist."
exit 1 exit 1
fi fi
if ! [ -f "$cfg_dir_packages/$PKG/$PKG_VAR.bash" ]; then if ! [ -f "$cfg_dir_rules/$pkg/$pkg_var.bash" ]; then
echo "ERROR: variant '$PKG_VAR' of package '$PKG' does not exist." echo "ERROR: variant '$pkg_var' of package '$pkg' does not exist."
exit 1 exit 1
fi fi
@@ -290,18 +318,18 @@ else
rule="$3" rule="$3"
fi fi
mkdir -p "$cfg_dir_downloads" "$cfg_dir_rootfs" "$cfg_dir_toolchain" "$cfg_dir_builds/$PKG" mkdir -p "$cfg_dir_downloads" "$cfg_dir_rootfs" "$cfg_dir_toolchain" "$cfg_dir_builds/$pkg"
export cfg_package_spec_dir="$cfg_dir_base/packages/$PKG" export pkg_dir="$cfg_dir_rules/$pkg"
. "$cfg_dir_packages/$PKG/$PKG_VAR.bash" . "$cfg_dir_rules/$pkg/$pkg_var.bash"
# Postconfiguration: # Postconfiguration:
if [ -e "$cfg_dir_postconfiguration/$PKG/$cfg_sys_name.bash" ]; then if [ -e "$cfg_dir_postconfiguration/$pkg/$cfg_sys_name.bash" ]; then
# echo "ERROR: postconfiguration exists '$PKG'." # echo "ERROR: postconfiguration exists '$pkg'."
# echo "$cfg_dir_postconfiguration/$PKG/$cfg_sys_name.bash" # echo "$cfg_dir_postconfiguration/$pkg/$cfg_sys_name.bash"
# exit 1 # exit 1
. "$cfg_dir_postconfiguration/$PKG/$cfg_sys_name.bash" . "$cfg_dir_postconfiguration/$pkg/$cfg_sys_name.bash"
fi fi
# Handle dependencies. # Handle dependencies.
@@ -319,7 +347,7 @@ n=0; while [ -n "${requires[$n]}" ]; do
"$0" "$1" "$req" "$0" "$1" "$req"
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
err "failed to build dependecy for package $PKG / $PKG_VAR" err "failed to build dependency for package $pkg / $pkg_var"
exit 1 exit 1
fi fi
done done

View File

@@ -1,13 +1,26 @@
#! /bin/bash #! /bin/bash
############################################################################# ###########################################################################
# Copyright (C) 2007-2012 Laboratório de Sistemas e Tecnologia Subaquática # # GLUED: GNU/Linux Uniform Environment Distribution #
# Departamento de Engenharia Electrotécnica e de Computadores # # Copyright (C) 2007-2013 Universidade do Porto - Faculdade de Engenharia #
# Rua Dr. Roberto Frias, 4200-465 Porto, Portugal # # Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
############################################################################# ###########################################################################
# Author: Ricardo Martins # # 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 #
# $Id:: mksystem.bash 1152 2012-09-14 02:06:10Z rasm $:# # the Free Software Foundation; either version 2 of the License, or (at #
############################################################################# # your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, but #
# WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
# General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program; if not, write to the Free Software #
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
# 02110-1301 USA. #
###########################################################################
# Author: Ricardo Martins #
###########################################################################
# Check shell type. # Check shell type.
if [ -z "$BASH_VERSION" ]; then if [ -z "$BASH_VERSION" ]; then

View File

@@ -1,53 +0,0 @@
version=\
(
"5.0-20120323"
)
url=\
(
"ftp://invisible-island.net/cdk/cdk.tar.gz"
)
md5=\
(
"929969d06ce034e862976bb7d1a36b25"
)
requires=\
(
'ncurses/default'
)
configure()
{
# --target="${cfg_target_canonical}" \
./configure \
--prefix="$cfg_dir_toolchain_sysroot/usr" \
--host="${cfg_target_canonical}" \
--build="${cfg_host_canonical}" \
--target="${cfg_target_canonical}" \
--with-ncursesw \
--with-shared \
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
}
target_install()
{
for f in "$cfg_dir_toolchain_sysroot/usr/lib/libcdk"* ; do
if [ -L "$f" ]; then
cp -av "$f" "$cfg_dir_rootfs/usr/lib"
else
$cmd_target_strip -v "$f" -o "$cfg_dir_rootfs/usr/lib/$(basename "$f")"
fi
done
}

View File

@@ -1,104 +0,0 @@
version=\
(
'1.1.4'
)
ns_version=\
(
'2.34'
)
url=\
(
"http://www.lsts.pt/glued/dei80211mr-$version.tar.gz"
)
md5=\
(
'8ad1adcd02fc41933d6528c093e1c3d9'
)
requires=\
(
'ns/default'
)
post_unpack()
{
patches=$(ls "$cfg_package_spec_dir/patches/"*.patch)
if [ -n "$patches" ]; then
cat $patches | patch -p0
fi
}
configure()
{
prefix="/ns2_lib"
cd ../dei80211mr-$version/
make distclean
rm -fr autom4te.cache/
rm config.*
rm missing
rm Makefile.in
rm install-sh
rm depcomp
rm configure
rm ltmain.sh
rm m4/libtool*
rm m4/Makefile
rm m4/Makefile.in
rm aclocal.m4
rm m4/lt*
find . -name "*.o" -exec rm {} \;
cd -
/usr/bin/aclocal -I m4 --force && /usr/bin/libtoolize --force && /usr/bin/automake --foreign --add-missing && /usr/bin/autoconf
sed "s#@TCL2CPP@#qemu-arm -L ${cfg_dir_rootfs} ${cfg_dir_rootfs}/lib/ld-linux.so.3 ${cfg_dir_toolchain_sysroot}/usr/bin/tcl2c++#g" "./m4/Makefile.in" -i
sed "s#@TCL2CPP@#qemu-arm -L ${cfg_dir_rootfs} ${cfg_dir_rootfs}/lib/ld-linux.so.3 ${cfg_dir_toolchain_sysroot}/usr/bin/tcl2c++#g" "./Makefile.in" -i
sed "s#@TCL2CPP@#qemu-arm -L ${cfg_dir_rootfs} ${cfg_dir_rootfs}/lib/ld-linux.so.3 ${cfg_dir_toolchain_sysroot}/usr/bin/tcl2c++#g" "./src/Makefile.in" -i
"../dei80211mr-$version/configure" \
--target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \
--build="$cfg_host_canonical" \
--prefix="$prefix" \
--disable-static \
--enable-shared \
--with-ns-allinone=${cfg_dir_builds}/ns/ \
--x-includes=no --x-libraries=no
}
build()
{
$cmd_make -j1
}
host_install()
{
$cmd_mkdir \
"$cfg_dir_toolchain_sysroot/ns2/ns2_lib/lib" \
"$cfg_dir_toolchain_sysroot/ns2/ns2_lib/share" &&
$cmd_make \
DESTDIR="$cfg_dir_toolchain_sysroot/ns2" \
install
}
target_install()
{
$cmd_mkdir \
"${cfg_dir_rootfs}/usr/ns2/lib/"
for f in "$cfg_dir_toolchain_sysroot/ns2/ns2_lib/lib/"lib*.so*; do
$cmd_target_strip "$f" -o ${cfg_dir_rootfs}/usr/ns2/lib/"$(basename "$f")"
done
}

View File

@@ -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)

View File

@@ -1,10 +0,0 @@
start()
{
mount -t debugfs debugfs /sys/kernel/debug &&
# UART1.
echo 0 > /sys/kernel/debug/omap_mux/uart1_txd &&
echo 20 > /sys/kernel/debug/omap_mux/uart1_rxd &&
umount /sys/kernel/debug
}

View File

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

View File

@@ -1,192 +0,0 @@
#! /bin/sh
#############################################################################
# Copyright (C) 2012 Laboratório de Sistemas e Tecnologia Subaquática #
# Departamento de Engenharia Electrotécnica e de Computadores #
# Rua Dr. Roberto Frias, 4200-465 Porto, Portugal #
#############################################################################
# Author: Ricardo Martins #
#############################################################################
GSM_USER='vodafone'
GSM_PASS='vodafone'
GSM_APN='internet.vodafone.pt'
GSM_MODE='AT\^SYSCFG=2,2,3fffffff,0,1'
GSM_PIN='AT'
FWL_EXT_ITF='ppp0'
FWL_INT_ITF='eth0'
CHAT_SCRIPT=$(cat <<EOF
ABORT 'BUSY' \
ABORT 'NO CARRIER' \
ABORT 'VOICE' \
ABORT 'NO DIALTONE' \
ABORT 'NO DIAL TONE' \
ABORT 'NO ANSWER' \
ABORT 'DELAYED' \
REPORT CONNECT \
TIMEOUT 6 \
'' 'ATQ0' \
'OK-AT-OK' 'ATZ' \
TIMEOUT 3 \
'OK' '$GSM_PIN' \
'OK-AT-OK' 'ATI' \
'OK' 'ATZ' \
'OK' 'ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0' \
'OK' '$GSM_MODE' \
'OK-AT-OK' 'AT+CGDCONT=1,\"IP\",\"$GSM_APN\"' \
'OK' 'ATDT*99***1#' \
TIMEOUT 30 \
CONNECT ''
EOF
)
modem_probe()
{
nr="$(cat /proc/tty/driver/usbserial | grep GSM | head -n 1 | cut -f1 -d:)"
if [ -z "$nr" ]; then
echo ""
else
echo "/dev/ttyUSB$nr"
fi
}
ppp_start()
{
modem="$(modem_probe)"
if [ -z "$modem" ]; then
echo -e "\nERROR: failed to find GSM modem.\n"
exit 1
fi
auth=''
if [ -n "$GSM_USER" ] && [ -n "$GSM_PASS" ]; then
auth="user \"$GSM_USER\" password \"$GSM_PASS\""
fi
echo -e "\n* Removing default route"
/sbin/route del default dev eth0 > /dev/null 2>&1
echo -e "\n* Starting PPP"
/usr/sbin/pppd \
"$modem" \
921600 \
$auth \
lock \
crtscts \
modem \
passive \
novj \
defaultroute \
noipdefault \
usepeerdns \
noauth \
hide-password \
persist \
holdoff 10 \
maxfail 2 \
updetach \
connect "/usr/sbin/chat -E -v -t15 $CHAT_SCRIPT" > /var/run/ppp.log 2>&1
if [ $? -ne 0 ]; then
echo -e "\nERROR: PPP failed to establish a connection.\n"
exit 1
fi
ip=$(ifconfig ppp0 | grep inet | cut -f2 -d: | cut -f1 -d' ')
echo " - External IP is $ip"
}
ppp_stop()
{
pid="$(cat /var/run/ppp0.pid 2> /dev/null)"
echo -e "\n* Stopping PPP"
if [ -z "$pid" ]; then
echo " - Daemon is not running"
return 0
fi
for n in 1 2 3 4 5; do
if ! [ -d "/proc/$pid" ]; then
echo " - Daemon stopped"
return 0
fi
echo " - Sending SIGTERM to '$pid' (try $n)"
kill "$pid" > /dev/null 2>&1
sleep 2
done
kill -9 "$pid" > /dev/null 2>&1
echo " - Daemon terminated"
return 0
}
nat_start()
{
echo -e "\n* Enabling NAT"
echo " - Enabling IP forwarding"
echo '1' > /proc/sys/net/ipv4/ip_forward
echo '1' > /proc/sys/net/ipv4/ip_dynaddr
echo " - Flushing rules"
iptables -P INPUT ACCEPT
iptables -F INPUT
iptables -P OUTPUT ACCEPT
iptables -F OUTPUT
iptables -P FORWARD DROP
iptables -F FORWARD
iptables -t nat -F
echo " - Installing rules"
iptables -A FORWARD -i "$FWL_EXT_ITF" -o "$FWL_INT_ITF" -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -i "$FWL_EXT_ITF" -o "$FWL_EXT_ITF" -j ACCEPT
iptables -A FORWARD -i "$FWL_EXT_ITF" -o "$FWL_INT_ITF" -j ACCEPT
iptables -A FORWARD -i "$FWL_INT_ITF" -o "$FWL_EXT_ITF" -j ACCEPT
iptables -A FORWARD -j LOG
iptables -t nat -A POSTROUTING -o "$FWL_EXT_ITF" -j MASQUERADE
}
nat_stop()
{
echo -e "\n* Disabling NAT"
echo " - Disabling IP forwarding"
echo '0' > /proc/sys/net/ipv4/ip_forward
echo '0' > /proc/sys/net/ipv4/ip_dynaddr
echo " - Flushing NAT rules"
iptables -P INPUT ACCEPT
iptables -F INPUT
iptables -P OUTPUT ACCEPT
iptables -F OUTPUT
iptables -P FORWARD DROP
iptables -F FORWARD
iptables -t nat -F
}
start()
{
ppp_start && nat_start
if [ $? -eq 0 ]; then
echo -e "\n* Connection Established\n"
else
echo -e "\nERROR: failed to establish a connection\n"
fi
}
stop()
{
nat_stop && ppp_stop
if [ $? -eq 0 ]; then
echo -e "\n* Service stopped\n"
else
echo -e "\nERROR: failed to stop service.\n"
fi
}

View File

@@ -1,9 +0,0 @@
start()
{
/usr/bin/ldattach PPS "$cfg_pps_attach_dev"
}
stop()
{
killall ldattach
}

View File

@@ -1,11 +0,0 @@
--- gcc-4.6.3/libjava/configure.host 2010-12-06 00:50:04.000000000 +0000
+++ gcc-4.6.3.rasm/libjava/configure.host 2012-10-30 20:29:06.192935517 +0000
@@ -115,7 +115,7 @@
mips*-*)
libgcj_interpreter=yes
;;
- i686-*|i586-*|i486-*|i386-*)
+ i786-*|i686-*|i586-*|i486-*|i386-*)
sysdeps_dir=i386
# With -fomit-frame-pointer -maccumulate-outgoing-args (implied),
# the .text section of libgcj.so is 30k larger, and the .eh_frame

View File

@@ -1,14 +0,0 @@
diff -Nru gcc-4.6.3/gcc/config/i386/t-linux64 gcc-4.6.3.rasm/gcc/config/i386/t-linux64
--- gcc-4.6.3/gcc/config/i386/t-linux64 2009-04-21 20:03:23.000000000 +0100
+++ gcc-4.6.3.rasm/gcc/config/i386/t-linux64 2012-12-11 19:01:42.549964639 +0000
@@ -24,8 +24,8 @@
# MULTILIB_OSDIRNAMES according to what is found on the target.
MULTILIB_OPTIONS = m64/m32
-MULTILIB_DIRNAMES = 64 32
-MULTILIB_OSDIRNAMES = ../lib64 $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)
+MULTILIB_DIRNAMES = 64 32
+MULTILIB_OSDIRNAMES = ../lib $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)
LIBGCC = stmp-multilib
INSTALL_LIBGCC = install-multilib

View File

@@ -1,57 +0,0 @@
version=\
(
"4.6.1"
)
url=\
(
"ftp://ftp.dante.de/pub/tex/graphics/gnuplot/${version}/gnuplot-${version}.tar.gz"
)
md5=\
(
"4c9a06461f402482c30cf94e267eb877"
)
configure()
{
./configure \
--prefix="${cfg_dir_toolchain_sysroot}/usr" \
--target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \
--build="$cfg_host_canonical" \
--disable-history-file \
--without-x \
--disable-raise-console \
--disable-mouse \
--without-tutorial \
--without-demo \
--disable-demo \
--without-row-help \
--disable-history-file \
--without-lisp-files \
--disable-wxwidgets \
--without-lua \
--without-latex \
--without-cairo
sed -i "s#demo ##g" Makefile
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
}
target_install()
{
$cmd_target_strip -v "$cfg_dir_toolchain_sysroot/usr/bin/gnuplot" -o "$cfg_dir_rootfs/usr/bin/gnuplot"
$cmd_cp "$cfg_dir_toolchain_sysroot/usr/share/gnuplot" "$cfg_dir_rootfs/usr/share"
}

View File

@@ -1,45 +0,0 @@
version=\
(
"2.95"
)
url=\
(
"http://download.berlios.de/gpsd/gpsd-$version.tar.gz"
)
md5=\
(
"12535a9ed9fecf9ea2c5bdc9840da5ae"
)
maintainer=\
(
"Ricardo Martins <rasm@fe.up.pt>"
)
configure()
{
../gpsd-$version/configure \
--prefix="$cfg_dir_rootfs/usr" \
--target=$cfg_target_canonical \
--host=$cfg_target_canonical \
--build=$cfg_host_canonical \
--disable-dbus \
--disable-libQgpsmm
}
build()
{
$cmd_make
}
target_install()
{
$cmd_target_strip .libs/gpsd -o $cfg_dir_rootfs/usr/bin/gpsd &&
for l in .libs/libgps*so*; do
$cmd_target_strip "$l" -o $cfg_dir_rootfs/usr/lib/"$(basename $l)"
done
cp "$cfg_package_spec_dir"/services/gpsd "$cfg_dir_rootfs/etc/rc.d"
}

View File

@@ -1,14 +0,0 @@
# Configuration Parameters
# cfg_gpsd_dev: serial port device.
# cfg_gpsd_baud: serial port baud rate.
start()
{
stty -F "$cfg_gpsd_dev" "$cfg_gpsd_baud"
gpsd -n "$cfg_gpsd_dev"
}
stop()
{
killall gpsd
}

View File

@@ -1,180 +0,0 @@
Debian-specific modifications to the upstream Makefile.in to
build a shared library.
---
Makefile.in | 49 +++++++++++++++++++++++++++++++++++++++++--------
aclocal.m4 | 4 ++--
configure | 4 ++--
3 files changed, 45 insertions(+), 12 deletions(-)
--- a/Makefile.in
+++ b/Makefile.in
@@ -40,6 +40,14 @@
srcdir = @srcdir@
VPATH = @srcdir@
+# some defines for shared library compilation
+MAJ=1.0
+LIBVERSION=1
+LIBNAME=pcap
+LIBRARY=lib$(LIBNAME).a
+SOLIBRARY=lib$(LIBNAME).so
+SHAREDLIB=$(SOLIBRARY).$(LIBVERSION)
+
#
# You shouldn't need to edit anything below.
#
@@ -59,6 +67,7 @@
# Standard CFLAGS
CFLAGS = $(CCOPT) $(INCLS) $(DEFS)
+CFLAGS_SHARED = -shared -Wl,-soname,$(SOLIBRARY).$(MAJ)
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
@@ -78,7 +87,11 @@
# problem if you don't own the file but can write to the directory.
.c.o:
@rm -f $@
- $(CC) $(CFLAGS) -c $(srcdir)/$*.c
+ $(CC) $(CFLAGS) -c -o $@ $(srcdir)/$*.c
+
+%_pic.o: %.c
+ @rm -f $@
+ $(CC) -fPIC $(CFLAGS) -c -o $@ $(srcdir)/$*.c
PSRC = pcap-@V_PCAP@.c @USB_SRC@ @BT_SRC@ @CAN_SRC@
FSRC = fad-@V_FINDALLDEVS@.c
@@ -94,6 +107,7 @@
# We would like to say "OBJ = $(SRC:.c=.o)" but Ultrix's make cannot
# hack the extra indirection
OBJ = $(PSRC:.c=.o) $(FSRC:.c=.o) $(CSRC:.c=.o) $(SSRC:.c=.o) $(GENSRC:.c=.o) $(LIBOBJS)
+OBJ_PIC = $(PSRC:.c=_pic.o) $(FSRC:.c=_pic.o) $(CSRC:.c=_pic.o) $(SSRC:.c=_pic.o) $(GENSRC:.c=_pic.o)
PUBHDR = \
pcap.h \
pcap-bpf.h \
@@ -131,7 +145,7 @@
CLEANFILES = $(OBJ) libpcap.* filtertest findalldevstest selpolltest \
opentest $(PROG)-`cat $(srcdir)/VERSION`.tar.gz $(GENSRC) $(GENHDR) \
- lex.yy.c pcap-config
+ lex.yy.c pcap-config $(OBJ_PIC)
MAN1 = pcap-config.1
@@ -331,7 +345,7 @@
ar rc $@ $(OBJ) $(ADDLARCHIVEOBJS)
$(RANLIB) $@
-shared: libpcap.$(DYEXT)
+shared: $(SHAREDLIB)
libpcap.so: $(OBJ)
@rm -f $@
@@ -409,6 +423,13 @@
#
libpcap.none:
+$(SHAREDLIB): $(OBJ_PIC)
+ -@rm -f $@
+ -@rm -f $(SOLIBRARY) $(SOLIBRARY).$(MAJ)
+ $(CC) $(CFLAGS_SHARED) -o $(SHAREDLIB) $(OBJ_PIC) -lc
+ ln -s $(SHAREDLIB) $(SOLIBRARY).$(MAJ)
+ ln -s $(SOLIBRARY).$(MAJ) $(SOLIBRARY)
+
scanner.c: $(srcdir)/scanner.l
@rm -f $@
$(srcdir)/runlex.sh $(LEX) -o$@ $<
@@ -416,6 +437,9 @@
scanner.o: scanner.c tokdefs.h
$(CC) $(CFLAGS) -c scanner.c
+scanner_pic.o: scanner.c tokdefs.h
+ $(CC) -fPIC $(CFLAGS) -o $@ -c scanner.c
+
pcap.o: version.h
tokdefs.h: grammar.c
@@ -429,9 +453,17 @@
@rm -f $@
$(CC) $(CFLAGS) -Dyylval=pcap_lval -c grammar.c
+grammar_pic.o: grammar.c
+ @rm -f $@
+ $(CC) -fPIC $(CFLAGS) -Dyylval=pcap_lval -o $@ -c grammar.c
+
version.o: version.c
$(CC) $(CFLAGS) -c version.c
+version_pic.o: version.c
+ $(CC) -fPIC $(CFLAGS) -c version.c -o $@
+
+
snprintf.o: $(srcdir)/missing/snprintf.c
$(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/snprintf.c
@@ -469,6 +501,9 @@
bpf_filter.o: bpf_filter.c
$(CC) $(CFLAGS) -c bpf_filter.c
+bpf_filter_pic.o: bpf_filter.c
+ $(CC) -fPIC $(CFLAGS) -c bpf_filter.c -o $@
+
#
# Generate the pcap-config script.
#
@@ -565,11 +600,9 @@
install-shared-so: libpcap.so
[ -d $(DESTDIR)$(libdir) ] || \
(mkdir -p $(DESTDIR)$(libdir); chmod 755 $(DESTDIR)$(libdir))
- VER=`cat $(srcdir)/VERSION`; \
- MAJOR_VER=`sed 's/\([0-9][0-9]*\)\..*/\1/' $(srcdir)/VERSION`; \
- $(INSTALL_PROGRAM) libpcap.so.$$VER $(DESTDIR)$(libdir)/libpcap.so.$$VER; \
- ln -sf libpcap.so.$$VER $(DESTDIR)$(libdir)/libpcap.so.$$MAJOR_VER; \
- ln -sf libpcap.so.$$MAJOR_VER $(DESTDIR)$(libdir)/libpcap.so
+ $(INSTALL_DATA) $(SHAREDLIB) $(DESTDIR)$(libdir)/
+ ln -sf $(SHAREDLIB) $(DESTDIR)$(libdir)/$(SOLIBRARY).$(MAJ)
+ ln -sf $(SOLIBRARY).$(MAJ) $(DESTDIR)$(libdir)/$(SOLIBRARY)
install-shared-dylib: libpcap.dylib
[ -d $(DESTDIR)$(libdir) ] || \
(mkdir -p $(DESTDIR)$(libdir); chmod 755 $(DESTDIR)$(libdir))
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -245,7 +245,7 @@
# or accepts command-line arguments like
# those the GNU linker accepts.
#
- V_CCOPT="$V_CCOPT -fpic"
+ V_CCOPT="$V_CCOPT"
V_SONAME_OPT="-Wl,-soname,"
V_RPATH_OPT="-Wl,-rpath,"
;;
@@ -308,7 +308,7 @@
#
# "cc" is GCC.
#
- V_CCOPT="$V_CCOPT -fpic"
+ V_CCOPT="$V_CCOPT"
V_SHLIB_CMD="\$(CC)"
V_SHLIB_OPT="-shared"
V_SONAME_OPT="-Wl,-soname,"
--- a/configure
+++ b/configure
@@ -3229,7 +3229,7 @@
# or accepts command-line arguments like
# those the GNU linker accepts.
#
- V_CCOPT="$V_CCOPT -fpic"
+ V_CCOPT="$V_CCOPT"
V_SONAME_OPT="-Wl,-soname,"
V_RPATH_OPT="-Wl,-rpath,"
;;
@@ -3292,7 +3292,7 @@
#
# "cc" is GCC.
#
- V_CCOPT="$V_CCOPT -fpic"
+ V_CCOPT="$V_CCOPT"
V_SHLIB_CMD="\$(CC)"
V_SHLIB_OPT="-shared"
V_SONAME_OPT="-Wl,-soname,"

View File

@@ -1,103 +0,0 @@
Use a linker script.
---
Makefile.in | 2 -
libpcap.lds | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 84 insertions(+), 1 deletion(-)
--- a/Makefile.in
+++ b/Makefile.in
@@ -67,7 +67,7 @@
# Standard CFLAGS
CFLAGS = $(CCOPT) $(INCLS) $(DEFS)
-CFLAGS_SHARED = -shared -Wl,-soname,$(SOLIBRARY).$(MAJ)
+CFLAGS_SHARED = -shared -Wl,-soname,$(SOLIBRARY).$(MAJ) -Wl,--version-script=libpcap.lds
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
--- /dev/null
+++ b/libpcap.lds
@@ -0,0 +1,83 @@
+{
+ global:
+ bpf_dump;
+ bpf_filter;
+ bpf_image;
+ bpf_validate;
+ eproto_db;
+ pcap_breakloop;
+ pcap_can_set_rfmon;
+ pcap_close;
+ pcap_compile;
+ pcap_compile_nopcap;
+ pcap_datalink;
+ pcap_datalink_name_to_val;
+ pcap_datalink_val_to_description;
+ pcap_datalink_val_to_name;
+ pcap_dispatch;
+ pcap_dump;
+ pcap_dump_close;
+ pcap_dump_file;
+ pcap_dump_flush;
+ pcap_dump_fopen;
+ pcap_dump_ftell;
+ pcap_dump_open;
+ pcap_ether_aton;
+ pcap_ether_hostton;
+ pcap_file;
+ pcap_fileno;
+ pcap_findalldevs;
+ pcap_fopen_offline;
+ pcap_freealldevs;
+ pcap_freecode;
+ pcap_get_selectable_fd;
+ pcap_geterr;
+ pcap_getnonblock;
+ pcap_inject;
+ pcap_is_swapped;
+ pcap_lib_version;
+ pcap_list_datalinks;
+ pcap_lookupdev;
+ pcap_lookupnet;
+ pcap_loop;
+ pcap_major_version;
+ pcap_minor_version;
+ pcap_nametoaddr;
+ pcap_nametoaddrinfo;
+ pcap_nametoeproto;
+ pcap_nametollc;
+ pcap_nametonetaddr;
+ pcap_nametoport;
+ pcap_nametoportrange;
+ pcap_nametoproto;
+ pcap_next;
+ pcap_next_etherent;
+ pcap_next_ex;
+ pcap_open_dead;
+ pcap_open_live;
+ pcap_open_offline;
+ pcap_perror;
+ pcap_sendpacket;
+ pcap_set_datalink;
+ pcap_setdirection;
+ pcap_setfilter;
+ pcap_setnonblock;
+ pcap_snapshot;
+ pcap_stats;
+ pcap_statustostr;
+ pcap_strerror;
+ pcap_version;
+ /* introduced in pcap 1.0 */
+ pcap_activate;
+ pcap_create;
+ pcap_datalink_ext;
+ pcap_free_datalinks;
+ pcap_offline_filter;
+ pcap_set_buffer_size;
+ pcap_set_promisc;
+ pcap_set_rfmon;
+ pcap_set_snaplen;
+ pcap_set_timeout;
+ local:
+ *;
+};

View File

@@ -1,17 +0,0 @@
Misc. fixes to the upstream man page.
---
pcap.3pcap.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/pcap.3pcap.in
+++ b/pcap.3pcap.in
@@ -363,7 +363,7 @@
script or some other configuration script to check whether the libpcap
1.0 APIs are available and use them only if they are.
.SH SEE ALSO
-autoconf(1), tcpdump(1), tcpslice(1), pcap-filter(@MAN_MISC_INFO@), pfconfig(8),
+autoconf(1), tcpdump(8), tcpslice(1), pcap-filter(@MAN_MISC_INFO@), pfconfig(8),
usermod(1M)
.SH AUTHORS
The original authors of libpcap are:

View File

@@ -1,16 +0,0 @@
Fix USB bus path; /proc/bus/usb is deprecated.
---
pcap-usb-linux.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/pcap-usb-linux.c
+++ b/pcap-usb-linux.c
@@ -68,7 +68,7 @@
#define USB_TEXT_DIR_OLD "/sys/kernel/debug/usbmon"
#define USB_TEXT_DIR "/sys/kernel/debug/usb/usbmon"
#define SYS_USB_BUS_DIR "/sys/bus/usb/devices"
-#define PROC_USB_BUS_DIR "/proc/bus/usb"
+#define PROC_USB_BUS_DIR "/dev/bus/usb"
#define USB_LINE_LEN 4096
#if __BYTE_ORDER == __LITTLE_ENDIAN

View File

@@ -1,147 +0,0 @@
Support for GNU/kFreeBSD, by Aurelien Jarno and others.
---
configure | 62 ++---------------------------------------------------------
configure.in | 19 ++----------------
2 files changed, 6 insertions(+), 75 deletions(-)
--- a/configure.in
+++ b/configure.in
@@ -104,6 +104,7 @@
dnl
AC_CHECK_HEADERS(sys/ioccom.h sys/sockio.h limits.h paths.h)
AC_CHECK_HEADERS(net/pfvar.h, , , [#include <sys/types.h>
+#include <net/if_pflog.h>
#include <sys/socket.h>
#include <net/if.h>])
if test "$ac_cv_header_net_pfvar_h" = yes; then
@@ -304,7 +305,7 @@
#
V_PCAP=bpf
AC_DEFINE(HAVE_CLONING_BPF,1,[define if you have a cloning BPF device])
-elif test -r /dev/bpf0 ; then
+elif test -r /dev/bpf0 || test -r /usr/include/net/bpf.h ; then
V_PCAP=bpf
elif test -r /usr/include/net/pfilt.h ; then
V_PCAP=pf
@@ -464,20 +465,6 @@
#
AC_CHECK_HEADERS(net/if_media.h)
- AC_MSG_CHECKING(whether the system supports zerocopy BPF)
- AC_TRY_COMPILE(
- [#include <sys/socket.h>
- #include <sys/ioctl.h>
- #include <net/if.h>
- #include <net/bpf.h>],
- [return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);],
- [
- AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_ZEROCOPY_BPF, 1,
- [define if the system supports zerocopy BPF])
- ],
- AC_MSG_RESULT(no))
-
#
# Check whether we have struct BPF_TIMEVAL.
#
@@ -1234,7 +1221,7 @@
MAN_MISC_INFO=5
;;
-linux*|freebsd*|netbsd*|openbsd*|dragonfly*)
+linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*)
DYEXT="so"
#
--- a/configure
+++ b/configure
@@ -5440,6 +5440,7 @@
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
+#include <net/if_pflog.h>
#include <sys/socket.h>
#include <net/if.h>
@@ -6923,7 +6924,7 @@
#define HAVE_CLONING_BPF 1
_ACEOF
-elif test -r /dev/bpf0 ; then
+elif test -r /dev/bpf0 || test -r /usr/include/net/bpf.h ; then
V_PCAP=bpf
elif test -r /usr/include/net/pfilt.h ; then
V_PCAP=pf
@@ -7665,63 +7666,6 @@
done
-
- { echo "$as_me:$LINENO: checking whether the system supports zerocopy BPF" >&5
-echo $ECHO_N "checking whether the system supports zerocopy BPF... $ECHO_C" >&6; }
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <sys/socket.h>
- #include <sys/ioctl.h>
- #include <net/if.h>
- #include <net/bpf.h>
-int
-main ()
-{
-return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try="$ac_compile"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
-
- { echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
-
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_ZEROCOPY_BPF 1
-_ACEOF
-
-
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-
#
# Check whether we have struct BPF_TIMEVAL.
#
@@ -9607,7 +9551,7 @@
MAN_MISC_INFO=5
;;
-linux*|freebsd*|netbsd*|openbsd*|dragonfly*)
+linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*)
DYEXT="so"
#

View File

@@ -1,46 +0,0 @@
version=\
(
"1.6.2"
)
url=\
(
"http://downloads.sourceforge.net/project/libpng/libpng16/$version/libpng-$version.tar.xz"
)
md5=\
(
"9d838f6fca9948a9f360a0cc1b516d5f"
)
configure()
{
./configure \
--prefix="${cfg_dir_toolchain_sysroot}/usr" \
--target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \
--build="$cfg_host_canonical"
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
}
target_install()
{
# Libs:
for f in "$cfg_dir_toolchain_sysroot/usr/lib/"libpng*.so*; do
if [ -L "$f" ]; then
$cmd_cp "$f" "$cfg_dir_rootfs/usr/lib"
else
$cmd_target_strip -v "$f" -o "$cfg_dir_rootfs/usr/lib/$(basename "$f")"
fi
done
}

View File

@@ -1,27 +0,0 @@
source "$PKG_COMMON"
version=\
(
'3.2.0-psp04.06.00.10'
)
url=\
(
"http://www.lsts.pt/glued/linux-$version.tar.bz2"
)
md5=\
(
'e2f71c151b44df5552b04c73b14d2c98'
)
maintainer=\
(
'Ricardo Martins <rasm@fe.up.pt>'
)
requires=\
(
'u-boot'
'kmod/host'
)

View File

@@ -1,26 +0,0 @@
source "$PKG_COMMON"
version=\
(
'3.5.4'
)
url=\
(
"http://www.kernel.org/pub/linux/kernel/v3.0/linux-$version.tar.bz2"
)
md5=\
(
'95d5c7271ad448bc965bdb29339b6923'
)
maintainer=\
(
'Ricardo Martins <rasm@fe.up.pt>'
)
requires=\
(
'kmod/host'
)

View File

@@ -1,27 +0,0 @@
source "$PKG_COMMON"
version=\
(
'3.5.4'
)
url=\
(
"http://www.kernel.org/pub/linux/kernel/v3.0/linux-$version.tar.bz2"
)
md5=\
(
'95d5c7271ad448bc965bdb29339b6923'
)
maintainer=\
(
'Ricardo Martins <rasm@fe.up.pt>'
)
requires=\
(
'u-boot'
'kmod/host'
)

View File

@@ -1,12 +0,0 @@
--- linux-3.2.0-psp04.06.00.10/arch/arm/mach-omap2/board-am335xevm.c 2013-04-05 05:43:27.000000000 +0100
+++ linux-3.2.0-psp04.06.00.10.rasm/arch/arm/mach-omap2/board-am335xevm.c 2013-05-29 17:34:03.003915746 +0100
@@ -2362,6 +2362,9 @@
setup_beaglebone_old();
else
setup_beaglebone();
+ } else if (!strncmp("A335BNLT", config.name, 8)) {
+ daughter_brd_detected = false;
+ setup_beaglebone();
} else if (!strncmp("A335X_SK", config.name, 8)) {
daughter_brd_detected = false;
setup_starterkit();

View File

@@ -1,12 +0,0 @@
diff -Nru a/scripts/depmod.sh b/scripts/depmod.sh
--- a/scripts/depmod.sh 2012-07-21 21:58:29.000000000 +0100
+++ b/scripts/depmod.sh 2012-08-07 00:31:44.400656765 +0100
@@ -14,7 +14,7 @@
fi
# older versions of depmod require the version string to start with three
# numbers, so we cheat with a symlink here
-depmod_hack_needed=true
+depmod_hack_needed=false
tmp_dir=$(mktemp -d ${TMPDIR:-/tmp}/depmod.XXXXXX)
mkdir -p "$tmp_dir/lib/modules/$KERNELRELEASE"
if "$DEPMOD" -b "$tmp_dir" $KERNELRELEASE 2>/dev/null; then

View File

@@ -1,42 +0,0 @@
version=\
(
'0.29.5'
)
url=\
(
"http://www.webdav.org/neon/neon-$version.tar.gz"
)
md5=\
(
'ff369e69ef0f0143beb5626164e87ae2'
)
requires=\
(
'gnutls/default'
)
configure()
{
"../neon-$version/configure" \
--target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \
--build="$cfg_host_canonical" \
--prefix="$cfg_dir_toolchain_sysroot/usr" \
--disable-static \
--enable-shared \
--with-ssl=gnutls \
--without-libproxy
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
}

View File

@@ -1,106 +0,0 @@
version=\
(
'1.0'
)
dei_version=\
(
'1.1.4'
)
ns_version=\
(
'2.34'
)
url=\
(
"http://www.lsts.pt/glued/ns-miracle-$version.tar.gz"
)
md5=\
(
'860072ac58b2d1274da46d02b5608229'
)
requires=\
(
'ns/default'
'dei80211mr/default'
)
post_unpack()
{
patches=$(ls "$cfg_package_spec_dir/patches/"*.patch)
if [ -n "$patches" ]; then
cat $patches | patch -p0
fi
}
configure()
{
cd ../ns-miracle-$version/trunk/main/
prefix="/ns2_lib"
make distclean
rm -fr autom4te.cache/
rm config.*
rm missing
rm Makefile.in
rm install-sh
rm depcomp
rm configure
rm ltmain.sh
rm m4/libtool*
rm m4/Makefile
rm m4/Makefile.in
rm aclocal.m4
rm m4/lt*
find . -name "*.o" -exec rm {} \;
/usr/bin/aclocal -I m4 --force && /usr/bin/libtoolize --force && /usr/bin/automake --foreign --add-missing && /usr/bin/autoconf
sed "s#@TCL2CPP@#qemu-arm -L ${cfg_dir_rootfs} ${cfg_dir_rootfs}/lib/ld-linux.so.3 ${cfg_dir_toolchain_sysroot}/usr/bin/tcl2c++#g" "./m4/Makefile.in" -i
sed "s#@TCL2CPP@#qemu-arm -L ${cfg_dir_rootfs} ${cfg_dir_rootfs}/lib/ld-linux.so.3 ${cfg_dir_toolchain_sysroot}/usr/bin/tcl2c++#g" "./Makefile.in" -i
"./configure" \
--target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \
--build="$cfg_host_canonical" \
--prefix="$prefix" \
--disable-static \
--enable-shared \
--with-ns-allinone=${cfg_dir_builds}/ns/ \
--with-dei80211mr=${cfg_dir_builds}/dei80211mr/dei80211mr-$dei_version
}
build()
{
cd ../ns-miracle-$version/trunk/main/
$cmd_make -j1 \
TCL2CPP="qemu-arm -L ${cfg_dir_rootfs} ${cfg_dir_rootfs}/lib/ld-linux.so.3 ${cfg_dir_toolchain_sysroot}/usr/bin/tcl2c++"
}
host_install()
{
cd ../ns-miracle-$version/trunk/main/
$cmd_mkdir \
"$cfg_dir_toolchain_sysroot/ns2/ns2_lib/lib" \
"$cfg_dir_toolchain_sysroot/ns2/ns2_lib/share" &&
$cmd_make \
DESTDIR="$cfg_dir_toolchain_sysroot/ns2" \
install
}
target_install()
{
$cmd_mkdir \
"${cfg_dir_rootfs}/usr/ns2/lib/"
for f in "$cfg_dir_toolchain_sysroot/ns2/ns2_lib/lib/"lib*.so*; do
$cmd_target_strip "$f" -o ${cfg_dir_rootfs}/usr/ns2/lib/"$(basename "$f")"
done
}

View File

@@ -1,19 +0,0 @@
--- trunk/main/m4/nsallinone.m4 2012-09-21 14:09:26.000000000 +0200
+++ trunk/main/m4/nsallinone.m4 2012-09-21 17:08:21.807075643 +0200
@@ -49,12 +49,10 @@
NS_ALLINONE_PATH=$withval
NS_PATH=$NS_ALLINONE_PATH/`cd $NS_ALLINONE_PATH; ls -d ns-* | head -n 1`
- TCL_PATH=$NS_ALLINONE_PATH/`cd $NS_ALLINONE_PATH; ls -d * | grep -e 'tcl[0-9].*' | head -n 1`
- TCLCL_PATH=$NS_ALLINONE_PATH/`cd $NS_ALLINONE_PATH; ls -d tclcl-* | head -n 1`
- OTCL_PATH=$NS_ALLINONE_PATH/`cd $NS_ALLINONE_PATH; ls -d otcl-* | head -n 1`
-
- NS_CPPFLAGS="-I$NS_ALLINONE_PATH/include -I$NS_PATH -I$TCLCL_PATH -I$OTCL_PATH"
-
+ TCL_PATH="${cfg_dir_builds}/tcl/"`cd "${cfg_dir_builds}/tcl/"; ls -d * | grep -e 'tcl[0-9].*' | head -n 1`
+ TCLCL_PATH="${cfg_dir_builds}/tclcl/"`cd "${cfg_dir_builds}/tclcl"; ls -d tclcl-* | head -n 1`
+ OTCL_PATH="${cfg_dir_builds}/otcl/"`cd "${cfg_dir_builds}/otcl/"; ls -d otcl-* | head -n 1`
+ NS_CPPFLAGS="${cfg_dir_toolchain_sysroot}/usr/include -I$NS_PATH -I$TCLCL_PATH -I$OTCL_PATH"
NS_ALLINONE_DISTCHECK_CONFIGURE_FLAGS="--with-ns-allinone=$withval"
AC_SUBST(NS_ALLINONE_DISTCHECK_CONFIGURE_FLAGS)

View File

@@ -1,11 +0,0 @@
--- trunk/main/configure.ac 2012-09-26 14:56:59.532858970 +0200
+++ trunk/main/configure.ac 2012-09-26 14:55:04.897973134 +0200
@@ -70,7 +70,7 @@
dnl Activate all compile warnings & debug symbols
CFLAGS="${CFLAGS=} -Wall -g"
-
+TCL2CPP="qemu-arm -L ${cfg_dir_rootfs} ${cfg_dir_rootfs}/lib/ld-linux.so.3 ${cfg_dir_toolchain_sysroot}/usr/bin/tcl2c++"
AC_DEFINE(CPP_NAMESPACE,std)

View File

@@ -1,60 +0,0 @@
version=\
(
'1.6.15'
)
url=\
(
"http://subversion.tigris.org/downloads/subversion-$version.tar.bz2"
"http://www.sqlite.org/sqlite-amalgamation-3.6.13.tar.gz"
)
md5=\
(
'113fca1d9e4aa389d7dc2b210010fa69'
'681722e7cdc6d9ab3be836736ed50641'
)
maintainer=\
(
'Ricardo Martins <rasm@fe.up.pt>'
)
requires=\
(
'neon/default'
'zlib/default'
'apr/default'
'apr-utils/default'
)
post_unpack()
{
mkdir sqlite-amalgamation &&
cp ../sqlite-3.6.13/sqlite3.{c,h} sqlite-amalgamation
}
configure()
{
"../subversion-$version/configure" \
--target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \
--build="$cfg_host_canonical" \
--prefix="$cfg_dir_toolchain_sysroot/usr" \
--without-apxs \
--with-neon="$cfg_dir_toolchain_sysroot/usr" \
--with-zlib="$cfg_dir_toolchain_sysroot/usr" \
--with-apr="$cfg_dir_toolchain_sysroot/usr" \
--with-apr-util="$cfg_dir_toolchain_sysroot/usr" \
--disable-static
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make -j1 install
}

View File

@@ -1,64 +0,0 @@
trex_base='/opt/lsts/trex'
maybe_upgrade()
{
echo -n "* Searching TREX upgrade... "
if ! [ -f $trex_base/trex-*.tar.gz ]; then
echo "none found"
return 1
fi
echo "found"
echo -n "* Starting TREX upgrade... "
rm -rf $trex_base/.trex-upgrade &&
mkdir $trex_base/.trex-upgrade &&
tar -x -C $trex_base/.trex-upgrade -f $trex_base/trex-*.tar.gz &&
rm $trex_base/trex-*.tar.gz &&
for dir in $trex_base/.trex-upgrade/trex-*/*; do
d="$(basename "$dir")"
rm -rf "$trex_base/$d"
mv -v "$dir" $trex_base
done
rm -rf $trex_base/.trex-upgrade
echo "done"
}
start()
{
maybe_upgrade
export TREX_LOG_DIR=$trex_base/log
export TREX_EXTRA=$trex_base
export EUROPA_HOME='/usr/share/europa'
mkdir -p "$TREX_LOG_DIR"
if [ -z "$cfg_trex_config" ]; then
export cfg_trex_config="$TREX_EXTRA/cfg/lsts.cfg"
fi
export TREX_PATH=$PATH:$TREX_EXTRA/cfg:$TREX_EXTRA/plugins:$EUROPA_HOME/lib
/usr/bin/amc "$cfg_trex_config" < /dev/null > /dev/null 2>&1 &
}
stop()
{
while [ 1 ]; do
echo "* Stopping TREX..."
killall amc > /dev/null 2>&1
for r in 0 1 2 3 4 5 6 7 8 9; do
if [ -n "$(pidof amc)" ]; then
echo "* Waiting for TREX to exit ($r)..."
sleep 1
else
echo "* TREX not running."
return 1
fi
done
echo "* Forcing TREX to exit..."
killall -9 amc > /dev/null 2>&1
sleep 1
done
}

View File

@@ -1,16 +0,0 @@
source "$PKG_COMMON"
version=\
(
2013.01.01
)
url=\
(
"ftp://ftp.denx.de/pub/u-boot/u-boot-$version.tar.bz2"
)
md5=\
(
'73939f78606f89a1775c7e9acb2ca617'
)

View File

@@ -1,12 +0,0 @@
source "$cfg_dir_packages/$PKG/default.bash"
host_install()
{
$cmd_mkdir ${cfg_dir_rootfs}/../boot/
$cmd_cp u-boot.bin ${cfg_dir_rootfs}/../boot/
}
target_install()
{
echo "using dummy 'target_install'."
}

View File

@@ -1,17 +0,0 @@
--- u-boot-2013.01/board/ti/am335x/board.c 2013-01-15 21:47:42.000000000 +0000
+++ u-boot-2013.01.rasm/board/ti/am335x/board.c 2013-04-09 18:39:45.938442622 +0100
@@ -73,6 +73,14 @@
return !strncmp(header.config, "SKU#02", 6);
}
+#ifndef CONFIG_SYS_DCACHE_OFF
+void enable_caches(void)
+{
+ /* Enable D-cache. I-cache is already enabled in start.S */
+ dcache_enable();
+}
+#endif
+
/*
* Read header information from EEPROM into global structure.
*/

View File

@@ -1,58 +0,0 @@
--- a/include/configs/igep00x0.h
+++ b/include/configs/igep00x0.h
@@ -104,6 +104,8 @@
/* commands to include */
#include <config_cmd_default.h>
+#undef CONFIG_BOOT_ONENAND
+
#define CONFIG_CMD_CACHE
#define CONFIG_CMD_EXT2 /* EXT2 Support */
#define CONFIG_CMD_FAT /* FAT support */
@@ -119,8 +121,8 @@
#define CONFIG_CMD_DHCP
#define CONFIG_CMD_PING
#define CONFIG_CMD_NFS /* NFS support */
-#define CONFIG_CMD_MTDPARTS /* Enable MTD parts commands */
-#define CONFIG_MTD_DEVICE
+/* #define CONFIG_CMD_MTDPARTS /\* Enable MTD parts commands *\/ */
+/* #define CONFIG_MTD_DEVICE */
#undef CONFIG_CMD_FLASH /* flinfo, erase, protect */
#undef CONFIG_CMD_IMLS /* List all found images */
@@ -142,6 +144,7 @@
#define CONFIG_ZERO_BOOTDELAY_CHECK
#define CONFIG_EXTRA_ENV_SETTINGS \
+ "bootfile=uImage\0" \
"usbtty=cdc_acm\0" \
"loadaddr=0x82000000\0" \
"usbtty=cdc_acm\0" \
@@ -150,7 +153,7 @@
"vram=12M\0" \
"dvimode=1024x768MR-16@60\0" \
"defaultdisplay=dvi\0" \
- "mmcdev=0\0" \
+ "mmcdev=0:1\0" \
"mmcroot=/dev/mmcblk0p2 rw\0" \
"mmcrootfstype=ext4 rootwait\0" \
"nandroot=/dev/mtdblock4 rw\0" \
@@ -174,7 +177,7 @@
"loadbootenv=fatload mmc ${mmcdev} ${loadaddr} uEnv.txt\0" \
"importbootenv=echo Importing environment from mmc ...; " \
"env import -t $loadaddr $filesize\0" \
- "loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage\0" \
+ "loaduimage=ext2load mmc ${mmcdev} ${loadaddr} ${bootfile}\0" \
"mmcboot=echo Booting from mmc ...; " \
"run mmcargs; " \
"bootm ${loadaddr}\0" \
@@ -234,6 +237,9 @@
#define CONFIG_SYS_PTV 2 /* Divisor: 2^(PTV+1) => 8 */
#define CONFIG_SYS_HZ 1000
+#define CONFIG_ENV_IS_NOWHERE
+#define CONFIG_ENV_SIZE (512 << 10) /* Total Size Environment */
+
/*
* Physical Memory Map
*

View File

@@ -1,56 +0,0 @@
--- u-boot-2013.01/include/configs/am335x_evm.h 2013-01-15 21:47:42.000000000 +0000
+++ u-boot-2013.01.rasm/include/configs/am335x_evm.h 2013-04-09 18:25:22.027878365 +0100
@@ -46,7 +46,9 @@
#define CONFIG_VERSION_VARIABLE
/* set to negative value for no autoboot */
-#define CONFIG_BOOTDELAY 1
+#define CONFIG_BOOTDELAY 0
+#define CONFIG_ZERO_BOOTDELAY_CHECK
+
#define CONFIG_ENV_VARS_UBOOT_CONFIG
#define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
#define CONFIG_EXTRA_ENV_SETTINGS \
@@ -241,6 +243,7 @@
#define CONFIG_SPL_LDSCRIPT "$(CPUDIR)/omap-common/u-boot-spl.lds"
#define CONFIG_SPL_BOARD_INIT
+#if 0
#define CONFIG_SPL_NAND_AM33XX_BCH
#define CONFIG_SPL_NAND_SUPPORT
#define CONFIG_SPL_NAND_BASE
@@ -271,6 +274,7 @@
#define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_TEXT_BASE
#define CONFIG_SYS_NAND_U_BOOT_OFFS 0x80000
+#endif
/*
* 1MB into the SDRAM to allow for SPL's bss at the beginning of SDRAM
@@ -292,6 +296,7 @@
/*
* USB configuration
*/
+#if 0
#define CONFIG_USB_MUSB_DSPS
#define CONFIG_ARCH_MISC_INIT
#define CONFIG_MUSB_GADGET
@@ -302,6 +307,7 @@
#define CONFIG_AM335X_USB0_MODE MUSB_PERIPHERAL
#define CONFIG_AM335X_USB1
#define CONFIG_AM335X_USB1_MODE MUSB_HOST
+#endif
#ifdef CONFIG_MUSB_HOST
#define CONFIG_CMD_USB
@@ -334,7 +340,9 @@
#define CONFIG_PHY_ADDR 0
#define CONFIG_PHY_SMSC
-#define CONFIG_NAND
+#undef CONFIG_NAND
+#define CONFIG_ENV_SIZE (128 << 10) /* 128 KiB */
+
/* NAND support */
#ifdef CONFIG_NAND
#define CONFIG_CMD_NAND

View File

@@ -1,14 +0,0 @@
diff -Nru u-boot-2013.01.01/board/isee/igep0020/igep0020.h u-boot-2013.01.01.rasm/board/isee/igep0020/igep0020.h
--- u-boot-2013.01.01/board/isee/igep0020/igep0020.h 2013-01-31 19:47:42.000000000 +0000
+++ u-boot-2013.01.01.rasm/board/isee/igep0020/igep0020.h 2013-06-24 01:56:54.066266486 +0100
@@ -146,6 +146,10 @@
MUX_VAL(CP(SYS_BOOT4), (IEN | PTD | DIS | M4)) /* GPIO_6 */\
MUX_VAL(CP(SYS_BOOT5), (IEN | PTD | DIS | M4)) /* GPIO_7 */\
MUX_VAL(CP(SYS_BOOT6), (IEN | PTD | DIS | M4)) /* GPIO_8 */\
+ MUX_VAL(CP(MCBSP2_FSX), (IEN | PTD | DIS | M0)) /*McBSP2_FSX*/\
+ MUX_VAL(CP(MCBSP2_CLKX), (IEN | PTD | DIS | M0)) /*McBSP2_CLKX*/\
+ MUX_VAL(CP(MCBSP2_DR), (IEN | PTD | DIS | M0)) /*McBSP2_DR*/\
+ MUX_VAL(CP(MCBSP2_DX), (IDIS | PTD | DIS | M0)) /*McBSP2_DX*/\
MUX_VAL(CP(SDRC_CKE0), (IDIS | PTU | EN | M0)) /* SDRC_CKE0 */\
MUX_VAL(CP(SDRC_CKE1), (IDIS | PTU | EN | M0)) /* SDRC_CKE1 */
#endif

View File

@@ -1,12 +0,0 @@
--- a/include/configs/igep00x0.h
+++ b/include/configs/igep00x0.h
@@ -138,7 +138,8 @@
*/
#define CONFIG_TWL4030_POWER 1
-#define CONFIG_BOOTDELAY 3
+#define CONFIG_BOOTDELAY 0
+#define CONFIG_ZERO_BOOTDELAY_CHECK
#define CONFIG_EXTRA_ENV_SETTINGS \
"usbtty=cdc_acm\0" \

View File

@@ -1,25 +0,0 @@
source "$PKG_COMMON"
configure()
{
cd "$pkg_build_dir" &&
"../util-linux-$version/configure" \
--prefix="$cfg_dir_toolchain" \
--target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \
--build="$cfg_host_canonical" \
--disable-wall \
--disable-static \
--enable-shared \
--without-ncurses
}
build()
{
$cmd_make -C $pkg_build_dir
}
target_install()
{
$cmd_target_strip $pkg_build_dir/sys-utils/ldattach -o $cfg_dir_rootfs/usr/bin/ldattach
}

View File

@@ -1,13 +1,26 @@
#! /bin/bash #! /bin/bash
############################################################################# ###########################################################################
# Copyright (C) 2007-2012 Laboratório de Sistemas e Tecnologia Subaquática # # GLUED: GNU/Linux Uniform Environment Distribution #
# Departamento de Engenharia Electrotécnica e de Computadores # # Copyright (C) 2007-2014 Universidade do Porto - Faculdade de Engenharia #
# Rua Dr. Roberto Frias, 4200-465 Porto, Portugal # # Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
############################################################################# ###########################################################################
# Author: Ricardo Martins # # 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 #
# $Id:: $:# # the Free Software Foundation; either version 2 of the License, or (at #
############################################################################# # your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, but #
# WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
# General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program; if not, write to the Free Software #
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
# 02110-1301 USA. #
###########################################################################
# Author: Ricardo Martins #
###########################################################################
# Check shell type. # Check shell type.
if [ -z "$BASH_VERSION" ]; then if [ -z "$BASH_VERSION" ]; then
@@ -45,6 +58,11 @@ for d in dev boot etc; do
$fakeroot -- chmod -vR 0644 "$cfg_dir_rootfs"/$d/* $fakeroot -- chmod -vR 0644 "$cfg_dir_rootfs"/$d/*
done done
# Copy DTB.
if [ -n "$cfg_target_linux_dtb" ]; then
cp -v "$cfg_dir_toolchain/boot/$(basename $cfg_target_linux_dtb)" "$cfg_dir_rootfs/boot/board.dtb"
fi
# Write config vars. # Write config vars.
set | sort | grep ^cfg_ | egrep -v '^cfg_dir|^cfg_target|^cfg_host_|^cfg_toolchain|^cfg_rootfs_tar|^cfg_partitions' > "$cfg_dir_rootfs/etc/config" set | sort | grep ^cfg_ | egrep -v '^cfg_dir|^cfg_target|^cfg_host_|^cfg_toolchain|^cfg_rootfs_tar|^cfg_partitions' > "$cfg_dir_rootfs/etc/config"

View File

@@ -1,13 +1,26 @@
#! /bin/bash #! /bin/bash
############################################################################# ###########################################################################
# Copyright (C) 2007-2012 Laboratório de Sistemas e Tecnologia Subaquática # # GLUED: GNU/Linux Uniform Environment Distribution #
# Departamento de Engenharia Electrotécnica e de Computadores # # Copyright (C) 2007-2014 Universidade do Porto - Faculdade de Engenharia #
# Rua Dr. Roberto Frias, 4200-465 Porto, Portugal # # Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
############################################################################# ###########################################################################
# Author: Ricardo Martins # # 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 #
# $Id:: $:# # the Free Software Foundation; either version 2 of the License, or (at #
############################################################################# # your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, but #
# WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
# General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program; if not, write to the Free Software #
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
# 02110-1301 USA. #
###########################################################################
# Author: Ricardo Martins #
###########################################################################
# Check shell type. # Check shell type.
if [ -z "$BASH_VERSION" ]; then if [ -z "$BASH_VERSION" ]; then

View File

@@ -0,0 +1,30 @@
version=\
(
'v05.00.00.01'
)
url=\
(
'git://arago-project.org/git/projects/am33x-cm3.git'
)
maintainer=\
(
'Ricardo Martins <rasm@fe.up.pt>'
)
download()
{
git clone "$url" "$cfg_dir_builds/$pkg/$pkg-$version"
}
unpack()
{
git checkout "$version"
}
host_install()
{
$cmd_mkdir "$cfg_dir_toolchain/firmware"
cp -v "bin/am335x-pm-firmware.bin" "$cfg_dir_toolchain/firmware"
}

View File

@@ -1,16 +1,16 @@
version=\ version=\
( (
'1.9.2' '1.9.3'
) )
url=\ url=\
( (
"http://www.eu.apache.org/dist/ant/binaries/apache-ant-$version-bin.tar.bz2" "http://www.lsts.pt/glued/apache-ant-$version-bin.tar.bz2"
) )
md5=\ md5=\
( (
'20c6dc8e57d5dc8af595ec4faefd515c' '6e6d888140858f3926c34081c4bd2227'
) )
maintainer=\ maintainer=\

View File

@@ -21,7 +21,7 @@ requires=\
post_unpack() post_unpack()
{ {
patches=$(ls "$cfg_package_spec_dir/patches-$version/"*.patch 2>/dev/null) patches=$(ls "$pkg_dir/patches-$version/"*.patch 2>/dev/null)
if [ -n "$patches" ]; then if [ -n "$patches" ]; then
cat $patches | patch -p1 cat $patches | patch -p1
fi fi

View File

@@ -1,6 +1,6 @@
version=\ version=\
( (
'1.5.2' '1.5.3'
) )
url=\ url=\

View File

@@ -1,6 +1,6 @@
version=\ version=\
( (
'1.4.6' '1.5.1'
) )
url=\ url=\

0
packages/atk/default.bash → rules/atk/default.bash Executable file → Normal file
View File

View File

@@ -1,4 +1,4 @@
source $PKG_COMMON source $pkg_common
requires=\ requires=\
( (

View File

@@ -1,4 +1,4 @@
source $PKG_COMMON source $pkg_common
requires=\ requires=\
( (

View File

@@ -25,4 +25,5 @@ requires=\
'texinfo/host' 'texinfo/host'
'parted/host' 'parted/host'
'dosfstools/host' 'dosfstools/host'
'e2fsprogs/host'
) )

42
rules/bc/host.bash Normal file
View File

@@ -0,0 +1,42 @@
version=\
(
'1.06'
)
url=\
(
"http://ftp.gnu.org/gnu/bc/bc-$version.tar.gz"
)
md5=\
(
'd44b5dddebd8a7a7309aea6c36fda117'
)
maintainer=\
(
'Ricardo Martins <rasm@fe.up.pt>'
)
requires=\
(
'flex/host'
)
configure()
{
./configure \
--prefix="$cfg_dir_toolchain" \
--disable-shared \
--enable-static
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
}

View File

@@ -18,7 +18,7 @@ maintainer=\
"Ricardo Martins <rasm@fe.up.pt>" "Ricardo Martins <rasm@fe.up.pt>"
) )
build_dir=$PKG_VAR build_dir=$pkg_var
configure() configure()
{ {

View File

@@ -27,7 +27,7 @@ requires=\
post_unpack() post_unpack()
{ {
patches=$(ls "$cfg_package_spec_dir/patches-${version}/"*.patch) patches=$(ls "$pkg_dir/patches-${version}/"*.patch)
if [ -n "$patches" ]; then if [ -n "$patches" ]; then
cd "../boost_$vendor_version" && cat $patches | patch -p1 cd "../boost_$vendor_version" && cat $patches | patch -p1
fi fi

View File

@@ -1,26 +1,31 @@
version=\ version=\
( (
"1.4" '1.5'
) )
url=\ url=\
( (
"http://downloads.sourceforge.net/project/bridge/bridge/bridge-utils-$version/bridge-utils-$version.tar.gz" "http://downloads.sourceforge.net/project/bridge/bridge/bridge-utils-$version.tar.gz"
) )
md5=\ md5=\
( (
"0182fcac3a2b307113bbec34e5f1c673" 'ec7b381160b340648dede58c31bb2238'
) )
maintainer=\ maintainer=\
( (
"Ricardo Martins <rasm@fe.up.pt>" 'Ricardo Martins <rasm@fe.up.pt>'
) )
post_unpack() post_unpack()
{ {
cd ../bridge-utils-$version && autoreconf patches=$(ls "$pkg_dir/patches-$version/"*.patch 2>/dev/null)
if [ -n "$patches" ]; then
cat $patches | patch -p1
fi &&
autoreconf
} }
configure() configure()

View File

@@ -0,0 +1,54 @@
Submitted By: Bruce Dubbs <bdubbs_at_linuxfromscratch_dot_org>
Date: 2013-03-10
Initial Package Version: 1.5
Upstream Status: Unknown
Origin: LFS
Description: This patch contains fixes a problem with
the omission of a needed include file in the kernel's linux/if_bridge.h.
It also fixes some autoconf warnings.
diff -Naur bridge-utils-1.5.orig/Makefile.in bridge-utils-1.5/Makefile.in
--- bridge-utils-1.5.orig/Makefile.in 2011-03-28 19:52:54.000000000 -0500
+++ bridge-utils-1.5/Makefile.in 2013-03-10 13:44:41.000000000 -0500
@@ -9,6 +9,7 @@
bindir=@bindir@
sbindir=@sbindir@
mandir=@mandir@
+datarootdir=@datarootdir@
distdir = $(PACKAGE)-$(VERSION)
SUBDIRS=libbridge brctl doc
diff -Naur bridge-utils-1.5.orig/brctl/Makefile.in bridge-utils-1.5/brctl/Makefile.in
--- bridge-utils-1.5.orig/brctl/Makefile.in 2011-03-28 19:52:54.000000000 -0500
+++ bridge-utils-1.5/brctl/Makefile.in 2013-03-10 13:44:15.000000000 -0500
@@ -12,6 +12,7 @@
bindir=@bindir@
sbindir=@sbindir@
mandir=@mandir@
+datarootdir=@datarootdir@
INSTALL=@INSTALL@
diff -Naur bridge-utils-1.5.orig/doc/Makefile.in bridge-utils-1.5/doc/Makefile.in
--- bridge-utils-1.5.orig/doc/Makefile.in 2011-03-28 19:52:54.000000000 -0500
+++ bridge-utils-1.5/doc/Makefile.in 2013-03-10 13:43:39.000000000 -0500
@@ -9,6 +9,7 @@
bindir=@bindir@
sbindir=@sbindir@
mandir=@mandir@
+datarootdir=@datarootdir@
SUBDIRS=libbridge brctl
diff -Naur bridge-utils-1.5.orig/libbridge/libbridge.h bridge-utils-1.5/libbridge/libbridge.h
--- bridge-utils-1.5.orig/libbridge/libbridge.h 2011-03-28 19:52:54.000000000 -0500
+++ bridge-utils-1.5/libbridge/libbridge.h 2013-03-10 13:46:23.000000000 -0500
@@ -21,6 +21,7 @@
#include <sys/socket.h>
#include <linux/if.h>
+#include <netinet/ip6.h>
#include <linux/if_bridge.h>
/* defined in net/if.h but that conflicts with linux/if.h... */

View File

@@ -1,6 +1,6 @@
version=\ version=\
( (
"1.20.2" '1.22.1'
) )
url=\ url=\
@@ -10,12 +10,12 @@ url=\
md5=\ md5=\
( (
"e025414bc6cd79579cc7a32a45d3ae1c" '337d1a15ab1cb1d4ed423168b1eb7d7e'
) )
post_unpack() post_unpack()
{ {
patches=$(ls "$cfg_package_spec_dir"/patches/*.patch) patches=$(ls "$pkg_dir"/patches/*.patch)
if [ -n "$patches" ]; then if [ -n "$patches" ]; then
cat $patches | patch -p1 cat $patches | patch -p1
@@ -24,7 +24,7 @@ post_unpack()
configure() configure()
{ {
cp "$cfg_package_spec_dir"/config .config && cp "$pkg_dir"/config .config &&
yes '' | $cmd_make CROSS_COMPILE="$cfg_target_canonical"- oldconfig yes '' | $cmd_make CROSS_COMPILE="$cfg_target_canonical"- oldconfig
} }
@@ -36,5 +36,5 @@ build()
target_install() target_install()
{ {
$cmd_make CROSS_COMPILE="$cfg_target_canonical"- CONFIG_PREFIX=$cfg_dir_rootfs install && $cmd_make CROSS_COMPILE="$cfg_target_canonical"- CONFIG_PREFIX=$cfg_dir_rootfs install &&
tar -C "$cfg_package_spec_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f - tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
} }

View File

@@ -1,4 +1,4 @@
source $PKG_COMMON source $pkg_common
configure() configure()

View File

@@ -1,4 +1,4 @@
source $PKG_COMMON source $pkg_common
build() build()
{ {

53
rules/cdk/default.bash Normal file
View File

@@ -0,0 +1,53 @@
version=\
(
'5.0-20140118'
)
url=\
(
"ftp://invisible-island.net/cdk/cdk-$version.tgz"
)
md5=\
(
'd2687e5558b6d6be5fd39328e5c86033'
)
requires=\
(
'ncurses/default'
)
configure()
{
# --target="${cfg_target_canonical}" \
./configure \
--prefix="$cfg_dir_toolchain_sysroot/usr" \
--host="${cfg_target_canonical}" \
--build="${cfg_host_canonical}" \
--target="${cfg_target_canonical}" \
--with-ncursesw \
--with-shared \
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
}
target_install()
{
for f in "$cfg_dir_toolchain_sysroot/usr/lib/libcdk"* ; do
if [ -L "$f" ]; then
cp -av "$f" "$cfg_dir_rootfs/usr/lib"
else
$cmd_target_strip -v "$f" -o "$cfg_dir_rootfs/usr/lib/$(basename "$f")"
fi
done
}

View File

@@ -1,6 +1,6 @@
version=\ version=\
( (
"2.8.8" "2.8.9"
) )
version_major=\ version_major=\
@@ -15,7 +15,7 @@ url=\
md5=\ md5=\
( (
"ba74b22c788a0c8547976b880cd02b17" "801f4c87f8b604f727df5bf1f05a59e7"
) )
configure() configure()
@@ -26,10 +26,12 @@ configure()
build() build()
{ {
# Remove the trailling 'ncurses' folder from the CURSES_INCLUDE_PATH
cat CMakeCache.txt | sed '/^CURSES_INCLUDE_PATH/s/\/ncurses$/\//g' > CMakeCache.txt &&
$cmd_make $cmd_make
} }
host_install() host_install()
{ {
$cmd_make install $cmd_make DESTDIR="$cfg_dir_toolchain" install
} }

View File

@@ -88,7 +88,7 @@ target_install()
# Collectd: # Collectd:
$cmd_mkdir "$cfg_dir_rootfs/usr/share/" $cmd_mkdir "$cfg_dir_rootfs/usr/share/"
$cmd_cp "$cfg_dir_toolchain_sysroot/usr/share/collectd/" "$cfg_dir_rootfs/usr/share/" $cmd_cp "$cfg_dir_toolchain_sysroot/usr/share/collectd/" "$cfg_dir_rootfs/usr/share/"
$cmd_cp "${cfg_package_spec_dir}/fs/etc/rc.d/collectd" "$cfg_dir_rootfs/etc/rc.d/" $cmd_cp "${pkg_dir}/fs/etc/rc.d/collectd" "$cfg_dir_rootfs/etc/rc.d/"
# Configuration: # Configuration:
echo "# Client echo "# Client

View File

@@ -25,7 +25,7 @@ requires=\
post_unpack() post_unpack()
{ {
patches=$(ls "$cfg_package_spec_dir/patches/"*.patch) patches=$(ls "$pkg_dir/patches/"*.patch)
if [ -n "$patches" ]; then if [ -n "$patches" ]; then
cat $patches | patch -p0 cat $patches | patch -p0
fi fi

View File

View File

@@ -25,7 +25,7 @@ requires=\
post_unpack() post_unpack()
{ {
patches=$(ls "$cfg_package_spec_dir/patches/"*.patch) patches=$(ls "$pkg_dir/patches/"*.patch)
if [ -n "$patches" ]; then if [ -n "$patches" ]; then
cat $patches | patch -p1 cat $patches | patch -p1
fi fi
@@ -62,5 +62,5 @@ target_install()
ln -fs dropbearmulti "$cfg_dir_rootfs/usr/bin/ssh" && ln -fs dropbearmulti "$cfg_dir_rootfs/usr/bin/ssh" &&
ln -fs dropbearmulti "$cfg_dir_rootfs/usr/bin/dbclient" && ln -fs dropbearmulti "$cfg_dir_rootfs/usr/bin/dbclient" &&
ln -fs ../bin/dropbearmulti "$cfg_dir_rootfs/usr/sbin/dropbear" && ln -fs ../bin/dropbearmulti "$cfg_dir_rootfs/usr/sbin/dropbear" &&
tar -C "$cfg_package_spec_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f - tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
} }

View File

@@ -76,5 +76,5 @@ target_install()
$cmd_target_strip daemon/dtnd -o "$cfg_dir_rootfs/usr/bin/dtnd" && $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" && $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" && cp servlib/conv_layers/clevent.xsd "$cfg_dir_rootfs/usr/share/dtn" &&
tar -C "$cfg_package_spec_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f - tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
} }

View File

@@ -0,0 +1,14 @@
version=\
(
'1.41.9'
)
url=\
(
"http://downloads.sourceforge.net/e2fsprogs/e2fsprogs-$version.tar.gz"
)
md5=\
(
'52f60a9e19a02f142f5546f1b5681927'
)

View File

@@ -1,20 +1,9 @@
version=\ source "$pkg_common"
(
'1.41.9'
)
url=\
(
"http://downloads.sourceforge.net/e2fsprogs/e2fsprogs-$version.tar.gz"
)
md5=\
(
'52f60a9e19a02f142f5546f1b5681927'
)
configure() configure()
{ {
$cmd_make distclean
export CC=$cmd_target_cc export CC=$cmd_target_cc
export CROSS_COMPILE=$cfg_target_canonical export CROSS_COMPILE=$cfg_target_canonical
"../e2fsprogs-$version/configure" \ "../e2fsprogs-$version/configure" \

Some files were not shown because too many files have changed in this diff Show More