Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
732 commits
Select commit Hold shift + click to select a range
425b20c
Merge pull request #1414 from machinekoder/mesa-param-to-pin
luminize Nov 10, 2018
a62acd2
hm2/ioport: convert params to pins
machinekoder Nov 11, 2018
eb5b8a0
hm2/encoder: convert params to pins
machinekoder Nov 11, 2018
e954930
hm2/resolver: convert params to pins
machinekoder Nov 11, 2018
7566c2a
hm2/pwmgen: convert params to pins
machinekoder Nov 11, 2018
5153529
hm2/capsense: convert params to pins
machinekoder Nov 11, 2018
4b2c7d7
hm2: convert params to pins
machinekoder Nov 11, 2018
ce92358
scripts/linuxcnc.in: more meaningful instructions
luminize Nov 12, 2018
e6fbdde
hm2: convert params to pins
machinekoder Nov 11, 2018
c6c0657
hm2/sserial: convert params to pins
machinekoder Nov 11, 2018
34174d1
Merge pull request #1416 from luminize/mk/fix-error-message
ArcEye Nov 12, 2018
9c3423c
Merge pull request #1415 from machinekoder/mesa-param-to-pin
ArcEye Nov 14, 2018
a10a7aa
Squashed 'src/machinetalk/proto/' changes from 441735f0f9..6ca7c99806
machinekoder Nov 15, 2018
fe28710
Merge commit 'a10a7aa229c8a59ed3b3271128776f7791060d95' into mt-merge…
machinekoder Nov 15, 2018
3cdd782
Merge pull request #1417 from machinekoder/mt-merge-back
ArcEye Nov 15, 2018
114a7cb
Revert "Remove hard kernel threads references"
ArcEye Nov 26, 2018
e5f547c
Merge pull request #1418 from machinekit/revert-1409-remove-hard-kern…
ArcEye Nov 26, 2018
82c5b62
machinekit/launcher: make sure zombies are exclude from running process
machinekoder Nov 27, 2018
e758f69
Merge pull request #1419 from machinekoder/check-for-zombies
ArcEye Nov 27, 2018
44df9c0
add back check-system-config
ArcEye Nov 28, 2018
75d2fe6
add back rules.in
ArcEye Nov 28, 2018
eff8f51
remove platform-is-supported
ArcEye Nov 28, 2018
a9cc288
add makefile.modinc.in
ArcEye Nov 28, 2018
44efa26
Makefile & Makefile.modinc.in added with modified Makefile.inc.in
ArcEye Nov 28, 2018
01ef163
Clean Makefile.inc.in of commenting out tests
ArcEye Nov 28, 2018
adc1823
Merge pull request #1420 from ArcEye/fix-hard-kernel-thread-refs-removal
luminize Nov 28, 2018
0f9e7a5
lib/python/launcher: fix problems with superfluous whitespace
machinekoder Dec 4, 2018
4360589
Merge pull request #1421 from machinekoder/launcher-zombie-update
ArcEye Dec 4, 2018
cb0dbf7
Add missing index handling to the pru encoder
Dec 4, 2018
c5fe251
Merge pull request #1422 from russellgower/pru_index
cdsteinkuehler Dec 4, 2018
bbdad92
scripts/build_docker: abort package builds on compiler warnings
zultron Dec 5, 2018
b55b544
machinetalk/support/unionread.c: silence compiler warning
zultron Dec 5, 2018
e207745
rtapi/rtapi_pci.c: silence compiler warnings
zultron Dec 5, 2018
89c6a0d
task: silence a warning with gcc 4.8 + boost 1.55.0
jepler Jul 12, 2014
e9379dd
libnml: Disable "strict aliasing"
jepler Jul 14, 2014
65f41ec
remove warning from hal/utils/halcmd_commands.c
zultron Dec 5, 2018
d480833
scripts/build_docker: fix script error
zultron Dec 5, 2018
77d6e05
conv_s64_u32, conv_u64_u32: silence compiler warnings on 32-bit
zultron Dec 6, 2018
cde4e71
hal/drivers/hal_gpio.c: silence compiler warning
zultron Dec 6, 2018
18e675b
hal/drivers/mesa-hostmot2/hm2_soc_ol.c: silence compiler warnings
zultron Dec 6, 2018
f4133b6
hal/components/pepper.c: silence compiler warning
zultron Dec 6, 2018
351eb7a
src/hal/drivers/hal_arm335xQEP.c: silence compiler warning
zultron Dec 6, 2018
ad15387
hal/drivers/hal_zed_gpio.c: silence compiler warning
zultron Dec 6, 2018
bba11cc
hal/drivers/hal_gpio_h3.c: silence wacky compiler warnings
zultron Dec 6, 2018
fa0106e
rtapi/xenomai.c: silence compiler warning
zultron Dec 6, 2018
992c3b1
Clean up build output
zultron Dec 7, 2018
78a4f65
Fix build rules for `conv_*.icomp`
zultron Dec 7, 2018
fea5560
Remove `include/*.h{,h}` from `make clean`
zultron Dec 7, 2018
f7092b5
patch machinekit src to use tirpc (glibc finally removed rpc), update…
Shaeto Dec 8, 2018
554f544
update requires and build requires, included missed tirpc
Shaeto Dec 8, 2018
9d2730c
Merge pull request #1424 from zultron/silence-warnings-take-42
ArcEye Dec 9, 2018
6066476
Restrict CFLAG -Werror to Jessie and Stretch builds
ArcEye Dec 9, 2018
254eaa0
Merge pull request #1427 from ArcEye/restrict-werror-to-jessie-stretch
luminize Dec 9, 2018
1782d68
debian/: no-op commit whitespace changes
zultron Dec 4, 2018
bca8be6
debian/configure: replace mk-cross-builder optimizations
zultron Dec 4, 2018
da60302
debian/linuxcnc-sim.sharedmimeinfo: remove obsolete symlink
zultron Dec 4, 2018
4a83b9e
Makefile: add `CPPFLAGS` to RT `gcc {%.c,%.cc}` command
zultron Dec 5, 2018
ee7a9ee
.travis: Handle failures in sftp better
zultron Dec 5, 2018
70d7c29
tests/pll_correction: skip test
zultron Dec 5, 2018
a5ea53e
scripts/build_docker: Allocate pseudo-TTY for all runs
zultron Dec 7, 2018
44e964d
Merge pull request #1425 from zultron/ci-image-updates-pr
ArcEye Dec 10, 2018
5e3b169
Add libmodbus version checks
ArcEye Dec 11, 2018
b4cd86d
Add missing backslash to escape quote
blakeatkins Dec 11, 2018
7a95f63
Merge pull request #1428 from ArcEye/fix-libmodbus-api-change
luminize Dec 11, 2018
87c9aa2
Do not escape quotes
blakeatkins Dec 11, 2018
989e888
Merge pull request #1429 from blakeatkins/videoserver_command_escaping
ArcEye Dec 13, 2018
1de0d8b
squashed feature-xhc-whb04b-6 branch commits (except of hy_vfd* related)
rubienr Dec 20, 2018
403157d
Merge pull request #1431 from rubienr/feature-xhc-whb04b-6-squashed
ArcEye Dec 20, 2018
be09734
changed retval/looptime/errorcount from hal_param to hal_pin, fixed s…
rubienr Dec 20, 2018
e725fca
Merge pull request #1432 from rubienr/feature-hy-vfd-squashed
ArcEye Dec 21, 2018
a286f4a
refined output of --help, added missing signals, fixed log verbosity,…
rubienr Dec 28, 2018
91911c6
Merge pull request #1433 from rubienr/feature-xhc-whb04-6-cleanup
ArcEye Dec 29, 2018
2b3acf7
Add toggle function for Mist/Flood/Lube
alkabal Dec 29, 2018
637e387
Merge pull request #1 from alkabal/alkabal-Mist/Flood/Lube-for-xhc-wh…
alkabal Dec 29, 2018
4b8d240
Merge pull request #1434 from alkabal/alkabal-Mist/Flood/Lube-for-xhc…
ArcEye Dec 29, 2018
27e6af6
new feature Led - can be used to manipulate spindle speed or feed ove…
rubienr Dec 31, 2018
eb85023
Changes to Xylotex (DB25 Cape) configs to run
muggins Jan 1, 2019
6d41c50
scripts/gcode-to-ngc: Convert G4 param to seconds
hojalot Jan 1, 2019
d228682
Merge branch 'master' into Configs
ArcEye Jan 2, 2019
14e65fe
Merge pull request #1441 from muggins/Configs
ArcEye Jan 2, 2019
57e93bf
Merge pull request #1439 from hojalot/g4-millis-to-secs-2nd-try
ArcEye Jan 2, 2019
498ad8f
change release number
Shaeto Jan 6, 2019
9d8ac90
Merge branch 'master' into rpmbuild
Shaeto Jan 6, 2019
03a97df
limit3 comp: fix 1st order limit violations and drift
zultron Jan 8, 2019
2b1a83a
add dependency lib for /usr/bin/pncconf
Shaeto Jan 8, 2019
a709439
Merge pull request #1443 from Shaeto/rpmbuild
ArcEye Jan 9, 2019
6a65d84
revert change 1434
alkabal Jan 10, 2019
08d4e32
Merge pull request #1445 from alkabal/master
ArcEye Jan 10, 2019
3a4401c
Merge branch 'master' into feature-xhc-whb04-6-finetuning-squashed
ArcEye Jan 10, 2019
389a128
Merge pull request #1436 from rubienr/feature-xhc-whb04-6-finetuning-…
ArcEye Jan 10, 2019
e72a93e
Altered version of ioControl.cc to update tool on homing ATC
ArcEye Jan 13, 2019
5b232c1
Ensure machinekit.ini has unique MKUUID in RIP builds
ArcEye Jan 10, 2019
7b6dc3d
Merge pull request #1446 from ArcEye/update-iocontrol-set-current-tool
luminize Jan 13, 2019
a7ba9c8
cpusets
zultron Sep 11, 2018
146e4f8
scripts/build_docker: run `docker pull`
zultron Jan 14, 2019
a7a886c
rtapi_app: link using $(THREADS)_THREADS_LDFLAGS
zultron Oct 9, 2018
d0b5cc8
Merge pull request #1450 from zultron/ci-force-docker-pull
ArcEye Jan 14, 2019
f26dec7
Merge pull request #1442 from zultron/limit3-fixes-mk-pr
ArcEye Jan 14, 2019
b828016
Change configure.ac to check for RIP build or package
ArcEye Jan 14, 2019
22e8967
Fix linuxcnc script bug
zultron Oct 12, 2018
6688efe
Merge pull request #1451 from zultron/mk-pr-lcnc-script-bug
ArcEye Jan 15, 2019
f714b0a
Merge pull request #1426 from zultron/cpusets
ArcEye Jan 15, 2019
77a23d3
Fix logging problems
zultron Jan 15, 2019
265fe99
limit3 comp: add 'start' pin
zultron Jan 15, 2019
945d5d8
limit3 comp: Add `out-vel` and `out-acc` output pins
zultron Jan 15, 2019
3f12cd7
limit3 comp: add 'stopped' pin
zultron Jan 15, 2019
306c9fb
limit3v2 comp: add 'start' pin
zultron Jan 15, 2019
7046349
limit3v2 comp: Add `out-vel` and `out-acc` output pins
zultron Jan 15, 2019
63f5552
limit3v2 comp: add 'stopped' pin
zultron Jan 15, 2019
8eacb4d
Merge pull request #1452 from zultron/mk-pr-logging
luminize Jan 15, 2019
0bee643
Merge pull request #1454 from zultron/mk-pr-limit3-fixes
ArcEye Jan 15, 2019
64d2a57
Makefile: Add DPKG_CFLAGS to CXXFLAGS
zultron Jan 15, 2019
13dbf71
rtapi/rtapi_global.h: silence compiler warning
zultron Jan 15, 2019
b2ce2f8
rtapi/rtapi.h: silence compiler warning
zultron Jan 15, 2019
063220f
rtapi/rtapi_io.h: silence compiler warning
zultron Jan 15, 2019
6c952e9
hal/user_comps/xhc-whb04b-6: silence compiler warnings
zultron Jan 15, 2019
244d5bf
Fix ccache
zultron Jan 15, 2019
99b0e0d
Merge pull request #1453 from zultron/mk-pr-compiler-warnings
ArcEye Jan 16, 2019
c4101d1
Merge pull request #1455 from zultron/mk-pr-fix-ccache
ArcEye Jan 16, 2019
4ebdbc0
Add packaging control to ensure unique MKUUID is in /etc/linuxcnc/mac…
ArcEye Jan 14, 2019
799a4c1
Merge branch 'master' into unique-mkuuid
ArcEye Jan 16, 2019
c44e93e
Merge pull request #1447 from ArcEye/unique-mkuuid
luminize Jan 16, 2019
931ada8
machinetalk: cleanup PEP8 naming issues
machinekoder Jan 23, 2019
52b6343
mkwrapper: move tool table update to function
machinekoder Jan 23, 2019
1dfa004
Merge pull request #1457 from machinekoder/mt-cleanup
ArcEye Jan 23, 2019
1917d88
src/hal/sample_channel: add sample_channel component
luminize Feb 11, 2019
b96c02c
Add shebang to machinekit script
ArcEye Feb 14, 2019
e707d27
Add dep uuid-runtime for Stretch and above, missed in original.
ArcEye Feb 15, 2019
6b4bdbf
Merge pull request #1458 from ArcEye/uuid-runtime-stretch
luminize Feb 15, 2019
4a7b6e0
Fix python error message for `loadusr(shell=True)`
zultron Feb 16, 2019
f9ec1b8
Merge pull request #1459 from zultron/2019-02-16-python-loadusr-fix-pr
ArcEye Feb 16, 2019
4517e7a
Add docs build option directly to build_docker script
ArcEye Feb 16, 2019
0908f7d
Merge pull request #1461 from ArcEye/add-docs-build
luminize Feb 19, 2019
4cda0f5
sample_channel_pb.c: remove case HAL_TYPE_UNSPECIFIED
luminize Feb 22, 2019
b7ba5ec
Merge pull request #1460 from luminize/luminize-mk/sample_channel
ArcEye Feb 22, 2019
bf58d59
Replace rtapi_print( with rtapi_print_msg(RTAPI_MSG_DBG,
muggins Feb 24, 2019
82d727d
Merge pull request #1464 from muggins/rt_prnt2
ArcEye Feb 24, 2019
c2fd44a
Changes to BeBoPr+Bridge, CRAMPS and Xylotex configs to keep up with …
muggins Feb 24, 2019
01fe624
Merge pull request #1465 from muggins/config_changes
ArcEye Feb 25, 2019
c1a65df
Fixed some more occurrences of rtapi_print affect by change of RTAPI_…
muggins Feb 26, 2019
8ccf058
Merge pull request #1466 from muggins/rt_prnt3
luminize Feb 26, 2019
0d82fd4
Another occurrence of rtapi_print affected by “logging fix” which cha…
muggins Feb 26, 2019
b0fa9ad
Merge pull request #1467 from muggins/rt_prnt3
ArcEye Feb 26, 2019
04102f5
Fixed configs in BeBoPr-Bridge, CRAMPS and Xylotex.
muggins Feb 26, 2019
1b1f9f8
Update Xylotex.hal
muggins Feb 26, 2019
5f5d787
Merge branch 'master' into change_configs2
muggins Feb 26, 2019
dc0dd15
Merge pull request #1468 from muggins/change_configs2
luminize Feb 27, 2019
4db89ee
Update README.asciidoc
ArcEye Feb 28, 2019
4c63a80
Create pull_request_template.md
ArcEye Feb 28, 2019
5e81296
Merge pull request #1470 from machinekit/ArcEye-patch-1
luminize Feb 28, 2019
b576134
Fixed some missed changes in Xylotex.ini, Xylotex.hal and setup.sh.
muggins Mar 1, 2019
6a143ec
Merge pull request #1471 from ArcEye/rectify-previous-muggins-commit
luminize Mar 2, 2019
7b593fe
Fix permissions on CRAMPS setup.sh
muggins Mar 2, 2019
f0f8b83
Fix pinout for BeBoPr-Bridge.bbio
muggins Mar 3, 2019
f97b529
Fix pin assignments in BeBoPr-Bridge.hal and lineardelta.hal.
muggins Mar 4, 2019
2053074
Merge pull request #1472 from muggins/fix_CRAMPS_setup
ArcEye Mar 5, 2019
947bebd
Merge pull request #1474 from muggins/fix_BeBoPr-Bridge_pins
ArcEye Mar 5, 2019
730837e
Revert e207745 and b55b544 and remove -Werror CFLAG
ArcEye Mar 6, 2019
153d4e0
Merge pull request #1475 from ArcEye/revert-rtapi-pci-changes
luminize Mar 6, 2019
504ab1f
Add specific -lzmq to CFLAGS to prevent DSO errors in later distros.
ArcEye Feb 28, 2019
503983c
Merge pull request #1476 from ArcEye/remove-dso-errors
luminize Mar 8, 2019
116d5b6
Revert "Revert e207745 and b55b544 and remove -Werror CFLAG"
zultron Mar 9, 2019
4cd2e9d
rtapi/rtapi_pci.c: Fix PCI resource file parsing
zultron Mar 9, 2019
62f53dd
rtapi/rtapi_pci.c: Remove unnecessary type casting
zultron Mar 10, 2019
a8f5524
Merge pull request #1478 from zultron/pr-fix-hm2-pci
ArcEye Mar 11, 2019
4742e4b
Fix up debian scripts and drop kthreads from Makefile install
ArcEye Sep 6, 2018
395e130
Modify module paths and various other Makefile changes
ArcEye Dec 12, 2018
9834894
Remove rtai and xenomai_threads refs
ArcEye Dec 13, 2018
c6c1df0
Remove debugging and add missing forward slash
ArcEye Dec 15, 2018
3ea9322
Revert Makefile.inc.in path change
ArcEye Dec 15, 2018
d80462a
Move creation of rtlib/modules and symlinks to start of build
ArcEye Dec 15, 2018
6747ae7
Fix prubin install
zultron Dec 17, 2018
6d579de
Prepare for common modules directory
zultron Dec 17, 2018
df3d611
Remove recursive per-threads make modules
zultron Dec 17, 2018
1259ca9
Remove "Separate sources hack"
zultron Dec 17, 2018
9ee78a1
Start unifying C; redo component build make rules
zultron Dec 18, 2018
8085d22
SAVE WORK 1
zultron Jan 8, 2019
47e7edd
SAVE WORK 2
zultron Jan 8, 2019
3402b58
rtapi: Make flavor_ptr point to a const struct
zultron Feb 16, 2019
82d5f5a
configure.ac: remove obsolete m4 macros
zultron Feb 16, 2019
c897576
rtapi: Simplify RT priority handling
zultron Feb 16, 2019
ab3e233
WIP remove the shit out of rtapi_switch & start redoing flavors
zultron Feb 16, 2019
ba844b3
WIP get rid of *THREAD* macros; build rtapi_app as one
zultron Feb 18, 2019
2c3fe01
WIP Get rid of `rtapi_switch`; build `rtapi_app` with `-DRTAPI`
zultron Feb 18, 2019
42abb9d
Move rtapi flavor-related sources to rtapi/flavor subdirectory
zultron Feb 18, 2019
ad63636
ULAPI fixes
zultron Feb 18, 2019
e7aaf04
Update Debian packaging
zultron Feb 18, 2019
3473484
Fix realtime script
zultron Feb 18, 2019
ab59594
Update debian packaging
zultron Feb 18, 2019
3ba5471
Build system updates
zultron Feb 18, 2019
964c587
Remove scripts/check-build-vs-configure-sha
zultron Feb 19, 2019
b7cef4a
Makefile: Add C unit test macros
zultron Feb 19, 2019
e02ebbb
rtapi_flavor: tests & fixes
zultron Feb 19, 2019
f8e89f9
rtapi_flavor, unit test updates
zultron Feb 20, 2019
90bc26e
rtapi_flavor: test flavor_install
zultron Feb 20, 2019
a003b91
fix rt-preempt detection
zultron Feb 20, 2019
3ed066a
clean up rtapi_thread_flavor, hal_proc_init/clean
zultron Feb 20, 2019
3088173
Separate out rtapi.so again
zultron Feb 21, 2019
1eabf49
Clean up remaining `flavor_descriptor` references
zultron Feb 21, 2019
299cb8a
flavor_names() only returns runnable flavors
zultron Feb 21, 2019
952f4fa
rtapi_app.cc: Convert rtapi_instance back to local variable
zultron Feb 21, 2019
a9b39eb
Load rtapi.so and initialize flavors
zultron Feb 21, 2019
c8b405e
scripts/realtime: Tweak setuid error message
zultron Feb 21, 2019
b9d22eb
rtapi_compat.c: Fix module path
zultron Feb 21, 2019
cf801df
rtapi_compat.c: More meaningful error messages
zultron Feb 21, 2019
4f868ce
rtapi.c: Install "ulapi" flavor in rtapi_app_main()
zultron Feb 21, 2019
ca6c15e
Makefile tweaks
zultron Feb 21, 2019
e9e5f07
halcmd_commands.c tweak whitespace
zultron Feb 21, 2019
b3353f4
rt-preempt.c: Add lots of messages for failures
zultron Feb 21, 2019
5fbb1e1
rt-preempt.c: Fix mistake in run-time POSIX/RT_PREEMPT handling
zultron Feb 21, 2019
d2c11b0
scripts/runtests: Add `-s` option to stop after first failure
zultron Feb 21, 2019
faa02f1
Fix issues with missing hostmot2 symbols
zultron Feb 21, 2019
0c57093
Replace missing POSIX module_init_hook() pointer
zultron Feb 21, 2019
c766c65
rtapi.c: Replace simple_strtol() function
zultron Feb 21, 2019
34e12d0
Re-add motmod comp build rules
zultron Feb 21, 2019
106b5e7
rtapi.c: Fix return code on rtapi_module_init()
zultron Feb 21, 2019
4c4ee13
Fix rtapi.0 test
zultron Feb 21, 2019
2dbe2d0
Log to console early start-up; rtapi_flavor uses rtapi_print_*
zultron Feb 21, 2019
f5dc7a0
debian/configure: fix pkg version generation
zultron Feb 21, 2019
2655710
debian/control: fix formatting problem
zultron Feb 21, 2019
740e1a0
rtapi: Link -lcgroup against rtapi.0 instead of rtapi_app
zultron Feb 21, 2019
87413c2
Fix broken paths causing packaging problems
zultron Feb 21, 2019
6adaaaa
fixup link -lcgroup
zultron Feb 21, 2019
b7e4dec
Fix rtapi_get_clocks() for armhf
zultron Feb 21, 2019
2a817f7
.gitignore packaging artifact
zultron Feb 21, 2019
efde44a
fixup get_clocks
zultron Feb 21, 2019
f0cfae0
Change *_task_stop_hook() return type to int
zultron Feb 22, 2019
f692b2f
Fix Xenomai compile errors
zultron Feb 22, 2019
42eed42
scripts/build_docker: Use all CPUS by default for `make -j$CPUS`
zultron Feb 22, 2019
0da3d11
scripts/build_docker: remove `flavor` call
zultron Feb 22, 2019
c6b60a1
hal/components/Submakefile: no-op comment tweak
zultron Feb 22, 2019
1b7f3df
debian/control: fix dep
zultron Feb 22, 2019
a90319a
Fix packages
zultron Feb 22, 2019
7f592d7
Remove scripts/check-system-configuration.sh from build rules
zultron Feb 22, 2019
ef51adc
debian/configure: Tweak Xenomai configure message
zultron Mar 14, 2019
b3b51f5
Add specific refs to libzmq to prevent DSO errors
ArcEye Feb 22, 2019
f5d5e2b
configure.ac: Check for libzmq
zultron Mar 14, 2019
fbda310
debian: Pull in all changes
zultron Jul 10, 2019
0b7c9ae
Merge 'mk-single-module-dir-zultron-rebase' branch
zultron Jul 11, 2019
11469ba
build system: Fix userpci header install
zultron Jul 11, 2019
282db9d
Bump debian/changelog version after major change
zultron Jul 11, 2019
8653ff2
rtapi/flavor: Fix Xenomai load on non-Xenomai hosts
zultron Jul 12, 2019
1b768b7
Fix rtapi_msgd segfault from 47e7eddc "SAVE_WORK"
zultron Jul 12, 2019
e898d13
realtime script: Fix RTAPI unload detection in Jessie
zultron Jul 13, 2019
ed5b4f2
Revert "Enable `hostmot2` driver for all platforms"
cerna Feb 28, 2020
1513a2e
Revert "Fix build for platforms with no `inb()`/`outb()` support"
cerna Feb 28, 2020
925b09c
Revert "Packaging: Remove `debian/platform_pc` file"
cerna Feb 28, 2020
168345e
Merge branch 'zultron-mk-hal-single-module-dir-zultron-pr' into singl…
cerna Feb 28, 2020
4356ef7
Reapplying previously reverted commit to new build logic. (50093bb664…
cerna Feb 28, 2020
ea4518f
Merge pull request #1 from cerna/single-module-merge
zultron Feb 29, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,5 @@ src/hal/cython/machinekit/*.c
/machinekit-build-deps_*.deb
.directory
*.9icomp
# install artifacts
/include/
7 changes: 4 additions & 3 deletions debian/.gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
# files generated from debian/configure
/control
/rules
/files
/configure.cmdline
/machinekit*.install
/machinekit*.postinst

# generated by scripts/build_source_package
/changelog

# directory artifacts
/tmp
/machinekit*/
/machinekit-hal*/

# file artifacts
/*substvars
/*.debhelper
/shlibs.local
/files

!/changelog.in
8 changes: 8 additions & 0 deletions debian/changelog.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
machinekit-hal (0.3.0) stretch; urgency=low

* Separate rtapi_app_<threads> now merged into single binary
* RT thread flavor now chosen at run-time
* Separate flavor RT modules now common

-- John Morris <john@zultron.com> Thu, 11 Jul 2019 02:32:05 -0500

machinekit-hal (0.2.0) stretch; urgency=low

* HAL stack split out from machinekit
Expand Down
177 changes: 68 additions & 109 deletions debian/configure
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
#
# Configure source package dependencies

# List of supported kernel arches for kthreads
KTHREAD_ARCHES="i386 amd64"
if test -x /usr/bin/lsb_release; then
DISTRO_ID=$(lsb_release -is) # Debian or Ubuntu
DISTRO_RELEASE=$(lsb_release -rs) # 8.1, 14.04, etc.
DISTRO_CODENAME=$(lsb_release -cs) # wheezy | jessie | stretch | buster
fi
# Distro info
#
# This should run on non-Debian distros; lsb_release is only used for
# TCL/TK version detection, which can be passed in through the '-t
# VERSION' switch
DISTRO_CODENAME=$(lsb_release -cs) # jessie | stretch | buster

# Work out of the debian/ directory
cd "$(dirname $0)"
Expand All @@ -19,64 +18,18 @@ cd "$(dirname $0)"
# re-run
echo $0 $* > configure.cmdline

rules_enable_threads() {
# enable thread flavors in debian/rules; e.g.
# THREADS_POSIX = --with-posix
FLAVOR=$1
FLAVOR_VAR=THREADS_$(echo $FLAVOR | tr 'a-z-' 'A-Z_')
sed -i rules \
-e "s/^${FLAVOR_VAR}[^_].*/${FLAVOR_VAR} = --with-${FLAVOR}/"
echo "debian/rules: enabled ${FLAVOR} threads" >&2
}

guess_arch_from_kver() {
# utility to make a guess at the kernel header arch from the
# kernel version; this works for Debian kernels, and 'any' is
# correct for the RTAI kernel packages in the Machinekit Debian
# archive
KVER=$1
case $KVER in
*-?86 | *-?86-pae) echo i386 ;;
*-amd64) echo amd64 ;;
*) echo any ;; # For non-Debian kernel package naming
esac
}

