mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-24 13:36:31 +00:00
Add submodule
This commit is contained in:
parent
687a8fb962
commit
9541a7e67e
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
[submodule "buildroot"]
|
||||
path = buildroot
|
||||
url = https://github.com/buildroot/buildroot
|
12
Dockerfile
12
Dockerfile
@ -3,14 +3,6 @@ FROM ubuntu:16.04
|
||||
RUN apt-get update && apt-get install -y \
|
||||
wget patch cpio python unzip rsync bc bzip2 ncurses-dev git make g++ python-matplotlib python-numpy graphviz
|
||||
|
||||
ARG BUILDROOT_VERSION=2017.11.2
|
||||
ARG BUILDROOT_BOARD=vm
|
||||
|
||||
# Get buildroot
|
||||
WORKDIR /buildroot
|
||||
RUN wget https://buildroot.org/downloads/buildroot-${BUILDROOT_VERSION}.tar.gz \
|
||||
&& tar xvzf buildroot-${BUILDROOT_VERSION}.tar.gz
|
||||
|
||||
# Download all the required files
|
||||
WORKDIR /buildroot/buildroot-$BUILDROOT_VERSION
|
||||
COPY buildroot-external /buildroot/hassio
|
||||
WORKDIR /build
|
||||
COPY . /build
|
||||
|
@ -5,8 +5,6 @@ Hass.io OS based on buildroot
|
||||
|
||||
# building
|
||||
Running sudo `./enter.sh` will get you into the build docker container.
|
||||
`cd /buildroot/buildroot-2017.11.1`
|
||||
`make`
|
||||
`make -C /build/buildroot BR2_EXTERNAL=/build/buildroot-external`
|
||||
|
||||
From outside the docker container, while it is still running you can use `sudo ./getimage.sh` to get the output image,
|
||||
and `sudo ./getconfig` to backup the config changes to buildroot you made.
|
||||
From outside the docker container, while it is still running you can use `./getimage.sh` to get the output image.
|
||||
|
1
buildroot
Submodule
1
buildroot
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 8a94ff12d232ada68cff5957089a78a1f0b8f192
|
2
enter.sh
2
enter.sh
@ -1,3 +1,3 @@
|
||||
#!/bin/bash
|
||||
docker build -t hassbuildroot .
|
||||
docker run -it --rm hassbuildroot /bin/bash
|
||||
docker run -it --rm -v "$(pwd)/buildroot-external":/build/buildroot-external hassbuildroot /bin/bash
|
||||
|
@ -1,3 +0,0 @@
|
||||
#!/bin/bash
|
||||
DID=$(docker ps | grep "hassbuildroot" | awk '{ print $1 }')
|
||||
docker cp -yr $DID:/buildroot/buildroot-external buildroot-external
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
mkdir -p output
|
||||
DID=$(docker ps | grep "hassbuildroot" | awk '{ print $1 }')
|
||||
docker cp $DID:/buildroot/buildroot-2017.11.2/output/images/rootfs.iso9660 output/rootfs.iso
|
||||
docker cp $DID:/buildroot/buildroot-2017.11.2/output/graphs output/graphs
|
||||
docker cp $DID:/build/buildroot/output/images/rootfs.iso9660 output/rootfs.iso
|
||||
docker cp $DID:/build/buildroot/output/graphs output/graphs
|
||||
|
Loading…
x
Reference in New Issue
Block a user