Skip to content

Commit

Permalink
Add xr-usb-serial driver to address RS485 issues on Kontron device
Browse files Browse the repository at this point in the history
The driver is taken from https://github.com/enlyze/xr-usb-serial

Signed-off-by: Mikhail Malyshev <[email protected]>
  • Loading branch information
rucoder committed Jun 24, 2024
1 parent fb31ce8 commit 1ed44cc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Dockerfile.gcc
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,16 @@ RUN make O=/kernel-out LOCALVERSION="-${LOCALVERSION}" M=/tmp/hailo/linux/pcie -
make O=/kernel-out LOCALVERSION="-${LOCALVERSION}" M=/tmp/hailo/linux/pcie -C /kernel-src INSTALL_MOD_STRIP=1 \
INSTALL_MOD_PATH=/tmp/kernel-modules modules_install

# we do not use Makefile and directly build out-of-tree module
# PR https://github.com/enlyze/xr-usb-serial/pull/5 to make driver compatible
# with kernel < 6.6 was merged
ADD --keep-git-dir=true https://github.com/enlyze/xr-usb-serial.git /tmp/uart
WORKDIR /tmp/uart
RUN make O=/kernel-out LOCALVERSION="-${LOCALVERSION}" M=/tmp/uart -C /kernel-src -j$(nproc) && \
make O=/kernel-out LOCALVERSION="-${LOCALVERSION}" M=/tmp/uart -C /kernel-src INSTALL_MOD_STRIP=1 \
INSTALL_MOD_PATH=/tmp/kernel-modules modules_install

FROM builder as artifacts

WORKDIR /kernel-out

# package artifacts
Expand Down

0 comments on commit 1ed44cc

Please sign in to comment.