do_posix() {
cat control.d/control.posix.hdr control.d/control.$DISTRO_CODENAME.in control.d/control.posix.ftr >> control
echo "debian/control: added POSIX threads package" >&2
rules_enable_threads posix
HAVE_FLAVOR=true
}

do_rt-preempt() {
cat control.d/control.rt-preempt.hdr control.d/control.$DISTRO_CODENAME.in control.d/control.rt-preempt.ftr >> control
echo "debian/control: added RT_PREEMPT threads package" >&2
rules_enable_threads rt-preempt
HAVE_FLAVOR=true
}

do_xenomai() {
cat control.d/control.xenomai.hdr control.d/control.$DISTRO_CODENAME.in control.d/control.xenomai.ftr >> control
# sed -i "s|yapps2-runtime|yapps2-runtime, xenomai-runtime|" control
echo "debian/control: added xenomai threads package for Jessie" >&2
# Be sure the -dev files only appear once
BUILD_DEPS="${BUILD_DEPS/libxenomai-dev, /}libxenomai-dev, "
echo "debian/control: added Xenomai (userland) threads package" \
"with Build-Depends:" >&2
echo " libxenomai-dev" >&2
rules_enable_threads xenomai
HAVE_FLAVOR=true
}

## Set version for packages by altering changelog
## Write new version info then prepend existing one, for use in changes file
## Allows command line builds and builds outside of Travis environment to set meaningful version numbers
## Set version for packages by altering changelog Write new version
## info then prepend existing one, for use in changes file Allows
## command line builds and builds outside of Travis environment to set
## meaningful version numbers

