mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-24 13:36:31 +00:00
Initial checking of building buildroot
This commit is contained in:
commit
fd92cd784c
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
output/
|
22
Dockerfile.vm
Normal file
22
Dockerfile.vm
Normal 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
3
enter.sh
Executable 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
5
getconfig.sh
Executable 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
5
getimage.sh
Executable 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
2720
vm/buildroot.config
Normal file
File diff suppressed because it is too large
Load Diff
4031
vm/linux.config
Normal file
4031
vm/linux.config
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user