2
2
3
3
FROM ubuntu:18.04 AS builder
4
4
5
- ENV WPILIB_VERSION v2020.3 .2
6
- ENV SYNTHESIS_BRANCH emulator-restore
5
+ ENV WPILIB_VERSION v2021.2 .2
6
+ ENV SYNTHESIS_BRANCH wpilib-2021
7
7
ENV TEMPPATH /temp
8
8
ENV PATH $TEMPPATH/bin:$PATH
9
9
@@ -69,7 +69,27 @@ RUN ${ENTER_HEL}/../java_vm/wpi_cross && \
69
69
patch -p0 < ../AddressableLED.patch && \
70
70
patch -p0 < ../FRCDriverStation.patch && \
71
71
./gradlew halBaseLinuxx86-64ReleaseSharedLibrary halJNILinuxx86-64ReleaseSharedLibrary :wpilibj:assemble && \
72
- (./gradlew wpilibj:build || true) # This gradle build step will fail, but that's okay
72
+ (./gradlew wpilibj:build || true)
73
+ RUN ${ENTER_HEL}/../java_vm/wpi_cross/allwpilib && \
74
+ cp wpilibc/src/main/native/include/frc wpilibOldCommands/src/main/native/include -r -f && \
75
+ cp wpilibc/src/main/native/include/frc2 wpilibOldCommands/src/main/native/include -r -f && \
76
+ cp wpiutil/src/main/native/include/wpi wpilibOldCommands/src/main/native/include -r -f && \
77
+ cp ntcore/src/main/native/include/* wpilibOldCommands/src/main/native/include -r -f && \
78
+ cp hal/src/main/native/include/* wpilibOldCommands/src/main/native/include -r -f && \
79
+ cp wpimath/src/main/native/include/* wpilibOldCommands/src/main/native/include -r -f && \
80
+ cp hal/build/generated/headers/* wpilibOldCommands/src/main/native/include -r -f && \
81
+ ./gradlew wpilibOldCommandsBaseLinuxx86-64DebugSharedLibrary
82
+ RUN ${ENTER_HEL}/../java_vm/wpi_cross/allwpilib && \
83
+ cp wpilibc/src/main/native/include/frc wpilibNewCommands/src/main/native/include -r -f && \
84
+ cp wpilibc/src/main/native/include/frc2 wpilibNewCommands/src/main/native/include -r -f && \
85
+ cp wpiutil/src/main/native/include/wpi wpilibNewCommands/src/main/native/include -r -f && \
86
+ cp ntcore/src/main/native/include/* wpilibNewCommands/src/main/native/include -r -f && \
87
+ cp hal/src/main/native/include/* wpilibNewCommands/src/main/native/include -r -f && \
88
+ cp wpimath/src/main/native/include/* wpilibNewCommands/src/main/native/include -r -f && \
89
+ cp wpimath/src/main/native/eigeninclude/Eigen wpilibNewCommands/src/main/native/include -r -f && \
90
+ cp hal/build/generated/headers/* wpilibNewCommands/src/main/native/include -r -f && \
91
+ ./gradlew wpilibNewCommandsBaseLinuxx86-64DebugSharedLibrary
92
+
73
93
74
94
# Move needed files into one location
75
95
RUN mkdir $TEMPPATH/to_copy && \
@@ -90,9 +110,9 @@ RUN echo 'root:root' | chpasswd
90
110
91
111
RUN apt-get -y update
92
112
93
- RUN DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends tzdata
113
+ RUN DEBIAN_FRONTEND="noninteractive" apt install -y --no-install-recommends tzdata
94
114
95
- RUN apt-get -y install --no-install-recommends \
115
+ RUN apt -y install --no-install-recommends \
96
116
linux-image-generic:amd64 \
97
117
systemd-sysv \
98
118
dbus \
@@ -135,6 +155,7 @@ RUN mv -n ./libhel.so \
135
155
./libcscorejni.so \
136
156
./libcscored.so \
137
157
./libopencv*.so* \
158
+ ./libwpilib*Commands*.so* \
138
159
./libntcorejni.so \
139
160
./libntcored.so \
140
161
/lib/
0 commit comments