mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
docker: split minimum setup to separate script
This commit is contained in:
@@ -2,3 +2,4 @@
|
|||||||
# with a volume.
|
# with a volume.
|
||||||
*
|
*
|
||||||
.*
|
.*
|
||||||
|
!setup
|
||||||
|
|||||||
@@ -1,10 +1,5 @@
|
|||||||
# https://github.com/cirosantilli/linux-kernel-module-cheat#docker
|
# https://github.com/cirosantilli/linux-kernel-module-cheat#docker
|
||||||
FROM ubuntu:18.04
|
FROM ubuntu:18.04
|
||||||
RUN apt update
|
COPY setup /
|
||||||
# Minimum requirements to run ./build --download-dependencies
|
RUN /setup -y
|
||||||
RUN apt-get install -y \
|
|
||||||
git \
|
|
||||||
python3 \
|
|
||||||
python3-distutils \
|
|
||||||
;
|
|
||||||
CMD bash
|
CMD bash
|
||||||
|
|||||||
1
build
1
build
@@ -125,6 +125,7 @@ name_to_component_map = {
|
|||||||
# TODO test it out on Docker and answer that question properly:
|
# TODO test it out on Docker and answer that question properly:
|
||||||
# https://askubuntu.com/questions/350475/how-can-i-install-gem5
|
# https://askubuntu.com/questions/350475/how-can-i-install-gem5
|
||||||
apt_get_pkgs={
|
apt_get_pkgs={
|
||||||
|
'device-tree-compiler',
|
||||||
'diod',
|
'diod',
|
||||||
'libgoogle-perftools-dev',
|
'libgoogle-perftools-dev',
|
||||||
'protobuf-compiler',
|
'protobuf-compiler',
|
||||||
|
|||||||
4
run
4
run
@@ -333,7 +333,7 @@ def main(args, extra_args=None):
|
|||||||
])
|
])
|
||||||
virtio_gpu_pci = []
|
virtio_gpu_pci = []
|
||||||
else:
|
else:
|
||||||
virtio_gpu_pci = ['-device', 'virtio-gpu-pci']
|
virtio_gpu_pci = ['-device', 'virtio-gpu-pci', common.Newline]
|
||||||
if args.arch == 'x86_64':
|
if args.arch == 'x86_64':
|
||||||
append = ['-append', '{} nopat {}'.format(root, kernel_cli), common.Newline]
|
append = ['-append', '{} nopat {}'.format(root, kernel_cli), common.Newline]
|
||||||
cmd.extend([
|
cmd.extend([
|
||||||
@@ -346,7 +346,7 @@ def main(args, extra_args=None):
|
|||||||
cpu = 'cortex-a15'
|
cpu = 'cortex-a15'
|
||||||
else:
|
else:
|
||||||
cpu = 'cortex-a57'
|
cpu = 'cortex-a57'
|
||||||
append = ['-append', '{} {}'.format(root, kernel_cli)]
|
append = ['-append', '{} {}'.format(root, kernel_cli), common.Newline]
|
||||||
cmd.extend(
|
cmd.extend(
|
||||||
[
|
[
|
||||||
# highmem=off needed since v3.0.0 due to:
|
# highmem=off needed since v3.0.0 due to:
|
||||||
|
|||||||
Reference in New Issue
Block a user