There was an error while loading. Please reload this page.
1 parent 3408e9a commit 76ffef3Copy full SHA for 76ffef3
1 file changed
Dockerfile
@@ -108,6 +108,14 @@ RUN mkdir -p /output
108
# Build OpenAuto
109
RUN export TARGET_ARCH=$(dpkg-architecture -qDEB_HOST_ARCH) && \
110
echo "Building OpenAuto for architecture: $TARGET_ARCH (native compilation)" && \
111
+ # For armhf builds, clone userland and copy headers
112
+ if [ "$TARGET_ARCH" = "armhf" ]; then \
113
+ echo "Cloning Raspberry Pi userland repo for bcm_host.h and headers..."; \
114
+ git clone https://github.com/raspberrypi/userland.git; \
115
+ mkdir -p /opt/vc/include/; \
116
+ cp -r userland/opt/vc/include/* /opt/vc/include/; \
117
+ echo "Copied userland headers to /opt/vc/include/"; \
118
+ fi && \
119
# Determine if this is a non-Pi architecture
120
CMAKE_NOPI_FLAG="" && \
121
case "$TARGET_ARCH" in \
0 commit comments