cleanup
This commit is contained in:
29
buildroot-external/scripts/post-image.sh
Executable file
29
buildroot-external/scripts/post-image.sh
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR=${BR2_EXTERNAL_HASSOS_PATH}/scripts
|
||||
BOARD_DIR=${2}
|
||||
HOOK_FILE=${3}
|
||||
|
||||
. ${BR2_EXTERNAL_HASSOS_PATH}/meta
|
||||
. ${BOARD_DIR}/meta
|
||||
|
||||
. ${SCRIPT_DIR}/rootfs-layer.sh
|
||||
. ${SCRIPT_DIR}/name.sh
|
||||
. ${SCRIPT_DIR}/rauc.sh
|
||||
. ${HOOK_FILE}
|
||||
|
||||
# Cleanup
|
||||
rm -rf "$(path_boot_dir)"
|
||||
mkdir -p "$(path_boot_dir)"
|
||||
|
||||
# Hook pre image build stuff
|
||||
hassos_pre_image
|
||||
|
||||
# Disk & OTA
|
||||
create_disk_image
|
||||
create_ota_update
|
||||
|
||||
# Hook post image build stuff
|
||||
hassos_post_image
|
||||
|
||||
Reference in New Issue
Block a user