Compare commits

..

306 Commits

Author SHA1 Message Date
Pedro Gonçalves
c335688751 mkpackage: update url of lsts server. 2020-08-27 16:05:05 +01:00
Pedro Gonçalves
7a5614f59b rules/rpi5cfs: add rule for config files of uarts for rpi4. 2020-08-25 16:56:06 +01:00
Pedro Gonçalves
f3fb16ec24 systems/lctr-rpi4: update config files, add rule rpi4cfs. 2020-08-25 16:55:32 +01:00
Pedro Gonçalves
db18c1365d update .gitignore config file. 2020-08-25 16:54:42 +01:00
Pedro Gonçalves
8c3711b965 Rules/filesystem/fs/etc/rc.d: add script to set rtc address. 2019-10-22 16:49:02 +01:00
Pedro Gonçalves
9bb6185aa2 Systems/lctr-rpi4: add config files for manta-uk-01/02. 2019-10-22 16:47:28 +01:00
Pedro Gonçalves
87febf808f Systems/lctr-rpi4: add bash to default packages. 2019-10-22 16:46:59 +01:00
Pedro Gonçalves
1d2f0e6c50 Merge branch 'feature/gcc_5.4' into feature/rpi4 2019-10-22 15:25:47 +01:00
Pedro Gonçalves
3d3552f978 systems/lctr-rpi4: update to vfpv4. 2019-09-10 17:24:43 +01:00
Pedro Gonçalves
af1552817f architectures: add cortex a8 hardfp vfpv4. 2019-09-10 16:49:13 +01:00
Pedro Gonçalves
417b0cca51 systems/lctr-rpi4:template: activate modules for i2c1. 2019-09-10 16:19:06 +01:00
Pedro Gonçalves
d4a0df30a2 systems/lctr-rpi4: boot/config: activate i2c1. 2019-09-10 16:18:35 +01:00
Pedro Gonçalves
0e7d615c9f systems/lctr-rpi4: add new system family for the new rpi versions (RPI4) 2019-08-14 18:02:03 +01:00
Pedro Gonçalves
c7725832b1 rules/linux/rpi: update md5 value. 2019-08-14 18:01:00 +01:00
Pedro Gonçalves
09b319490d mkconfig: update version of id of glued. 2019-08-14 18:00:39 +01:00
Pedro Gonçalves
0fbae9d7a3 docker: add necessary package to compile glued for rpi4. 2019-08-14 18:00:14 +01:00
Pedro Gonçalves
77db655143 rules:rpi-boot: update to version 4.19.60. 2019-08-14 12:53:47 +01:00
Pedro Gonçalves
c326efad35 rules:linux: update to version 4.19.60. 2019-08-14 12:52:34 +01:00
Pedro Gonçalves
69dce446dc rules:linux-headers: update to version 4.19.60. 2019-08-14 12:51:04 +01:00
Pedro Gonçalves
26c4cdb04a Merge branch 'feature/gcc_5.4' into feature/rpi4 2019-08-14 12:29:36 +01:00
Pedro Gonçalves
fe14f32028 systems/lctr-rpi: add rule bash to test-rpi config file. 2019-07-25 18:32:14 +01:00
Pedro Gonçalves
8fd8118259 systems/lctr-b2xx: add rule bash to all noptilus config files. 2019-07-25 18:31:25 +01:00
Pedro Gonçalves
1575b724eb systems/lauv-aux-rpi: add rule bash to nemo config files. 2019-07-25 18:30:12 +01:00
Pedro Gonçalves
608631f9f0 rules: bash: add rule to compile/add bash. 2019-07-25 18:29:15 +01:00
Pedro Gonçalves
9824634051 Merge pull request #40 from LSTS/feature/exiftool
Feature/exiftool
2019-04-05 15:21:08 +01:00
Pedro Gonçalves
a21f7a4835 lctr-rpi: config: add exiftool and libusb to the main config. 2019-04-05 15:20:04 +01:00
Tiago Sá Marques
ca8a965f1f Merge pull request #38 from krisgry/feature/copy-curl
Copy libcurl_* to /lib/, for cross-compilation of DUNE
2019-04-04 12:21:54 +00:00
Tiago Sá Marques
623bac0c38 Merge pull request #37 from krisgry/feature/copylibopenCV
Copy libopencv_* to /lib/, for cross-compilation of DUNE
2019-04-04 12:20:03 +00:00
mariacosta
c66054cafd lctr-rpi: test-rpi-eth0: Added libusb package. 2019-02-27 18:29:23 +00:00
Pedro Gonçalves
c425981fa4 systems/lctr-a6xx: add geode-testbed config system. 2019-02-25 16:15:54 +00:00
Pedro Gonçalves
b69cfb9682 systems/lctr-rpi/test-rpi-eth0: fix service network name. 2019-02-22 18:09:40 +00:00
Pedro Gonçalves
568f2abbbf rules/exiftool: fix path for bin folder. 2019-02-22 17:11:59 +00:00
Pedro Gonçalves
0dd5539b48 systems/lctr-rpi: update test-rpi config for eth0 and wlan0. 2019-02-21 18:22:45 +00:00
Pedro Gonçalves
d1872860fa rules/exiftool: add rule for exiftool lib/api. 2019-02-21 18:21:54 +00:00
Paulo Dias
5003698147 rules: boost: added patch for boost 1.55 to build on gcc-5.
see:
71d7c515dd/var/spack/repos/builtin/packages/boost/boost_10125.patch,
71d7c515dd,
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197594
2019-02-12 15:26:54 +00:00
Paulo Dias
5c36c29b77 systems: added missing copy of systems/lctr-rpi/cfg/linux-4.14_2018-08-17.cfg to systems/lauv-aux-rpi/cfg. 2019-02-11 20:55:22 +00:00
Paulo Dias
073b3e969b rules: rpi-boot-firmware: fix lsts address used. 2019-02-11 20:42:10 +00:00
Paulo Dias
e0131dc645 gitignore: added helper script to ignore. 2019-02-11 20:03:00 +00:00
Paulo Dias
0bcc05e9fb rules: boost: added needed libraries that must be built separately are: regex,filesystem,system,thread. 2019-02-11 20:02:49 +00:00
Paulo Dias
3f0db94013 systems: Added boost to lauv-nemo-aux. 2019-02-11 20:00:39 +00:00
zepinto
f117dcbe5f Docker Makefile: added DNS option.
# Conflicts:
#	docker/Makefile
2019-02-11 20:00:17 +00:00
mariacosta
4cf1db0317 GLUED: Updated Copyright. 2019-02-11 10:50:52 +00:00
Paulo Dias
00255e4608 gitignore: added helper script to ignore. 2019-02-08 20:12:08 +00:00
Paulo Dias
72a786508e rules: boost: added needed libraries that must be built separately are: regex,filesystem,system,thread. 2019-02-08 20:11:29 +00:00
Paulo Dias
8bda2a4551 systems: Added boost to lauv-nemo-aux. 2019-02-08 20:09:34 +00:00
Kristoffer Gryte
4e0d51b548 rules/curl: symlink libcurl to /lib/ for cross-compilation of DUNE 2019-02-06 14:40:03 +01:00
Kristoffer Gryte
20a8911a04 rules/opencv: symlink libopencv_* to /lib/, for cross-compilation of DUNE 2019-02-06 14:29:43 +01:00
zepinto
7542b861c3 Docker Makefile: added DNS option. 2019-01-15 18:26:25 +00:00
Paulo Dias
e6bd6c1a39 mkpackage: use www.lsts.pt instead of lsts.pt.
# Conflicts:
#	mkpackage.bash
2019-01-08 20:47:52 +00:00
Paulo Dias
580816dde8 mkpackage: use www.lsts.pt instead of lsts.pt. 2019-01-08 20:44:04 +00:00
Pedro Gonçalves
f1185813ca docker: fix option to delete docker img. 2018-12-12 14:37:05 +00:00
Pedro Gonçalves
2c601025c0 rules: linux: update rpi boot firmware to version compatible with kernel 4.14. 2018-12-12 14:31:56 +00:00
Pedro Gonçalves
286dcd752b system: lctr-rpi: update rpi kernel version to 4.14. 2018-12-12 14:29:18 +00:00
Pedro Gonçalves
f5cb62393d rules: linux: update rpi kernel version to 4.14. 2018-12-12 14:28:41 +00:00
Pedro Gonçalves
2b96c6f84a docker: add option to delete docker system img. 2018-12-12 14:27:26 +00:00
João Teixeira
4c8324abc3 lctr-9axx: added manta-sabuvis system 2018-10-24 14:33:44 +01:00
João Teixeira
4316b4c9f7 systems/lctr-rpi: Added titan configuration file. 2018-08-30 11:25:42 +01:00
Pedro Gonçalves
3aa0d620e9 systems: added system lauv-noptilus-3-aux-cmre. 2018-08-28 13:56:12 +01:00
Pedro Gonçalves
a2892dde64 systems: added system lauv-noptilus-1-aux-cmre. 2018-08-28 13:55:55 +01:00
Pedro Gonçalves
de957461ee netcat: update url of package. 2018-08-28 13:55:20 +01:00
Paulo Dias
8fc06f6598 systems: Added systems lauv-nemo-1-aux-cmre and lauv-noptilus-2-aux-cmre. 2018-08-23 20:34:24 +01:00
Pedro Gonçalves
ef4b573d78 mpc: update url of package. 2018-08-20 20:34:55 +01:00
Tiago Marques
d9545a482f systems: Added systems lauv-nemo-1 and lauv-nemo-1-aux. 2018-08-20 18:12:32 +01:00
João Teixeira
9015c36df9 systems: Added systems buv-petinga-1 2018-04-20 19:37:04 +01:00
mariacosta
3e002e3ec5 systems/lctr-rpi: Added x8-06-aux configuration file. 2018-04-20 11:10:10 +01:00
Tiago Marques
b15293ee66 lctr-9axx: added manta-rugged-2 system. 2018-04-20 09:38:18 +01:00
Tiago Marques
e2da8b7586 systems: Added systems lauv-nemo-1 and lauv-nemo-1-aux. 2018-02-16 15:46:05 +00:00
Tiago Marques
0cf9ba8b9c systems/lauv-aux-rpi: removed Europa from packages. 2018-01-09 09:30:44 +00:00
Tiago Marques
5967c0b13f mkpackage: use HTTPS for lsts repository 2017-12-04 11:35:38 +00:00
Tiago Marques
459c14e7f4 mkconfig: updated glued version 2017-11-27 16:27:42 +00:00
Pedro Gonçalves
d2a0d5208c systems/lauv-aux-rpi: add system config file for lauv-xplore-5-aux. 2017-10-24 17:00:28 +01:00
Pedro Gonçalves
644b98c753 systems/lauv-aux-rpi: add system config file for lauv-xplore-4-aux. 2017-10-24 16:59:54 +01:00
Pedro Gonçalves
fcad38b6d7 systems/lauv-aux-rpi: add system config file for lauv-xplore-3-aux. 2017-10-24 16:58:50 +01:00
Pedro Gonçalves
853e7ea553 systems/lctr-a6xx: add system config file for lauv-xplore-5. 2017-10-11 14:08:33 +01:00
Pedro Gonçalves
b0633cd82c systems/lctr-a6xx: add system config file for lauv-xplore-4. 2017-10-11 14:08:23 +01:00
Pedro Gonçalves
7e8e9cbad0 systems/lctr-a6xx: add system config file for lauv-xplore-3. 2017-10-11 14:08:13 +01:00
Tiago Marques
19855db2da Merge branch 'bug/kmod-modules-dep'
Authored By: Ricardo Martins
2017-09-28 19:57:10 +01:00
Ricardo Martins
a8a131e19c linux: use system kmod. 2017-09-28 17:58:58 +01:00
Ricardo Martins
bbbd691fb3 docker: install kmod. 2017-09-28 17:58:14 +01:00
Tiago Marques
200dfc2205 Merge branch 'feature/linux-update'
Authored By: Pedro Gonçalves
Reviewed By: Tiago Marques
2017-09-25 18:29:42 +01:00
Tiago Marques
1a95420340 systems/lctr-b2xx/patches/linux/00-lctr-b2xx-dts: Updated patch 2017-09-25 16:07:42 +01:00
Tiago Marques
aec36f560b rules/lpg/default: Fixed dependencies. 2017-09-25 10:41:27 +01:00
Tiago Marques
13b3b18b5d systems/lctr-b2xx/patches/linux: Upgraded to v4.4.66 2017-09-22 15:45:21 +01:00
Tiago Marques
87e70a6615 Merge branch 'feature/memtest' 2017-09-13 10:32:41 +01:00
Tiago Marques
7dc03d18c5 systems/lctr-a6xx/config: Added memtest86+ package. 2017-09-13 10:26:50 +01:00
Tiago Marques
dbae4f69f6 rules/memtest86+/fs: Renamed script. 2017-09-12 09:46:51 +01:00
Tiago Marques
29298872e8 rules/memtest86+/fs/memtester: Changed shebang. 2017-09-11 18:02:15 +01:00
Tiago Marques
a55b6dbc6a rules/memtest86+: Removed garbage file. 2017-09-11 17:55:47 +01:00
Tiago Marques
5919324f1b systems/lctr-a6xx/cfg/linux-4.4.66: Disabled pps's debug messages. 2017-09-01 12:11:27 +01:00
Tiago Marques
020e2c7fe9 rules/gcc/cross: Fixed bug for 64 bit systems, causing libraries to be searched in the wrong directory. 2017-08-29 19:19:46 +01:00
Tiago Marques
b4674e5cb6 rules/linux-headers/cross: Fixed url. 2017-08-29 16:54:42 +01:00
Tiago Marques
1c2f480dbd Revert "docker: update file to use gcc 5.4."
GCC v5.4 is not needed to compile the new kernel.
This reverts commit 8faf53ef3e.
2017-08-29 16:39:29 +01:00
Tiago Sá Marques
63ce5fa404 Merge pull request #33 from krisklau/pr/update_gdb
gdb: Upgraded version to 7.10.1 to allow remote debugging on bbb.
2017-08-16 13:35:38 +01:00
Tiago Sá Marques
8097d2679b Merge pull request #34 from krisklau/pr/openssh_privsep
openssh: Compile with privsep-path set to /var/empty/
2017-08-16 13:29:25 +01:00
Tiago Marques
d352a68acc Merge branch 'krisklau-pr/ntnu-update-s17' 2017-08-16 12:56:36 +01:00
Tiago Marques
81052b54a6 Revert "System: noptilus-aux: Added lpg."
This reverts commit 84bbaf4bca.
2017-08-16 12:56:25 +01:00
Tiago Marques
b28a6d787e rules/perf/default: Fixed dependencies. 2017-08-16 12:56:25 +01:00
Tiago Marques
347ef94fd4 Revert "systems/lctr-a6xx/config: build perf for lctr-a6xx systems."
This reverts commit e5bfb87131.
2017-08-16 12:56:25 +01:00
Tiago Marques
eacd69fe0f rules/perf/default: Fixed code style. 2017-08-16 12:56:25 +01:00
tsmarques
d1adbb7b9c rules/perf: Fixed target_install(). Copy perf to rootfs instead of toolchain. 2017-08-16 12:56:25 +01:00
tsmarques
c8e3e6fc59 rules/perf: removed temporary file. 2017-08-16 12:56:25 +01:00
tsmarques
a911af2fa0 systems/lctr-a6xx/config: build perf for lctr-a6xx systems. 2017-08-16 12:56:25 +01:00
tsmarques
fb7aa49ab0 rules/perf: added rules for perf package. 2017-08-16 12:56:25 +01:00
Tiago Marques
ee477076c8 Revert "System: noptilus-aux: Added lpg."
This reverts commit 84bbaf4bca.
2017-08-16 12:52:53 +01:00
Pedro Gonçalves
8faf53ef3e docker: update file to use gcc 5.4. 2017-08-16 11:50:30 +01:00
Pedro Gonçalves
aa786393e6 lctr-a9xx: rename rule profile to v3_14. 2017-08-16 11:50:30 +01:00
Pedro Gonçalves
592571c75a lctr-a9xx: change linux rule to linux/default_3.3 to maintain compatibility with older processors. 2017-08-16 11:50:30 +01:00
Pedro Gonçalves
d87b79cecd lctr-a9xx/patches/linux_4.4.66: add patch for omap3. 2017-08-16 11:50:30 +01:00
Pedro Gonçalves
8f5aa75fae lctr-a9xx: add cfg linux file for version 4.4.66. 2017-08-16 11:50:30 +01:00
Pedro Gonçalves
2601d6a4a4 linux/default_3.3: add rule to maintain compatibility with older processors. 2017-08-16 11:50:30 +01:00
Pedro Gonçalves
770821bbcd systems/lctr-b2xx/cfg: update kernel config file to 4.4.66. 2017-08-16 11:50:30 +01:00
Pedro Gonçalves
6bcbaced95 bridge-utils: update version to 1.6. 2017-08-16 11:50:30 +01:00
Pedro Gonçalves
6607a06504 bridge-utils/patches: update to version 1.6. 2017-08-16 11:50:30 +01:00
Pedro Gonçalves
a4f6e5c9d8 escc: update version to 1.0.71. 2017-08-16 11:50:30 +01:00
Pedro Gonçalves
e034305031 linux-headers: update to version 4.4.66 2017-08-16 11:50:30 +01:00
Pedro Gonçalves
07219a7e82 linux: update linux kernel to 4.4.66 2017-08-16 11:50:30 +01:00
Pedro Gonçalves
4b13bb96d6 lctr-a6xx/cfg: add patches for linux 4.4.66 2017-08-16 11:50:30 +01:00
Tiago Marques
d4be30bec6 rules/memtest86+: Added script to start memtest. 2017-08-12 08:24:17 +01:00
Tiago Marques
a6564e1b5d rules/syslinux/extlinux.conf: Added boot option for memtest. 2017-08-12 08:23:13 +01:00
Tiago Marques
6f0b948b98 Merge branch 'feature/perf' 2017-08-04 14:09:40 +01:00
Kristian Klausen
277501513a openssh: Compile with privsep-path set to /var/empty/ 2017-08-04 10:11:02 +02:00
Kristian Klausen
40b48c2b35 gdb: Upgraded version to 7.10.1 to allow remote debugging on bbb. 2017-08-04 10:01:41 +02:00
Kristian Klausen
1069e42b8b ntnu-b2xx: cfg/linux-3.14.63: Added kernel driver for CONFIG_RFKILL=y
+CONFIG_CFG80211=y
+CONFIG_NL80211=y
2017-08-04 09:54:17 +02:00
Kristian Klausen
88718f7a36 ntnu-b2xx: cfg/linux-3.14.63: Added kernel driver for RT2800USB (wifi usb) 2017-08-04 09:54:17 +02:00
Kristian Klausen
88ca152faa ntnu-b2xx: Added ntnu-bixler-001. 2017-08-04 09:54:17 +02:00
Kristian Klausen
970bddfa6e ntnu-b2xx: ntnu-cruisermini-001-pseudo: Added pseudo-vehicle. 2017-08-04 09:54:17 +02:00
Kristian Klausen
a564932f4f ntnu-b2xx: Added vehicles ntnu-cruisermini-00x. 2017-08-04 09:54:17 +02:00
Kristian Klausen
de5fb6e33d ntnu-b2xx: ntnu-hexa-002: Updated config to include the same packages as hexa-003, hexa-004 2017-08-04 09:54:17 +02:00
Kristian Klausen
51f08c2d3d ntnu-b2xx: ntnu-nest-04: Fixed typo in hostname. 2017-08-04 09:54:17 +02:00
Kristian Klausen
79aa224ed3 ntnu-b2xx: ntnu-hexa-003,4: Removed service force_10mbit. 2017-08-04 09:54:17 +02:00
Kristian Klausen
49fb0d28cd ntnu-b2ss: ntnu-octo-001: New system. 2017-08-04 09:54:17 +02:00
Kristian Klausen
438cfa26eb ntnu-b2xx: fs/etc/rc.d/rtklib_rtkrcv: Added functionality to create the folder /opt/lsts/rtklib/ if it does not exist. 2017-08-04 09:54:17 +02:00
Kristian Klausen
792d11ca1c ntnu-b2xx: Added ssh tools to hexa-004, x8-002, x8-008. 2017-08-04 09:54:17 +02:00
Kristian Klausen
115cfa3727 ntnu-b2xx: Added system ntnu-nest-04. 2017-08-04 09:54:17 +02:00
Tiago Marques
1369cb7f34 rules/perf/default: Fixed dependencies. 2017-08-03 23:32:34 +00:00
Tiago Marques
e12f3dc414 Revert "systems/lctr-a6xx/config: build perf for lctr-a6xx systems."
This reverts commit e5bfb87131.
2017-08-03 21:22:08 +00:00
Tiago Marques
52880f1754 rules/perf/default: Fixed code style. 2017-08-03 21:21:39 +00:00
Tiago Marques
5a8237118f rules: Added rule for memtext86+ 2017-08-01 20:39:26 +01:00
José Braga
f6f03a67dd lauv-aux-rpi: fixed lauv-xtreme-2-aux configuration file. 2017-07-31 11:19:51 +01:00
José Braga
7f2247ae3b lctr-b2xx: added lauv-xtreme-2-aux file with nfs storage server. 2017-07-31 11:13:33 +01:00
Pedro Gonçalves
7606ca039f lctr-rpi/x8-08: clean/update config file, add opencv rule. 2017-07-26 17:44:21 +01:00
Pedro Gonçalves
770fd8e51b lctr-rpi/rpi-camera-main: add config file to test camera (main cpu). 2017-07-26 17:43:06 +01:00
Pedro Gonçalves
4fac253f8a lctr-rpi/rpi-camera-aux: add config file to test camera (module camera). 2017-07-26 17:42:48 +01:00
Pedro Gonçalves
d231107bfe lctr-rpi/fs: add service lauv-storage-server/client. 2017-07-26 17:41:41 +01:00
Pedro Gonçalves
f1f79f08a1 lctr-b2xx/x8-07: add opencv rule. 2017-07-26 17:40:53 +01:00
Pedro Gonçalves
c0a9000772 lauv-aux-rpi/CMRE-rpi: update config file. 2017-07-26 17:40:18 +01:00
Jose Pinto
84bbaf4bca System: noptilus-aux: Added lpg. 2017-07-05 16:37:32 +01:00
Tiago Marques
3704b05ffa Merge branch 'feature/lpg' 2017-07-05 16:07:26 +01:00
Jose Pinto
3164e87a8e System: noptilus-aux: Added libraries required by necsave. 2017-07-05 14:36:52 +01:00
Ricardo Martins
3496db07d2 dune: added package for NECSAVE. 2017-07-05 14:19:22 +01:00
Jose Pinto
699fa27067 Fixed libtool dependency. 2017-07-05 14:17:54 +01:00
Jose Pinto
a153ccca60 Added rule for CZMQ. 2017-07-05 14:12:39 +01:00
Jose Pinto
4e13aec0a1 Added rule for 0MQ. 2017-07-05 14:11:29 +01:00
Jose Pinto
3d8202f28c Added rule for jansson lib. 2017-07-05 14:10:51 +01:00
Tiago Marques
8b15f2d169 mkupdate: Set update folder according to vendor. 2017-06-29 16:44:32 +01:00
Pedro Gonçalves
fa4d1cf7f5 systems/lctr-b2xx/x8-06: add rule opencv and exiv2. 2017-06-28 17:48:42 +01:00
Pedro Gonçalves
ed1e4c0240 docker/Makefile: add option to clean folder temp/image of docker. 2017-06-28 13:37:15 +01:00
Pedro Gonçalves
e0a8b77db3 docker: update file to use gcc 5.4. 2017-06-28 13:25:37 +01:00
Pedro Gonçalves
71ba6575d4 Revert "syslinux: remove unnecessary flag CC."
This reverts commit 8ff2efbf62.
2017-06-27 18:41:35 +01:00
Pedro Gonçalves
8ff2efbf62 syslinux: remove unnecessary flag CC. 2017-06-27 16:00:05 +01:00
João Teixeira
7aef5753e3 systems/lctr-b2xx/x8-08: add GSM support 2017-06-26 15:47:12 +01:00
Pedro Gonçalves
1b51c79e8d rules/exiv2: add gettext to required rule. 2017-06-26 14:37:49 +01:00
Pedro Gonçalves
d6757ac880 systems/lctr-b2xx/x8-07: add rule opencv and exiv2. 2017-06-22 16:30:13 +01:00
Pedro Gonçalves
949348e239 systems/lctr-b2xx/x8-07: add rule opencv and exiv2. 2017-06-22 16:11:28 +01:00
João Teixeira
7fd5b0ca82 systems/lctr-b2xx/x8-07: add GSM support 2017-06-22 15:42:38 +01:00
Pedro Gonçalves
d79bfb5739 systems/lctr-rpi/mariner-01: change/update system config file. 2017-06-22 13:48:04 +01:00
Pedro Gonçalves
2ffbea8fa9 systems/lctr-rpi/x8-08: change/update system config file. 2017-06-21 18:10:35 +01:00
Pedro Gonçalves
c6ad9ec474 rules/raspicam: add to requires rule uv4l. 2017-06-21 18:09:40 +01:00
Pedro Gonçalves
cb5e6a5d87 rules/ffmpeg: update rule to copy .so to both sysroot. 2017-06-21 18:09:03 +01:00
Pedro Gonçalves
e6c7b8fc82 rules/exiv2: add rule to put meta-data in photos. 2017-06-21 18:07:59 +01:00
Pedro Gonçalves
8fc8368239 lctr-a9xx: rename rule profile to v3_14. 2017-06-16 13:17:59 +01:00
Tiago Marques
a7e2cbedda Merge branch 'feature/test_rpi'
Authored By: Pedro Gonçalves
Reviewed By: Tiago Marques
2017-06-16 13:07:45 +01:00
Pedro Gonçalves
8e09fa8657 lctr-a9xx: change linux rule to linux/default_3.3 to maintain compatibility with older processors. 2017-06-14 18:11:05 +01:00
Pedro Gonçalves
af00086429 lctr-a9xx/patches/u-boot: update to version 2017.05. 2017-06-14 18:10:10 +01:00
Pedro Gonçalves
e17ed0fe3d lctr-a9xx/patches/linux_4.4.66: add patch for omap3. 2017-06-14 18:09:36 +01:00
Pedro Gonçalves
eb350e5312 lctr-a9xx: add cfg linux file for version 4.4.66. 2017-06-14 18:08:26 +01:00
Pedro Gonçalves
e3c3ee86be linux/default_3.3: add rule to maintain compatibility with older processors. 2017-06-14 18:07:05 +01:00
Pedro Gonçalves
b6acfb001a bridge-utils/patches: update to version 1.6. 2017-06-14 18:04:13 +01:00
Pedro Gonçalves
da1cce3421 bridge-utils: update version to 1.6. 2017-06-14 18:03:02 +01:00
Tiago Marques
422c024635 mkpackage: Fixed LSTS mirror's url 2017-06-09 17:27:48 +01:00
Tiago Marques
67341ca813 mkpackage: Use LSTS's mirror first, to download packages. 2017-06-09 13:29:31 +01:00
Tiago Marques
5819ff41e4 mkupdate: Added script to update glued in a given system 2017-06-09 11:40:21 +01:00
Tiago Marques
78da3914b4 mkpackage: Use LSTS's mirror first, to download packages. 2017-06-09 10:38:09 +01:00
Pedro Gonçalves
3e714da20e systems/lctr-b2xx/cfg: update kernel config file to 4.4.66. 2017-06-06 21:55:46 +01:00
Pedro Gonçalves
be83cc16ad opencv:change order of requirements. 2017-06-05 14:34:33 +01:00
Pedro Gonçalves
386c62ab33 glibc: update version to 2.24. 2017-06-05 14:31:46 +01:00
Pedro Gonçalves
a4550c9675 escc: update version to 1.0.71. 2017-06-02 16:28:33 +01:00
Pedro Gonçalves
a6c550b828 linux-headers: update to version 4.4.66 2017-06-02 14:43:59 +01:00
Pedro Gonçalves
ab8bf70cd8 linux: update linux kernel to 4.4.66 2017-06-02 14:43:34 +01:00
Pedro Gonçalves
089ad47882 lctr-a6xx/cfg: add patches for linux 4.4.66 2017-06-02 14:42:40 +01:00
Tiago Marques
1ab074d0bd rules/raspicam: Added missing dependency. 2017-06-02 14:42:38 +01:00
Tiago Marques
db04cf06cb rules/uv4l: Don't hard code raspicam script. 2017-06-02 14:42:30 +01:00
Pedro Gonçalves
30935044d3 lctr-b2xx/CMRE-bbb: add config file for CMRE system. 2017-06-01 17:59:04 +01:00
Pedro Gonçalves
05b1fb1d10 lauv-aux-rpi/CMRE-rpi: add config file for CMRE system. 2017-06-01 17:58:22 +01:00
Pedro Gonçalves
8292bcd5d1 lauv-aux-rpi/CMRE: remove white spaces. 2017-06-01 15:26:39 +01:00
Nicolas JOURDEN
e8b2904f51 Fixed package list. 2017-06-01 15:23:37 +01:00
Nicolas JOURDEN
4ea2982346 Added rlwrap. 2017-06-01 15:22:26 +01:00
Nicolas JOURDEN
c362d134fb Added CMRE config. 2017-06-01 15:21:31 +01:00
Nicolas JOURDEN
fa4ba223cf Added screen. 2017-06-01 15:18:37 +01:00
Nicolas JOURDEN
3314f83868 Added netcat. 2017-06-01 15:17:44 +01:00
Pedro Gonçalves
b4591b8d2e Merge branch 'feature/pointgrey' into feature/gcc_5.4 2017-06-01 15:09:33 +01:00
Pedro Gonçalves
b220ad99c7 opencv: update rule to compile lib with tbb options. 2017-06-01 15:01:39 +01:00
Pedro Gonçalves
f939911a81 ffmpeg: update rule to copy libs to both sysroot. 2017-06-01 15:00:34 +01:00
Pedro Gonçalves
bd54a9ea61 base/host: remove unnecessary rule. 2017-06-01 14:58:45 +01:00
Pedro Gonçalves
970c716e11 libraw1394: create rule for pointgrey new version. 2017-06-01 14:42:37 +01:00
Pedro Gonçalves
d3230c7745 pointgrey: update version of api. 2017-06-01 14:39:57 +01:00
Pedro Gonçalves
8795a05ccb opencv: update rule to compile opencv with tbb. 2017-05-30 13:19:39 +01:00
Pedro Gonçalves
741c21e41c ffmpeg: update rule to copy lib/so for both rootfs. 2017-05-30 13:18:08 +01:00
Pedro Gonçalves
d281bf7059 systems/lctr-b2xx/config: update target uboot config for new version of u-boot. 2017-05-25 18:51:26 +01:00
Pedro Gonçalves
77f006c5af base/host: remove unnecessary package. 2017-05-24 17:07:44 +01:00
Pedro Gonçalves
8892d28fc7 u-boot: update version to 2017.05. 2017-05-24 17:06:49 +01:00
Pedro Gonçalves
22bd8c75d8 systems/lctr-b2xx/patches/u-boot: update patch for the new version of u-boot. 2017-05-24 17:04:38 +01:00
Pedro Gonçalves
e3a19cb53b mkdisk: add kernel file option on create_part_xboot. 2017-05-24 17:03:27 +01:00
Pedro Gonçalves
d942ae8700 lctr-rpi/test-rpi: update system config file. 2017-05-23 16:15:51 +01:00
Tiago Marques
ce7839830b rules/escc: Bumped to version 1.0.7 2017-05-22 16:48:36 +01:00
Tiago Marques
d02fa39ddb rules/lpg: Compile lpg. 2017-05-17 09:29:47 +01:00
Tiago Marques
4161caff37 Dockerfile: Bumped Debian version to 9. 2017-05-16 17:38:48 +01:00
Pedro Gonçalves
1356e43416 architectures/xscale: change flags name for GCC 5.4.0 . 2017-05-15 19:20:05 +01:00
Pedro Gonçalves
176fc3e773 architectures/xscale-iwmmxt: change flags name for GCC 5.4.0 . 2017-05-15 19:19:43 +01:00
Pedro Gonçalves
ce0e86f9d8 architectures/mips32r2: change flags name for GCC 5.4.0 . 2017-05-15 19:19:19 +01:00
Pedro Gonçalves
fb7fbab958 architectures/i686: change flags name for GCC 5.4.0 . 2017-05-15 19:18:58 +01:00
Pedro Gonçalves
21df489a67 architectures/i586: change flags name for GCC 5.4.0 . 2017-05-15 19:18:44 +01:00
Pedro Gonçalves
7a4a2fe092 architectures/geode: change flags name for GCC 5.4.0 . 2017-05-15 19:18:28 +01:00
Pedro Gonçalves
05ef973532 architectures/cortex-a9-hardfp: change flags name for GCC 5.4.0 . 2017-05-15 19:18:07 +01:00
Pedro Gonçalves
1247abdc24 architectures/cortex-a8: change flags name for GCC 5.4.0 . 2017-05-15 19:17:57 +01:00
Pedro Gonçalves
39fd404ce2 architectures/atom64: change flags name for GCC 5.4.0 . 2017-05-15 19:17:41 +01:00
Pedro Gonçalves
d25159dce5 architectures/atom: change flags name for GCC 5.4.0 . 2017-05-15 19:17:28 +01:00
Pedro Gonçalves
72b82bd1ca architectures/arm926ej-s: change flags name for GCC 5.4.0 . 2017-05-15 19:17:04 +01:00
Pedro Gonçalves
8b1bcc81e6 architectures/arm-1176: change flags name for GCC 5.4.0 . 2017-05-15 19:16:28 +01:00
Pedro Gonçalves
464b8ebcfd architectures/cortex-a8-hardfp: change flags name for GCC 5.4.0 . 2017-05-11 21:38:34 +01:00
Pedro Gonçalves
bda380aa86 gcc: update version for GCC 5.4.0 . 2017-05-11 21:37:20 +01:00
Pedro Gonçalves
ebde279240 gmp: update version ( for GCC 5.4 ). 2017-05-11 21:36:43 +01:00
Pedro Gonçalves
c828b16c72 binutils: update version ( for GCC 5.4 ). 2017-05-11 21:36:06 +01:00
Pedro Gonçalves
fe32c8ec5a libdc1394: disable examples. 2017-05-11 21:35:26 +01:00
Pedro Gonçalves
ef0956cdc1 linux-headers: update version ( for GCC 5.4 / kernel 4.4.45 ). 2017-05-11 21:34:23 +01:00
Pedro Gonçalves
557ddca9de mpc: update version ( for GCC 5.4 ). 2017-05-11 21:33:30 +01:00
Pedro Gonçalves
ff4a504738 mpfr: update version ( for GCC 5.4 ). 2017-05-11 21:33:03 +01:00
Pedro Gonçalves
7cee4b531b Merge branch 'feature/test_rpi' into feature/gcc_5.4 2017-05-11 19:36:58 +01:00
Manuel R
eeefa5908d lctr-rpi: mariner-01: Added wlan to config. 2017-05-09 13:26:34 +01:00
Pedro Gonçalves
36d62e2795 test-rpi: add exiv2 rule. 2017-05-08 20:45:18 +01:00
Pedro Gonçalves
bcdf9fd794 systems/lctr-rpi: update config.txt file for cpu frequency. 2017-05-08 20:44:25 +01:00
Pedro Gonçalves
947d4ec794 raspicam: add cmake requires for rule. 2017-05-08 20:43:08 +01:00
Pedro Gonçalves
9abd4092b6 pointgrey: update rule/url of package flycapture API. 2017-05-08 20:42:33 +01:00
Pedro Gonçalves
1f7ba00bf1 opencv: update parameters for cmake. 2017-05-08 20:41:37 +01:00
Pedro Gonçalves
4dbdc12686 exiv2: add rule for metadata exif. 2017-05-08 20:40:42 +01:00
João Teixeira
cfd9f7064b lctr-a6xx: revert PPS_CLIENT_GPIO 2017-05-06 15:33:12 +01:00
mariacosta
9c63f6a0e5 lctr-a6xx: Variable cfg_escc_script now empty by default. 2017-05-05 16:56:37 +01:00
Pedro Gonçalves
407eebad04 Merge branch 'feature/test_rpi' into feature/pointgrey 2017-05-03 16:34:43 +01:00
Jose Pinto
4f81df3ca9 Packages: Added rule to build htop. 2017-05-01 16:32:27 +01:00
Pedro Gonçalves
fc77579bf4 iw: update/fix rule for check_wlan. 2017-04-18 14:11:30 +01:00
Pedro Gonçalves
d9a1157878 filesystem: update service of check_wlan. 2017-04-18 14:10:36 +01:00
Pedro Gonçalves
e5dbc2924c iw: add script check_wlan to fs, script removed in filesystem rule. 2017-04-18 14:08:18 +01:00
Pedro Gonçalves
7d77726e80 filesystem: add script to check wifi connection. 2017-04-12 21:21:29 +01:00
Pedro Gonçalves
cb4c8a5739 iw: remove file check_wlan (move to filesystem). 2017-04-12 21:20:17 +01:00
Pedro Gonçalves
910862e084 lctr-rpi/test-rpi: add check_wlan to services0. 2017-04-12 18:56:19 +01:00
Pedro Gonçalves
560f4d8930 filesystem: add service of check_wlan. 2017-04-12 18:55:22 +01:00
Pedro Gonçalves
bc788dc955 uv4l: update parameters of uv4l server. 2017-04-12 18:54:20 +01:00
Pedro Gonçalves
206460e467 iw: add file/script to check connection to SSID. 2017-04-12 18:53:28 +01:00
Pedro Gonçalves
4691e93747 iw: update rule, copy file system to root file system. 2017-04-12 18:51:37 +01:00
Pedro Gonçalves
735b5f2e79 lctr-rpi/test-rpi: fix some issues, network -> network-wlan 2017-04-10 22:15:42 +01:00
Pedro Gonçalves
b530b76581 filesystem: add network-wlan service to enable wlan0. 2017-04-10 22:03:45 +01:00
Pedro Gonçalves
5cfdd6d3d9 iw: add rule for iw (wlan network config). 2017-04-10 22:02:53 +01:00
Pedro Gonçalves
55641a6693 lctr-rpi/test-rpi: add rule for wifi-config (iw) 2017-04-10 20:05:42 +01:00
João Teixeira
dd0212bfa0 lctr-rpi:nest-1 add suport to mobile internet- linux-4.4 2017-04-10 15:50:40 +01:00
mariacosta
49f31934f7 lctr-b2xx: Added pixhawk-testbed configuration file and updated IP address of aero-01. 2017-04-09 11:01:47 +01:00
mariacosta
66de780258 lctr-a9xx: Deleted x8-00 and updated IP address of x8-02. 2017-04-09 11:00:57 +01:00
mariacosta
7977480161 lctr-b2xx: x8-06: Updated IP address. 2017-04-07 14:42:30 +01:00
mariacosta
6f09fed5b2 lctr-b2xx: Deleted x8-05 and added x8-07. 2017-04-07 14:41:27 +01:00
mariacosta
333f3ebe55 lctr-rpi: Replaced BBB for a RPI in mariner-01. 2017-04-06 13:30:52 +01:00
mariacosta
bed09c213e lctr-rpi: Added x8-08 configuration file. 2017-04-06 13:08:17 +01:00
mariacosta
714aa28c92 lctr-rpi: x2o-02: Removed repeated entries from basic config, added libav and removed nfs-utils packages. 2017-04-06 10:42:48 +01:00
mariacosta
e66fdc9adc lctr-rpi: x2o-01: Removed repeated entries from basic config, added libav and removed nfs-utils packages. 2017-04-06 10:42:34 +01:00
mariacosta
842160dd4a lctr-rpi: nest-1: Updated IP address. 2017-04-06 10:39:58 +01:00
Pedro Gonçalves
c428102633 lctr-rpi: update cfg_terminal to tty1 and partitions, remove target dtb. 2017-04-05 18:23:51 +01:00
Manuel R
f79aec516f lctr-rpi: Added X2O-01 and X2O-02 configs. 2017-04-05 14:14:05 +01:00
Manuel R
d273414068 systems/lctr-rpi: Added inittab file to disable serial console. 2017-04-05 14:11:26 +01:00
Manuel R
a95d7a868a systems/lctr-rpi: Updated config file for RPi2/3. 2017-04-05 14:10:59 +01:00
Manuel R
b0ceda4ea2 lauv-aux-rpi/cfg: Updated kernel config. 2017-04-05 14:10:03 +01:00
mariacosta
2b5b6b3c2f Merge branch 'feature/raspicam' into feature/test_rpi 2017-04-05 13:51:00 +01:00
João Teixeira
4ee4dadaaf lctr-a6xx: add PPS_CLIENT_GPIO 2017-04-04 14:52:37 +01:00
João Teixeira
ff0a567462 systems/lctr-rpi: add NETFILTER kernel config 2017-02-21 18:37:39 +00:00
João Teixeira
d91631f542 Merge branch 'master' of https://github.com/LSTS/glued 2017-02-21 15:26:51 +00:00
João Teixeira
b77d33441b systems/lauv-aux-rpi: add lauv-arpao-aux config file 2017-02-21 15:26:40 +00:00
Tiago Marques
2eaaab820a systems/lctr-a6xx: Enable debugging options by default. 2017-02-17 18:29:45 +00:00
João Teixeira
501217ff0e lctr-a6xx: added FTDI support to lauv-xplore-1 2017-02-15 20:18:21 +00:00
João Teixeira
e6d5014b2a lctr-a6xx: add lauv-arpao correct name 2017-02-08 14:53:12 +00:00
João Teixeira
fd15ab19d9 lctr-a6xx: add lauv-arpao config file 2017-02-08 14:40:02 +00:00
João Teixeira
4510993b5a Merge branch 'feature/nest-1' 2017-01-23 18:03:45 +00:00
mariacosta
1bcbd2d2fb lctr-b2xx: Enabled UART4 by default. 2017-01-17 15:12:22 +00:00
mariacosta
04f268c481 GLUED: Updated Copyright. 2017-01-16 10:30:25 +00:00
tsmarques
996c2c6fa0 rules/perf: Fixed target_install(). Copy perf to rootfs instead of toolchain. 2016-12-20 18:05:02 +00:00
João Teixeira
7c15c5d1c4 lctr-rpi: ignore lctr-rpi build folder 2016-11-30 20:08:05 +00:00
João Teixeira
6fe196ad09 lctr-rpi:nest-1 add suport to mobile internet 2016-11-30 20:05:30 +00:00
João Teixeira
b5dba77554 lctr-rpi: Add configuration files for main cpu,(systems based in raspberry pi) 2016-11-29 17:29:12 +00:00
Pedro Gonçalves
afccf97e04 pointgrey: downgraded version of SDK for GCC 4.9.x. 2016-11-14 18:24:38 +00:00
Pedro Gonçalves
025dd6001b libav: add host install, add libs (*.so) to sysroot of toolchain. 2016-11-10 19:18:25 +00:00
Pedro Gonçalves
b9e2e9c2b8 ffmpeg: add libs (*.so) to sysroot of toolchain. 2016-11-10 19:17:21 +00:00
Pedro Gonçalves
873040a941 opencv: update to v2.4.13, remove cmake rule. 2016-11-10 19:15:50 +00:00
Pedro Gonçalves
928c424440 base/host: add cmake rule. 2016-11-10 19:14:43 +00:00
Pedro Gonçalves
960196ee6a pointgrey: fix path to main folder. 2016-11-07 18:46:06 +00:00
Pedro Gonçalves
9d43ffd5e8 pointgrey: update rule. 2016-11-07 17:40:57 +00:00
Pedro Gonçalves
4c978b0840 pointgrey: add new rule for pointgrey api camara. 2016-11-07 16:31:03 +00:00
Pedro Gonçalves
b55c9a90d1 libdc1394: disable-examples build. 2016-11-07 16:29:48 +00:00
tsmarques
0ec6de7ea4 rules/perf: removed temporary file. 2016-10-18 15:15:33 +02:00
tsmarques
e5bfb87131 systems/lctr-a6xx/config: build perf for lctr-a6xx systems. 2016-10-17 23:44:05 +02:00
tsmarques
0eeb5362b9 rules/perf: added rules for perf package. 2016-10-17 23:43:58 +02:00
197 changed files with 32467 additions and 660 deletions

