Initial checking of building buildroot

This commit is contained in:
Infamy 2018-01-03 10:38:37 -08:00
commit fd92cd784c
7 changed files with 6787 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
output/

22
Dockerfile.vm Normal file
View File

@ -0,0 +1,22 @@
FROM ubuntu:16.04
MAINTAINER Alex Harvey
RUN apt-get update && apt-get install -y wget
# Get buildroot
RUN mkdir /buildroot
WORKDIR /buildroot/
RUN wget https://buildroot.org/downloads/buildroot-2017.11.1.tar.gz
RUN tar xvzf buildroot-2017.11.1.tar.gz
# Get build requirements
RUN apt-get install -y patch cpio python unzip rsync bc bzip2 ncurses-dev git make g++
# Download all the required files
COPY vm/buildroot.config /buildroot/buildroot-2017.11.1/.config
COPY vm/linux.config /buildroot/buildroot-2017.11.1/linux.config
WORKDIR /buildroot/buildroot-2017.11.1/
RUN make source
# CMD /buildroot/buildroot-2017.11.1/make

3
enter.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
docker build -t hassbuildroot -f Dockerfile.vm .
docker run -it --rm hassbuildroot /bin/bash

5
getconfig.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
DID=$(sudo docker ps | grep "hassbuildroot" | awk '{ print $1 }')
docker cp $DID:/buildroot/buildroot-2017.11.1/.config ~/hassbuild/vm/buildroot.config
docker cp $DID:/buildroot/buildroot-2017.11.1/linux.config ~/hassbuild/vm/linux.config

5
getimage.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
mkdir -p output
DID=$(sudo docker ps | grep "hassbuildroot" | awk '{ print $1 }')
docker cp $DID:/buildroot/buildroot-2017.11.1/output/images/rootfs.iso9660 ~/hassbuild/output/rootfs.iso

2720
vm/buildroot.config Normal file

File diff suppressed because it is too large Load Diff

4031
vm/linux.config Normal file

File diff suppressed because it is too large Load Diff