do_changelog() {
DISTRO_UC="$(echo $DISTRO_CODENAME | sed 's/^[[:space:]]*//g' | sed -e 's/\b\(.\)/\u\1/g')"
DISTRO_UC="$(echo $DISTRO_CODENAME | sed 's/^[[:space:]]*//g' |
sed -e 's/\b\(.\)/\u\1/g')"
DISTRO_LC="$(echo $DISTRO_CODENAME | sed 's/^[[:space:]]*//g')"
MKVERSION="$(git show HEAD:VERSION | cut -d ' ' -f 1).$(git rev-list --count master)-1.git$(git rev-parse --short HEAD)~${DISTRO_LC}"
MKVERSION="$(git show HEAD:VERSION | cut -d ' ' -f 1).$(
git rev-list --count master)-1.git$(
git rev-parse --short HEAD)~${DISTRO_LC}"
COMMITTER="$(git show -s --pretty=%an $(git rev-parse --short HEAD))"
EMAIL="$(git show -s --format='%ae' $(git rev-parse --short HEAD))"

Expand All @@ -95,31 +48,30 @@ cat changelog.in >> changelog
echo "New package version number added to changelog"
}

## Create source orig tarball in format required for creation of debian tarball and .dsc file
## Allows non binary package builds from command line or outside Travis environment
## Create source orig tarball in format required for creation of
## debian tarball and .dsc file Allows non binary package builds from
## command line or outside Travis environment

