mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
extensions: Add "Extension: ${EXTENSION}: " prefix to some extension logs
Establish some consistency with extension logging. Some extensions use another format:
display_alert "message" "${EXTENSION}" "info"
These were *not* adapted to this new schema.
This commit is contained in:
@@ -8,11 +8,11 @@
|
||||
# To use, enable_extension bluetooth-hciattach, and set BLUETOOTH_HCIATTACH_PARAMS and BLUETOOTH_HCIATTACH_RKFILL_NUM.
|
||||
|
||||
function extension_prepare_config__bluetooth_hciattach() {
|
||||
display_alert "${EXTENSION} ${BOARD}" "initializing config" "info"
|
||||
display_alert "Extension: ${EXTENSION}: ${BOARD}" "initializing config" "info"
|
||||
|
||||
# Bomb if BLUETOOTH_HCIATTACH_PARAMS is not set.
|
||||
if [[ -z "${BLUETOOTH_HCIATTACH_PARAMS}" ]]; then
|
||||
exit_with_error "${EXTENSION} ${BOARD} - BLUETOOTH_HCIATTACH_PARAMS is not set - please set in the board file."
|
||||
exit_with_error "Extension: ${EXTENSION}: ${BOARD} - BLUETOOTH_HCIATTACH_PARAMS is not set - please set in the board file."
|
||||
fi
|
||||
|
||||
# Default BLUETOOTH_HCIATTACH_RKFILL_NUM to 0 if not set.
|
||||
@@ -23,13 +23,13 @@ function extension_prepare_config__bluetooth_hciattach() {
|
||||
|
||||
# Add bluetooth packages to the image (not rootfs cache)
|
||||
function post_family_config__bluetooth_hciattach_add_bluetooth_packages() {
|
||||
display_alert "${EXTENSION} ${BOARD}" "adding bluetooth packages to image" "info"
|
||||
display_alert "Extension: ${EXTENSION}: ${BOARD}" "adding bluetooth packages to image" "info"
|
||||
add_packages_to_image rfkill bluetooth bluez bluez-tools
|
||||
}
|
||||
|
||||
# Deploy the script and the systemd service in the BSP. It'll be enabled below in the image.
|
||||
function post_family_tweaks_bsp__bluetooth_hciattach_add_systemd_service() {
|
||||
display_alert "${EXTENSION} ${BOARD}" "adding bluetooth hciattach service to BSP" "info"
|
||||
display_alert "Extension: ${EXTENSION}: ${BOARD}" "adding bluetooth hciattach service to BSP" "info"
|
||||
: "${destination:?destination is not set}"
|
||||
|
||||
declare script_dir="/usr/local/sbin"
|
||||
@@ -61,7 +61,7 @@ function post_family_tweaks_bsp__bluetooth_hciattach_add_systemd_service() {
|
||||
|
||||
# Enable the service created in the BSP above.
|
||||
function post_family_tweaks__bluetooth_hciattach_enable_bt_service_in_image() {
|
||||
display_alert "${EXTENSION} ${BOARD}" "enabling bluetooth hciattach service in the image" "info"
|
||||
display_alert "Extension: ${EXTENSION}: ${BOARD}" "enabling bluetooth hciattach service in the image" "info"
|
||||
|
||||
chroot_sdcard systemctl --no-reload enable "bluetooth-hciattach.service"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user