4
.gitignore vendored
View File

@@ -5,8 +5,12 @@
/lctr-a9xx /lctr-a9xx
/lctr-b1xx /lctr-b1xx
/lctr-b2xx /lctr-b2xx
/lctr-rpi4
/lauv-atom
/qemu-i686 /qemu-i686
/lauv-aux /lauv-aux
/lauv-aux-rpi /lauv-aux-rpi
/ntnu-b2xx /ntnu-b2xx
/stamp9g20 /stamp9g20
/lctr-rpi
build.bash

View File

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

View File

@@ -1,4 +1,4 @@
cfg_target_canonical="armv5te-$cfg_glued_vendor-linux-gnueabi" cfg_target_canonical="armv5te-$cfg_glued_vendor-linux-gnueabi"
cfg_target_linux='arm' cfg_target_linux='arm'
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mtune=arm926ej-s -mfloat-abi=soft' cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mtune=arm926ej-s -mfloat-abi=soft'
cfg_target_gcc_configure_flags='--with-arch=armv5te --with-tune=arm926ej-s --with-float=soft' cfg_target_gcc_configure_flags='--with-arch=armv5te --with-mtune=arm926ej-s --with-float=soft'

View File

@@ -1,4 +1,4 @@
cfg_target_canonical="atom-$cfg_glued_vendor-linux-gnu" cfg_target_canonical="atom-$cfg_glued_vendor-linux-gnu"
cfg_target_linux='x86' cfg_target_linux='x86'
cfg_target_linux_kernel='arch/x86/boot/bzImage' cfg_target_linux_kernel='arch/x86/boot/bzImage'
cfg_target_gcc_configure_flags='--with-arch=atom --with-cpu=atom --with-tune=atom' cfg_target_gcc_configure_flags='--with-arch=atom --with-mcpu=atom --with-mtune=atom'