do_source_tarball() {
#version based on major version plus commit number only, without suffixed -1 or commit hash
MK_VERSION="$(git show HEAD:VERSION | cut -d ' ' -f 1).$(git rev-list --count master)"

OWD=$PWD
cd ../
git archive HEAD | bzip2 -z > ../machinekit-hal_${MK_VERSION}.orig.tar.bz2
echo "Source tarball created"
cd $OWD
#version based on major version plus commit number only, without
#suffixed -1 or commit hash
MK_VERSION="$(git show HEAD:VERSION | cut -d ' ' -f 1).$(
git rev-list --count master)"

OWD=$PWD
cd ../
git archive HEAD | bzip2 -z > ../machinekit-hal_${MK_VERSION}.orig.tar.bz2
echo "Source tarball created"
cd $OWD
}

usage() {
{
test -z "$1" || echo "$1"
echo "Usage: $0 [ arg ... ]"
echo " arg: function:"
echo " -p build POSIX threads"
echo " -r build RT_PREEMPT threads"
echo " -x build Xenomai threads"
echo " -c rewrite changelog to set package version from git commit"
echo " -s create source tarball for non binary package builds"
echo " *** Argument may be repeated for multiple kernels"
echo " arg: function:"
echo " -c rewrite changelog to set package version from git commit"
echo " -s create source tarball for non binary package builds"
} >&2
exit 1
}
Expand All @@ -131,50 +83,57 @@ test "$1" != --help || usage
# These need to be in a certain order:
# - Base template copy first
# - do_<flavor> functions next
# - replace BUILD_DEPS and *_KERNEL_HEADERS last
# - replace BUILD_DEPS last
# (when lists are fully populated)

