Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit ff43dc6

Browse files
author
Harshal Patil
committed
Enable ppc64le support
Signed-off-by: Harshal Patil <[email protected]>
1 parent 59abb74 commit ff43dc6

File tree

11 files changed

+3120
-1
lines changed

11 files changed

+3120
-1
lines changed

build/Dockerfile.ppc64le

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
FROM ibmcom/centos:7
2+
MAINTAINER Harshal Patil <[email protected]>
3+
4+
RUN yum install -y patch gcc ncurses-devel make openssl-devel bc perl
5+
6+
ENV KERNEL_VERSION 4.12.4
7+
ENV LOCALVERSION -hyper
8+
ENV KERNEL_RELEASE ${KERNEL_VERSION}${LOCALVERSION}
9+
10+
ENV KBUILD_BUILD_USER dev
11+
ENV KBUILD_BUILD_HOST hyper.sh
12+
ENV KBUILD_BUILD_VERSION 1
13+
14+
RUN mkdir /root/build/ && mkdir /root/build/result/
15+
RUN curl -fSL https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-${KERNEL_VERSION}.tar.gz | tar -zx -C /root/build
16+
17+
COPY kernel_config /root/build/linux-${KERNEL_VERSION}/.config
18+
COPY kernel_patch/ /root/build/kernel_patch/
19+
20+
RUN cd /root/build/linux-${KERNEL_VERSION}/ && for patch in /root/build/kernel_patch/*.patch; do patch -p1 <$patch || exit 1; done
21+
RUN cd /root/build/linux-${KERNEL_VERSION}/ && make silentoldconfig && make -j 8
22+
23+
# install to /root/build/result/ so that we can get them from it
24+
RUN cp /root/build/linux-${KERNEL_VERSION}/vmlinux /root/build/result/kernel
25+
RUN cp /root/build/linux-${KERNEL_VERSION}/.config /root/build/result/kernel_config

build/arch/ppc64le/binary/busybox

2.2 MB
Binary file not shown.

build/arch/ppc64le/binary/iptables

134 KB
Binary file not shown.

build/arch/ppc64le/binary/ipvsadm

131 KB
Binary file not shown.

build/arch/ppc64le/binary/mount.nfs

132 KB
Binary file not shown.

build/arch/ppc64le/binary/rtas.tar

6.86 MB
Binary file not shown.

build/arch/ppc64le/binary/socat

389 KB
Binary file not shown.

build/arch/ppc64le/kernel

18.6 MB
Binary file not shown.

0 commit comments

Comments
 (0)