View File

@@ -1,6 +1,6 @@
cfg_target_canonical="atom64-$cfg_glued_vendor-linux-gnu" cfg_target_canonical="atom64-$cfg_glued_vendor-linux-gnu"
cfg_target_linux='x86' cfg_target_linux='x86'
cfg_target_gcc_flags='-O2 -pipe -march=atom -funit-at-a-time' cfg_target_gcc_flags='-O2 -pipe -march=atom -funit-at-a-time'
cfg_target_gcc_configure_flags='--with-cpu=x86-64 --with-tune=atom' cfg_target_gcc_configure_flags='--with-mcpu=x86-64 --with-mtune=atom'
cfg_target_linux_kernel='arch/x86/boot/bzImage' cfg_target_linux_kernel='arch/x86/boot/bzImage'
cfg_target_lib64='yes' cfg_target_lib64='yes'

View File

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

View File

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

View File

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

View File

@@ -2,5 +2,5 @@ cfg_target_canonical="armv7-$cfg_glued_vendor-linux-gnueabihf"
cfg_target_linux='arm' cfg_target_linux='arm'
cfg_target_uboot_arch='arm' cfg_target_uboot_arch='arm'
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mcpu=cortex-a9 -mtune=cortex-a9 -mfloat-abi=hard -mfpu=vfpv3' cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mcpu=cortex-a9 -mtune=cortex-a9 -mfloat-abi=hard -mfpu=vfpv3'
cfg_target_gcc_configure_flags='--with-arch=armv7-a --with-cpu=cortex-a9 --with-tune=cortex-a9 --with-fpu=vfpv3 --with-float=hard' cfg_target_gcc_configure_flags='--with-arch=armv7-a --with-mcpu=cortex-a9 --with-mtune=cortex-a9 --with-fpu=vfpv3 --with-float=hard'
cfg_target_ar_flags='elf32-littlearm' cfg_target_ar_flags='elf32-littlearm'

View File

@@ -1,3 +1,3 @@
cfg_target_canonical="geode-$cfg_glued_vendor-linux-gnu" cfg_target_canonical="geode-$cfg_glued_vendor-linux-gnu"
cfg_target_linux='x86' cfg_target_linux='x86'
cfg_target_gcc_configure_flags='--with-arch=geode --with-cpu=geode --with-tune=geode' cfg_target_gcc_configure_flags='--with-arch=geode --with-mcpu=geode --with-mtune=geode'

View File

@@ -1,5 +1,5 @@
cfg_target_canonical="i586-$cfg_glued_vendor-linux-gnu" cfg_target_canonical="i586-$cfg_glued_vendor-linux-gnu"
cfg_target_linux='x86' cfg_target_linux='x86'
cfg_target_gcc_configure_flags='--with-arch=i586 --with-cpu=i586 --with-tune=i586' cfg_target_gcc_configure_flags='--with-arch=i586 --with-mcpu=i586 --with-mtune=i586'
cfg_target_gcc_flags='-O2 -pipe -march=i586 -funit-at-a-time' cfg_target_gcc_flags='-O2 -pipe -march=i586 -funit-at-a-time'
cfg_target_glibc_configure_flags='--with-cpu=i586' cfg_target_glibc_configure_flags='--with-cpu=i586'

View File

@@ -1,6 +1,6 @@
cfg_target_canonical="i686-$cfg_glued_vendor-linux-gnu" cfg_target_canonical="i686-$cfg_glued_vendor-linux-gnu"
cfg_target_linux='x86' cfg_target_linux='x86'
cfg_target_gcc_flags='-O2 -pipe -march=i686 -funit-at-a-time' cfg_target_gcc_flags='-O2 -pipe -march=i686 -funit-at-a-time'
cfg_target_gcc_configure_flags='--with-cpu=i686' cfg_target_gcc_configure_flags='--mwith-cpu=i686'
cfg_target_glibc_configure_flags='--with-cpu=i686' cfg_target_glibc_configure_flags='--with-mcpu=i686'
cfg_target_linux_kernel='arch/x86/boot/bzImage' cfg_target_linux_kernel='arch/x86/boot/bzImage'

View File

@@ -1,5 +1,5 @@
cfg_target_canonical="mipsisa32r2-$cfg_glued_vendor-linux-gnu" cfg_target_canonical="mipsisa32r2-$cfg_glued_vendor-linux-gnu"
cfg_target_linux='mips' cfg_target_linux='mips'
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mabi=32 -mips32r2 -mtune=mips32r2 -msoft-float' cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mabi=32 -mips32r2 -mtune=mips32r2 -msoft-float'
cfg_target_gcc_configure_flags='--with-abi=32 --with-tune=mips32r2 --with-float=soft' cfg_target_gcc_configure_flags='--with-abi=32 --with-mtune=mips32r2 --with-float=soft'
cfg_target_glibc_configure_flags='--without-fp' cfg_target_glibc_configure_flags='--without-fp'

View File

@@ -1,4 +1,4 @@
cfg_target_canonical="armv5-$cfg_glued_vendor-linux-gnueabi" cfg_target_canonical="armv5-$cfg_glued_vendor-linux-gnueabi"
cfg_target_linux='arm' cfg_target_linux='arm'
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mcpu=iwmmxt -mtune=iwmmxt -mfloat-abi=soft' cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mcpu=iwmmxt -mtune=iwmmxt -mfloat-abi=soft'
cfg_target_gcc_configure_flags='--with-arch=iwmmxt --with-cpu=iwmmxt --with-tune=iwmmxt --with-float=soft' cfg_target_gcc_configure_flags='--with-arch=iwmmxt --with-mcpu=iwmmxt --with-mtune=iwmmxt --with-float=soft'

View File

@@ -1,4 +1,4 @@
cfg_target_canonical="armv5-$cfg_glued_vendor-linux-gnueabi" cfg_target_canonical="armv5-$cfg_glued_vendor-linux-gnueabi"
cfg_target_linux='arm' cfg_target_linux='arm'
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mtune=xscale -mfloat-abi=soft' cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mtune=xscale -mfloat-abi=soft'
cfg_target_gcc_configure_flags='--with-arch=armv5te --with-tune=xscale --with-float=soft' cfg_target_gcc_configure_flags='--with-arch=armv5te --with-mtune=xscale --with-float=soft'

View File

@@ -27,11 +27,28 @@ MAINTAINER Ricardo Martins <rasm@oceanscan-mst.com>
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND noninteractive
# Update distro. # Update distro.
RUN echo "deb http://ftp.us.debian.org/debian testing non-free contrib" >> /etc/apt/sources.list
RUN echo "deb http://mirrors.fe.up.pt/ubuntu xenial main restricted universe multiverse" >> /etc/apt/sources.list
RUN echo "deb http://mirrors.fe.up.pt/ubuntu xenial-updates main restricted universe multiverse" >> /etc/apt/sources.list
RUN echo "deb http://mirrors.fe.up.pt/ubuntu xenial-backports main restricted universe multiverse" >> /etc/apt/sources.list
RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3B4FE6ACC0B21F32
RUN apt-get update -y RUN apt-get update -y
RUN apt-get install -y apt-utils
RUN apt-get dist-upgrade -y RUN apt-get dist-upgrade -y
RUN apt-get install -y g++-5
RUN apt-get install -y gcc-5
RUN apt-get install -y wget RUN apt-get install -y wget
RUN apt-get install -y bzip2 RUN apt-get install -y bzip2
RUN apt-get install -y git RUN apt-get install -y git
RUN apt-get install -y g++-multilib RUN apt-get install -y g++-multilib
RUN apt-get install -y cmake
RUN apt-get install -y file RUN apt-get install -y file
RUN apt-get install -y kmod
RUN apt-get install -y vim
RUN apt-get install -y nasm
RUN apt-get install -y build-essential
RUN apt-get install -y make
RUN apt-get install -y bison
RUN apt-get install -y flex
RUN apt-get install -y libssl-dev
RUN apt-get install -y libncurses-dev
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5

