Skip to content

Commit 76ffef3

Browse files
committed
added armhf userland clone
1 parent 3408e9a commit 76ffef3

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,14 @@ RUN mkdir -p /output
108108
# Build OpenAuto
109109
RUN export TARGET_ARCH=$(dpkg-architecture -qDEB_HOST_ARCH) && \
110110
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 && \
111119
# Determine if this is a non-Pi architecture
112120
CMAKE_NOPI_FLAG="" && \
113121
case "$TARGET_ARCH" in \

0 commit comments

Comments
 (0)