forked from hyperhq/hyperstart
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build kernel/modules in the hyperstart-dev:latest container remove build/modules/ directroy and add modules.tar instead Signed-off-by: Lai Jiangshan <[email protected]>
- Loading branch information
Showing
109 changed files
with
39 additions
and
598 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ initrd-local: | |
@echo finish make initrd | ||
cbfs-local: | ||
@echo finish make cbfs | ||
kernel-local: | ||
@echo finish make kernel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM centos:7 | ||
MAINTAINER Hyper Developers <[email protected]> | ||
|
||
RUN yum install -y patch gcc ncurses-devel make openssl-devel bc | ||
|
||
ENV KERNEL_VERSION 4.4.7 | ||
ENV LOCALVERSION -hyper | ||
ENV KERNEL_RELEASE ${KERNEL_VERSION}${LOCALVERSION} | ||
|
||
ENV KBUILD_BUILD_USER dev | ||
ENV KBUILD_BUILD_HOST hyper.sh | ||
ENV KBUILD_BUILD_VERSION 1 | ||
|
||
RUN mkdir /root/build/ && mkdir /root/build/result/ | ||
RUN curl -fSL https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-${KERNEL_VERSION}.tar.gz | tar -zx -C /root/build | ||
|
||
COPY kernel_config /root/build/linux-${KERNEL_VERSION}/.config | ||
COPY kernel_patch/ /root/build/kernel_patch/ | ||
|
||
RUN cd /root/build/linux-${KERNEL_VERSION}/ && for patch in /root/build/kernel_patch/*.patch; do patch -p1 <$patch || exit 1; done | ||
RUN cd /root/build/linux-${KERNEL_VERSION}/ && make silentoldconfig && make -j 8 | ||
|
||
# install to /root/build/result/ so that we can get them from it | ||
RUN cp /root/build/linux-${KERNEL_VERSION}/arch/x86_64/boot/bzImage /root/build/result/kernel | ||
RUN mkdir /root/build/result/modules &&\ | ||
cd /root/build/linux-${KERNEL_VERSION}/ && make modules_install INSTALL_MOD_PATH="/root/build/result/modules" &&\ | ||
cd /root/build/result/modules/lib/modules/ && rm -f ${KERNEL_RELEASE}/{build,source} &&\ | ||
tar -cf /root/build/result/modules.tar ${KERNEL_RELEASE}/ && rm -rf /root/build/result/modules | ||
RUN cp /root/build/linux-${KERNEL_VERSION}/.config /root/build/result/kernel_config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-5.06 KB
build/modules/4.4.7-hyper+/kernel/net/ipv4/netfilter/ipt_MASQUERADE.ko
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-11.5 KB
build/modules/4.4.7-hyper+/kernel/net/ipv4/netfilter/ipt_SYNPROXY.ko
Binary file not shown.
Binary file removed
BIN
-6.69 KB
build/modules/4.4.7-hyper+/kernel/net/ipv4/netfilter/iptable_filter.ko
Binary file not shown.
Binary file removed
BIN
-6.36 KB
build/modules/4.4.7-hyper+/kernel/net/ipv4/netfilter/iptable_mangle.ko
Binary file not shown.
Binary file removed
BIN
-6.98 KB
build/modules/4.4.7-hyper+/kernel/net/ipv4/netfilter/iptable_nat.ko
Binary file not shown.
Binary file removed
BIN
-20 KB
build/modules/4.4.7-hyper+/kernel/net/ipv4/netfilter/nf_conntrack_ipv4.ko
Binary file not shown.
Binary file removed
BIN
-5.73 KB
build/modules/4.4.7-hyper+/kernel/net/ipv4/netfilter/nf_defrag_ipv4.ko
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-11.8 KB
build/modules/4.4.7-hyper+/kernel/net/ipv4/netfilter/nf_log_ipv4.ko
Binary file not shown.
Binary file removed
BIN
-12.1 KB
build/modules/4.4.7-hyper+/kernel/net/ipv4/netfilter/nf_nat_ipv4.ko
Binary file not shown.
Binary file removed
BIN
-7.23 KB
build/modules/4.4.7-hyper+/kernel/net/ipv4/netfilter/nf_nat_masquerade_ipv4.ko
Binary file not shown.
Binary file removed
BIN
-7.39 KB
build/modules/4.4.7-hyper+/kernel/net/ipv4/netfilter/nf_reject_ipv4.ko
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-14.4 KB
build/modules/4.4.7-hyper+/kernel/net/netfilter/ipset/ip_set_bitmap_ip.ko
Binary file not shown.
Binary file removed
BIN
-14.1 KB
build/modules/4.4.7-hyper+/kernel/net/netfilter/ipset/ip_set_bitmap_ipmac.ko
Binary file not shown.
Binary file removed
BIN
-13.2 KB
build/modules/4.4.7-hyper+/kernel/net/netfilter/ipset/ip_set_bitmap_port.ko
Binary file not shown.
Binary file removed
BIN
-29.7 KB
build/modules/4.4.7-hyper+/kernel/net/netfilter/ipset/ip_set_hash_ip.ko
Binary file not shown.
Binary file removed
BIN
-29.5 KB
build/modules/4.4.7-hyper+/kernel/net/netfilter/ipset/ip_set_hash_ipmark.ko
Binary file not shown.
Binary file removed
BIN
-30.3 KB
build/modules/4.4.7-hyper+/kernel/net/netfilter/ipset/ip_set_hash_ipport.ko
Binary file not shown.
Binary file removed
BIN
-31 KB
build/modules/4.4.7-hyper+/kernel/net/netfilter/ipset/ip_set_hash_ipportip.ko
Binary file not shown.
Binary file removed
BIN
-36.8 KB
build/modules/4.4.7-hyper+/kernel/net/netfilter/ipset/ip_set_hash_ipportnet.ko
Binary file not shown.
Binary file removed
BIN
-19.4 KB
build/modules/4.4.7-hyper+/kernel/net/netfilter/ipset/ip_set_hash_mac.ko
Binary file not shown.
Binary file removed
BIN
-34.2 KB
build/modules/4.4.7-hyper+/kernel/net/netfilter/ipset/ip_set_hash_net.ko
Binary file not shown.
Binary file removed
BIN
-36.9 KB
build/modules/4.4.7-hyper+/kernel/net/netfilter/ipset/ip_set_hash_netiface.ko
Binary file not shown.
Binary file removed
BIN
-37.4 KB
build/modules/4.4.7-hyper+/kernel/net/netfilter/ipset/ip_set_hash_netnet.ko
Binary file not shown.
Binary file removed
BIN
-35.6 KB
build/modules/4.4.7-hyper+/kernel/net/netfilter/ipset/ip_set_hash_netport.ko
Binary file not shown.
Binary file removed
BIN
-38.4 KB
build/modules/4.4.7-hyper+/kernel/net/netfilter/ipset/ip_set_hash_netportnet.ko
Binary file not shown.
Binary file removed
BIN
-15.2 KB
build/modules/4.4.7-hyper+/kernel/net/netfilter/ipset/ip_set_list_set.ko
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-12.1 KB
build/modules/4.4.7-hyper+/kernel/net/netfilter/ipvs/ip_vs_lblcr.ko
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-44.7 KB
build/modules/4.4.7-hyper+/kernel/net/netfilter/nf_conntrack_netlink.ko
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-13.8 KB
build/modules/4.4.7-hyper+/kernel/net/netfilter/nf_synproxy_core.ko
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.