View File

@@ -23,9 +23,22 @@
TAG := glued TAG := glued
VERSION := 2016.05.0 VERSION := 2016.05.0
VOLUME := $(CURDIR)/.. VOLUME := $(CURDIR)/..
DNS := 8.8.8.8
all: all:
docker build -t $(TAG):$(VERSION) . docker build -t $(TAG):$(VERSION) .
shell: shell:
docker run -w $(VOLUME) -i -a stdin -a stdout -v $(VOLUME):$(VOLUME) -t $(TAG):$(VERSION) docker run -w $(VOLUME) --dns=$(DNS) -i -a stdin -a stdout -v $(VOLUME):$(VOLUME) -t $(TAG):$(VERSION)
clean:
@echo "* Stopping docker service..."
@sudo systemctl stop docker
@echo "* Cleaning docker service..."
@sudo rm -rf /var/lib/docker
@echo "* Starting docker service..."
@sudo systemctl start docker
@echo "* Done."
delete_img:
@sudo docker system prune -a

View File

@@ -1,6 +1,6 @@
########################################################################### ###########################################################################
# GLUED: GNU/Linux Uniform Environment Distribution # # GLUED: GNU/Linux Uniform Environment Distribution #
# Copyright (C) 2007-2014 Universidade do Porto - Faculdade de Engenharia # # Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) # # Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
########################################################################### ###########################################################################
# This program is free software; you can redistribute it and/or modify # # This program is free software; you can redistribute it and/or modify #

View File

@@ -1,7 +1,7 @@
#! /bin/bash #! /bin/bash
########################################################################### ###########################################################################
# GLUED: GNU/Linux Uniform Environment Distribution # # GLUED: GNU/Linux Uniform Environment Distribution #
# Copyright (C) 2007-2014 Universidade do Porto - Faculdade de Engenharia # # Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) # # Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
########################################################################### ###########################################################################
# This program is free software; you can redistribute it and/or modify # # This program is free software; you can redistribute it and/or modify #
@@ -23,7 +23,7 @@
########################################################################### ###########################################################################
# Config: GLUED version. # Config: GLUED version.
cfg_glued_version='2016.05' cfg_glued_version='2019.08'
# Config: GLUED vendor. # Config: GLUED vendor.
cfg_glued_vendor='lsts' cfg_glued_vendor='lsts'

View File

@@ -1,7 +1,7 @@
#! /bin/bash #! /bin/bash
########################################################################### ###########################################################################
# GLUED: GNU/Linux Uniform Environment Distribution # # GLUED: GNU/Linux Uniform Environment Distribution #
# Copyright (C) 2007-2014 Universidade do Porto - Faculdade de Engenharia # # Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) # # Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
########################################################################### ###########################################################################
# This program is free software; you can redistribute it and/or modify # # This program is free software; you can redistribute it and/or modify #
@@ -70,7 +70,7 @@ create_part_xboot()
nfo2 "Populating filesystem" nfo2 "Populating filesystem"
cmd_mount vfat "$part_dev" || die cmd_mount vfat "$part_dev" || die
for f in MLO u-boot.img uEnv.txt; do for f in MLO u-boot.img uEnv.txt kernel; do
if [ -f "$cfg_sys_family/rootfs/boot/$f" ]; then if [ -f "$cfg_sys_family/rootfs/boot/$f" ]; then
nfo2 installing $f to boot partition nfo2 installing $f to boot partition
cp "$cfg_sys_family/rootfs/boot/$f" mount || die cp "$cfg_sys_family/rootfs/boot/$f" mount || die

View File

@@ -1,7 +1,7 @@
#! /bin/bash #! /bin/bash
########################################################################### ###########################################################################
# GLUED: GNU/Linux Uniform Environment Distribution # # GLUED: GNU/Linux Uniform Environment Distribution #
# Copyright (C) 2007-2014 Universidade do Porto - Faculdade de Engenharia # # Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) # # Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
########################################################################### ###########################################################################
# This program is free software; you can redistribute it and/or modify # # This program is free software; you can redistribute it and/or modify #
@@ -71,17 +71,22 @@ download()
fi fi
fi fi
# First try OceanScan-MST mirror. # First try LSTS mirror.
omst_url="http://www.omst.pt/glued/$(basename $u)" lsts_url="https://www.lsts.pt/glued/validPackages/$(basename $u)"
download_tool "$omst_url" "$cfg_dir_downloads/$file" download_tool "$lsts_url" "$cfg_dir_downloads/$file"
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
# On failure try upstream URL. # Then try OceanScan-MST mirror.
download_tool "$u" "$cfg_dir_downloads/$file" omst_url="http://www.omst.pt/glued/$(basename $u)"
if [ $? -ne 0 ]; then download_tool "$omst_url" "$cfg_dir_downloads/$file"
echo "ERROR: download failed" if [ $? -ne 0 ]; then
exit 1 # On failure try upstream URL.
fi download_tool "$u" "$cfg_dir_downloads/$file"
fi if [ $? -ne 0 ]; then
echo "ERROR: download failed"
exit 1
fi
fi
fi
md5="$(md5sum_tool "$cfg_dir_downloads/$file")" md5="$(md5sum_tool "$cfg_dir_downloads/$file")"
if [ "$s" != "$md5" ]; then if [ "$s" != "$md5" ]; then

View File

@@ -1,7 +1,7 @@
#! /bin/bash #! /bin/bash
########################################################################### ###########################################################################
# GLUED: GNU/Linux Uniform Environment Distribution # # GLUED: GNU/Linux Uniform Environment Distribution #
# Copyright (C) 2007-2013 Universidade do Porto - Faculdade de Engenharia # # Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) # # Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
########################################################################### ###########################################################################
# This program is free software; you can redistribute it and/or modify # # This program is free software; you can redistribute it and/or modify #

68
mkupdate.bash Executable file
View File

