# Amlogic Non-Interactive Build Configuration Include # This file configures non-interactive build mode for automated/CI builds # Include this file in board configurations to skip interactive prompts # AMLOGIC TODO: Non-interactive configuration loaded display_alert "AMLOGIC TODO: Loading non-interactive configuration" "${BOARD:-unknown}" "info" # Force non-interactive mode for automated builds # This prevents any interactive prompts during configuration NONINTERACTIVE="yes" export NONINTERACTIVE # Set Debian frontend to noninteractive to avoid apt prompts DEBIAN_FRONTEND="noninteractive" export DEBIAN_FRONTEND # Disable any interactive configuration menus # This ensures build runs without user intervention DISPLAY_MANAGER="none" KERNEL_CONFIGURE="no" UBOOT_CONFIGURE="no" CREATE_PATCHES="no" CREATE_PATCHES_ATF="no" CREATE_PATCHES_CRUST="no" # Skip network configuration prompts SKIP_NET_CONFIG="yes" # Skip hardware detection prompts SKIP_HARDWARE_DETECTION="yes" # Skip package selection menus SKIP_PACKAGE_LIST="yes" # Use default answers for all interactive questions # This is important for CI/CD pipelines FORCE_COLOR="yes" FORCE_LOG_COLOR="yes" # Disable any wait-for-key prompts WAIT_FOR_KEY="no" # Set build options that don't require interaction BUILD_OPTIONS="noconfig" # Automatically accept defaults for all interactive configs AUTO_ACCEPT="yes" # Log the non-interactive mode status display_alert "AMLOGIC TODO: Non-interactive mode enabled" "NONINTERACTIVE=${NONINTERACTIVE}, DEBIAN_FRONTEND=${DEBIAN_FRONTEND}" "info" # Function to check if we're in non-interactive mode function check_noninteractive_mode() { if [[ "${NONINTERACTIVE}" == "yes" ]]; then display_alert "AMLOGIC TODO: Running in non-interactive mode" "Automated build detected" "info" return 0 else display_alert "AMLOGIC TODO: Running in interactive mode" "User interaction allowed" "info" return 1 fi } # Hook to handle non-interactive specific setup function pre_main_config_noninteractive__amlogic() { if check_noninteractive_mode; then display_alert "AMLOGIC TODO: Setting up non-interactive build" "${BOARD}" "info" # Additional non-interactive setup can be added here fi } # End of amlogic-noninteractive.inc