* Update build-all.sh * Delete ovf-create.sh * Update patches.sh * Update hdd-image.sh * Create .travis.yml * Update hdd-image.sh * Update hdd-image.sh * Update hdd-image.sh * Update hdd-image.sh * Update ota.sh * Update post-build.sh * Update post-image.sh * Update rauc.sh * Update rootfs-layer.sh * Update hassos-cli * Update hassos-supervisor * Update hassos-config * Update hassos-apparmor * Update hassos-expand * Update hassos-persists-journald * Update hassos-rate * Update hassos-hook.sh * Update hassos-hook.sh * Rename uboot-boot.sh to uboot-boot.ush * Rename uboot-boot.sh to uboot-boot.ush * Update hassos-hook.sh * Rename uboot-boot.sh to uboot-boot.ush * Rename uboot-boot.sh to uboot-boot.ush * Update hassos-hook.sh * Update odroid_c2_defconfig * Update rpi0_w_defconfig * Update rpi2_defconfig * Update rpi3_64_defconfig * Update rpi3_defconfig * Update rpi_defconfig * Update tinker_defconfig * Update enter.sh * Update .travis.yml
32 lines
856 B
Bash
Executable File
32 lines
856 B
Bash
Executable File
#!/bin/bash
|
|
# shellcheck disable=SC2155
|
|
|
|
function hassos_pre_image() {
|
|
local BOOT_DATA="$(path_boot_dir)"
|
|
|
|
cp -t "${BOOT_DATA}" \
|
|
"${BINARIES_DIR}/u-boot.bin" \
|
|
"${BINARIES_DIR}/boot.scr"
|
|
cp -t "${BOOT_DATA}" \
|
|
"${BINARIES_DIR}"/*.dtb \
|
|
"${BINARIES_DIR}/rpi-firmware/bootcode.bin" \
|
|
"${BINARIES_DIR}/rpi-firmware/fixup.dat" \
|
|
"${BINARIES_DIR}/rpi-firmware/start.elf"
|
|
cp -r "${BINARIES_DIR}/rpi-firmware/overlays" "${BOOT_DATA}/"
|
|
cp -f "${BOARD_DIR}/../boot-env.txt" "${BOOT_DATA}/config.txt"
|
|
|
|
# Set cmd options
|
|
echo "dwc_otg.lpm_enable=0 console=tty1" > "${BOOT_DATA}/cmdline.txt"
|
|
|
|
# Enable 64bit support
|
|
if [ "${BOARD_ID}" == "rpi3-64" ]; then
|
|
echo "arm_64bit=1" >> "${BOOT_DATA}/config.txt"
|
|
fi
|
|
}
|
|
|
|
|
|
function hassos_post_image() {
|
|
convert_disk_image_gz
|
|
}
|
|
|