@@ -0,0 +1,68 @@
#! /bin/bash
###########################################################################
# GLUED: GNU/Linux Uniform Environment Distribution #
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
###########################################################################
# This program is free software; you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation; either version 2 of the License, or (at #
# your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, but #
# WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
# General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program; if not, write to the Free Software #
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
# 02110-1301 USA. #
###########################################################################
# Author: Tiago Marques #
###########################################################################
update_tool()
{
rsync -v "$1" root@"$2":/opt/"$cfg_glued_vendor"/glued/
if [ $? -eq 0 ]; then
return 0
fi
scp "$1" root@"$2":/opt/"$cfg_glued_vendor"/glued/
if [ $? -eq 0 ]; then
return 0
fi
return 1
}
# Check command line arguments.
if [ $# -lt 1 ]; then
echo "Usage: $0 <config>"
exit 1
fi
# Read system configuration file.
if ! [ -f "$1" ]; then
echo -e "\e[1;31mERROR: invalid configuration file '$1'\e[0m"
exit 1
fi
# Read system configuration file.
source "$1"
if [ ! -f "$cfg_rootfs_tar" ];
then
echo -e "\e[1;31mERROR: You should run ./pkrootfs $1\e[0m"
exit 1
fi
# check for dirty repo
if [[ "$cfg_glued_git_version" =~ .*-dirty$ ]]
then
echo -e "\e[1;31mThis glued's version is dirty\e[0m"
fi
# send package to the system
update_tool "$cfg_rootfs_tar" "$cfg_eth_ext_ip"

View File

@@ -1,7 +1,7 @@
#! /bin/bash #! /bin/bash
########################################################################### ###########################################################################
# GLUED: GNU/Linux Uniform Environment Distribution # # GLUED: GNU/Linux Uniform Environment Distribution #
# Copyright (C) 2007-2014 Universidade do Porto - Faculdade de Engenharia # # Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) # # Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
########################################################################### ###########################################################################
# This program is free software; you can redistribute it and/or modify # # This program is free software; you can redistribute it and/or modify #

View File

@@ -1,7 +1,7 @@
#! /bin/bash #! /bin/bash
########################################################################### ###########################################################################
# GLUED: GNU/Linux Uniform Environment Distribution # # GLUED: GNU/Linux Uniform Environment Distribution #
# Copyright (C) 2007-2014 Universidade do Porto - Faculdade de Engenharia # # Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) # # Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
########################################################################### ###########################################################################
# This program is free software; you can redistribute it and/or modify # # This program is free software; you can redistribute it and/or modify #

View File

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

45
rules/bash/default.bash Normal file
View File

@@ -0,0 +1,45 @@
version=\
(
"4.4.18"
)
url=\
(
"http://ftp.gnu.org/gnu/bash/bash-$version.tar.gz"
)
md5=\
(
'518e2c187cc11a17040f0915dddce54e'
)
maintainer=\
(
'Pedro Gonçalves <pedro@fe.up.pt>'
)
configure()
{
./configure \
--prefix=${cfg_dir_rootfs}/usr \
--host=${cfg_target_canonical} \
--bindir=${cfg_dir_toolchain}/bin \
--without-bash-malloc
}
build()
{
$cmd_make VERBOSE=1
}
host_install()
{
$cmd_make install
}
target_install()
{
$cmd_cp bash ${cfg_dir_rootfs}/usr/bin
$cmd_cp bashversion ${cfg_dir_rootfs}/usr/bin
}

View File

@@ -1,6 +1,6 @@
version=\ version=\
( (
'2.25.1' '2.28'
) )
url=\ url=\
@@ -10,7 +10,7 @@ url=\
md5=\ md5=\
( (
'ac493a78de4fee895961d025b7905be4' '9e8340c96626b469a603c15c9d843727'
) )
maintainer=\ maintainer=\

View File

@@ -37,7 +37,8 @@ configure()
{ {
cd "../boost_$vendor_version" && cd "../boost_$vendor_version" &&
./bootstrap.sh \ ./bootstrap.sh \
--with-icu="$cfg_dir_toolchain_sysroot/usr" --with-icu="$cfg_dir_toolchain_sysroot/usr" \
--with-libraries="regex,filesystem,system,thread"
GXX_VER=$(${cmd_target_cxx} -dumpversion) GXX_VER=$(${cmd_target_cxx} -dumpversion)
echo "using gcc : ${GXX_VER} : ${cmd_target_cxx} : <cxxflags>\"-pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 ${cfg_target_gcc_flags} \" <linkflags>\"\" ;" > user-config.jam echo "using gcc : ${GXX_VER} : ${cmd_target_cxx} : <cxxflags>\"-pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 ${cfg_target_gcc_flags} \" <linkflags>\"\" ;" > user-config.jam

View File

@@ -0,0 +1,51 @@
--- a/boost/thread/pthread/once.hpp
+++ b/boost/thread/pthread/once.hpp
@@ -42,7 +42,7 @@ namespace boost
}
#ifdef BOOST_THREAD_PROVIDES_ONCE_CXX11
-#ifndef BOOST_NO_CXX11_VARIADIC_TEMPLATES
+#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
template<typename Function, class ...ArgTypes>
inline void call_once(once_flag& flag, BOOST_THREAD_RV_REF(Function) f, BOOST_THREAD_RV_REF(ArgTypes)... args);
#else
@@ -65,7 +65,7 @@ namespace boost
private:
volatile thread_detail::uintmax_atomic_t epoch;
-#ifndef BOOST_NO_CXX11_VARIADIC_TEMPLATES
+#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
template<typename Function, class ...ArgTypes>
friend void call_once(once_flag& flag, BOOST_THREAD_RV_REF(Function) f, BOOST_THREAD_RV_REF(ArgTypes)... args);
#else
@@ -118,7 +118,7 @@ namespace boost
// http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2444.html
-#ifndef BOOST_NO_CXX11_VARIADIC_TEMPLATES
+#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
template<typename Function, class ...ArgTypes>
--- a/boost/thread/pthread/once_atomic.hpp
+++ b/boost/thread/pthread/once_atomic.hpp
@@ -115,7 +115,7 @@ namespace boost
#endif
-#ifndef BOOST_NO_CXX11_VARIADIC_TEMPLATES
+#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
template<typename Function, class ...ArgTypes>
inline void call_once(once_flag& flag, BOOST_THREAD_RV_REF(Function) f, BOOST_THREAD_RV_REF(ArgTypes)... args)
--- a/boost/thread/win32/once.hpp
+++ b/boost/thread/win32/once.hpp
@@ -227,7 +227,7 @@ namespace boost
}
}
-#ifndef BOOST_NO_CXX11_VARIADIC_TEMPLATES
+#if !defined BOOST_NO_CXX11_VARIADIC_TEMPLATES && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
//#if defined(BOOST_THREAD_RVALUE_REFERENCES_DONT_MATCH_FUNTION_PTR)
inline void call_once(once_flag& flag, void (*f)())
{

View File

@@ -1,16 +1,16 @@
version=\ version=\
( (
'1.5' '1.6'
) )
url=\ url=\
( (
"http://downloads.sourceforge.net/project/bridge/bridge/bridge-utils-$version.tar.gz" "http://www.kernel.org/pub/linux/utils/net/bridge-utils/bridge-utils-$version.tar.gz"
) )
md5=\ md5=\
( (
'ec7b381160b340648dede58c31bb2238' 'f369e90e85e4bb46baa26a7b9d66b578'
) )
maintainer=\ maintainer=\

View File

@@ -35,6 +35,11 @@ build()
host_install() host_install()
{ {
$cmd_make install $cmd_make install
# make available for cross compilation
for f in "${cfg_dir_toolchain_sysroot}/usr/lib/"libcurl*so*; do
echo "Doing $f"
ln -s -f "$f" "${cfg_dir_toolchain}/lib"
done
} }
target_install() target_install()

52
rules/czmq/default.bash Normal file
View File

@@ -0,0 +1,52 @@
version=\
(
"3.0.2"
)
url=\
(
"https://github.com/zeromq/czmq/archive/v$version.tar.gz"
)
md5=\
(
"23e9885f7ee3ce88d99d0425f52e9be1"
)
configure()
{
./autogen.sh && \
./configure \
--prefix="${cfg_dir_toolchain_sysroot}/usr" \
--target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \
--build="$cfg_host_canonical"
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
}
requires=\
(
'libtool/host'
'zeromq'
)
target_install()
{
# Libs:
for f in "$cfg_dir_toolchain_sysroot/usr/lib/"libczmq.*; do
if [ -L "$f" ]; then
$cmd_cp "$f" "$cfg_dir_rootfs/usr/lib"
else
$cmd_target_strip -v "$f" -o "$cfg_dir_rootfs/usr/lib/$(basename "$f")"
fi
done
}

37
rules/dune/default.bash Normal file
View File

@@ -0,0 +1,37 @@
version=\
(
'master'
)
requires=\
(
'cmake/host'
)
download()
{
git clone "git@github.com:LSTS/dune.git" dune &&
cd dune && git checkout "$version" && cd - &&
git clone "git@git.lsts.pt:dune-private.git" dune/private &&
cd dune/private && git checkout "$version" && cd -
}
configure()
{
$cmd_mkdir build &&
cd build &&
cmake \
-DCMAKE_INSTALL_PREFIX="$cfg_dir_toolchain_sysroot/usr" \
-DCROSS="$cmd_target_cc" \
../dune
}
build()
{
$cmd_make -C build
}
host_install()
{
$cmd_make -C build install
}

View File

@@ -1,6 +1,6 @@
version=\ version=\
( (
'1.0.6' '1.0.71'
) )
url=\ url=\
@@ -10,7 +10,7 @@ url=\
md5=\ md5=\
( (
'07783e66e27601ab0a8250c328b3d6bf' '075c9256fe20cf6ce867dc2b1c974ebe'
) )
if [ -d "$cfg_dir_builds/linux/linux-"* ]; then if [ -d "$cfg_dir_builds/linux/linux-"* ]; then

View File

@@ -0,0 +1,37 @@
version=\
(
"10.96"
)
url=\
(
"https://lsts.pt/glued/exiftoolBin-${version}.tar.gz"
)
md5=\
(
"71d52bf2d75f023b844dd8c9100daaff"
)
maintainer=\
(
'Pedro Gonçalves <pedro@lsts.pt>'
)
requires=\
(
'perl/default'
)
post_unpack()
{
$cmd_cp -r ../exiftoolBin-${version}/* .
}
target_install()
{
$cmd_cp -rv usr/* $cfg_dir_toolchain_sysroot/usr/
$cmd_cp -rv usr/* $cfg_dir_rootfs/usr/
$cmd_cp -rv usr/local/bin/* $cfg_dir_rootfs/usr/bin/
}

56
rules/exiv2/default.bash Normal file
View File

@@ -0,0 +1,56 @@
version=\
(
"0.25"
)
url=\
(
"http://lsts.pt/glued/exiv2-${version}.tar.gz"
)
md5=\
(
"258d4831b30f75a01e0234065c6c2806"
)
maintainer=\
(
'Pedro Gonçalves <pedro@lsts.pt>'
)
requires=\
(
"gettext/host"
)
configure()
{
./configure \
--datadir="$cfg_dir_toolchain_sysroot" \
--prefix="$cfg_dir_rootfs/usr" \
--includedir="$cfg_dir_toolchain_sysroot/usr/include" \
--enable-cross-compile \
--build=$cfg_target_linux \
--host="$cfg_target_canonical" \
--enable-shared \
--disable-static \
--disable-xmp
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
}
target_install()
{
# Libs:
for f in "$cfg_dir_rootfs/lib/"libexiv2*; do
cp -av "$f" "$cfg_dir_toolchain_sysroot/usr/lib"
done
}

View File

@@ -15,12 +15,14 @@ md5=\
configure() configure()
{ {
mkdir -p ../build
./configure \ ./configure \
--sysroot="$cfg_dir_toolchain_sysroot" \ --sysroot="$cfg_dir_toolchain_sysroot" \
--prefix="$cfg_dir_rootfs/usr" \ --prefix="$cfg_dir_rootfs/usr" \
--incdir="$cfg_dir_toolchain_sysroot/usr/include" \ --incdir="$cfg_dir_toolchain_sysroot/usr/include" \
--enable-cross-compile \ --enable-cross-compile \
--cross-prefix="$cfg_target_canonical-" \ --cross-prefix="$cfg_target_canonical-" \
--libdir="$cfg_dir_builds/ffmpeg/build" \
--target-os="linux" \ --target-os="linux" \
--enable-shared \ --enable-shared \
--disable-static \ --disable-static \
@@ -39,10 +41,16 @@ host_install()
$cmd_make \ $cmd_make \
LIBDIR="$cfg_dir_toolchain_sysroot/usr/lib" \ LIBDIR="$cfg_dir_toolchain_sysroot/usr/lib" \
install-headers install-headers
$cmd_make \
install-libs
} }
target_install() target_install()
{ {
$cmd_make \ $cmd_make \
install-libs install-libs
$cmd_cp -r "$cfg_dir_builds/ffmpeg/build/"* "$cfg_dir_rootfs/usr/lib/"
$cmd_cp -r "$cfg_dir_builds/ffmpeg/build/"* "$cfg_dir_toolchain_sysroot/usr/lib/"
} }

View File

@@ -0,0 +1,15 @@
start()
{
if [ ! -f /opt/check_wlan ]; then
cp -ri /etc/check_wlan /opt/
fi
sh /opt/check_wlan < /dev/null > /dev/null 2>&1 &
}
stop()
{
echo "* Stopping process..."
killall sh /opt/check_wlan -9 > /dev/null 2>&1
echo "* Process not running."
}

View File

@@ -0,0 +1,87 @@
start()
{
ifconfig wlan0 up
if [ -n "$cfg_eth_ext_ip$cfg_eth_prv_ip" ]; then
while [ 1 ]; do
echo "* Waiting for wlan0 device..."
ifconfig wlan0 > /dev/null 2>&1
[ $? -eq 0 ] && break
usleep 250000
done
fi
if [ -n "$cfg_bridge0_ip" ]; then
for itf in $cfg_bridge0_itfs; do
ifconfig $itf 0.0.0.0
done
brctl addbr bridge0
for itf in $cfg_bridge0_itfs; do
brctl addif bridge0 $itf
done
ifconfig bridge0 $cfg_bridge0_ip netmask $cfg_bridge0_nmask up
ifconfig bridge0 multicast
route add -net 224.0.0.0 netmask 240.0.0.0 dev bridge0
fi
# Public ethernet.
if [ -n "$cfg_eth_ext_ip" ]; then
if [ -n "$cfg_eth_ext_mk" ]; then
ifconfig wlan0 "$cfg_eth_ext_ip" netmask "$cfg_eth_ext_mk" up
else
ifconfig wlan0 "$cfg_eth_ext_ip" up
fi
ifconfig wlan0 multicast
route add -net 224.0.0.0 netmask 240.0.0.0 dev wlan0
# Fixed mac address with $cfg_eth_ext_mac based derivated from IP address $cfg_eth_ext_ip
if [ -n "$cfg_eth_ext_mac" ]; then
ifconfig wlan0 hw ether $cfg_eth_ext_mac
fi
fi
if [ -n "$cfg_eth_ext_gw" ]; then
route add default gw "$cfg_eth_ext_gw"
fi
if [ -n "$cfg_eth_ext_dns" ]; then
echo "nameserver $cfg_eth_ext_dns" > /etc/resolv.conf
fi
# Private ethernet.
if [ -n "$cfg_eth_prv_ip" ]; then
ifconfig wlan0:prv "$cfg_eth_prv_ip" up
fi
# Static ARP table.
if [ -n "$cfg_arp_table" ]; then
for e in $cfg_arp_table; do
ip="$(echo $e | cut -f1 -d'|')"
mac="$(echo $e | cut -f2 -d'|')"
arp -s "$ip" "$mac"
done
fi
iw wlan0 connect LSTS
ifconfig eth0 down
}
stop()
{
# Public ethernet.
if [ -n "$cfg_eth_ext_gw" ]; then
route del default
fi
if [ -n "$cfg_eth_ext_ip" ]; then
route del -net 224.0.0.0 netmask 240.0.0.0 dev wlan0
ifconfig wlan0 down
fi
# Private ethernet.
if [ -n "$cfg_eth_prv_ip" ]; then
ifconfig wlan0:prv down
fi
}

View File

@@ -0,0 +1,11 @@
start()
{
echo "* Starting set of rtc..."
echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device
hwclock -s
}
stop()
{
echo "* Done..."
}

View File

@@ -1,6 +1,6 @@
version=\ version=\
( (
'4.9.3' '5.4.0'
) )
url=\ url=\
@@ -10,7 +10,7 @@ url=\
md5=\ md5=\
( (
'6f831b4d251872736e8e9cc09746f327' '4c626ac2a83ef30dfb9260e6f59c2b30'
) )
build_dir=$pkg_var build_dir=$pkg_var

View File

@@ -49,10 +49,15 @@ host_install()
target_install() target_install()
{ {
$cmd_mkdir \ libdir=lib
"$cfg_dir_rootfs/usr/lib" && if [ -d "$cfg_dir_toolchain/$cfg_target_canonical/lib64" ]; then
libdir=lib64
fi
for f in "$cfg_dir_toolchain/$cfg_target_canonical/lib/"{libgcc_s,libstdc++}.so*; do $cmd_mkdir \
"$cfg_dir_rootfs/usr/$libdir" &&
for f in "$cfg_dir_toolchain/$cfg_target_canonical/$libdir/"{libgcc_s,libstdc++}.so*; do
base="$(basename $f)" base="$(basename $f)"
if [ $(echo "$base" | grep '\.py' 2> /dev/null) ]; then if [ $(echo "$base" | grep '\.py' 2> /dev/null) ]; then

View File

@@ -1,6 +1,6 @@
version=\ version=\
( (
'7.8.2' '7.10.1'
) )
url=\ url=\
@@ -10,5 +10,5 @@ url=\
md5=\ md5=\
( (
'a80cf252ed2e775d4e4533341bbf2459' '39e654460c9cdd80200a29ac020cfe11'
) )

View File

@@ -1,6 +1,6 @@
version=\ version=\
( (
'2.22' '2.24'
) )
url=\ url=\
@@ -10,7 +10,7 @@ url=\
md5=\ md5=\
( (
'e51e02bf552a0a1fbbdc948fb2f5e83c' '97dc5517f92016f3d70d83e3162ad318'
) )
maintainer=\ maintainer=\

View File

@@ -1,6 +1,6 @@
version=\ version=\
( (
'5.0.4' '6.1.2'
) )
url=\ url=\
@@ -10,7 +10,7 @@ url=\
md5=\ md5=\
( (
'50c3edcb7c9438e04377ee9a1a061b79' '8ddbb26dc3bd4e2302984debba1406a5'
) )
maintainer=\ maintainer=\

37
rules/htop/default.bash Normal file
View File

@@ -0,0 +1,37 @@
version=\
(
'2.0.2'
)
url=\
(
"https://hisham.hm/htop/releases/$version/htop-$version.tar.gz"
)
md5=\
(
'7d354d904bad591a931ad57e99fea84a'
)
maintainer=\
(
'Jose Pinto <zepinto@lsts.pt>'
)
build()
{
$cmd_make
}
configure()
{
cd "../htop-$version"
./configure --disable-unicode --prefix="${cfg_dir_rootfs}"
}
target_install()
{
cd "../htop-$version"
$cmd_make install
}

34
rules/iw/default.bash Normal file
View File

@@ -0,0 +1,34 @@
version=\
(
"4.9"
)
url=\
(
"http://lsts.pt/glued/iw-$version.tar.bz2"
)
md5=\
(
"ae8ccaa154449300c2c02eb90a37eebb"
)
maintainer=\
(
'Pedro Gonçalves <pedro@lsts.pt>'
)
configure()
{
mv "../iw_$version/etc" "../iw-$version/"
mv "../iw_$version/lib" "../iw-$version/"
mv "../iw_$version/sbin" "../iw-$version/"
}
target_install()
{
$cmd_cp -r "etc/"* "$cfg_dir_rootfs/etc/"
$cmd_cp -r "sbin/"* "$cfg_dir_rootfs/sbin/"
$cmd_cp -r "lib/"* "$cfg_dir_rootfs/lib/"
$cmd_cp -r "$pkg_dir/fs/"* "$cfg_dir_rootfs/"
}

View File

@@ -0,0 +1,46 @@
#!/bin/bash
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/bin
############################# USER INPUT ###########################
ip_dest=10.0.30.3
####################################################################
############### DON'T EDIT ##########################################
check_interval=1
log=/opt/.wifi.log
wlan=wlan0
eth=eth0
exec 1> /dev/null
exec 2>> $log
echo $(date) > $log
# without check_interval set, we risk a 0 sleep = busy loop
if [ ! "$check_interval" ]; then
echo "No check interval set!" >> $log
exit 1
fi
startWifi () {
iw wlan0 connect LSTS >> $log
}
ifconfig $eth down
ifconfig $wlan up
while [ 1 ]; do
ping -q -c1 $ip_dest > /dev/null
if [ $? -ne 0 ]; then
echo $(date)" attempting restart..." >> $log
startWifi
sleep 1
else
echo "IS LINKED" >> $log
sleep $check_interval
fi
done
#####################################################################

View File

@@ -0,0 +1,45 @@
version=\
(
"2.7"
)
url=\
(
"http://www.digip.org/jansson/releases/jansson-2.7.tar.gz"
)
md5=\
(
"3a106a465bbb77637550b422f5b262ef"
)
configure()
{
./configure \
--prefix="${cfg_dir_toolchain_sysroot}/usr" \
--target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \
--build="$cfg_host_canonical"
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
}
target_install()
{
# Libs:
for f in "$cfg_dir_toolchain_sysroot/usr/lib/"libjansson.*; do
if [ -L "$f" ]; then
$cmd_cp "$f" "$cfg_dir_rootfs/usr/lib"
else
$cmd_target_strip -v "$f" -o "$cfg_dir_rootfs/usr/lib/$(basename "$f")"
fi
done
}

View File

@@ -15,9 +15,10 @@ md5=\
configure() configure()
{ {
$cmd_mkdir build
./configure \ ./configure \
--sysroot="$cfg_dir_toolchain_sysroot" \ --sysroot="$cfg_dir_toolchain_sysroot" \
--prefix="$cfg_dir_rootfs/usr" \ --prefix="$cfg_dir_builds/libav/libav-$version/build/" \
--cross-prefix="$cfg_target_canonical-" \ --cross-prefix="$cfg_target_canonical-" \
--target-os="linux" \ --target-os="linux" \
--enable-memalign-hack \ --enable-memalign-hack \
@@ -32,8 +33,14 @@ build()
$cmd_make $cmd_make
} }
host_install()
{
$cmd_make install
$cmd_cp -r "build/"* "$cfg_dir_toolchain_sysroot/usr/"
}
target_install() target_install()
{ {
$cmd_make \ $cmd_cp -r "build/"* "$cfg_dir_rootfs/usr/"
install
} }

View File

@@ -19,6 +19,7 @@ configure()
--prefix="$cfg_dir_toolchain_sysroot/usr" \ --prefix="$cfg_dir_toolchain_sysroot/usr" \
--target="$cfg_target_canonical" \ --target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \ --host="$cfg_target_canonical" \
--disable-examples \
--build="$cfg_host_canonical" --build="$cfg_host_canonical"
} }

View File

@@ -0,0 +1,41 @@
version=\
(
'2.0.5'
)
url=\
(
"http://downloads.sourceforge.net/libraw1394/libraw1394-$version.tar.gz"
)
md5=\
(
'1db64231c78540c32859b591cb8b40cf'
)
configure()
{
"../libraw1394-$version/configure" \
--prefix="$cfg_dir_toolchain_sysroot/usr" \
--target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \
--disable-examples \
--build="$cfg_host_canonical"
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
}
target_install()
{
for f in "$cfg_dir_toolchain_sysroot/usr/lib/"libraw1394*so*; do
$cmd_target_strip "$f" -o "$cfg_dir_rootfs/lib/$(basename "$f")"
done
}

View File

@@ -1,16 +1,16 @@
version=\ version=\
( (
'3.14.63' '4.19.60'
) )
url=\ url=\
( (
"https://www.kernel.org/pub/linux/kernel/v3.x/linux-$version.tar.xz" "https://www.kernel.org/pub/linux/kernel/v4.x/linux-$version.tar.xz"
) )
md5=\ md5=\
( (
'6cf8a6b23849f47f511e0e46cfdb6392' '3f8dfed50f9d9ff7247b3d6da4fd35a3'
) )
maintainer=\ maintainer=\

View File

@@ -1,16 +1,16 @@
version=\ version=\
( (
'3.14.63' '4.4.66'
) )
url=\ url=\
( (
"https://www.kernel.org/pub/linux/kernel/v3.x/linux-$version.tar.xz" "https://www.kernel.org/pub/linux/kernel/v4.x/linux-$version.tar.xz"
) )
md5=\ md5=\
( (
'6cf8a6b23849f47f511e0e46cfdb6392' '5353de56bf4621a35afc4384c7e51f30'
) )
maintainer=\ maintainer=\
@@ -128,14 +128,12 @@ build()
$cmd_make \ $cmd_make \
CROSS_COMPILE=$cfg_target_canonical- \ CROSS_COMPILE=$cfg_target_canonical- \
ARCH=$cfg_target_linux \ ARCH=$cfg_target_linux \
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
modules || return 1 modules || return 1
if [ "$(basename $cfg_target_linux_kernel)" = 'uImage' ]; then if [ "$(basename $cfg_target_linux_kernel)" = 'uImage' ]; then
$cmd_make \ $cmd_make \
CROSS_COMPILE=$cfg_target_canonical- \ CROSS_COMPILE=$cfg_target_canonical- \
ARCH=$cfg_target_linux \ ARCH=$cfg_target_linux \
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
uImage || return 1 uImage || return 1
fi fi
@@ -144,7 +142,6 @@ build()
$cmd_make \ $cmd_make \
CROSS_COMPILE=$cfg_target_canonical- \ CROSS_COMPILE=$cfg_target_canonical- \
ARCH=$cfg_target_linux \ ARCH=$cfg_target_linux \
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
zImage || return 1 zImage || return 1
fi fi
@@ -153,7 +150,6 @@ build()
$cmd_make \ $cmd_make \
CROSS_COMPILE=$cfg_target_canonical- \ CROSS_COMPILE=$cfg_target_canonical- \
ARCH=$cfg_target_linux \ ARCH=$cfg_target_linux \
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
dtbs || return 1 dtbs || return 1
fi fi
@@ -198,14 +194,20 @@ target_install()
ARCH="$cfg_target_linux" \ ARCH="$cfg_target_linux" \
INSTALL_MOD_PATH="$cfg_dir_rootfs/usr" \ INSTALL_MOD_PATH="$cfg_dir_rootfs/usr" \
KBUILD_VERBOSE=1 \ KBUILD_VERBOSE=1 \
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
modules_install modules_install
$cmd_make \ echo $cfg_sys_family
CROSS_COMPILE="$cfg_target_canonical-" \ if [[ $cfg_sys_family == *rpi* ]]; then
ARCH="$cfg_target_linux" \ echo "RPI family, no need of firmware_install"
INSTALL_MOD_PATH="$cfg_dir_rootfs/usr" \ sleep 2
KBUILD_VERBOSE=1 \ else
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \ sleep 2
firmware_install $cmd_make \
CROSS_COMPILE="$cfg_target_canonical-" \
ARCH="$cfg_target_linux" \
INSTALL_MOD_PATH="$cfg_dir_rootfs/usr" \
KBUILD_VERBOSE=1 \
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
firmware_install
fi
} }

View File

@@ -2,7 +2,7 @@
version=\ version=\
( (
'4.4_2017-01-27' '4.19_2019-07-29'
) )
url=\ url=\
@@ -12,7 +12,7 @@ url=\
md5=\ md5=\
( (
'f31d48a9d2c93509b35e750be489b44c' 'a9fac458f26bf4a3f3d9c981c7e51dd9'
) )
build_dir="rpi-linux-rpi-linux-$version" build_dir="rpi-linux-rpi-linux-$version"

View File

@@ -2,12 +2,12 @@
version=\ version=\
( (
'3.14.64-rt67' '4.4.66-rt79'
) )
url=\ url=\
( (
"https://www.kernel.org/pub/linux/kernel/v3.x/linux-$(linux_mmp_version).tar.xz" "https://www.kernel.org/pub/linux/kernel/v4.x/linux-$(linux_mmp_version).tar.xz"
"https://www.kernel.org/pub/linux/kernel/projects/rt/$(linux_mm_version)/patch-$version.patch.gz" "https://www.kernel.org/pub/linux/kernel/projects/rt/$(linux_mm_version)/patch-$version.patch.gz"
) )

206
rules/linux/v3_14.bash Normal file
View File

@@ -0,0 +1,206 @@
version=\
(
'3.14.63'
)
url=\
(
"https://www.kernel.org/pub/linux/kernel/v3.x/linux-$version.tar.xz"
)
md5=\
(
'6cf8a6b23849f47f511e0e46cfdb6392'
)
maintainer=\
(
'Ricardo Martins <rasm@fe.up.pt>'
)
requires=\
(
'bc/host'
'kmod/host'
'lz4/host'
)
# This variable is updated by find_patches().
patches=()
# Major/Minor version.
linux_mm_version()
{
echo "$version" | cut -f1-2 -d.
}
# Major/Minor/Patch version.
linux_mmp_version()
{
echo "$version" | cut -f1 -d-
}
find_patches()
{
patches=(\
$(ls -1 \
"$pkg_dir/patches/$version/"*.patch \
"$pkg_dir/patches/$(linux_mmp_version)/"*.patch \
"$pkg_dir/patches/$(linux_mm_version)/"*.patch \
"$cfg_dir_system/patches/linux/$version/"*.patch \
"$cfg_dir_system/patches/linux/$(linux_mmp_version)/"*.patch \
"$cfg_dir_system/patches/linux/$(linux_mm_version)/"*.patch \
2> /dev/null | awk '!a[$0]++')
)
}
find_patches
# Get configuration file.
linux_cfg_file()
{
for f in "$version" "$(linux_mmp_version)" "$(linux_mm_version)"; do
f="$cfg_dir_system/cfg/linux-$f.cfg"
if [ -f "$f" ]; then
echo "$f"
return 0
fi
echo "Candidate kernel configuration file '$f' doesn't exist." 1>&2
done
echo "ERROR: failed to find a valid kernel configuration file." 1>&2
return 1
}
post_unpack()
{
cp -r ../linux-3.14.63/* ../linux_3.3-3.14.63
n=0; while [ -n "${patches[$n]}" ]; do
patch="${patches[$n]}"
echo "* Applying $patch..."
(ucat "$patch" | patch -p1) || return 1
let n++
done
if [ -d "$cfg_dir_toolchain/firmware" ]; then
tar -C "$cfg_dir_toolchain/firmware" -c -v -f - . | tar -C firmware -x -v -f -
fi
}
refresh()
{
for rule in configure build target_install; do
if [ "$(linux_cfg_file)" -nt "$cfg_dir_builds/linux/$pkg_var/.$rule" ]; then
rm "$cfg_dir_builds/linux/$pkg_var/.$rule"
fi
done
}
configure()
{
$cmd_make \
ARCH=${cfg_target_linux} \
mrproper || return 1
cfg="$(linux_cfg_file)"
[ -n "$cfg" ] || return 1
$cmd_cp "$cfg" .config || return 1
if [ -f "$cfg_dir_system/files/initramfs_init.sh" ]; then
$cmd_mkdir initramfs &&
$cmd_cp "$pkg_dir/files/initramfs.conf" . &&
$cmd_cp "$cfg_dir_system/files/initramfs_init.sh" initramfs/init.sh &&
$cmd_cp "$cfg_dir_rootfs/bin/busybox" initramfs/busybox
fi
yes '' | $cmd_make \
CROSS_COMPILE=${cfg_target_canonical}- \
ARCH=${cfg_target_linux} \
oldconfig
}
build()
{
$cmd_make \
CROSS_COMPILE=$cfg_target_canonical- \
ARCH=$cfg_target_linux || return 1
$cmd_make \
CROSS_COMPILE=$cfg_target_canonical- \
ARCH=$cfg_target_linux \
modules || return 1
if [ "$(basename $cfg_target_linux_kernel)" = 'uImage' ]; then
$cmd_make \
CROSS_COMPILE=$cfg_target_canonical- \
ARCH=$cfg_target_linux \
uImage || return 1
fi
# Compressed image.
if [ "$(basename $cfg_target_linux_kernel)" = 'zImage' ]; then
$cmd_make \
CROSS_COMPILE=$cfg_target_canonical- \
ARCH=$cfg_target_linux \
zImage || return 1
fi
# Device tree blob.
if [ -n "$cfg_target_linux_dtb" ]; then
$cmd_make \
CROSS_COMPILE=$cfg_target_canonical- \
ARCH=$cfg_target_linux \
dtbs || return 1
fi
if [ -n "${cfg_target_linux_size}" ]; then
dd if="$cfg_target_linux_kernel" of="${cfg_target_linux_kernel}.padded" \
ibs="${cfg_target_linux_size}" conv=sync &&
mv "${cfg_target_linux_kernel}.padded" "${cfg_target_linux_kernel}"
fi
}
target_install()
{
if [ -n "$(file "$cfg_target_linux_kernel" | grep ELF)" ]; then
strip="$(echo $cfg_dir_toolchain/bin/*-strip)"
$strip -s -R .comment "$cfg_target_linux_kernel"
fi
# Kernel image.
if [ -n "$cfg_target_linux_kernel" ]; then
cp -v "$cfg_target_linux_kernel" "$cfg_dir_rootfs/boot/kernel"
else
echo "ERROR: failed to find kernel image at '$cfg_target_linux_kernel'"
return 1
fi
# Device tree blobs.
dts="arch/$cfg_target_linux/boot/dts"
if [ -d "$dts" ]; then
$cmd_mkdir "$cfg_dir_rootfs/boot" &&
cp -v "$dts/"*.dtb "$cfg_dir_rootfs/boot"
fi
# Device tree overlays.
overlays_dir="arch/$cfg_target_linux/boot/dts/overlays"
if [ -d "$overlays_dir" ]; then
$cmd_mkdir "$cfg_dir_rootfs/boot/overlays" || return 1
$cmd_cp "$overlays_dir"/*.dtbo "$cfg_dir_rootfs/boot/overlays" || return 1
fi
$cmd_make \
CROSS_COMPILE="$cfg_target_canonical-" \
ARCH="$cfg_target_linux" \
INSTALL_MOD_PATH="$cfg_dir_rootfs/usr" \
KBUILD_VERBOSE=1 \
modules_install
$cmd_make \
CROSS_COMPILE="$cfg_target_canonical-" \
ARCH="$cfg_target_linux" \
INSTALL_MOD_PATH="$cfg_dir_rootfs/usr" \
KBUILD_VERBOSE=1 \
firmware_install
}

38
rules/lpg/default.bash Normal file
View File

@@ -0,0 +1,38 @@
version=\
(
"1.2"
)
url=\
(
"http://lsts.pt/glued/lpg-$version.tar.gz"
)
md5=\
(
"d71e2f282372a5cb1021d9e457a3d53f"
)
requires=\
(
'bison/host'
'flex/host'
)
configure()
{
./configure "$cfg_target_canonical-gcc"
}
build()
{
$cmd_make \
BISON="$cfg_dir_toolchain/bin/bison" \
FLEX="$cfg_dir_toolchain/bin/flex"
}
target_install()
{
$cmd_cp "lpg" "$cfg_dir_rootfs/usr/bin"
}

View File

@@ -0,0 +1,32 @@
version=\
(
"5.01"
)
url=\
(
"http://www.lsts.pt/glued/memtest86+-$version.tar.gz"
)
md5=\
(
"035b85f2edabc9b4a6b0cf6c9c3acf50"
)
maintainer=\
(
'Tiago Sá Marques <tsmarques@fe.up.pt>'
)
build()
{
$cmd_make \
CC=$cmd_target_cc \
CXX=$cmd_target_cxx
}
target_install()
{
$cmd_cp ./memtest.bin $cfg_dir_rootfs/boot/
tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
}

View File

@@ -0,0 +1,14 @@
#! /bin/sh
echo "Starting memtest in 10 seconds (requires reboot), Ctrl-C to cancel..."
for r in 0 1 2 3 4 5 6 7 8 9; do
printf "."
sleep 1
done
mount -o remount,rw /
extlinux -o "memtest" /boot/extlinux/
mount -o remount,ro /
echo "* Rebooting now"
reboot

View File

@@ -1,16 +1,16 @@
version=\ version=\
( (
"0.9" "1.0.2"
) )
url=\ url=\
( (
"http://www.multiprecision.org/mpc/download/mpc-$version.tar.gz" "https://ftp.gnu.org/gnu/mpc/mpc-$version.tar.gz"
) )
md5=\ md5=\
( (
"0d6acab8d214bd7d1fbbc593e83dd00d" "68fadff3358fb3e7976c7a398a0af4c3"
) )
maintainer=\ maintainer=\

View File

@@ -1,6 +1,6 @@
version=\ version=\
( (
'3.1.3' '3.1.5'
) )
url=\ url=\
@@ -10,7 +10,7 @@ url=\
md5=\ md5=\
( (
'5fdfa3cfa5c86514ee4a241a1affa138' 'b1d23a55588e3b2a13e3be66bc69fd8d'
) )
maintainer=\ maintainer=\

52
rules/netcat/default.bash Normal file
View File

@@ -0,0 +1,52 @@
version=\
(
"110"
)
url=\
(
"https://kent.dl.sourceforge.net/project/nc$version/unix%20netcat%201.10%20by%20_Hobbit_/nc$version.tgz"
)
md5=\
(
"402632f2fe01c169ff19a0ad6e9d608c"
)
post_unpack()
{
cd "../netcat-$version"
mv ../data .
mv ../generic.h .
mv ../Makefile .
mv ../netcat.blurb .
mv ../netcat.c .
mv ../README .
mv ../Changelog .
mv ../scripts .
mv ../stupidh .
patches=$(ls "$pkg_dir"/patches/*.patch)
if [ -n "$patches" ]; then
cat $patches | patch -p1
fi
}
build()
{
make nc CC="$cmd_target_cc"
}
host_install()
{
$cmd_cp nc "${cfg_dir_toolchain_sysroot}/usr/bin/"
$cmd_mkdir "${cfg_dir_toolchain_sysroot}/usr/share/bin/"
$cmd_cp scripts/* "${cfg_dir_toolchain_sysroot}/usr/share/bin/"
}
target_install()
{
$cmd_target_strip nc -o "$cfg_dir_rootfs/usr/bin/nc"
$cmd_mkdir ${cfg_dir_rootfs}/usr/share/bin/
$cmd_cp scripts/* "${cfg_dir_rootfs}/usr/share/bin/"
}

View File

@@ -0,0 +1,11 @@
--- a/netcat.c 2017-05-25 14:39:05.517314469 +0200
+++ b/netcat_patch.c 2017-05-25 14:39:00.549218618 +0200
@@ -1316,7 +1316,7 @@
#ifdef HAVE_BIND
/* can *you* say "cc -yaddayadda netcat.c -lresolv -l44bsd" on SunLOSs? */
- res_init();
+// res_init();
#endif
/* I was in this barbershop quartet in Skokie IL ... */
/* round up the usual suspects, i.e. malloc up all the stuff we need */

View File

@@ -15,15 +15,22 @@ md5=\
requires=\ requires=\
( (
'cmake/host'
'ffmpeg/default' 'ffmpeg/default'
'cmake/host'
) )
maintainer=\ maintainer=\
( (
'Renato Caldas <rmsc@fe.up.pt>' 'Renato Caldas <rmsc@fe.up.pt>'
'Pedro Gonçalves <pedro@fe.up.pt>'
) )
post_unpack()
{
wget "http://lsts.pt/glued/tbb43_20141204oss_src.tgz"
mv tbb43_20141204oss_src.tgz "3rdparty/tbb/"
}
configure() configure()
{ {
LINKER_ADDED_FLAGS="-Wl,-rpath,${cfg_dir_rootfs}/usr/lib" LINKER_ADDED_FLAGS="-Wl,-rpath,${cfg_dir_rootfs}/usr/lib"
@@ -31,26 +38,28 @@ configure()
mkdir -p ../build mkdir -p ../build
cd ../build cd ../build
${cfg_dir_toolchain}/usr/local/bin/cmake \ ${cfg_dir_toolchain}/usr/local/bin/cmake \
-DCMAKE_SYSTEM_NAME="Linux" \ -DCMAKE_SYSTEM_NAME="Linux" \
-DCMAKE_SYSTEM_PROCESSOR="$cfg_architecture" \ -DCMAKE_SYSTEM_PROCESSOR="$cfg_architecture" \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_FIND_ROOT_PATH="${cfg_dir_toolchain_sysroot}/usr ${cfg_dir_rootfs}/usr" \ -DCMAKE_FIND_ROOT_PATH="${cfg_dir_toolchain_sysroot}/usr ${cfg_dir_rootfs}/usr" \
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \ -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \ -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
-DCMAKE_C_COMPILER="${cmd_target_cc}" \ -DCMAKE_C_COMPILER="${cmd_target_cc}" \
-DCMAKE_CXX_COMPILER="${cmd_target_cxx}" \ -DCMAKE_CXX_COMPILER="${cmd_target_cxx}" \
-DCMAKE_C_FLAGS="${cfg_target_gcc_flags}" \ -DCMAKE_C_FLAGS="${cfg_target_gcc_flags}" \
-DCMAKE_SHARED_LINKER_FLAGS="${LINKER_ADDED_FLAGS} ${CMAKE_SHARED_LINKER_FLAGS}" \ -DCMAKE_SHARED_LINKER_FLAGS="${LINKER_ADDED_FLAGS} ${CMAKE_SHARED_LINKER_FLAGS}" \
-DCMAKE_MODULE_LINKER_FLAGS="${LINKER_ADDED_FLAGS} ${CMAKE_MODULE_LINKER_FLAGS}" \ -DCMAKE_MODULE_LINKER_FLAGS="${LINKER_ADDED_FLAGS} ${CMAKE_MODULE_LINKER_FLAGS}" \
-DCMAKE_EXE_LINKER_FLAGS="${LINKER_ADDED_FLAGS} ${CMAKE_EXE_LINKER_FLAGS}" \ -DCMAKE_EXE_LINKER_FLAGS="${LINKER_ADDED_FLAGS} ${CMAKE_EXE_LINKER_FLAGS}" \
-DCMAKE_INSTALL_PREFIX="${cfg_dir_toolchain_sysroot}/usr" \ -DCMAKE_INSTALL_PREFIX="${cfg_dir_toolchain_sysroot}/usr" \
-DBUILD_DOCS=OFF \ -DBUILD_DOCS=OFF \
-DBUILD_EXAMPLES=OFF \ -DBUILD_EXAMPLES=OFF \
-DBUILD_PERF_TESTS=OFF \ -DBUILD_PERF_TESTS=OFF \
-DBUILD_SHARED_LIBS=ON \ -DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTS=OFF \ -DBUILD_TESTS=OFF \
-DBUILD_WITH_DEBUG_INFO=OFF \ -DBUILD_WITH_DEBUG_INFO=OFF \
../opencv-$version/ -DBUILD_TBB=ON \
-DWITH_TBB=ON \
../opencv-$version/
} }
build() build()
@@ -63,6 +72,11 @@ host_install()
{ {
cd ${pkg_build_dir}/../build && cd ${pkg_build_dir}/../build &&
$cmd_make install $cmd_make install
# make available for cross compilation
for f in "$cfg_dir_toolchain_sysroot/usr/lib/"libopencv*so*; do
ln -s -f "$f" "$cfg_dir_toolchain/lib"
done
} }
target_install() target_install()
@@ -75,4 +89,7 @@ target_install()
$cmd_target_strip -v "$f" -o "$cfg_dir_rootfs/usr/lib/$(basename "$f")" $cmd_target_strip -v "$f" -o "$cfg_dir_rootfs/usr/lib/$(basename "$f")"
fi fi
done done
$cmd_cp -r "${pkg_build_dir}/../build/lib/"libtbb.so "$cfg_dir_rootfs/usr/lib/"
$cmd_cp -r "${pkg_build_dir}/../build/lib/"libtbb.so "$cfg_dir_toolchain_sysroot/usr/lib/"
} }

