Skip to content

Commit

Permalink
fix strip process
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Mar 2, 2024
1 parent 49de909 commit c06156d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
contents: read
packages: write
strategy:
fail-fast: false
fail-fast: true
max-parallel: 1 # take advantage of caching
matrix:
target: [developer, runtime]
Expand Down
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ RUN local_patch/patch-rsb.sh
# build the cross compilation tool suite and strip symbols to minimize size
WORKDIR rsb/rtems
RUN ../source-builder/sb-set-builder --prefix=${RTEMS_PREFIX} ${RTEMS_MAJOR}/rtems-${RTEMS_ARCH} && \
strip $(find ${RTEMS_PREFIX}) 2> /dev/null && \
strip $(find ${RTEMS_PREFIX}) 2> /dev/null || true && \
ranlib $(find ${RTEMS_PREFIX} -name '*.a')

# get the kernel
Expand Down Expand Up @@ -82,8 +82,12 @@ from environment AS runtime_prep
# To make this container target smaller we take just the BSP
COPY --from=developer ${RTEMS_PREFIX} ${RTEMS_PREFIX}

# remove docs
RUN rm -r ${RTEMS_PREFIX}/share/doc
# remove files that are not required
RUN rm -r \
${RTEMS_PREFIX}/share/doc \
${RTEMS_PREFIX}/share/man \
${RTEMS_PREFIX}/share/info \
${RTEMS_PREFIX}/powerpc-rtems6/lib/ldscripts

from runtime_prep AS runtime

Expand Down

0 comments on commit c06156d

Please sign in to comment.