# set defaults
BUILD_DEPS= # List of Build-Depends
DEPS= # List of Depends
HAVE_FLAVOR=false
HAVE_KTHREADS_FLAVOR=false

cp control.d/control.in control
echo "debian/control: copied base template" >&2

cp postinst.in machinekit-hal-posix.postinst
cp postinst.in machinekit-hal-rt-preempt.postinst
cp postinst.in machinekit-hal-xenomai.postinst

cp rules.in rules; chmod +x rules
echo "debian/rules: copied base template" >&2

cp changelog.in changelog
echo "debian/rules: copied base changelog" >&2
DEPS= # List of Depends

## copy base templates into place

case "$DISTRO_CODENAME" in
buster)
BUILD_DEPS+=', libck-dev'
;;
stretch|sid)
DEPS+=", python-gtksourceview2"
BUILD_DEPS+=', libck-dev'
;;
jessie)
DEPS+=", python-gtksourceview2"
;;
*)
DEPS+=", python-gtksourceview2"
BUILD_DEPS+=', libck-dev'
;;
esac

# Configure Xenomai threads
configure_xenomai() {
if ! dpkg-query -W | grep -q libxenomai-dev; then
echo "Not configuring build for Xenomai (no libxenomai-dev package)" >&2
return
fi

echo "debian/control: Adding xenomai threads configuration" >&2
BUILD_DEPS+=", libxenomai-dev"
DEPS+=", xenomai-runtime"
}