View File

@@ -30,6 +30,7 @@ configure()
--target="$cfg_target_canonical" \ --target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \ --host="$cfg_target_canonical" \
--build="$cfg_host_canonical" \ --build="$cfg_host_canonical" \
--with-privsep-path=$cfg_dir_rootfs/var/empty \
--disable-strip --disable-strip
} }

46
rules/perf/default.bash Normal file
View File

@@ -0,0 +1,46 @@
version=\
(
"3.19"
)
url=\
(
"https://www.kernel.org/pub/linux/kernel/v3.x/linux-$version.tar.xz"
)
requires=\
(
'flex/host'
'bison/host'
'zlib/default'
)
# v3.19
md5=\
(
'd3fc8316d4d4d04b65cbc2d70799e763'
)
#3.14.63
# md5=('6cf8a6b23849f47f511e0e46cfdb6392')
build()
{
cd ../linux-$version/
$cmd_make \
CROSS_COMPILE="$cfg_target_canonical-" \
ARCH="$cfg_target_linux" \
INSTALL_MOD_PATH="$cfg_dir_rootfs/usr" \
KBUILD_VERBOSE=1 \
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
NO_LIBELF=1 \
LDFLAGS=-static \
-C "./tools/perf/"
}
target_install()
{
$cmd_cp ../linux-$version/tools/perf/perf \
$cfg_dir_rootfs/usr/bin/
}

View File

@@ -0,0 +1,46 @@
version=\
(
"2.11.3.121"
)
url=\
(
"http://lsts.pt/glued/flycapture.$version.armhf.tar.gz"
)
md5=\
(
"788861351143e3279cf4522e1055e739"
)
post_unpack()
{
$cmd_cp -r "../flycapture.2.11.3.121_armhf/"* "../pointgrey-$version/"
rm -r ../flycapture.2.11.3.121_armhf/
}
requires=\
(
'libusb/default'
'libraw1394/default'
'libdc1394/default'
)
maintainer=\
(
'Pedro Gonçalves <pedro@lsts.pt>'
)
host_install()
{
$cmd_cp -r "lib/"* "$cfg_dir_toolchain_sysroot/usr/lib/"
$cmd_cp -r "include/"* "$cfg_dir_toolchain_sysroot/usr/include/"
}
target_install()
{
$cmd_mkdir "$cfg_dir_rootfs/usr/include/"
$cmd_cp -r "lib/"* "$cfg_dir_rootfs/usr/lib/"
$cmd_cp -r "include/"* "$cfg_dir_rootfs/usr/include/"
}

View File

