mirror of
https://github.com/armbian/build.git
synced 2025-08-14 07:06:58 +02:00
- bsp-cli: does not require aggregation - bsp-desktop / desktop: requires aggregation - 'desktop' packaged moved out of 'bsp' folder, it is NOT a bsp - make consistent naming/folders - extract .sh generation workflow into 'declare -f' magic functions - `SHOW_DEBIAN=yes` to bump most of `DEBIAN/xxx` stuff to screen - artifact armbian-bsp-desktop: use aggregation, require certain vars, CLI forces `BUILD_DESKTOP=yes`; requires BOARD - artifact armbian-desktop: use aggregation, require certain vars, CLI forces `BUILD_DESKTOP=yes`, not require `BOARD` anymore - cli: commands: fix artifact aliases, reorder - desktop/bsp-desktop: add `config_dump` method; fix `artifact_map_debs` ref subdir and name - artifact bsps: require aggregation to build, not to list what needs to be built - distro-agnostic: fix install of `armbian-bsp-cli` (not `armbian-bsp`) - armbian-bsp-cli: add `_config_dump` method, use configuration with aggregation, add required vars check - distro-specific: fix installation of `fake-ubuntu-advantage-tools`
35 lines
1.2 KiB
Bash
35 lines
1.2 KiB
Bash
#!/usr/bin/env bash
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Copyright (c) 2013-2023 Igor Pecovnik, igor@armbian.com
|
|
#
|
|
# This file is a part of the Armbian Build Framework
|
|
# https://github.com/armbian/build/
|
|
|
|
# copy_all_packages_files_for <folder> to package
|
|
copy_all_packages_files_for() {
|
|
: "${destination:?destination is not set}"
|
|
|
|
local package_name="${1}"
|
|
|
|
# @TODO: rpardini: this was recovered after being assassinated by some insane person who rewrote aggregation in Python
|
|
declare PACKAGES_SEARCH_ROOT_ABSOLUTE_DIRS="
|
|
${SRC}/packages
|
|
${SRC}/config/optional/_any_board/_packages
|
|
${SRC}/config/optional/architectures/${ARCH}/_packages
|
|
${SRC}/config/optional/families/${LINUXFAMILY}/_packages
|
|
${SRC}/config/optional/boards/${BOARD}/_packages
|
|
"
|
|
|
|
for package_src_dir in ${PACKAGES_SEARCH_ROOT_ABSOLUTE_DIRS}; do
|
|
local package_dirpath="${package_src_dir}/${package_name}"
|
|
if [ -d "${package_dirpath}" ]; then
|
|
display_alert "Adding found files" "${package_dirpath} for '${package_name}'" "debug"
|
|
run_host_command_logged cp -r "${package_dirpath}/"* "${destination}/"
|
|
else
|
|
display_alert "No files found in" "${package_dirpath} for '${package_name}'" "debug"
|
|
fi
|
|
done
|
|
}
|