# read command line options - d is a dummy to stop args being req
while getopts csprxd:?h ARG; do
while getopts csh ARG; do
case $ARG in
p) do_posix ;;
r) do_rt-preempt ;;
x) do_xenomai ;;
c) do_changelog ;; # set new changelog with package versions from git
s) do_source_tarball ;; # create tarball for non binary builds
?|h) usage ;;
h) usage ;;
*) usage "Unknown arg: '-$ARG'" ;;
esac
done

if test "$DISTRO_CODENAME" != jessie; then
BUILD_DEPS+='libck-dev, '
fi

# Set control Build-Depends:
sed -i control \
configure_xenomai
sed >control <control.in \
-e "s/@BUILD_DEPS@/${BUILD_DEPS}/" \
-e "s/@DEPS@/${DEPS}/"
echo "debian/control: add final Build-Depends: list" >&2

# Warn if no flavor configured
$HAVE_FLAVOR || usage "WARNING: No thread flavors configured"
7 changes: 0 additions & 7 deletions debian/control.d/control.buster.in

This file was deleted.

22 changes: 0 additions & 22 deletions debian/control.d/control.in

This file was deleted.

6 changes: 0 additions & 6 deletions debian/control.d/control.jessie.in

This file was deleted.

4 changes: 0 additions & 4 deletions debian/control.d/control.posix.ftr

This file was deleted.

6 changes: 0 additions & 6 deletions debian/control.d/control.posix.hdr

This file was deleted.

5 changes: 0 additions & 5 deletions debian/control.d/control.rt-preempt.ftr

This file was deleted.

6 changes: 0 additions & 6 deletions debian/control.d/control.rt-preempt.hdr

This file was deleted.

6 changes: 0 additions & 6 deletions debian/control.d/control.stretch.in

This file was deleted.

5 changes: 0 additions & 5 deletions debian/control.d/control.xenomai.ftr

This file was deleted.

6 changes: 0 additions & 6 deletions debian/control.d/control.xenomai.hdr

This file was deleted.

Loading