@@ -13,11 +13,22 @@ md5=\
"169e62fd17d41455a42711a2f9c54fd1" "169e62fd17d41455a42711a2f9c54fd1"
) )
requires=\
(
'cmake/host'
)
maintainer=\ maintainer=\
( (
'Pedro Gonçalves <pedro@lsts.pt>' 'Pedro Gonçalves <pedro@lsts.pt>'
) )
requires=\
(
'uv4l/default'
'cmake/host'
)
configure() configure()
{ {
LINKER_ADDED_FLAGS="-Wl,-rpath,${cfg_dir_rootfs}/usr/lib" LINKER_ADDED_FLAGS="-Wl,-rpath,${cfg_dir_rootfs}/usr/lib"

44
rules/rlwrap/default.bash Normal file
View File

@@ -0,0 +1,44 @@
version=\
(
"0.43"
)
url=\
(
"https://github.com/hanslub42/rlwrap/releases/download/v$version/rlwrap-$version.tar.gz"
)
md5=\
(
"b993e83d3a292464de70719b32f83a34"
)
requires=(
"readline/default"
)
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()
{
$cmd_cp $cfg_dir_toolchain_sysroot/usr/share/rlwrap $cfg_dir_rootfs/usr/share/
$cmd_cp $cfg_dir_toolchain_sysroot/usr/bin/rlwrap $cfg_dir_rootfs/usr/bin/
}

View File

@@ -1,29 +1,26 @@
version=\ version=\
( (
'2017-02-02' '2019-07-29'
) )
url=\ url=\
( (
"http://lsts.pt/glued/rpi-boot-firmware-$version.zip" "http://www.lsts.pt/glued/rpi-boot-firmware-$version.zip"
) )
maintainer=\ maintainer=\
( (
'Ricardo Martins <rasm@fe.up.pt>'
'Pedro Gonçalves <pedro@lsts.pt>' 'Pedro Gonçalves <pedro@lsts.pt>'
) )
md5=\ md5=\
( (
'eb42664fce4d73f167064e697dfacb76' '5b35887b1026fafe8174f473679d175a'
) )
target_install() target_install()
{ {
$cmd_mkdir "$cfg_dir_rootfs/boot" $cmd_mkdir "$cfg_dir_rootfs/boot"
$cmd_cp "../$pkg-$version/"* "$cfg_dir_rootfs/boot/" $cmd_cp "../$pkg-$version/"* "$cfg_dir_rootfs/boot/"
tar -C "$pkg_dir/fs" -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f - tar -C "$pkg_dir/fs" -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
} }

View File

@@ -1 +1 @@
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 elevator=deadline rootwait quiet dwc_otg.lpm_enable=0 console=ttyAMA0,115200,8n1 root=/dev/mmcblk0p2 elevator=deadline rootwait quiet

10
rules/rpi4cfs/5uart.bash Normal file
View File

@@ -0,0 +1,10 @@
maintainer=\
(
'Pedro Gonçalves <pedro@fe.up.pt>'
)
target_install()
{
$cmd_cp $pkg_dir/cfs/5uart/* ${cfg_dir_rootfs}/boot/
}

View File

@@ -0,0 +1 @@
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 elevator=deadline rootwait quiet

View File

@@ -0,0 +1,6 @@
dtoverlay=disable-bt
enable_uart=1
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=uart5

View File

View File

@@ -0,0 +1 @@
dwc_otg.lpm_enable=0 console=ttyAMA0 root=/dev/mmcblk0p2 elevator=deadline rootwait quiet

View File

@@ -0,0 +1,2 @@
dtoverlay=disable-bt
enable_uart=1

View File

View File

@@ -0,0 +1,10 @@
maintainer=\
(
'Pedro Gonçalves <pedro@fe.up.pt>'
)
target_install()
{
$cmd_cp $pkg_dir/cfs/default/* ${cfg_dir_rootfs}/boot/
}

59
rules/screen/default.bash Normal file
View File

@@ -0,0 +1,59 @@
version=\
(
"4.5.0"
)
url=\
(
"http://ftp.gnu.org/gnu/screen/screen-$version.tar.gz"
)
md5=\
(
"a32105a91359afab1a4349209a028e31"
)
requires=\
(
"ncurses/default"
)
post_unpack()
{
patches=$(ls "$pkg_dir"/patches/*.patch)
if [ -n "$patches" ]; then
cat $patches | patch -p1
fi
autoconf
aclocal
}
configure()
{
./configure \
--target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \
--build="$cfg_host_canonical" \
--prefix="$cfg_dir_toolchain_sysroot/usr" \
--enable-colors256
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
}
target_install()
{
$cmd_cp $cfg_dir_toolchain_sysroot/usr/share/screen $cfg_dir_rootfs/usr/share/
$cmd_cp $cfg_dir_toolchain_sysroot/usr/bin/screen-$version $cfg_dir_rootfs/usr/bin/screen
$cmd_cp etc/screenrc $cfg_dir_rootfs/etc/screenrc
}

View File

@@ -0,0 +1,62 @@
From: Maarten ter Huurne <maarten@treewalker.org>
Date: Sat, 13 Sep 2014 10:27:27 +0200
Subject: Removed redundant compiler sanity checks
AC_PROG_CC already performs sanity checks. And unlike the removed
checks, it does so in a way that supports cross compilation.
Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
[Ricardo: rebase on top of 4.3.1]
Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
---
configure.ac | 27 ---------------------------
1 file changed, 27 deletions(-)
diff --git a/configure.ac b/configure.ac
index ffe2e37..27690a6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -48,31 +48,6 @@ AC_PROG_GCC_TRADITIONAL
AC_ISC_POSIX
AC_USE_SYSTEM_EXTENSIONS
-AC_TRY_RUN(main(){exit(0);},,[
-if test $CC != cc ; then
-AC_NOTE(Your $CC failed - restarting with CC=cc)
-AC_NOTE()
-CC=cc
-export CC
-exec $0 $configure_args
-fi
-])
-
-AC_TRY_RUN(main(){exit(0);},,
-exec 5>&2
-eval $ac_link
-AC_NOTE(CC=$CC; CFLAGS=$CFLAGS; LIBS=$LIBS;)
-AC_NOTE($ac_compile)
-AC_MSG_ERROR(Can't run the compiler - sorry))
-
-AC_TRY_RUN([
-main()
-{
- int __something_strange_();
- __something_strange_(0);
-}
-],AC_MSG_ERROR(Your compiler does not set the exit status - sorry))
-
AC_PROG_AWK
AC_PROG_INSTALL
@@ -1300,8 +1275,6 @@ fi
dnl Ptx bug workaround -- insert -lc after -ltermcap
test -n "$seqptx" && LIBS="-ltermcap -lc -lsocket -linet -lnsl -lsec -lseq"
-AC_TRY_RUN(main(){exit(0);},,AC_MSG_ERROR(Can't run the compiler - internal error. Sorry.))
-
ETCSCREENRC=
AC_MSG_CHECKING(for the global screenrc file)
AC_ARG_WITH(sys-screenrc, [ --with-sys-screenrc=path to the global screenrc file], [ ETCSCREENRC="${withval}" ])
--
1.8.4.5

View File

@@ -0,0 +1,124 @@
From: Maarten ter Huurne <maarten@treewalker.org>
Date: Sat, 13 Sep 2014 11:37:59 +0200
Subject: Do not use memcpy as an alternative for bcopy/memmove
The configure script runs a small test program to check whether
memcpy can handle overlapping memory areas. However, it is not valid
to conclude that if a single case of overlapping memory is handled
correctly, all cases will be handled correctly.
Since screen already has its own bcopy implementation as a fallback
for the case that bcopy and memmove are unusable, removing the memcpy
option should not break any systems.
Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
[Ricardo: rebase on top of 4.3.1]
Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
---
acconfig.h | 3 +--
configure.ac | 18 +-----------------
os.h | 8 ++------
osdef.h.in | 10 +---------
4 files changed, 5 insertions(+), 34 deletions(-)
diff --git a/acconfig.h b/acconfig.h
index 2e46985..9b0b9d4 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -476,7 +476,7 @@
#undef GETTTYENT
/*
- * Define USEBCOPY if the bcopy/memcpy from your system's C library
+ * Define USEBCOPY if the bcopy from your system's C library
* supports the overlapping of source and destination blocks. When
* undefined, screen uses its own (probably slower) version of bcopy().
*
@@ -487,7 +487,6 @@
* Their memove fails the test in the configure script. Sigh. (Juergen)
*/
#undef USEBCOPY
-#undef USEMEMCPY
#undef USEMEMMOVE
/*
diff --git a/configure.ac b/configure.ac
index 27690a6..b8e3bec 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1145,7 +1145,7 @@ AC_TRY_LINK(,[getttyent();], AC_DEFINE(GETTTYENT))
AC_CHECKING(fdwalk)
AC_TRY_LINK([#include <stdlib.h>], [fdwalk(NULL, NULL);],AC_DEFINE(HAVE_FDWALK))
-AC_CHECKING(whether memcpy/memmove/bcopy handles overlapping arguments)
+AC_CHECKING(whether memmove/bcopy handles overlapping arguments)
AC_TRY_RUN([
main() {
char buf[10];
@@ -1175,22 +1175,6 @@ main() {
exit(0); /* libc version works properly. */
}], AC_DEFINE(USEMEMMOVE))
-
-AC_TRY_RUN([
-#define bcopy(s,d,l) memcpy(d,s,l)
-main() {
- char buf[10];
- strcpy(buf, "abcdefghi");
- bcopy(buf, buf + 2, 3);
- if (strncmp(buf, "ababcf", 6))
- exit(1);
- strcpy(buf, "abcdefghi");
- bcopy(buf + 2, buf, 3);
- if (strncmp(buf, "cdedef", 6))
- exit(1);
- exit(0); /* libc version works properly. */
-}], AC_DEFINE(USEMEMCPY))
-
AC_SYS_LONG_FILE_NAMES
AC_MSG_CHECKING(for vsprintf)
diff --git a/os.h b/os.h
index e827ac9..0b41fb9 100644
--- a/os.h
+++ b/os.h
@@ -142,12 +142,8 @@ extern int errno;
# ifdef USEMEMMOVE
# define bcopy(s,d,len) memmove(d,s,len)
# else
-# ifdef USEMEMCPY
-# define bcopy(s,d,len) memcpy(d,s,len)
-# else
-# define NEED_OWN_BCOPY
-# define bcopy xbcopy
-# endif
+# define NEED_OWN_BCOPY
+# define bcopy xbcopy
# endif
#endif
diff --git a/osdef.h.in b/osdef.h.in
index 8687b60..e4057a0 100644
--- a/osdef.h.in
+++ b/osdef.h.in
@@ -58,16 +58,8 @@ extern int bcmp __P((char *, char *, int));
extern int killpg __P((int, int));
#endif
-#ifndef USEBCOPY
-# ifdef USEMEMCPY
-extern void memcpy __P((char *, char *, int));
-# else
-# ifdef USEMEMMOVE
+#if defined(USEMEMMOVE) && !defined(USEBCOPY)
extern void memmove __P((char *, char *, int));
-# else
-extern void bcopy __P((char *, char *, int));
-# endif
-# endif
#else
extern void bcopy __P((char *, char *, int));
#endif
--
1.8.4.5

View File

@@ -0,0 +1,125 @@
From: Maarten ter Huurne <maarten@treewalker.org>
Date: Sat, 13 Sep 2014 12:04:41 +0200
Subject: Provide cross compilation alternatives for all AC_TRY_RUN uses
Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
[Ricardo: rebase on top of 4.3.1]
Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
---
configure.ac | 30 +++++++++++++++++++-----------
1 file changed, 19 insertions(+), 11 deletions(-)
diff --git a/configure.ac b/configure.ac
index b8e3bec..c4b7cd4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -348,7 +348,8 @@ main()
exit(0);
}
], AC_NOTE(- your fifos are usable) fifo=1,
-AC_NOTE(- your fifos are not usable))
+AC_NOTE(- your fifos are not usable),
+AC_NOTE(- skipping check because we are cross compiling; assuming fifos are usable) fifo=1)
rm -f /tmp/conftest*
if test -n "$fifo"; then
@@ -396,7 +397,8 @@ main()
exit(0);
}
], AC_NOTE(- your implementation is ok),
-AC_NOTE(- you have a broken implementation) AC_DEFINE(BROKEN_PIPE) fifobr=1)
+AC_NOTE(- you have a broken implementation) AC_DEFINE(BROKEN_PIPE) fifobr=1,
+AC_NOTE(- skipping check because we are cross compiling; assuming fifo implementation is ok))
rm -f /tmp/conftest*
fi
@@ -458,7 +460,8 @@ main()
exit(0);
}
], AC_NOTE(- your sockets are usable) sock=1,
-AC_NOTE(- your sockets are not usable))
+AC_NOTE(- your sockets are not usable),
+AC_NOTE(- skipping check because we are cross compiling; assuming sockets are usable) sock=1)
rm -f /tmp/conftest*
if test -n "$sock"; then
@@ -497,7 +500,8 @@ main()
}
],AC_NOTE(- you are normal),
AC_NOTE(- unix domain sockets are not kept in the filesystem)
-AC_DEFINE(SOCK_NOT_IN_FS) socknofs=1)
+AC_DEFINE(SOCK_NOT_IN_FS) socknofs=1,
+AC_NOTE(- skipping check because we are cross compiling; assuming sockets are normal))
rm -f /tmp/conftest*
fi
@@ -624,7 +628,8 @@ main()
exit(0);
}
],AC_NOTE(- select is ok),
-AC_NOTE(- select can't count) AC_DEFINE(SELECT_BROKEN))
+AC_NOTE(- select can't count) AC_DEFINE(SELECT_BROKEN),
+AC_NOTE(- skipping check because we are cross compiling; assuming select is ok))
dnl
dnl **** termcap or terminfo ****
@@ -666,7 +671,8 @@ main()
{
exit(strcmp(tgoto("%p1%d", 0, 1), "1") ? 0 : 1);
}], AC_NOTE(- you use the termcap database),
-AC_NOTE(- you use the terminfo database) AC_DEFINE(TERMINFO))
+AC_NOTE(- you use the terminfo database) AC_DEFINE(TERMINFO),
+AC_NOTE(- skipping check because we are cross compiling; assuming terminfo database is used) AC_DEFINE(TERMINFO))
AC_CHECKING(ospeed)
AC_TRY_LINK(extern short ospeed;,ospeed=5;,,AC_DEFINE(NEED_OSPEED))
@@ -801,7 +807,8 @@ main()
else
AC_NOTE(- can't determine - assume ptys are world accessable)
fi
- ]
+ ],
+ AC_NOTE(- skipping check because we are cross compiling; assuming ptys are world accessable)
)
rm -f conftest_grp
fi
@@ -885,7 +892,7 @@ AC_EGREP_CPP(yes,
#endif
], load=1)
fi
-if test -z "$load" ; then
+if test -z "$load" && test "$cross_compiling" = no ; then
AC_CHECKING(for kernelfile)
for core in /unix /vmunix /dynix /hp-ux /xelos /dev/ksyms /kernel/unix /kernel/genunix /unicos /mach /netbsd /386bsd /dgux /bsd /stand/vmunix; do
if test -f $core || test -c $core; then
@@ -1078,7 +1085,7 @@ main()
#endif
exit(0);
}
-],,AC_DEFINE(SYSVSIGS))
+],,AC_DEFINE(SYSVSIGS),:)
fi
@@ -1158,7 +1165,7 @@ main() {
if (strncmp(buf, "cdedef", 6))
exit(1);
exit(0); /* libc version works properly. */
-}], AC_DEFINE(USEBCOPY))
+}], AC_DEFINE(USEBCOPY),,:)
AC_TRY_RUN([
#define bcopy(s,d,l) memmove(d,s,l)
@@ -1173,7 +1180,8 @@ main() {
if (strncmp(buf, "cdedef", 6))
exit(1);
exit(0); /* libc version works properly. */
-}], AC_DEFINE(USEMEMMOVE))
+}], AC_DEFINE(USEMEMMOVE),,
+ AC_NOTE(- skipping check because we are cross compiling; use memmove) AC_DEFINE(USEMEMMOVE))
AC_SYS_LONG_FILE_NAMES
--
1.8.4.5

View File

