Florian Pose
3e821677f6
Merge branch 'fix-make-clean' into 'stable-1.5'
...
Fix make clean
See merge request etherlab.org/ethercat!29
(cherry picked from commit dde91be4be )
89f81d63 Fix make clean
2021-08-24 16:04:49 +00:00
Florian Pose
a87ce3bd08
Documentation for interface names.
2021-08-24 17:49:43 +02:00
Florian Pose
0a0117d4b6
Broke long lines.
2021-08-24 17:49:32 +02:00
Florian Pose
e480ffbe8b
Removed tabs.
2021-08-24 17:49:22 +02:00
Matthias Schoepfer
e78bf31962
ethercatctl: allow to use the network device name instead of mac address
...
In the /etc/ethercat.conf file, the MASTERX_DEVICE string is given as a
mac address or a wildcard. When we want to deploy the (same) software (image)
to a bunch of different hardware, and these computers do have more than one
interface that matches the driver, we need a way to define the device by
network interface name. This allows to also define the network device by name
(e.g. eth0, eno1, ...)
Signed-off-by: Matthias Schoepfer <m.schoepfer@rethinkrobotics.com>
2021-08-24 17:49:09 +02:00
Florian Pose
7facae8e3b
First feature flag: AssignToPdi.
2021-08-24 17:48:46 +02:00
Florian Pose
980c8d3025
Find flag method with const char * parameter; added method to header.
2021-08-24 17:48:09 +02:00
Florian Pose
2ee65b6387
Added feature flags to API.
2021-08-24 17:47:15 +02:00
Florian Pose
f2e838a664
Also changed license of gloabl headers to LGPL.
...
Moved definition of EC_SDO_INJECTION_TIMEOUT to master.c.
2021-08-24 17:40:06 +02:00
Florian Pose
ab0d009bcc
Added export for ecrt_slave_config_reg_pdo_entry_pos(). Fixes #11 .
2021-08-24 17:39:54 +02:00
Florian Pose
8e1dc9f593
Corrected license text of master/ioctl.h, because it is included in the userspace library.
2021-08-24 17:39:43 +02:00
Nicola Fontana
fd772c310c
Do not hardcode paths in scripts
...
Try to reuse the configured paths as much as possible. Unfortunately, to
be able to fully expand some variable (e.g. `bindir`), these files must
be expanded by make, not by configure. This adds some complexity:
https://www.gnu.org/software/automake/manual/html_node/Scripts.html
2021-08-24 17:39:19 +02:00
Florian Pose
9384cc7010
Fixed problems with shell quotes introduced in 66329e1f.
2021-08-24 17:39:06 +02:00
Florian Pose
d479f28ccc
Added 4.19 files to Makefile.
2021-08-24 17:38:22 +02:00
Vincenzo Ferraro
9e2dc1b002
igb-4.19 kernel driver
2021-08-24 17:38:14 +02:00
Matthias Schoepfer
1bb6d56fa7
script: run shellcheck on bash / sh scripts
...
Mostly fixed omitted double quotes, some conversion of $(eval ..) to $(()).
Left the echo -n untouched, shellcheck complains about not being standard in
/bin/sh. Also, seems like some code is dublicated in ethercatctl.in and
init.d/ethercat.in.
Signed-off-by: Matthias Schoepfer <m.schoepfer@rethinkrobotics.com>
2021-08-24 17:37:53 +02:00
Florian Pose
35ed166813
Added some options to widen test coverage.
2021-08-24 17:37:39 +02:00
Kale Yuzik
2b39a6321b
Implement fix for kernel error when opening TTY device file on kernel 3.7.0 or greater
...
Error message: "tty_init_dev: ttyEC driver does not set tty->port. This would crash the kernel. Fix the driver!"
2021-08-24 17:37:21 +02:00
Nicola Fontana
4e6ac827c1
Revive 'make distcheck'
2021-08-24 17:37:01 +02:00
Bjarne von Horn
961fa9edd6
switch to prebuilt container
2021-08-24 17:36:41 +02:00
Florian Pose
cf42dd1316
Ignore cmake output.
2021-08-24 17:36:15 +02:00
Bjarne von Horn
d755f4a26d
Add cmake config module
2021-08-24 17:35:55 +02:00
Nicola Fontana
246fed4d83
Remove empty m4/Makefile.am
2021-08-24 17:35:36 +02:00
Nicola Fontana
802a4fc57b
Fix #5 : call Kbuild clean only where needed
...
The problem is both automake and kbuild recurse into subdirectories. In
`make distcheck`, automake cleans its `SUBDIRS` and only then tries to
clean the toplevel one. This in turn will trigger a kbuild clean that
will try to recurse into its own (now empty) subdirectories.
Avoid this issue by removing Kbuild clean from the toplevel.
2021-08-24 17:35:12 +02:00
Nicola Fontana
e94f3ec002
Do not define DIST_SUBDIRS when not needed
...
DIST_SUBDIRS is automatically populated with all possible values of
SUBDIRS in all conditions:
https://www.gnu.org/software/automake/manual/html_node/SUBDIRS-vs-DIST_005fSUBDIRS.html
This means it is usually not needed to explicitely set it but in
examples/, where some dirs are never added to SUBDIRS.
2021-08-24 17:34:45 +02:00
Nicola Fontana
9c69f5d6dc
Disable 8139too in distcheck
...
The 8139too native driver was enabled by default for historical reasons.
Disable it in `make distcheck` to avoid needing to have a specific linux
source tree ready available.
2021-08-24 17:34:20 +02:00
Florian Pose
ff9db35874
Retry responding slaves datagram; more robust to timeouts.
2021-08-24 17:33:58 +02:00
Nicola Fontana
5696f70a8f
Fix EXTRA_DIST files for e1000e
...
In `devices/e1000e/Makefile.am` there was a really sneaky double
backslash that messed up the whole EXTRA_DIST list.
2021-08-24 17:33:30 +02:00
Nicola Fontana
6e8c371c42
Do not include AC_CONFIG_FILES in BUILT_SOURCES
...
BUILT_SOURCES is used to trigger early generation of files in the `make`
process to workaround dependency problems:
https://www.gnu.org/software/automake/manual/html_node/Sources.html
AC_CONFIG_FILES are generated by `configure`, so they are already
present in the file system even before `make` is called. Furthermore,
AC_CONFIG_FILES already properly handle dist and clean targets, so no
need to add them to EXTRA_DIST or DISTCLEANFILES:
https://www.gnu.org/software/automake/manual/html_node/Requirements.html
2021-08-24 17:32:32 +02:00
Florian Pose
ddffe4c318
Docs: UTF-8 encoding; latest komascript packages.
2021-08-24 17:26:14 +02:00
Florian Pose
52104d9f52
Added systemd directory switch to docs.
2021-08-24 17:25:54 +02:00
Nicola Fontana
61e75d1f42
Ignore generated libethercat.pc in git
2021-08-24 17:25:41 +02:00
Nicola Fontana
db729dc967
Proper systemd support
...
Follow the directions on integrating systemd with autotools provided by
the systemd documentation itself:
https://www.freedesktop.org/software/systemd/man/daemon.html#Installing%20systemd%20Service%20Files
The snippet has been adapted to better match our coding style, e.g.
directly use of `if` instead of `AS_IF`.
2021-08-24 17:24:58 +02:00
Florian Pose
89a7263155
Fixed format string in tty example.
2021-08-24 17:22:43 +02:00
Nicola Fontana
eb96e7fc50
Fix #4 : remove sram.h and gpio.h from EXTRA_DIST
...
`sram.h` is not referenced anywhere (or, better, `grep -ir sram.h` does
not return any matching result) while `gpio.h` is included with
`<linux/gpio.h>`, suggesting the system header file is used.
2021-08-24 17:22:32 +02:00
Sebastien BLANCHET
ad48fb6806
documentation: add French translation
2021-08-24 17:22:06 +02:00
Sebastien BLANCHET
ac0929d7f5
fix typo
2021-08-24 17:21:46 +02:00
Florian Pose
d5e514cc89
Update .gitlab-ci.yml
2021-08-24 17:21:35 +02:00
Florian Pose
83cc6cc1cf
Update .gitlab-ci.yml
2021-08-24 17:21:26 +02:00
Florian Pose
afc8e74c9f
Update .gitlab-ci.yml
2021-08-24 17:21:14 +02:00
Florian Pose
6bfd62f67c
Update .gitlab-ci.yml
2021-08-24 17:21:02 +02:00
Florian Pose
5cf0bf38b7
Update .gitlab-ci.yml file
2021-08-24 17:20:45 +02:00
Sebastien BLANCHET
7d3b515d10
doc: promote \subsection to \section in chapter "Timing Aspects"
...
The chapter "Timing Aspects" had \subsection but not \section
Therefore, promote all \subsection to \section
2021-08-24 17:20:24 +02:00
Sebastien BLANCHET
0bc4b887db
doc: compile twice the documentation to update the TOC
...
If you compile once the documentation, the table of contents is empty
You have to compile twice to fill the table of contents.
2021-08-24 17:20:11 +02:00
Bjarne von Horn
5c78c92c22
Add .pc file for ethercat lib
2021-08-24 17:19:43 +02:00
Nicola Fontana
1141e0abf6
Fix small typo in INSTALL
2021-08-24 17:19:13 +02:00
Florian Pose
4b12489286
Added kernel-specific handling for init_timer/setup_timer and
...
access_ok() for ec_tty module and example.
Closes #2 .
2021-08-24 17:18:59 +02:00
Florian Pose
ec4b7f9c84
Updated TODOs.
2021-08-24 17:18:04 +02:00
Sebastien Blanchet
30f75df9df
doc: fix typographic error
2021-08-24 17:17:43 +02:00
Sebastien BLANCHET
088b3f1b10
doc: add missing word
2021-08-24 17:17:19 +02:00