Skip to content

Commit

Permalink
Merge pull request #31 from home-assistant/dev
Browse files Browse the repository at this point in the history
Release 0.6
  • Loading branch information
pvizeli authored Jun 14, 2018
2 parents b9816f0 + d5ff359 commit 4527441
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 10 deletions.
2 changes: 2 additions & 0 deletions buildroot-external/apparmor/hassio-supervisor
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ profile hassio-supervisor flags=(attach_disconnected,mediate_deleted) {

/usr/bin/gdbus mr,
/lib/* mr,
/** r,

/{,var/}run/dbus/system_bus_socket rw,
}

Expand Down
12 changes: 4 additions & 8 deletions buildroot-external/board/raspberrypi/post-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ BOOT_DATA=${BINARIES_DIR}/boot
# Filename
IMAGE_FILE=${BINARIES_DIR}/${HASSOS_ID}_${BOARD_ID}-${VERSION_MAJOR}.${VERSION_BUILD}.img

# Eval kernel name
if [ "$BOARD_ID" == "rpi3-64" ]; then
KERNEL_NAME="Image"
else
KERNEL_NAME="zImage"
fi

# Init boot data
rm -rf ${BOOT_DATA}
mkdir -p ${BOOT_DATA}
Expand All @@ -43,8 +36,11 @@ cp -r ${BINARIES_DIR}/rpi-firmware/overlays ${BOOT_DATA}/
echo "dwc_otg.lpm_enable=0 console=tty1" > ${BOOT_DATA}/cmdline.txt

# Enable 64bit support
if [ "$BOARD_ID" == "rpi3-64" ]; then
if [ "${BOARD_ID}" == "rpi3-64" ]; then
echo "arm_64bit=1" >> ${BOOT_DATA}/config.txt
KERNEL_NAME="Image"
else
KERNEL_NAME="zImage"
fi

# Create other layers
Expand Down
1 change: 1 addition & 0 deletions buildroot-external/board/raspberrypi/rpi/uboot.config
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
CONFIG_TARGET_RPI=y
CONFIG_DEFAULT_DEVICE_TREE="bcm2835-rpi-b"
CONFIG_SYS_TEXT_BASE=0x00008000
1 change: 1 addition & 0 deletions buildroot-external/board/raspberrypi/rpi0-w/uboot.config
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
CONFIG_TARGET_RPI_0_W=y
CONFIG_DEFAULT_DEVICE_TREE="bcm2835-rpi-zero-w"
CONFIG_SYS_TEXT_BASE=0x00008000
2 changes: 2 additions & 0 deletions buildroot-external/board/raspberrypi/rpi2/uboot.config
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
CONFIG_TARGET_RPI_2=y
CONFIG_DEFAULT_DEVICE_TREE="bcm2836-rpi-2-b"
CONFIG_SYS_TEXT_BASE=0x00008000
CONFIG_SYS_TEXT_BASE=0x00008000
1 change: 1 addition & 0 deletions buildroot-external/board/raspberrypi/rpi3-64/uboot.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
CONFIG_TARGET_RPI_3=y
CONFIG_SYS_MALLOC_F_LEN=0x2000
CONFIG_SYS_TEXT_BASE=0x00080000
CONFIG_DEFAULT_DEVICE_TREE="bcm2837-rpi-3-b"
CONFIG_PHYLIB=y
CONFIG_USB_ETHER_LAN78XX=y
1 change: 1 addition & 0 deletions buildroot-external/board/raspberrypi/rpi3/uboot.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
CONFIG_TARGET_RPI_3_32B=y
CONFIG_SYS_MALLOC_F_LEN=0x2000
CONFIG_SYS_TEXT_BASE=0x00008000
CONFIG_DEFAULT_DEVICE_TREE="bcm2837-rpi-3-b"
CONFIG_PHYLIB=y
CONFIG_USB_ETHER_LAN78XX=y
1 change: 0 additions & 1 deletion buildroot-external/board/raspberrypi/uboot.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
CONFIG_ARM=y
CONFIG_ARCH_BCM283X=y
CONFIG_SYS_TEXT_BASE=0x00008000
CONFIG_OF_BOARD_SETUP=y
# CONFIG_CMD_FLASH is not set
CONFIG_CMD_GPIO=y
Expand Down
2 changes: 1 addition & 1 deletion buildroot-external/info
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VERSION_MAJOR=0
VERSION_BUILD=5
VERSION_BUILD=6

HASSOS_NAME="HassOS"
HASSOS_ID="hassos"
Expand Down
1 change: 1 addition & 0 deletions buildroot-external/rootfs-overlay/usr/sbin/hassos-expand
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ fi

# Resize & Reload partition
echo "[INFO] Update hassos-data partition"
sgdisk -e ${DEVICE_ROOT}
sgdisk -d 8 -n 8:0:0 -c 8:"hassos-data" -t 8:"0FC63DAF-8483-4772-8E79-3D69D8477DE4" -u 8:"a52a4597-fa3a-4851-aefd-2fbe9f849079" ${DEVICE_ROOT}
sgdisk -v ${DEVICE_ROOT}
partx -u ${DEVICE_ROOT}
Expand Down
15 changes: 15 additions & 0 deletions scripts/build-all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
set -e

mkdir -p /build/RL

all_platforms=(ova rpi rpi0_w rpi2 rpi3 rpi3_64)
for platform in "${all_platforms[@]}"; do
make -C /build/buildroot BR2_EXTERNAL=/build/buildroot-external \
${platform}_defconfig
make -C /build/buildroot BR2_EXTERNAL=/build/buildroot-external
cp -f /build/buildroot/output/images/hassos_* /build/RL/

make -C /build/buildroot BR2_EXTERNAL=/build/buildroot-external \
clean
done

0 comments on commit 4527441

Please sign in to comment.