mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-22 18:41:37 +00:00
Do not set WORKDIR in kernel builds
This is a temporary workaround for https://github.com/docker/docker/issues/29950 which has broken caching and therefore is very annoying for development, but we don't really need to set it, so it can stay... Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
b23c7107b5
commit
2685c8cd0c
@ -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 && \
|
||||
|
@ -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 && \
|
||||
|
Loading…
Reference in New Issue
Block a user