@@ -0,0 +1,132 @@
From: Maarten ter Huurne <maarten@treewalker.org>
Date: Sun, 14 Sep 2014 07:10:59 +0200
Subject: When cross-compiling, skip checks that look in the host file system
Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
[Ricardo: rebase on top of 4.3.1]
Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
---
configure.ac | 23 +++++++++++++++++++----
1 file changed, 19 insertions(+), 4 deletions(-)
diff --git a/configure.ac b/configure.ac
index c4b7cd4..9cf7cee 100644
--- a/configure.ac
+++ b/configure.ac
@@ -85,7 +85,7 @@ AC_ARG_ENABLE(socket-dir,
dnl
dnl **** special unix variants ****
dnl
-if test -n "$ISC"; then
+if test "$cross_compiling" = no && test -n "$ISC" ; then
AC_DEFINE(ISC) LIBS="$LIBS -linet"
fi
@@ -96,10 +96,11 @@ dnl AC_DEFINE(OSF1) # this disables MIPS again....
dnl fi
dnl fi
-if test -f /sysV68 ; then
+if test "$cross_compiling" = no && test -f /sysV68 ; then
AC_DEFINE(sysV68)
fi
+if test "$cross_compiling" = no ; then
AC_CHECKING(for MIPS)
if test -f /lib/libmld.a || test -f /usr/lib/libmld.a || test -f /usr/lib/cmplrs/cc/libmld.a; then
oldlibs="$LIBS"
@@ -123,6 +124,7 @@ AC_DEFINE(USE_WAIT2) LIBS="$LIBS -lbsd" ; CC="$CC -I/usr/include/bsd"
))
fi
fi
+fi
AC_CHECKING(for Ultrix)
@@ -132,7 +134,7 @@ AC_EGREP_CPP(yes,
#endif
], ULTRIX=1)
-if test -f /usr/lib/libpyr.a ; then
+if test "$cross_compiling" = no && test -f /usr/lib/libpyr.a ; then
oldlibs="$LIBS"
LIBS="$LIBS -lpyr"
AC_CHECKING(Pyramid OSX)
@@ -679,17 +681,21 @@ AC_TRY_LINK(extern short ospeed;,ospeed=5;,,AC_DEFINE(NEED_OSPEED))
dnl
dnl **** PTY specific things ****
dnl
+if test "$cross_compiling" = no ; then
AC_CHECKING(for /dev/ptc)
if test -r /dev/ptc; then
AC_DEFINE(HAVE_DEV_PTC)
fi
+fi
+if test "$cross_compiling" = no ; then
AC_CHECKING(for SVR4 ptys)
sysvr4ptys=
if test -c /dev/ptmx ; then
AC_TRY_LINK([],[ptsname(0);grantpt(0);unlockpt(0);],[AC_DEFINE(HAVE_SVR4_PTYS)
sysvr4ptys=1])
fi
+fi
AC_CHECK_FUNCS(getpt)
@@ -699,6 +705,7 @@ AC_CHECK_FUNCS(openpty,,
[AC_CHECK_LIB(util,openpty, [AC_DEFINE(HAVE_OPENPTY)] [LIBS="$LIBS -lutil"])])
fi
+if test "$cross_compiling" = no ; then
AC_CHECKING(for ptyranges)
if test -d /dev/ptym ; then
pdir='/dev/ptym'
@@ -722,6 +729,7 @@ p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\
AC_DEFINE_UNQUOTED(PTYRANGE0,"$p0")
AC_DEFINE_UNQUOTED(PTYRANGE1,"$p1")
fi
+fi
dnl **** pty mode/group handling ****
dnl
@@ -869,14 +877,16 @@ fi
dnl
dnl **** loadav ****
dnl
+if test "$cross_compiling" = no ; then
AC_CHECKING(for libutil(s))
test -f /usr/lib/libutils.a && LIBS="$LIBS -lutils"
test -f /usr/lib/libutil.a && LIBS="$LIBS -lutil"
+fi
AC_CHECKING(getloadavg)
AC_TRY_LINK(,[getloadavg((double *)0, 0);],
AC_DEFINE(LOADAV_GETLOADAVG) load=1,
-if test -f /usr/lib/libkvm.a ; then
+if test "$cross_compiling" = no && test -f /usr/lib/libkvm.a ; then
olibs="$LIBS"
LIBS="$LIBS -lkvm"
AC_CHECKING(getloadavg with -lkvm)
@@ -1094,13 +1104,18 @@ dnl **** libraries ****
dnl
AC_CHECKING(for crypt and sec libraries)
+if test "$cross_compiling" = no ; then
test -f /lib/libcrypt_d.a || test -f /usr/lib/libcrypt_d.a && LIBS="$LIBS -lcrypt_d"
+fi
oldlibs="$LIBS"
LIBS="$LIBS -lcrypt"
AC_CHECKING(crypt)
AC_TRY_LINK(,,,LIBS="$oldlibs")
+if test "$cross_compiling" = no ; then
test -f /lib/libsec.a || test -f /usr/lib/libsec.a && LIBS="$LIBS -lsec"
test -f /lib/libshadow.a || test -f /usr/lib/libshadow.a && LIBS="$LIBS -lshadow"
+fi
+
oldlibs="$LIBS"
LIBS="$LIBS -lsun"
AC_CHECKING(IRIX sun library)
--
1.8.4.5

View File

@@ -0,0 +1,54 @@
From: Maarten ter Huurne <maarten@treewalker.org>
Date: Sun, 14 Sep 2014 11:16:58 +0200
Subject: Avoid mis-identifying systems as SVR4
My openSUSE 13.1 Linux system was detected as SVR4 because it had
libelf installed. This leads to linking with libelf, even though no
symbols from that library were actually used, and to a workaround for
a buggy getlogin() being enabled.
It is not documented which exact SVR4 system had the bug that the
workaround was added for, so all I could do is make an educated guess
at the #defines its compiler would be likely to set.
Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
[Ricardo: rebase on top of 4.3.1]
Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
---
configure.ac | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 9cf7cee..e09e4cf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -179,14 +179,24 @@ AC_EGREP_CPP(yes,
#endif
], LIBS="$LIBS -lsocket -linet";seqptx=1)
+AC_CHECKING(SVR4)
+AC_EGREP_CPP(yes,
+[main () {
+#if defined(SVR4) || defined(__SVR4)
+ yes;
+#endif
+], AC_NOTE(- you have a SVR4 system) AC_DEFINE(SVR4) svr4=1)
+if test -n "$svr4" ; then
oldlibs="$LIBS"
LIBS="$LIBS -lelf"
AC_CHECKING(SVR4)
AC_TRY_LINK([#include <utmpx.h>
],,
-[AC_CHECK_HEADER(dwarf.h, AC_DEFINE(SVR4) AC_DEFINE(BUGGYGETLOGIN),
-[AC_CHECK_HEADER(elf.h, AC_DEFINE(SVR4) AC_DEFINE(BUGGYGETLOGIN))])]
+[AC_CHECK_HEADER(dwarf.h, AC_DEFINE(BUGGYGETLOGIN),
+[AC_CHECK_HEADER(elf.h, AC_DEFINE(BUGGYGETLOGIN))])]
,LIBS="$oldlibs")
+fi
+
AC_CHECK_HEADERS([stropts.h string.h strings.h])
AC_CHECKING(for Solaris 2.x)
--
1.8.4.5

View File

@@ -0,0 +1,39 @@
From: Maarten ter Huurne <maarten@treewalker.org>
Date: Sun, 14 Sep 2014 23:58:34 +0200
Subject: Do not create backup of old installed binary
This is a rather unusual feature that packagers will not expect.
Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
---
Makefile.in | 4 ----
1 file changed, 4 deletions(-)
diff --git a/Makefile.in b/Makefile.in
index 187a69b..65549e9 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -83,12 +83,9 @@ screen: $(OFILES)
$(OPTIONS) $(CFLAGS) $<
install_bin: .version screen
- -if [ -f $(DESTDIR)$(bindir)/$(SCREEN) ] && [ ! -f $(DESTDIR)$(bindir)/$(SCREEN).old ]; \
- then mv $(DESTDIR)$(bindir)/$(SCREEN) $(DESTDIR)$(bindir)/$(SCREEN).old; fi
$(INSTALL_PROGRAM) screen $(DESTDIR)$(bindir)/$(SCREEN)
-chown root $(DESTDIR)$(bindir)/$(SCREEN) && chmod 4755 $(DESTDIR)$(bindir)/$(SCREEN)
# This doesn't work if $(bindir)/screen is a symlink
- -if [ -f $(DESTDIR)$(bindir)/screen ] && [ ! -f $(DESTDIR)$(bindir)/screen.old ]; then mv $(DESTDIR)$(bindir)/screen $(DESTDIR)$(bindir)/screen.old; fi
rm -f $(DESTDIR)$(bindir)/screen
(cd $(DESTDIR)$(bindir) && ln -f -s $(SCREEN) screen)
cp $(srcdir)/utf8encodings/?? $(DESTDIR)$(SCREENENCODINGS)
@@ -113,7 +110,6 @@ installdirs:
uninstall: .version
rm -f $(DESTDIR)$(bindir)/$(SCREEN)
rm -f $(DESTDIR)$(bindir)/screen
- -mv $(DESTDIR)$(bindir)/screen.old $(DESTDIR)$(bindir)/screen
rm -f $(DESTDIR)$(ETCSCREENRC)
cd doc; $(MAKE) uninstall
--
1.8.4.5

View File

@@ -0,0 +1,29 @@
From: Maarten ter Huurne <maarten@treewalker.org>
Date: Mon, 15 Sep 2014 00:03:05 +0200
Subject: Change binary permission flags even if chown fails
Typically when creating a package, the build is not run as root, so
the chown will fail. But the chmod can still be done.
Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
---
Makefile.in | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Makefile.in b/Makefile.in
index 65549e9..3c12fdb 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -84,7 +84,8 @@ screen: $(OFILES)
install_bin: .version screen
$(INSTALL_PROGRAM) screen $(DESTDIR)$(bindir)/$(SCREEN)
- -chown root $(DESTDIR)$(bindir)/$(SCREEN) && chmod 4755 $(DESTDIR)$(bindir)/$(SCREEN)
+ -chown root $(DESTDIR)$(bindir)/$(SCREEN)
+ -chmod 4755 $(DESTDIR)$(bindir)/$(SCREEN)
# This doesn't work if $(bindir)/screen is a symlink
rm -f $(DESTDIR)$(bindir)/screen
(cd $(DESTDIR)$(bindir) && ln -f -s $(SCREEN) screen)
--
1.8.4.5

View File

@@ -0,0 +1,31 @@
From: Maarten ter Huurne <maarten@treewalker.org>
Date: Mon, 15 Sep 2014 00:06:20 +0200
Subject: Support overriding SCREEN to get a non-versioned binary
If a packager runs "make install SCREEN=screen", do not create
"screen" as a symlink to itself.
Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
---
Makefile.in | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Makefile.in b/Makefile.in
index 3c12fdb..860f351 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -86,9 +86,11 @@ install_bin: .version screen
$(INSTALL_PROGRAM) screen $(DESTDIR)$(bindir)/$(SCREEN)
-chown root $(DESTDIR)$(bindir)/$(SCREEN)
-chmod 4755 $(DESTDIR)$(bindir)/$(SCREEN)
+ifneq (${SCREEN},screen)
# This doesn't work if $(bindir)/screen is a symlink
rm -f $(DESTDIR)$(bindir)/screen
(cd $(DESTDIR)$(bindir) && ln -f -s $(SCREEN) screen)
+endif
cp $(srcdir)/utf8encodings/?? $(DESTDIR)$(SCREENENCODINGS)
###############################################################################
--
1.8.4.5

View File

@@ -0,0 +1,43 @@
From: Maarten ter Huurne <maarten@treewalker.org>
Date: Mon, 15 Sep 2014 02:27:09 +0200
Subject: Ensure that installation dirs exist before copying files into them
Since the "install_bin" target requires the installation directories
to exist, it should depend on the "installdirs" target. The previous
approach of having "install" depend on "installdirs" is not reliable.
For example, in a parallel build, there was no guarantee that
"installdirs" would be finished before "install_bin" runs. Also if
the user requested only "install_bin" to be made, "installdirs" would
be skipped altogether.
Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
---
Makefile.in | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile.in b/Makefile.in
index 860f351..f0fe08d 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -82,7 +82,7 @@ screen: $(OFILES)
$(CC) -c -I. -I$(srcdir) $(M_CFLAGS) $(CPPFLAGS) $(DEFS) \
$(OPTIONS) $(CFLAGS) $<
-install_bin: .version screen
+install_bin: .version screen installdirs
$(INSTALL_PROGRAM) screen $(DESTDIR)$(bindir)/$(SCREEN)
-chown root $(DESTDIR)$(bindir)/$(SCREEN)
-chmod 4755 $(DESTDIR)$(bindir)/$(SCREEN)
@@ -94,7 +94,7 @@ endif
cp $(srcdir)/utf8encodings/?? $(DESTDIR)$(SCREENENCODINGS)
###############################################################################
-install: installdirs install_bin
+install: install_bin
cd doc ; $(MAKE) install
-if [ -d /usr/lib/terminfo ]; then \
PATH="$$PATH:/usr/5bin" tic ${srcdir}/terminfo/screeninfo.src; \
--
1.8.4.5

View File

@@ -0,0 +1,142 @@
From: Maarten ter Huurne <maarten@treewalker.org>
Date: Mon, 15 Sep 2014 00:24:41 +0200
Subject: Renamed sched.h to eventqueue.h
There is a <sched.h> system header that got shadowed by "sched.h".
While Screen itself doesn't include <sched.h>, other system headers
might include it indirectly. This broke the build when using uClibc
with pthread support.
Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
---
eventqueue.h | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
sched.h | 48 ------------------------------------------------
screen.h | 2 +-
3 files changed, 49 insertions(+), 49 deletions(-)
create mode 100644 eventqueue.h
delete mode 100644 sched.h
diff --git a/eventqueue.h b/eventqueue.h
new file mode 100644
index 0000000..fdc3fc4
--- /dev/null
+++ b/eventqueue.h
@@ -0,0 +1,48 @@
+/* Copyright (c) 2008, 2009
+ * Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
+ * Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
+ * Micah Cowan (micah@cowan.name)
+ * Sadrul Habib Chowdhury (sadrul@users.sourceforge.net)
+ * Copyright (c) 1993-2002, 2003, 2005, 2006, 2007
+ * Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
+ * Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
+ * Copyright (c) 1987 Oliver Laumann
+ *
+ * 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 3, 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 (see the file COPYING); if not, see
+ * http://www.gnu.org/licenses/, or contact Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
+ *
+ ****************************************************************
+ * $Id$ GNU
+ */
+
+struct event
+{
+ struct event *next;
+ void (*handler) __P((struct event *, char *));
+ char *data;
+ int fd;
+ int type;
+ int pri;
+ struct timeval timeout;
+ int queued; /* in evs queue */
+ int active; /* in fdset */
+ int *condpos; /* only active if condpos - condneg > 0 */
+ int *condneg;
+};
+
+#define EV_TIMEOUT 0
+#define EV_READ 1
+#define EV_WRITE 2
+#define EV_ALWAYS 3
diff --git a/sched.h b/sched.h
deleted file mode 100644
index fdc3fc4..0000000
--- a/sched.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/* Copyright (c) 2008, 2009
- * Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
- * Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
- * Micah Cowan (micah@cowan.name)
- * Sadrul Habib Chowdhury (sadrul@users.sourceforge.net)
- * Copyright (c) 1993-2002, 2003, 2005, 2006, 2007
- * Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
- * Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
- * Copyright (c) 1987 Oliver Laumann
- *
- * 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 3, 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 (see the file COPYING); if not, see
- * http://www.gnu.org/licenses/, or contact Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
- *
- ****************************************************************
- * $Id$ GNU
- */
-
-struct event
-{
- struct event *next;
- void (*handler) __P((struct event *, char *));
- char *data;
- int fd;
- int type;
- int pri;
- struct timeval timeout;
- int queued; /* in evs queue */
- int active; /* in fdset */
- int *condpos; /* only active if condpos - condneg > 0 */
- int *condneg;
-};
-
-#define EV_TIMEOUT 0
-#define EV_READ 1
-#define EV_WRITE 2
-#define EV_ALWAYS 3
diff --git a/screen.h b/screen.h
index 603ca3f..34238c8 100644
--- a/screen.h
+++ b/screen.h
@@ -43,7 +43,7 @@
#include "osdef.h"
#include "ansi.h"
-#include "sched.h"
+#include "eventqueue.h"
#include "acls.h"
#include "comm.h"
#include "layer.h"
--
1.8.4.5

View File

@@ -1,3 +1,6 @@
LABEL linux LABEL linux
KERNEL /boot/kernel KERNEL /boot/kernel
APPEND rootwait root=$cfg_kernel_boot_dev rootfstype=ext2 ro $cfg_kernel_extra_args APPEND rootwait root=$cfg_kernel_boot_dev rootfstype=ext2 ro $cfg_kernel_extra_args
LABEL memtest
LINUX /boot/memtest.bin

View File

@@ -1,6 +1,6 @@
version=\ version=\
( (
'2014.07' '2017.05'
) )
url=\ url=\
@@ -10,7 +10,7 @@ url=\
md5=\ md5=\
( (
'36d4bad687edcafa396fee607e505d4e' '1b9ab3707ded74bbde9405987f816969'
) )
post_unpack() post_unpack()

View File

@@ -22,11 +22,6 @@ post_unpack()
{ {
mv "../etc" "../uv4l-$version/" mv "../etc" "../uv4l-$version/"
mv "../usr" "../uv4l-$version/" mv "../usr" "../uv4l-$version/"
touch startStreamRaspiCam.sh
echo "#!/bin/sh" >> startStreamRaspiCam.sh
echo "killall uv4l" >> startStreamRaspiCam.sh
echo "modprobe cuse" >> startStreamRaspiCam.sh
echo "uv4l -nopreview --auto-video_nr --driver raspicam --encoding h264 --width 1080 --height 720 --framerate 20 --quality 10 --server-option '--port=9090' --server-option '--max-queued-connections=30' --server-option '--max-streams=25' --server-option '--max-threads=29'" >> startStreamRaspiCam.sh
} }
host_install() host_install()
@@ -39,7 +34,8 @@ target_install()
{ {
$cmd_cp -r "usr/lib/"* "$cfg_dir_rootfs/usr/lib/" $cmd_cp -r "usr/lib/"* "$cfg_dir_rootfs/usr/lib/"
$cmd_cp -r "usr/bin/"* "$cfg_dir_rootfs/usr/bin/" $cmd_cp -r "usr/bin/"* "$cfg_dir_rootfs/usr/bin/"
$cmd_cp -r "startStreamRaspiCam.sh" "$cfg_dir_rootfs/usr/bin/"
tar -C "$pkg_dir/fs" -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
} }

View File

@@ -0,0 +1,28 @@
start()
{
killall uv4l
modprobe cuse &&
uv4l \
-nopreview \
--auto-video_nr \
--driver raspicam \
--encoding h264 \
--width 1080 \
--height 720 \
--framerate 20 \
--quality 10 \
--server-option \
--port=9090 \
--server-option \
--max-queued-connections=30 \
--server-option \
--max-streams=25 \
--server-option \
--max-threads=29
}
stop()
{
killall uv4l
rmmod uv4l
}

46
rules/zeromq/default.bash Normal file
View File

@@ -0,0 +1,46 @@
version=\
(
"4.1.3"
)
url=\
(
"http://download.zeromq.org/zeromq-$version.tar.gz"
)
md5=\
(
"d0824317348cfb44b8692e19cc73dc3a"
)
configure()
{
./configure \
--prefix="${cfg_dir_toolchain_sysroot}/usr" \
--target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \
--build="$cfg_host_canonical" \
--without-libsodium
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
}
target_install()
{
# Libs:
for f in "$cfg_dir_toolchain_sysroot/usr/lib/"libzmq.*; do
if [ -L "$f" ]; then
$cmd_cp "$f" "$cfg_dir_rootfs/usr/lib"
else
$cmd_target_strip -v "$f" -o "$cfg_dir_rootfs/usr/lib/$(basename "$f")"
fi
done
}

View File

@@ -0,0 +1,7 @@
cfg_hostname='lauv-aux-rpi-testbed'
cfg_eth_ext_ip='10.0.200.24'
cfg_eth_ext_mk='255.255.0.0'
cfg_eth_ext_gw='10.0.0.1'
cfg_ptpd_interface='eth0'
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind nfs-utils rpi-boot-firmware linux/rpi libconfig log4cpp fftw socat crypto++ netcat screen rlwrap'

File diff suppressed because it is too large Load Diff

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