Commit Graph

2352 Commits

Author SHA1 Message Date
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
Sebastien Blanchet e233b69c09 doc: fix misspelling 2021-08-24 17:17:06 +02:00
Florian Pose fbc414c879 Use Git for version detection and tools. 2021-08-24 17:16:55 +02:00
Florian Pose 34cb38eef2 Updated gitignore. 2021-08-24 17:16:37 +02:00
Sebastien BLANCHET 81f0d17461 add .gitignore 2021-08-24 17:15:55 +02:00
Nicola Fontana 40bd393ed0 Fix sched_setscheduler undefined on kernel 5.9
sched_setscheduler is no more exported:
    https://lkml.org/lkml/2020/4/22/1071
2021-08-24 17:15:09 +02:00
Florian Pose efce2814d9 Improved debugging and behavior on sick SII contents. 2021-08-24 17:14:42 +02:00
Florian Pose 09a5813fa9 Replaced dma_zalloc_coherent. 2021-08-24 17:13:42 +02:00
Florian Pose c2abe4d8d3 Fixed missing include for struct sched_param. 2021-08-24 17:13:21 +02:00
Florian Pose b6a456c046 New page fault return type vm_fault_t since 4.17. 2021-08-24 17:12:20 +02:00
Florian Pose da09ae3cf9 Fixed possible file name overflow. 2021-08-24 17:10:39 +02:00
Florian Pose 3d5d3afd26 Fixed infinite waiting for SoE write response. 2021-08-24 17:02:35 +02:00
Florian Pose 65d29d8c17 Using vmalloc() for FoE memory allocation. 2021-08-24 17:02:21 +02:00
Florian Pose f3b4d16aba Fixed memory leak concerning library ecrt_master_deactivate(). 2021-08-24 17:01:54 +02:00
Florian Pose d9e96f7112 Added extern "C" for floating-point functions. 2021-08-24 17:01:13 +02:00
Florian Pose e6f11d9da0 Added missing const specifier to ecrt_read_real() / ecrt_read_lreal(). 2021-08-24 17:00:52 +02:00
Florian Pose 5031834fde Added floating-point access functions and macros for user-space. 2021-08-24 17:00:09 +02:00
Florian Pose 630c1492dd Added e1000e driver for kernel 4.4. 2021-08-24 16:59:17 +02:00
Florian Pose a5d70bac04 Use ecrt_master_sync_reference_clock_to() in DC examples. 2021-08-24 16:58:42 +02:00
Florian Pose 9019f108af Bumped library version. 2021-08-24 16:58:26 +02:00