Merge pull request #960 from justincormack/no-kernel-workdir

Do not set WORKDIR in kernel builds
This commit is contained in:
Justin Cormack 2017-01-06 18:29:46 +00:00 committed by GitHub
commit 12f17b605f
2 changed files with 8 additions and 6 deletions

View File

@ -27,11 +27,12 @@ RUN cd /linux && \
patch -p1 < "$patch"; \
done
WORKDIR /linux
RUN make defconfig && \
RUN cd /linux && \
make defconfig && \
make oldconfig && \
make -j "$(getconf _NPROCESSORS_ONLN)" KCFLAGS="-fno-pie"
RUN make INSTALL_MOD_PATH=/tmp/kernel-modules modules_install && \
RUN cd /linux && \
make INSTALL_MOD_PATH=/tmp/kernel-modules modules_install && \
( DVER=$(basename $(find /tmp/kernel-modules/lib/modules/ -mindepth 1 -maxdepth 1)) && \
cd /tmp/kernel-modules/lib/modules/$DVER && \
rm build source && \

View File

@ -65,11 +65,12 @@ RUN cd /linux && \
patch -p1 < "$patch"; \
done
WORKDIR /linux
RUN make defconfig && \
RUN cd /linux && \
make defconfig && \
make oldconfig && \
make -j "$(getconf _NPROCESSORS_ONLN)" KCFLAGS="-fno-pie"
RUN make INSTALL_MOD_PATH=/tmp/kernel-modules modules_install && \
RUN cd /linux && \
make INSTALL_MOD_PATH=/tmp/kernel-modules modules_install && \
( DVER=$(basename $(find /tmp/kernel-modules/lib/modules/ -mindepth 1 -maxdepth 1)) && \
cd /tmp/kernel-modules/lib/modules/$DVER && \
rm build source && \