Pi4J / pi4j-v1

DEPRECATED Java I/O library for Raspberry Pi (GPIO, I2C, SPI, UART)
http://www.pi4j.com
Apache License 2.0
1.31k stars 447 forks source link

Added support for Docker Builders for Native Libraries (32-bit & 64-bit) #494

Closed savageautomate closed 4 years ago

savageautomate commented 4 years ago

This change only applies to Pi4J v1.4.

These changes add support for building the pi4j-native project (native libraries) using Docker images. The pi4j-native project includes native (C) libraries that must be compiled for both CPU architectures armhf (32-bit) and aarch64 (64-bit). Building these native sources using the Pi4J Docker Builder images will simplify the build process by off-loading the build steps to containers that already have the proper ARM cross-compiler environments and toolchains established and configured.

Additionally:

Note:. It's important to note that the vast majority of users will never need to build the native libraries themselves. These libraries are pushed to Maven repositories as artifacts and can be downloaded just like other dependencies in a typical Maven build. Only users who need to re-compile the native libraries will need to make use of either the Docker builders or cross-compiling.

savageautomate commented 4 years ago

@eitch

Are you interested in reviewing these changes before I merge into develop/1.4.

Thanks, Robert