On 5/11/2016 7:53 PM, thematsche wrote:
> On 2016-05-12 01:34, GP Orcullo wrote:
>> Just post a PR so that you don’t have to worry about that ;-)
> And?
> Who tests my driver?
> Do I have to send my testing equipment to the maintainer?
You (or anyone else actually using it) test your driver. :)
There are a *LOT* of drivers that get built that not everyone has
hardware to test (hostmot2, pico-systems, LPT drivers, etc).
> How can I determine or compare the state of packages or source tree?
> It ends up in developer maintainer ping pong.
> IMHO.
Builds are automatically run from pull requests both prior to a merge to
trunk (to mostly verify things still build and pass unit tests) and
after (to run all build permutations and generate packages for release).
The hostmot2 driver is not really intended to be compiled "out of tree",
so you have a few options:
* Send a PR for your driver and get it included in master. Then you
don't have to build anything, you just need to fix any bugs and can
otherwise use the latest packages.
* Setup a self-hosted build: Add some swap (you'll need it) and be
prepared to learn patience...it takes a while to build on lower-end ARM
platforms like the BBB and RPi.
* Setup a build host: Use a powerful ARM board to compile and just run
the code on your target platform. A typical setup would be something
like a quad-core iMX6 or maybe an A53 to build with the source on an NFS
share that can be seen by your target platform. You can just
run-in-place from the NFS mounted build directory for testing.
* Use the available build VMs: The continuous integration that tests
each pull request and builds packages for each merge is freely available
and based on Travis + Docker (IIRC). You can clone part of this
infrastructure and run your own builds targeting your repo if you don't
want to setup a native ARM build machine.
* Modify the build process so the hostmot2 driver *CAN* be built
out-of-tree with just Machinekit-Dev (and not a full source build)
available. If you do this, send a PR!
So basically, if you're building the hostmot2 driver, you're doing
serious development and you need a real build environment. Either push
your code upstream and use the project's infrastructure, or you'll have
to craft your own (unless you feel like tweaking the Makefiles so
hostmot2 can build stand-alone).
--
Charles Steinkuehler