From b7b8eb7b724499e4b55452e6114d5f0990405e32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Pe=C4=8Dovnik?= Date: Thu, 9 Mar 2023 18:30:40 +0100 Subject: [PATCH] Add / modify (c) in bash scripts (#4922) * Add / modify (c) in bash scripts Signed-off-by: Igor * Add (c) to the source config files --------- Signed-off-by: Igor --- CREDITS.md | 2 ++ compile.sh | 8 +++----- config/sources/amd64.conf | 8 ++++++++ config/sources/arm64.conf | 8 ++++++++ config/sources/armhf.conf | 8 ++++++++ config/sources/common.conf | 8 ++++++++ config/sources/families/bcm2711.conf | 8 ++++++++ config/sources/families/d1.conf | 8 ++++++++ config/sources/families/imx6.conf | 8 ++++++++ config/sources/families/imx7d.conf | 8 ++++++++ config/sources/families/include/meson64_common.inc | 8 ++++++++ config/sources/families/include/meson_common.inc | 8 ++++++++ config/sources/families/include/mvebu-clearfog.inc | 8 ++++++++ config/sources/families/include/mvebu-helios4.inc | 8 ++++++++ config/sources/families/include/rockchip64_common.inc | 8 ++++++++ config/sources/families/include/sunxi64_common.inc | 8 ++++++++ config/sources/families/include/sunxi_common.inc | 8 ++++++++ config/sources/families/include/uefi_common.inc | 8 ++++++++ config/sources/families/jethub.conf | 8 ++++++++ config/sources/families/media.conf | 8 ++++++++ config/sources/families/meson-g12a.conf | 8 ++++++++ config/sources/families/meson-g12b.conf | 8 ++++++++ config/sources/families/meson-gxbb.conf | 8 ++++++++ config/sources/families/meson-gxl.conf | 8 ++++++++ config/sources/families/meson-sm1.conf | 8 ++++++++ config/sources/families/meson8b.conf | 8 ++++++++ config/sources/families/mt7623.conf | 8 ++++++++ config/sources/families/mvebu.conf | 8 ++++++++ config/sources/families/mvebu64.conf | 8 ++++++++ config/sources/families/odroidxu4.conf | 8 ++++++++ config/sources/families/rk322x.conf | 8 ++++++++ config/sources/families/rk3399.conf | 8 ++++++++ config/sources/families/rk3568-odroid.conf | 8 ++++++++ config/sources/families/rk35xx.conf | 8 ++++++++ config/sources/families/rockchip-rk3588.conf | 8 ++++++++ config/sources/families/rockchip.conf | 8 ++++++++ config/sources/families/rockchip64.conf | 8 ++++++++ config/sources/families/rockpis.conf | 8 ++++++++ config/sources/families/s5p6818.conf | 8 ++++++++ config/sources/families/starfive.conf | 8 ++++++++ config/sources/families/starfive2.conf | 8 ++++++++ config/sources/families/sun4i.conf | 8 ++++++++ config/sources/families/sun50iw1.conf | 8 ++++++++ config/sources/families/sun50iw2.conf | 8 ++++++++ config/sources/families/sun50iw6.conf | 8 ++++++++ config/sources/families/sun50iw9.conf | 8 ++++++++ config/sources/families/sun5i.conf | 8 ++++++++ config/sources/families/sun6i.conf | 8 ++++++++ config/sources/families/sun7i.conf | 8 ++++++++ config/sources/families/sun8i-v3s.conf | 8 ++++++++ config/sources/families/sun8i.conf | 8 ++++++++ config/sources/families/sun9i.conf | 8 ++++++++ config/sources/families/uefi-arm64.conf | 8 ++++++++ config/sources/families/uefi-riscv64.conf | 8 ++++++++ config/sources/families/uefi-x86.conf | 8 ++++++++ config/sources/families/virtual.conf | 8 ++++++++ config/sources/families/zynq.conf | 8 ++++++++ config/sources/riscv64.conf | 8 ++++++++ lib/functions/artifacts/artifact-firmware.sh | 9 +++++++++ lib/functions/artifacts/artifact-full_firmware.sh | 9 +++++++++ lib/functions/artifacts/artifact-kernel.sh | 9 +++++++++ lib/functions/artifacts/artifact-rootfs.sh | 9 +++++++++ lib/functions/artifacts/artifact-uboot.sh | 9 +++++++++ lib/functions/artifacts/artifacts-obtain.sh | 9 +++++++++ lib/functions/artifacts/artifacts-registry.sh | 9 +++++++++ lib/functions/bsp/bsp-cli.sh | 8 ++++++++ lib/functions/bsp/bsp-desktop.sh | 7 +++++++ lib/functions/bsp/utils-bsp.sh | 9 ++++++++- lib/functions/cli/cli-artifact.sh | 9 +++++++++ lib/functions/cli/cli-build.sh | 9 +++++++++ lib/functions/cli/cli-configdump.sh | 9 +++++++++ lib/functions/cli/cli-distccd.sh | 9 +++++++++ lib/functions/cli/cli-docker.sh | 9 +++++++++ lib/functions/cli/cli-jsoninfo.sh | 9 +++++++++ lib/functions/cli/cli-oras.sh | 9 +++++++++ lib/functions/cli/cli-patch.sh | 9 +++++++++ lib/functions/cli/cli-requirements.sh | 9 +++++++++ lib/functions/cli/cli-undecided.sh | 9 +++++++++ lib/functions/cli/commands.sh | 9 +++++++++ lib/functions/cli/entrypoint.sh | 9 +++++++++ lib/functions/cli/utils-cli.sh | 9 +++++++++ lib/functions/compilation/armbian-kernel.sh | 9 +++++++++ lib/functions/compilation/atf.sh | 8 ++++++++ lib/functions/compilation/ccache.sh | 9 +++++++++ lib/functions/compilation/distcc.sh | 9 +++++++++ lib/functions/compilation/kernel-config.sh | 9 +++++++++ lib/functions/compilation/kernel-debs.sh | 7 +++++++ lib/functions/compilation/kernel-git-bundle.sh | 9 +++++++++ lib/functions/compilation/kernel-git-oras.sh | 9 +++++++++ lib/functions/compilation/kernel-git.sh | 9 +++++++++ lib/functions/compilation/kernel-make.sh | 7 +++++++ lib/functions/compilation/kernel-patching.sh | 9 +++++++++ lib/functions/compilation/kernel.sh | 8 ++++++++ .../compilation/packages/armbian-config-deb.sh | 9 +++++++++ lib/functions/compilation/packages/firmware-deb.sh | 9 +++++++++ lib/functions/compilation/packages/plymouth-deb.sh | 9 +++++++++ lib/functions/compilation/packages/utils-dpkgdeb.sh | 9 +++++++++ lib/functions/compilation/packages/zsh-deb.sh | 9 +++++++++ lib/functions/compilation/patch/drivers-harness.sh | 9 +++++++++ lib/functions/compilation/patch/drivers_network.sh | 9 ++++++++- lib/functions/compilation/patch/kernel-drivers.sh | 9 +++++++++ lib/functions/compilation/patch/patching.sh | 7 +++++++ lib/functions/compilation/uboot-git.sh | 9 +++++++++ lib/functions/compilation/uboot-patching.sh | 9 +++++++++ lib/functions/compilation/uboot.sh | 7 +++++++ lib/functions/compilation/utils-compilation.sh | 8 +++----- lib/functions/configuration/aggregation.sh | 7 +++++++ lib/functions/configuration/compilation-config.sh | 9 +++++++++ lib/functions/configuration/config-desktop.sh | 7 +++++++ lib/functions/configuration/interactive.sh | 9 +++++++++ lib/functions/configuration/main-config.sh | 10 ++++------ lib/functions/configuration/menu.sh | 9 +++++++++ lib/functions/configuration/package-lists.sh | 9 +++++++++ lib/functions/general/chroot-helpers.sh | 8 ++++++++ lib/functions/general/cleaning.sh | 9 +++++++++ lib/functions/general/countdown.sh | 9 +++++++++ lib/functions/general/downloads.sh | 8 ++++++++ lib/functions/general/extensions.sh | 9 +++++++++ lib/functions/general/git-ref2info.sh | 9 +++++++++ lib/functions/general/git.sh | 8 ++++++++ lib/functions/general/github-actions.sh | 9 +++++++++ lib/functions/general/hash-files.sh | 9 +++++++++ lib/functions/general/memoize-cached.sh | 9 +++++++++ lib/functions/general/oci-oras.sh | 9 +++++++++ lib/functions/general/python-tools.sh | 9 +++++++++ lib/functions/general/retry.sh | 9 +++++++++ lib/functions/general/shellcheck.sh | 9 +++++++++ lib/functions/host/apt-cacher-ng.sh | 9 +++++++++ lib/functions/host/basic-deps.sh | 8 ++++++++ lib/functions/host/docker.sh | 9 +++++++++ lib/functions/host/external-toolchains.sh | 9 +++++++++ lib/functions/host/host-release.sh | 9 +++++++++ lib/functions/host/host-utils.sh | 7 +++++++ lib/functions/host/mktemp-utils.sh | 9 +++++++++ lib/functions/host/mountpoints.sh | 9 +++++++++ lib/functions/host/prepare-host.sh | 8 ++++++++ lib/functions/host/tmpfs-utils.sh | 9 +++++++++ lib/functions/host/wsl2.sh | 9 +++++++++ lib/functions/image/compress-checksum.sh | 9 +++++++++ lib/functions/image/fingerprint.sh | 8 ++++++++ lib/functions/image/initrd.sh | 8 ++++++++ lib/functions/image/loop.sh | 9 +++++++++ lib/functions/image/partitioning.sh | 8 ++++++++ lib/functions/image/rootfs-to-image.sh | 8 ++++++++ lib/functions/image/write-device.sh | 9 +++++++++ lib/functions/logging/capture.sh | 9 +++++++++ lib/functions/logging/debug-dump.sh | 9 +++++++++ lib/functions/logging/display-alert.sh | 9 +++++++++ lib/functions/logging/export-logs.sh | 9 +++++++++ lib/functions/logging/logging.sh | 7 +++++++ lib/functions/logging/runners.sh | 7 +++++++ lib/functions/logging/section-logging.sh | 9 +++++++++ lib/functions/logging/stacktraces.sh | 9 +++++++++ lib/functions/logging/trap-logging.sh | 9 +++++++++ lib/functions/logging/traps.sh | 7 +++++++ lib/functions/main/build-packages.sh | 9 +++++++++ lib/functions/main/config-interactive.sh | 9 +++++++++ lib/functions/main/config-prepare.sh | 7 +++++++ lib/functions/main/default-build.sh | 9 +++++++++ lib/functions/main/rootfs-image.sh | 7 +++++++ lib/functions/main/start-end.sh | 9 +++++++++ lib/functions/rootfs/apt-install.sh | 7 +++++++ lib/functions/rootfs/apt-sources.sh | 7 +++++++ lib/functions/rootfs/boot_logo.sh | 8 ++++++++ lib/functions/rootfs/create-cache.sh | 7 +++++++ lib/functions/rootfs/customize.sh | 8 ++++++++ lib/functions/rootfs/distro-agnostic.sh | 7 +++++++ lib/functions/rootfs/distro-specific.sh | 7 +++++++ lib/functions/rootfs/post-tweaks.sh | 7 +++++++ lib/functions/rootfs/qemu-static.sh | 9 +++++++++ lib/functions/rootfs/rootfs-create.sh | 7 +++++++ lib/functions/rootfs/rootfs-desktop.sh | 7 +++++++ lib/functions/rootfs/systemd-utils.sh | 9 +++++++++ lib/functions/rootfs/trap-rootfs.sh | 9 +++++++++ lib/single.sh | 10 ++++------ lib/tools/gen-library.sh | 8 ++++++++ lib/tools/oras.sh | 7 +++++++ lib/tools/shellcheck.sh | 7 +++++++ lib/tools/shellfmt.sh | 7 +++++++ 179 files changed, 1461 insertions(+), 24 deletions(-) create mode 100644 CREDITS.md diff --git a/CREDITS.md b/CREDITS.md new file mode 100644 index 000000000..c1fec70bc --- /dev/null +++ b/CREDITS.md @@ -0,0 +1,2 @@ +[https://github.com/orgs/armbian/people](https://github.com/orgs/armbian/people) +[https://www.armbian.com/authors](https://www.armbian.com/authors) diff --git a/compile.sh b/compile.sh index b17fd7014..f5628091e 100755 --- a/compile.sh +++ b/compile.sh @@ -1,12 +1,10 @@ #!/usr/bin/env bash # -# Copyright (c) 2013-2021 Igor Pecovnik, igor.pecovnik@gma**.com +# SPDX-License-Identifier: GPL-2.0 # -# This file is licensed under the terms of the GNU General Public -# License version 2. This program is licensed "as is" without any -# warranty of any kind, whether express or implied. +# Copyright (c) 2013-2023 Igor Pecovnik, igor@armbian.com # -# This file is a part of the Armbian build script +# This file is a part of the Armbian Build Framework # https://github.com/armbian/build/ # DO NOT EDIT THIS FILE diff --git a/config/sources/amd64.conf b/config/sources/amd64.conf index 7f2483005..cb1963b1b 100644 --- a/config/sources/amd64.conf +++ b/config/sources/amd64.conf @@ -1,3 +1,11 @@ +# +# 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/ +# # 'common.conf' is already sourced when this arch is sourced. export ARCH='amd64' # Debian name $(dpkg-architecture -qDEB_HOST_ARCH) diff --git a/config/sources/arm64.conf b/config/sources/arm64.conf index e474c0395..d7b087418 100644 --- a/config/sources/arm64.conf +++ b/config/sources/arm64.conf @@ -1,3 +1,11 @@ +# +# 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/ +# # 'common.conf' is already sourced when this arch is sourced. export ARCH='arm64' diff --git a/config/sources/armhf.conf b/config/sources/armhf.conf index 22f50215c..ea818feef 100644 --- a/config/sources/armhf.conf +++ b/config/sources/armhf.conf @@ -1,3 +1,11 @@ +# +# 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/ +# # 'common.conf' is already sourced when this arch is sourced. export ARCH='armhf' diff --git a/config/sources/common.conf b/config/sources/common.conf index bc6263391..a2acea198 100644 --- a/config/sources/common.conf +++ b/config/sources/common.conf @@ -1,3 +1,11 @@ +# +# 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/ +# # this is sourced before any other arch specific config file, always. see main-config.sh export FAST_CREATE_IMAGE='yes' diff --git a/config/sources/families/bcm2711.conf b/config/sources/families/bcm2711.conf index 02bb8a3ab..453e1d1ff 100644 --- a/config/sources/families/bcm2711.conf +++ b/config/sources/families/bcm2711.conf @@ -1,3 +1,11 @@ +# +# 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/ +# enable_extension "flash-kernel" export LINUXFAMILY=bcm2711 export ARCH=arm64 diff --git a/config/sources/families/d1.conf b/config/sources/families/d1.conf index a33e6cbe3..34196874f 100644 --- a/config/sources/families/d1.conf +++ b/config/sources/families/d1.conf @@ -1,3 +1,11 @@ +# +# 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/ +# ARCH="riscv64" BOOTSOURCE='https://github.com/smaeul/u-boot' diff --git a/config/sources/families/imx6.conf b/config/sources/families/imx6.conf index 8f7873572..ac6573498 100644 --- a/config/sources/families/imx6.conf +++ b/config/sources/families/imx6.conf @@ -1,3 +1,11 @@ +# +# 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/ +# CPUMIN=392000 CPUMAX=996000 GOVERNOR=interactive diff --git a/config/sources/families/imx7d.conf b/config/sources/families/imx7d.conf index 225666015..e2cb9729e 100644 --- a/config/sources/families/imx7d.conf +++ b/config/sources/families/imx7d.conf @@ -1,3 +1,11 @@ +# +# 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/ +# BOOTSOURCE='https://source.codeaurora.org/external/imx/uboot-imx' BOOTDIR='u-boot-sabre' BOOTCONFIG="mx7dsabresd_defconfig" diff --git a/config/sources/families/include/meson64_common.inc b/config/sources/families/include/meson64_common.inc index 072d53ecc..6d99014fa 100644 --- a/config/sources/families/include/meson64_common.inc +++ b/config/sources/families/include/meson64_common.inc @@ -1,3 +1,11 @@ +# +# 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/ +# UBOOT_TARGET_MAP="${UBOOT_TARGET_MAP:-u-boot-dtb.img;;u-boot.bin.sd.bin:u-boot.bin u-boot-dtb.img}" BOOTSCRIPT="boot-meson64.cmd:boot.cmd" BOOTENV_FILE='meson.txt' diff --git a/config/sources/families/include/meson_common.inc b/config/sources/families/include/meson_common.inc index 42bb0fa15..d90fc20e9 100644 --- a/config/sources/families/include/meson_common.inc +++ b/config/sources/families/include/meson_common.inc @@ -1,3 +1,11 @@ +# +# 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/ +# ARCH=armhf LINUXFAMILY=meson KERNEL_IMAGE_TYPE=uImage diff --git a/config/sources/families/include/mvebu-clearfog.inc b/config/sources/families/include/mvebu-clearfog.inc index 4be6650fb..70bc43fe4 100644 --- a/config/sources/families/include/mvebu-clearfog.inc +++ b/config/sources/families/include/mvebu-clearfog.inc @@ -1,3 +1,11 @@ +# +# 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/ +# case $BRANCH in legacy | current) diff --git a/config/sources/families/include/mvebu-helios4.inc b/config/sources/families/include/mvebu-helios4.inc index e6c29dcea..e15bc80e9 100644 --- a/config/sources/families/include/mvebu-helios4.inc +++ b/config/sources/families/include/mvebu-helios4.inc @@ -1,3 +1,11 @@ +# +# 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/ +# case $BRANCH in legacy | current | edge) diff --git a/config/sources/families/include/rockchip64_common.inc b/config/sources/families/include/rockchip64_common.inc index 80c3dea9b..bfa5c7b93 100644 --- a/config/sources/families/include/rockchip64_common.inc +++ b/config/sources/families/include/rockchip64_common.inc @@ -1,3 +1,11 @@ +# +# 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/ +# enable_extension "rkbin-tools" ARCH=arm64 KERNEL_IMAGE_TYPE=Image diff --git a/config/sources/families/include/sunxi64_common.inc b/config/sources/families/include/sunxi64_common.inc index 500edad7a..6f9ca81ef 100644 --- a/config/sources/families/include/sunxi64_common.inc +++ b/config/sources/families/include/sunxi64_common.inc @@ -1,3 +1,11 @@ +# +# 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/ +# enable_extension "sunxi-tools" export ARCH=arm64 export ATF_TARGET_MAP="PLAT=$ATF_PLAT DEBUG=1 bl31;;build/$ATF_PLAT/debug/bl31.bin" diff --git a/config/sources/families/include/sunxi_common.inc b/config/sources/families/include/sunxi_common.inc index dd5fab619..8101d3ff8 100644 --- a/config/sources/families/include/sunxi_common.inc +++ b/config/sources/families/include/sunxi_common.inc @@ -1,3 +1,11 @@ +# +# 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/ +# enable_extension "sunxi-tools" export ARCH=armhf export BOOTDELAY=1 diff --git a/config/sources/families/include/uefi_common.inc b/config/sources/families/include/uefi_common.inc index 09fb13816..ffe822763 100644 --- a/config/sources/families/include/uefi_common.inc +++ b/config/sources/families/include/uefi_common.inc @@ -1,3 +1,11 @@ +# +# 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/ +# declare -g SERIALCON="tty1" # Cant reasonably expect UEFI stuff to have a serial console. Customize if otherwise. declare -g SKIP_BOOTSPLASH="yes" # No splash. declare -g UEFI_GRUB_TIMEOUT=${UEFI_GRUB_TIMEOUT:-3} # Default 3-seconds timeout for GRUB menu. diff --git a/config/sources/families/jethub.conf b/config/sources/families/jethub.conf index f62a6c044..eaa85ca15 100644 --- a/config/sources/families/jethub.conf +++ b/config/sources/families/jethub.conf @@ -1,3 +1,11 @@ +# +# 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/ +# source "${BASH_SOURCE%/*}/include/meson64_common.inc" UBOOT_TARGET_MAP="u-boot-dtb.img;;u-boot.bin.sd.bin:u-boot.bin u-boot.bin:u-boot.nosd.bin u-boot-dtb.img" diff --git a/config/sources/families/media.conf b/config/sources/families/media.conf index f7f71d847..b976de9b9 100644 --- a/config/sources/families/media.conf +++ b/config/sources/families/media.conf @@ -1,3 +1,11 @@ +# +# 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/ +# source "${BASH_SOURCE%/*}/include/rockchip64_common.inc" if [[ $BOARD = jetson-nano ]]; then diff --git a/config/sources/families/meson-g12a.conf b/config/sources/families/meson-g12a.conf index 0f6128b62..6bce7c839 100644 --- a/config/sources/families/meson-g12a.conf +++ b/config/sources/families/meson-g12a.conf @@ -1,3 +1,11 @@ +# +# 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/ +# source "${BASH_SOURCE%/*}/include/meson64_common.inc" ASOUND_STATE="asound.state.meson64" diff --git a/config/sources/families/meson-g12b.conf b/config/sources/families/meson-g12b.conf index cc2065da3..c3f4ef259 100644 --- a/config/sources/families/meson-g12b.conf +++ b/config/sources/families/meson-g12b.conf @@ -1,3 +1,11 @@ +# +# 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/ +# source "${BASH_SOURCE%/*}/include/meson64_common.inc" ASOUND_STATE="asound.state.meson64" diff --git a/config/sources/families/meson-gxbb.conf b/config/sources/families/meson-gxbb.conf index 33e8ea9c1..f8b2c1382 100644 --- a/config/sources/families/meson-gxbb.conf +++ b/config/sources/families/meson-gxbb.conf @@ -1,3 +1,11 @@ +# +# 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/ +# source "${BASH_SOURCE%/*}/include/meson64_common.inc" if [[ $BOARD == odroidc2 ]]; then UBOOT_TARGET_MAP=";;$SRC/cache/sources/odroidc2-blobs/bl1.bin.hardkernel u-boot.bin" diff --git a/config/sources/families/meson-gxl.conf b/config/sources/families/meson-gxl.conf index 42669592c..758ad7781 100644 --- a/config/sources/families/meson-gxl.conf +++ b/config/sources/families/meson-gxl.conf @@ -1,3 +1,11 @@ +# +# 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/ +# source "${BASH_SOURCE%/*}/include/meson64_common.inc" if [[ $BOARD == lafrite ]]; then diff --git a/config/sources/families/meson-sm1.conf b/config/sources/families/meson-sm1.conf index a8f9ebb9b..106afd3b6 100644 --- a/config/sources/families/meson-sm1.conf +++ b/config/sources/families/meson-sm1.conf @@ -1,3 +1,11 @@ +# +# 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/ +# source "${BASH_SOURCE%/*}/include/meson64_common.inc" ASOUND_STATE="asound.state.meson64" CPUMIN=667000 diff --git a/config/sources/families/meson8b.conf b/config/sources/families/meson8b.conf index df58c42ef..3503c9abb 100644 --- a/config/sources/families/meson8b.conf +++ b/config/sources/families/meson8b.conf @@ -1 +1,9 @@ +# +# 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/ +# source "${BASH_SOURCE%/*}/include/meson_common.inc" diff --git a/config/sources/families/mt7623.conf b/config/sources/families/mt7623.conf index 9e7afe577..7773dadd3 100644 --- a/config/sources/families/mt7623.conf +++ b/config/sources/families/mt7623.conf @@ -1,3 +1,11 @@ +# +# 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/ +# BOOTSCRIPT='boot-mt7623.cmd:boot.cmd' BOOTENV_FILE='mt7623.txt' UBOOT_TARGET_MAP=";;$SRC/packages/blobs/mt7623n/BPI-R2-HEAD440-0k.img $SRC/packages/blobs/mt7623n/BPI-R2-HEAD1-512b.img $SRC/packages/blobs/mt7623n/BPI-R2-preloader-2k.img $SRC/packages/blobs/mt7623n/BPI-R2-EMMC-boot0-0K-0905.img u-boot.bin" diff --git a/config/sources/families/mvebu.conf b/config/sources/families/mvebu.conf index 7e8a4c424..2af87c573 100644 --- a/config/sources/families/mvebu.conf +++ b/config/sources/families/mvebu.conf @@ -1,3 +1,11 @@ +# +# 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/ +# enable_extension "marvell-tools" ARCH=armhf if [[ $BOARD == helios4 ]]; then diff --git a/config/sources/families/mvebu64.conf b/config/sources/families/mvebu64.conf index bb039c462..1365b9cb7 100644 --- a/config/sources/families/mvebu64.conf +++ b/config/sources/families/mvebu64.conf @@ -1,3 +1,11 @@ +# +# 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/ +# enable_extension "marvell-tools" ARCH=arm64 BOOTBRANCH='tag:v2022.04' diff --git a/config/sources/families/odroidxu4.conf b/config/sources/families/odroidxu4.conf index f3a2f5a5a..db806cec7 100644 --- a/config/sources/families/odroidxu4.conf +++ b/config/sources/families/odroidxu4.conf @@ -1,3 +1,11 @@ +# +# 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/ +# ARCH=armhf BOOTSOURCE='https://github.com/hardkernel/u-boot.git' BOOTSCRIPT='boot-odroid-xu4.ini:boot.ini' diff --git a/config/sources/families/rk322x.conf b/config/sources/families/rk322x.conf index 8fbaf3feb..26aa9122e 100644 --- a/config/sources/families/rk322x.conf +++ b/config/sources/families/rk322x.conf @@ -1,3 +1,11 @@ +# +# 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/ +# BOOTSCRIPT="boot-rk322x.cmd:boot.cmd" BOOTENV_FILE='rk322x.txt' OVERLAY_PREFIX='rk322x' diff --git a/config/sources/families/rk3399.conf b/config/sources/families/rk3399.conf index cc1f3ba71..37ce606f7 100644 --- a/config/sources/families/rk3399.conf +++ b/config/sources/families/rk3399.conf @@ -1,3 +1,11 @@ +# +# 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/ +# source "${BASH_SOURCE%/*}/include/rockchip64_common.inc" case $BRANCH in diff --git a/config/sources/families/rk3568-odroid.conf b/config/sources/families/rk3568-odroid.conf index c20d9b90a..a38c42059 100644 --- a/config/sources/families/rk3568-odroid.conf +++ b/config/sources/families/rk3568-odroid.conf @@ -1,3 +1,11 @@ +# +# 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/ +# source "${BASH_SOURCE%/*}/include/rockchip64_common.inc" # Disable uboot compilation; this board boots from HK stuff in SPI first. diff --git a/config/sources/families/rk35xx.conf b/config/sources/families/rk35xx.conf index a6e864a02..7aa1b32f4 100644 --- a/config/sources/families/rk35xx.conf +++ b/config/sources/families/rk35xx.conf @@ -1,3 +1,11 @@ +# +# 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/ +# source "${BASH_SOURCE%/*}/include/rockchip64_common.inc" BOOTSOURCE='https://github.com/radxa/u-boot.git' diff --git a/config/sources/families/rockchip-rk3588.conf b/config/sources/families/rockchip-rk3588.conf index cbf14333c..024c09a14 100644 --- a/config/sources/families/rockchip-rk3588.conf +++ b/config/sources/families/rockchip-rk3588.conf @@ -1,3 +1,11 @@ +# +# 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/ +# source "${BASH_SOURCE%/*}/include/rockchip64_common.inc" BOOTSOURCE='https://github.com/radxa/u-boot.git' diff --git a/config/sources/families/rockchip.conf b/config/sources/families/rockchip.conf index f08bad958..4622d6cc9 100644 --- a/config/sources/families/rockchip.conf +++ b/config/sources/families/rockchip.conf @@ -1,3 +1,11 @@ +# +# 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/ +# enable_extension "rkbin-tools" ARCH=armhf BOOTSCRIPT="boot-rockchip.cmd:boot.cmd" diff --git a/config/sources/families/rockchip64.conf b/config/sources/families/rockchip64.conf index 7734f69a7..fbf0a1f80 100644 --- a/config/sources/families/rockchip64.conf +++ b/config/sources/families/rockchip64.conf @@ -1,3 +1,11 @@ +# +# 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/ +# source "${BASH_SOURCE%/*}/include/rockchip64_common.inc" case $BRANCH in diff --git a/config/sources/families/rockpis.conf b/config/sources/families/rockpis.conf index cef23afba..ce6e93d71 100644 --- a/config/sources/families/rockpis.conf +++ b/config/sources/families/rockpis.conf @@ -1,3 +1,11 @@ +# +# 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/ +# source "${BASH_SOURCE%/*}/include/rockchip64_common.inc" #BOOTPATCHDIR="u-boot-rockchip64" BOOTENV_FILE='rockpis.txt' diff --git a/config/sources/families/s5p6818.conf b/config/sources/families/s5p6818.conf index c302e4683..6c4bea2f1 100644 --- a/config/sources/families/s5p6818.conf +++ b/config/sources/families/s5p6818.conf @@ -1,3 +1,11 @@ +# +# 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/ +# ARCH=arm64 BOOTSOURCE='https://github.com/rafaello7/u-boot-nanopi-m3' BOOTBRANCH='branch:master' diff --git a/config/sources/families/starfive.conf b/config/sources/families/starfive.conf index 64e9e99fe..e89019dde 100644 --- a/config/sources/families/starfive.conf +++ b/config/sources/families/starfive.conf @@ -1,3 +1,11 @@ +# +# 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/ +# ARCH="riscv64" LINUXCONFIG="linux-starfive-${BRANCH}" diff --git a/config/sources/families/starfive2.conf b/config/sources/families/starfive2.conf index f037f6735..798dd450c 100644 --- a/config/sources/families/starfive2.conf +++ b/config/sources/families/starfive2.conf @@ -1,3 +1,11 @@ +# +# 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/ +# ARCH="riscv64" LINUXCONFIG="linux-starfive2-${BRANCH}" diff --git a/config/sources/families/sun4i.conf b/config/sources/families/sun4i.conf index 021163578..c754b6035 100644 --- a/config/sources/families/sun4i.conf +++ b/config/sources/families/sun4i.conf @@ -1,3 +1,11 @@ +# +# 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/ +# source "${BASH_SOURCE%/*}/include/sunxi_common.inc" OVERLAY_PREFIX='sun4i-a10' [[ -z $CPUMIN ]] && CPUMIN=480000 diff --git a/config/sources/families/sun50iw1.conf b/config/sources/families/sun50iw1.conf index a38be8a52..b287cb16a 100644 --- a/config/sources/families/sun50iw1.conf +++ b/config/sources/families/sun50iw1.conf @@ -1,3 +1,11 @@ +# +# 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/ +# ATF_PLAT="sun50i_a64" source "${BASH_SOURCE%/*}/include/sunxi64_common.inc" OVERLAY_PREFIX='sun50i-a64' diff --git a/config/sources/families/sun50iw2.conf b/config/sources/families/sun50iw2.conf index 515f4bf66..d3ef04387 100644 --- a/config/sources/families/sun50iw2.conf +++ b/config/sources/families/sun50iw2.conf @@ -1,3 +1,11 @@ +# +# 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/ +# ATF_PLAT="sun50i_a64" source "${BASH_SOURCE%/*}/include/sunxi64_common.inc" OVERLAY_PREFIX='sun50i-h5' diff --git a/config/sources/families/sun50iw6.conf b/config/sources/families/sun50iw6.conf index 6b05a17b9..ce1584cf9 100644 --- a/config/sources/families/sun50iw6.conf +++ b/config/sources/families/sun50iw6.conf @@ -1,3 +1,11 @@ +# +# 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/ +# ATF_PLAT="sun50i_h6" source "${BASH_SOURCE%/*}/include/sunxi64_common.inc" OVERLAY_PREFIX='sun50i-h6' diff --git a/config/sources/families/sun50iw9.conf b/config/sources/families/sun50iw9.conf index 985568bba..d2a369160 100644 --- a/config/sources/families/sun50iw9.conf +++ b/config/sources/families/sun50iw9.conf @@ -1,3 +1,11 @@ +# +# 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/ +# source "${BASH_SOURCE%/*}/include/sunxi64_common.inc" [[ -z $CPUMIN ]] && CPUMIN=480000 diff --git a/config/sources/families/sun5i.conf b/config/sources/families/sun5i.conf index a2803729c..160debeee 100644 --- a/config/sources/families/sun5i.conf +++ b/config/sources/families/sun5i.conf @@ -1,3 +1,11 @@ +# +# 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/ +# source "${BASH_SOURCE%/*}/include/sunxi_common.inc" OVERLAY_PREFIX='sun5i-a13' [[ -z $CPUMIN ]] && CPUMIN=480000 diff --git a/config/sources/families/sun6i.conf b/config/sources/families/sun6i.conf index ccdf67284..bc64133a4 100644 --- a/config/sources/families/sun6i.conf +++ b/config/sources/families/sun6i.conf @@ -1,3 +1,11 @@ +# +# 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/ +# source "${BASH_SOURCE%/*}/include/sunxi_common.inc" OVERLAY_PREFIX='sun6i-a31s' [[ -z $CPUMIN ]] && CPUMIN=480000 diff --git a/config/sources/families/sun7i.conf b/config/sources/families/sun7i.conf index 164c10308..ee0ca5d6f 100644 --- a/config/sources/families/sun7i.conf +++ b/config/sources/families/sun7i.conf @@ -1,3 +1,11 @@ +# +# 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/ +# source "${BASH_SOURCE%/*}/include/sunxi_common.inc" OVERLAY_PREFIX='sun7i-a20' [[ -z $CPUMIN ]] && CPUMIN=480000 diff --git a/config/sources/families/sun8i-v3s.conf b/config/sources/families/sun8i-v3s.conf index 6faceb65f..5aa99194f 100644 --- a/config/sources/families/sun8i-v3s.conf +++ b/config/sources/families/sun8i-v3s.conf @@ -1,3 +1,11 @@ +# +# 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/ +# source "${BASH_SOURCE%/*}/include/sunxi_common.inc" OVERLAY_PREFIX='sun8i-v3s' diff --git a/config/sources/families/sun8i.conf b/config/sources/families/sun8i.conf index fe6e4efea..2958fa491 100644 --- a/config/sources/families/sun8i.conf +++ b/config/sources/families/sun8i.conf @@ -1,3 +1,11 @@ +# +# 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/ +# source "${BASH_SOURCE%/*}/include/sunxi_common.inc" if [[ -z ${OVERLAY_PREFIX} ]]; then diff --git a/config/sources/families/sun9i.conf b/config/sources/families/sun9i.conf index 5a9e42755..2987e0a18 100644 --- a/config/sources/families/sun9i.conf +++ b/config/sources/families/sun9i.conf @@ -1 +1,9 @@ +# +# 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/ +# source "${BASH_SOURCE%/*}/include/sunxi_common.inc" diff --git a/config/sources/families/uefi-arm64.conf b/config/sources/families/uefi-arm64.conf index d82459cd8..43227b06f 100644 --- a/config/sources/families/uefi-arm64.conf +++ b/config/sources/families/uefi-arm64.conf @@ -1,3 +1,11 @@ +# +# 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/ +# # Important: LINUXFAMILY and ARCH are defined _before_ including the common family include export LINUXFAMILY="arm64" export ARCH="arm64" diff --git a/config/sources/families/uefi-riscv64.conf b/config/sources/families/uefi-riscv64.conf index 5104583c5..0b64c46f3 100644 --- a/config/sources/families/uefi-riscv64.conf +++ b/config/sources/families/uefi-riscv64.conf @@ -1,3 +1,11 @@ +# +# 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/ +# # Important: LINUXFAMILY and ARCH are defined _before_ including the common family include export UBOOT_USE_GCC="none" export UEFI_GRUB_TERMINAL="gfxterm" diff --git a/config/sources/families/uefi-x86.conf b/config/sources/families/uefi-x86.conf index 9ef7f90c7..468001f05 100644 --- a/config/sources/families/uefi-x86.conf +++ b/config/sources/families/uefi-x86.conf @@ -1,3 +1,11 @@ +# +# 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/ +# # Important: LINUXFAMILY and ARCH are defined _before_ including the common family include [[ "$BUILD_DESKTOP" == yes && "$RELEASE" == jammy ]] && enable_extension "nvidia" export UEFI_GRUB_TERMINAL="gfxterm" diff --git a/config/sources/families/virtual.conf b/config/sources/families/virtual.conf index b5be13db8..bf5cc24c3 100644 --- a/config/sources/families/virtual.conf +++ b/config/sources/families/virtual.conf @@ -1,3 +1,11 @@ +# +# 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/ +# BOOTBRANCH='tag:v2021.04' export KERNEL_MAJOR_MINOR="5.15" # Major and minor versions of this kernel. diff --git a/config/sources/families/zynq.conf b/config/sources/families/zynq.conf index da228cc0a..7bd0a1419 100644 --- a/config/sources/families/zynq.conf +++ b/config/sources/families/zynq.conf @@ -1,3 +1,11 @@ +# +# 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/ +# ARCH=armhf SERIALCON='ttyPS0' LINUXFAMILY=zynq diff --git a/config/sources/riscv64.conf b/config/sources/riscv64.conf index f090881ab..88d7dd3a4 100644 --- a/config/sources/riscv64.conf +++ b/config/sources/riscv64.conf @@ -1,3 +1,11 @@ +# +# 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/ +# # 'common.conf' is already sourced when this arch is sourced. export ARCH='riscv64' diff --git a/lib/functions/artifacts/artifact-firmware.sh b/lib/functions/artifacts/artifact-firmware.sh index e7ef489ba..8f03827cf 100644 --- a/lib/functions/artifacts/artifact-firmware.sh +++ b/lib/functions/artifacts/artifact-firmware.sh @@ -1,3 +1,12 @@ +#!/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/ + function artifact_firmware_prepare_version() { artifact_version="undetermined" # outer scope artifact_version_reason="undetermined" # outer scope diff --git a/lib/functions/artifacts/artifact-full_firmware.sh b/lib/functions/artifacts/artifact-full_firmware.sh index 7caf1e88e..7b51b1655 100644 --- a/lib/functions/artifacts/artifact-full_firmware.sh +++ b/lib/functions/artifacts/artifact-full_firmware.sh @@ -1,3 +1,12 @@ +#!/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/ + function artifact_full_firmware_prepare_version() { artifact_version="undetermined" # outer scope artifact_version_reason="undetermined" # outer scope diff --git a/lib/functions/artifacts/artifact-kernel.sh b/lib/functions/artifacts/artifact-kernel.sh index de458272f..6b290aff7 100644 --- a/lib/functions/artifacts/artifact-kernel.sh +++ b/lib/functions/artifacts/artifact-kernel.sh @@ -1,3 +1,12 @@ +#!/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/ + # This is run in a logging section. # Prepare the version, "sans-repos": just the armbian/build repo contents are available. # It is OK to reach out to the internet for a curl or ls-remote, but not for a git clone, but diff --git a/lib/functions/artifacts/artifact-rootfs.sh b/lib/functions/artifacts/artifact-rootfs.sh index d2cae5f1b..66bcd270e 100644 --- a/lib/functions/artifacts/artifact-rootfs.sh +++ b/lib/functions/artifacts/artifact-rootfs.sh @@ -1,3 +1,12 @@ +#!/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/ + function artifact_rootfs_prepare_version() { artifact_version="undetermined" # outer scope artifact_version_reason="undetermined" # outer scope diff --git a/lib/functions/artifacts/artifact-uboot.sh b/lib/functions/artifacts/artifact-uboot.sh index f839b9ce7..5b5ead352 100644 --- a/lib/functions/artifacts/artifact-uboot.sh +++ b/lib/functions/artifacts/artifact-uboot.sh @@ -1,3 +1,12 @@ +#!/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/ + function artifact_uboot_prepare_version() { artifact_version="undetermined" # outer scope artifact_version_reason="undetermined" # outer scope diff --git a/lib/functions/artifacts/artifacts-obtain.sh b/lib/functions/artifacts/artifacts-obtain.sh index d59ce8f0d..62a8f4e59 100644 --- a/lib/functions/artifacts/artifacts-obtain.sh +++ b/lib/functions/artifacts/artifacts-obtain.sh @@ -1,3 +1,12 @@ +#!/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/ + function create_artifact_functions() { declare -a funcs=( "cli_adapter_pre_run" "cli_adapter_config_prep" diff --git a/lib/functions/artifacts/artifacts-registry.sh b/lib/functions/artifacts/artifacts-registry.sh index 84dfb1353..994652abf 100644 --- a/lib/functions/artifacts/artifacts-registry.sh +++ b/lib/functions/artifacts/artifacts-registry.sh @@ -1,3 +1,12 @@ +#!/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/ + function armbian_register_artifacts() { declare -g -A ARMBIAN_ARTIFACTS_TO_HANDLERS_DICT=( diff --git a/lib/functions/bsp/bsp-cli.sh b/lib/functions/bsp/bsp-cli.sh index 31f28b8c8..f26bc1923 100644 --- a/lib/functions/bsp/bsp-cli.sh +++ b/lib/functions/bsp/bsp-cli.sh @@ -1,4 +1,12 @@ #!/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/ + function create_board_package() { display_alert "Creating board support package for CLI" "$CHOSEN_ROOTFS" "info" diff --git a/lib/functions/bsp/bsp-desktop.sh b/lib/functions/bsp/bsp-desktop.sh index 86ca4333c..a96733f39 100644 --- a/lib/functions/bsp/bsp-desktop.sh +++ b/lib/functions/bsp/bsp-desktop.sh @@ -1,4 +1,11 @@ #!/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/ function create_desktop_package() { # produced by aggregation.py diff --git a/lib/functions/bsp/utils-bsp.sh b/lib/functions/bsp/utils-bsp.sh index 00cf8b657..b7854197e 100644 --- a/lib/functions/bsp/utils-bsp.sh +++ b/lib/functions/bsp/utils-bsp.sh @@ -1,6 +1,13 @@ #!/usr/bin/env bash -# copy_all_packages_files_for to package # +# 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 to package copy_all_packages_files_for() { local package_name="${1}" diff --git a/lib/functions/cli/cli-artifact.sh b/lib/functions/cli/cli-artifact.sh index e9d6789d7..fdc51253a 100644 --- a/lib/functions/cli/cli-artifact.sh +++ b/lib/functions/cli/cli-artifact.sh @@ -1,3 +1,12 @@ +#!/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/ + function cli_artifact_pre_run() { initialize_artifact "${WHAT}" # Run the pre run adapter diff --git a/lib/functions/cli/cli-build.sh b/lib/functions/cli/cli-build.sh index ee9d5db9a..b740da3bd 100644 --- a/lib/functions/cli/cli-build.sh +++ b/lib/functions/cli/cli-build.sh @@ -1,3 +1,12 @@ +#!/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/ + function cli_standard_build_pre_run() { declare -g ARMBIAN_COMMAND_REQUIRE_BASIC_DEPS="yes" # Require prepare_host_basic to run before the command. diff --git a/lib/functions/cli/cli-configdump.sh b/lib/functions/cli/cli-configdump.sh index cf7a24346..fb7ccb61d 100644 --- a/lib/functions/cli/cli-configdump.sh +++ b/lib/functions/cli/cli-configdump.sh @@ -1,3 +1,12 @@ +#!/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/ + function cli_config_dump_pre_run() { declare -g CONFIG_DEFS_ONLY='yes' } diff --git a/lib/functions/cli/cli-distccd.sh b/lib/functions/cli/cli-distccd.sh index 14460ef13..72ae5b419 100644 --- a/lib/functions/cli/cli-distccd.sh +++ b/lib/functions/cli/cli-distccd.sh @@ -1,3 +1,12 @@ +#!/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/ + function cli_distccd_pre_run() { : <<- 'HEADER' Sets up an inline extension to include distccd in dependencies. diff --git a/lib/functions/cli/cli-docker.sh b/lib/functions/cli/cli-docker.sh index 34594123e..7751c7079 100644 --- a/lib/functions/cli/cli-docker.sh +++ b/lib/functions/cli/cli-docker.sh @@ -1,3 +1,12 @@ +#!/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/ + function cli_docker_pre_run() { if [[ "${DOCKERFILE_GENERATE_ONLY}" == "yes" ]]; then display_alert "Dockerfile generation only" "func cli_docker_pre_run" "debug" diff --git a/lib/functions/cli/cli-jsoninfo.sh b/lib/functions/cli/cli-jsoninfo.sh index 25aab8ffb..459ecb331 100644 --- a/lib/functions/cli/cli-jsoninfo.sh +++ b/lib/functions/cli/cli-jsoninfo.sh @@ -1,3 +1,12 @@ +#!/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/ + function cli_json_info_pre_run() { # "gimme root on a Linux machine" cli_standard_relaunch_docker_or_sudo diff --git a/lib/functions/cli/cli-oras.sh b/lib/functions/cli/cli-oras.sh index c43a5ee70..baf7e2a5d 100644 --- a/lib/functions/cli/cli-oras.sh +++ b/lib/functions/cli/cli-oras.sh @@ -1,3 +1,12 @@ +#!/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/ + function cli_oras_pre_run() { : # Empty, no need to do anything. } diff --git a/lib/functions/cli/cli-patch.sh b/lib/functions/cli/cli-patch.sh index dc539c508..1b4bf59a7 100644 --- a/lib/functions/cli/cli-patch.sh +++ b/lib/functions/cli/cli-patch.sh @@ -1,3 +1,12 @@ +#!/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/ + function cli_patch_kernel_pre_run() { declare -g ARMBIAN_COMMAND_REQUIRE_BASIC_DEPS="yes" # Require prepare_host_basic to run before the command. declare -g DOCKER_PASS_SSH_AGENT="yes" # Pass SSH agent to docker diff --git a/lib/functions/cli/cli-requirements.sh b/lib/functions/cli/cli-requirements.sh index 67b8cc348..4a4010184 100644 --- a/lib/functions/cli/cli-requirements.sh +++ b/lib/functions/cli/cli-requirements.sh @@ -1,3 +1,12 @@ +#!/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/ + function cli_requirements_pre_run() { declare -g ARMBIAN_COMMAND_REQUIRE_BASIC_DEPS="yes" # Require prepare_host_basic to run before the command. diff --git a/lib/functions/cli/cli-undecided.sh b/lib/functions/cli/cli-undecided.sh index 38cc533a1..bd79aa1c8 100644 --- a/lib/functions/cli/cli-undecided.sh +++ b/lib/functions/cli/cli-undecided.sh @@ -1,3 +1,12 @@ +#!/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/ + function cli_undecided_pre_run() { # If undecided, run the 'build' command. display_alert "cli_undecided_pre_run" "func cli_undecided_pre_run go to build" "debug" diff --git a/lib/functions/cli/commands.sh b/lib/functions/cli/commands.sh index 94e917bac..6355c213a 100644 --- a/lib/functions/cli/commands.sh +++ b/lib/functions/cli/commands.sh @@ -1,3 +1,12 @@ +#!/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/ + function armbian_register_commands() { # More than one command can map to the same handler. In that case, use ARMBIAN_COMMANDS_TO_VARS_DICT for specific vars. declare -g -A ARMBIAN_COMMANDS_TO_HANDLERS_DICT=( diff --git a/lib/functions/cli/entrypoint.sh b/lib/functions/cli/entrypoint.sh index 289b1be9c..6220cfdc5 100644 --- a/lib/functions/cli/entrypoint.sh +++ b/lib/functions/cli/entrypoint.sh @@ -1,3 +1,12 @@ +#!/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/ + function cli_entrypoint() { # array, readonly, global, for future reference, "exported" to shutup shellcheck declare -rg -x -a ARMBIAN_ORIGINAL_ARGV=("${@}") diff --git a/lib/functions/cli/utils-cli.sh b/lib/functions/cli/utils-cli.sh index 9db2f425a..2604bd374 100644 --- a/lib/functions/cli/utils-cli.sh +++ b/lib/functions/cli/utils-cli.sh @@ -1,3 +1,12 @@ +#!/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/ + #!/usr/bin/env bash # This is called like this: diff --git a/lib/functions/compilation/armbian-kernel.sh b/lib/functions/compilation/armbian-kernel.sh index fd9175b78..06ad49564 100644 --- a/lib/functions/compilation/armbian-kernel.sh +++ b/lib/functions/compilation/armbian-kernel.sh @@ -1,3 +1,12 @@ +#!/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/ + # Forced .config options for all Armbian kernels. # This is an internal/core extension. diff --git a/lib/functions/compilation/atf.sh b/lib/functions/compilation/atf.sh index ff8392732..b4babb361 100644 --- a/lib/functions/compilation/atf.sh +++ b/lib/functions/compilation/atf.sh @@ -1,4 +1,12 @@ #!/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/ + compile_atf() { if [[ -n "${ATFSOURCE}" && "${ATFSOURCE}" != "none" ]]; then display_alert "Downloading sources" "atf" "git" diff --git a/lib/functions/compilation/ccache.sh b/lib/functions/compilation/ccache.sh index 0dbe51795..440792a3b 100644 --- a/lib/functions/compilation/ccache.sh +++ b/lib/functions/compilation/ccache.sh @@ -1,3 +1,12 @@ +#!/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/ + function do_with_ccache_statistics() { display_alert "Clearing ccache statistics" "ccache" "ccache" diff --git a/lib/functions/compilation/distcc.sh b/lib/functions/compilation/distcc.sh index f10406de1..6dec89ee7 100644 --- a/lib/functions/compilation/distcc.sh +++ b/lib/functions/compilation/distcc.sh @@ -1,3 +1,12 @@ +#!/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/ + # Config: # declare -A -g DISTCC_TARGETS_HOST_PORT=() # declare -A -g DISTCC_TARGETS_CORES=() diff --git a/lib/functions/compilation/kernel-config.sh b/lib/functions/compilation/kernel-config.sh index e8dc363b2..a606a7c76 100644 --- a/lib/functions/compilation/kernel-config.sh +++ b/lib/functions/compilation/kernel-config.sh @@ -1,3 +1,12 @@ +#!/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/ + function prepare_kernel_config_core_or_userpatches() { # LINUXCONFIG is set or exit_with_error [[ -z "${LINUXCONFIG}" ]] && exit_with_error "LINUXCONFIG not set: '${LINUXCONFIG}'" diff --git a/lib/functions/compilation/kernel-debs.sh b/lib/functions/compilation/kernel-debs.sh index 01eb3ca69..fcdb1eb89 100644 --- a/lib/functions/compilation/kernel-debs.sh +++ b/lib/functions/compilation/kernel-debs.sh @@ -1,4 +1,11 @@ #!/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/ # This is a re-imagining of mkdebian and builddeb from the kernel tree. diff --git a/lib/functions/compilation/kernel-git-bundle.sh b/lib/functions/compilation/kernel-git-bundle.sh index 10b9252fd..e52f07184 100644 --- a/lib/functions/compilation/kernel-git-bundle.sh +++ b/lib/functions/compilation/kernel-git-bundle.sh @@ -1,3 +1,12 @@ +#!/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/ + # This is NOT run under do_with_retries. function download_git_kernel_bundle() { # See https://mirrors.edge.kernel.org/pub/scm/.bundles/pub/scm/linux/kernel/git/ diff --git a/lib/functions/compilation/kernel-git-oras.sh b/lib/functions/compilation/kernel-git-oras.sh index 744e3b5d5..d56cb976e 100644 --- a/lib/functions/compilation/kernel-git-oras.sh +++ b/lib/functions/compilation/kernel-git-oras.sh @@ -1,3 +1,12 @@ +#!/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/ + # This is not run under logging section. function kernel_prepare_bare_repo_decide_shallow_or_full() { declare decision="not_yet_decided" decision_why="unknown" diff --git a/lib/functions/compilation/kernel-git.sh b/lib/functions/compilation/kernel-git.sh index db5df113a..d8c40b6d8 100644 --- a/lib/functions/compilation/kernel-git.sh +++ b/lib/functions/compilation/kernel-git.sh @@ -1,3 +1,12 @@ +#!/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/ + function kernel_prepare_git() { [[ -z $KERNELSOURCE ]] && return 0 # do nothing if no kernel source... but again, why were we called then? diff --git a/lib/functions/compilation/kernel-make.sh b/lib/functions/compilation/kernel-make.sh index 1943b4a29..24dd000ad 100644 --- a/lib/functions/compilation/kernel-make.sh +++ b/lib/functions/compilation/kernel-make.sh @@ -1,4 +1,11 @@ #!/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/ function run_kernel_make_internal() { set -e diff --git a/lib/functions/compilation/kernel-patching.sh b/lib/functions/compilation/kernel-patching.sh index e95bf3626..e4789403d 100644 --- a/lib/functions/compilation/kernel-patching.sh +++ b/lib/functions/compilation/kernel-patching.sh @@ -1,3 +1,12 @@ +#!/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/ + #!/usr/bin/env bash function kernel_main_patching_python() { diff --git a/lib/functions/compilation/kernel.sh b/lib/functions/compilation/kernel.sh index 219fca824..3586c3909 100644 --- a/lib/functions/compilation/kernel.sh +++ b/lib/functions/compilation/kernel.sh @@ -1,4 +1,12 @@ #!/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/ + function compile_kernel() { declare kernel_work_dir="${SRC}/cache/sources/${LINUXSOURCEDIR}" display_alert "Kernel build starting" "${LINUXSOURCEDIR}" "info" diff --git a/lib/functions/compilation/packages/armbian-config-deb.sh b/lib/functions/compilation/packages/armbian-config-deb.sh index ccf7b86e1..bc300ccb0 100644 --- a/lib/functions/compilation/packages/armbian-config-deb.sh +++ b/lib/functions/compilation/packages/armbian-config-deb.sh @@ -1,3 +1,12 @@ +#!/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/ + compile_armbian-config() { declare cleanup_id="" tmp_dir="" diff --git a/lib/functions/compilation/packages/firmware-deb.sh b/lib/functions/compilation/packages/firmware-deb.sh index 0a31987eb..ba7c52e96 100644 --- a/lib/functions/compilation/packages/firmware-deb.sh +++ b/lib/functions/compilation/packages/firmware-deb.sh @@ -1,3 +1,12 @@ +#!/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/ + function compile_firmware() { : "${artifact_version:?artifact_version is not set}" diff --git a/lib/functions/compilation/packages/plymouth-deb.sh b/lib/functions/compilation/packages/plymouth-deb.sh index 120726198..72597b5b9 100644 --- a/lib/functions/compilation/packages/plymouth-deb.sh +++ b/lib/functions/compilation/packages/plymouth-deb.sh @@ -1,3 +1,12 @@ +#!/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/ + compile_plymouth_theme_armbian() { declare cleanup_id="" tmp_dir="" diff --git a/lib/functions/compilation/packages/utils-dpkgdeb.sh b/lib/functions/compilation/packages/utils-dpkgdeb.sh index bff1f5833..d5ea52a2c 100644 --- a/lib/functions/compilation/packages/utils-dpkgdeb.sh +++ b/lib/functions/compilation/packages/utils-dpkgdeb.sh @@ -1,3 +1,12 @@ +#!/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/ + # for deb building. function fakeroot_dpkg_deb_build() { display_alert "Building .deb package" "$*" "debug" diff --git a/lib/functions/compilation/packages/zsh-deb.sh b/lib/functions/compilation/packages/zsh-deb.sh index a43223c28..5731ab016 100644 --- a/lib/functions/compilation/packages/zsh-deb.sh +++ b/lib/functions/compilation/packages/zsh-deb.sh @@ -1,3 +1,12 @@ +#!/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/ + compile_armbian-zsh() { declare cleanup_id="" tmp_dir="" prepare_temp_dir_in_workdir_and_schedule_cleanup "deb-zsh" cleanup_id tmp_dir # namerefs diff --git a/lib/functions/compilation/patch/drivers-harness.sh b/lib/functions/compilation/patch/drivers-harness.sh index 7fe3c5dc2..0cdc3d9a9 100644 --- a/lib/functions/compilation/patch/drivers-harness.sh +++ b/lib/functions/compilation/patch/drivers-harness.sh @@ -1,3 +1,12 @@ +#!/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/ + function kernel_drivers_create_patches_hash_only() { hash_only="yes" kernel_drivers_create_patches "${@}" } diff --git a/lib/functions/compilation/patch/drivers_network.sh b/lib/functions/compilation/patch/drivers_network.sh index 61789ba22..32108d57e 100644 --- a/lib/functions/compilation/patch/drivers_network.sh +++ b/lib/functions/compilation/patch/drivers_network.sh @@ -1,4 +1,11 @@ -#!/bin/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/ function driver_generic_bring_back_ipx() { # diff --git a/lib/functions/compilation/patch/kernel-drivers.sh b/lib/functions/compilation/patch/kernel-drivers.sh index a0944f666..af9125246 100644 --- a/lib/functions/compilation/patch/kernel-drivers.sh +++ b/lib/functions/compilation/patch/kernel-drivers.sh @@ -1,3 +1,12 @@ +#!/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/ + # @TODO: armbian-next: THIS IS DEAD CODE. no-one calls it. a JIRA for volunteers to fix it, or it will be removed. function prepare_extra_kernel_drivers() { diff --git a/lib/functions/compilation/patch/patching.sh b/lib/functions/compilation/patch/patching.sh index e872c8cab..07f0bc27d 100644 --- a/lib/functions/compilation/patch/patching.sh +++ b/lib/functions/compilation/patch/patching.sh @@ -1,4 +1,11 @@ #!/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/ # advanced_patch <{patch_dir}> # diff --git a/lib/functions/compilation/uboot-git.sh b/lib/functions/compilation/uboot-git.sh index c8464aca7..c9aa7240a 100644 --- a/lib/functions/compilation/uboot-git.sh +++ b/lib/functions/compilation/uboot-git.sh @@ -1,3 +1,12 @@ +#!/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/ + function uboot_prepare_bare_repo() { uboot_git_bare_tree="${SRC}/cache/git-bare/u-boot" # sets the outer scope variable declare uboot_git_bare_tree_done_marker="${uboot_git_bare_tree}/.git/armbian-bare-tree-done" diff --git a/lib/functions/compilation/uboot-patching.sh b/lib/functions/compilation/uboot-patching.sh index 2a909819f..4c3adff98 100644 --- a/lib/functions/compilation/uboot-patching.sh +++ b/lib/functions/compilation/uboot-patching.sh @@ -1,3 +1,12 @@ +#!/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/ + function uboot_main_patching_python() { prepare_python_and_pip diff --git a/lib/functions/compilation/uboot.sh b/lib/functions/compilation/uboot.sh index 94aa4bc43..fdbb4ac21 100644 --- a/lib/functions/compilation/uboot.sh +++ b/lib/functions/compilation/uboot.sh @@ -1,4 +1,11 @@ #!/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/ function maybe_make_clean_uboot() { if [[ $CLEAN_LEVEL == *make-uboot* ]]; then diff --git a/lib/functions/compilation/utils-compilation.sh b/lib/functions/compilation/utils-compilation.sh index 18bab5bd6..cafd4d068 100644 --- a/lib/functions/compilation/utils-compilation.sh +++ b/lib/functions/compilation/utils-compilation.sh @@ -1,12 +1,10 @@ #!/usr/bin/env bash # -# Copyright (c) 2013-2021 Igor Pecovnik, igor.pecovnik@gma**.com +# SPDX-License-Identifier: GPL-2.0 # -# This file is licensed under the terms of the GNU General Public -# License version 2. This program is licensed "as is" without any -# warranty of any kind, whether express or implied. +# Copyright (c) 2013-2023 Igor Pecovnik, igor@armbian.com # -# This file is a part of the Armbian build script +# This file is a part of the Armbian Build Framework # https://github.com/armbian/build/ # Functions: diff --git a/lib/functions/configuration/aggregation.sh b/lib/functions/configuration/aggregation.sh index 45d3cc881..8f74aa2c4 100644 --- a/lib/functions/configuration/aggregation.sh +++ b/lib/functions/configuration/aggregation.sh @@ -1,4 +1,11 @@ #!/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/ function assert_requires_aggregation() { if [[ ${aggregation_has_already_run:-0} -lt 1 ]]; then diff --git a/lib/functions/configuration/compilation-config.sh b/lib/functions/configuration/compilation-config.sh index 83742e6fb..f0b2ea500 100644 --- a/lib/functions/configuration/compilation-config.sh +++ b/lib/functions/configuration/compilation-config.sh @@ -1,3 +1,12 @@ +#!/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/ + function prepare_compilation_vars() { # moved from config: rpardini: ccache belongs in compilation, not config. I think. if [[ $USE_CCACHE != no ]]; then diff --git a/lib/functions/configuration/config-desktop.sh b/lib/functions/configuration/config-desktop.sh index 452a17206..b1c5194a7 100644 --- a/lib/functions/configuration/config-desktop.sh +++ b/lib/functions/configuration/config-desktop.sh @@ -1,4 +1,11 @@ #!/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/ function desktop_element_available_for_arch() { local desktop_element_path="${1}" diff --git a/lib/functions/configuration/interactive.sh b/lib/functions/configuration/interactive.sh index 225accd47..fd3c19e00 100644 --- a/lib/functions/configuration/interactive.sh +++ b/lib/functions/configuration/interactive.sh @@ -1,3 +1,12 @@ +#!/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/ + #!/usr/bin/env bash function interactive_config_prepare_terminal() { diff --git a/lib/functions/configuration/main-config.sh b/lib/functions/configuration/main-config.sh index ada505f10..5bfada1f0 100644 --- a/lib/functions/configuration/main-config.sh +++ b/lib/functions/configuration/main-config.sh @@ -1,12 +1,10 @@ -#!/bin/bash +#!/usr/bin/env bash # -# Copyright (c) 2013-2021 Igor Pecovnik, igor.pecovnik@gma**.com +# SPDX-License-Identifier: GPL-2.0 # -# This file is licensed under the terms of the GNU General Public -# License version 2. This program is licensed "as is" without any -# warranty of any kind, whether express or implied. +# Copyright (c) 2013-2023 Igor Pecovnik, igor@armbian.com # -# This file is a part of the Armbian build script +# This file is a part of the Armbian Build Framework # https://github.com/armbian/build/ ### Attention: we can't use any interactive programs, read from stdin, nor use non-coreutils utilities here. diff --git a/lib/functions/configuration/menu.sh b/lib/functions/configuration/menu.sh index dfc927a57..143316921 100644 --- a/lib/functions/configuration/menu.sh +++ b/lib/functions/configuration/menu.sh @@ -1,3 +1,12 @@ +#!/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/ + #!/usr/bin/env bash # Stuff involving dialog diff --git a/lib/functions/configuration/package-lists.sh b/lib/functions/configuration/package-lists.sh index f36b05ff3..0edf33962 100644 --- a/lib/functions/configuration/package-lists.sh +++ b/lib/functions/configuration/package-lists.sh @@ -1,3 +1,12 @@ +#!/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/ + function get_caller_reference() { # grab the caller function name, its source file and line number local caller_ref="${FUNCNAME[2]}" diff --git a/lib/functions/general/chroot-helpers.sh b/lib/functions/general/chroot-helpers.sh index 3403256fd..b1388c312 100644 --- a/lib/functions/general/chroot-helpers.sh +++ b/lib/functions/general/chroot-helpers.sh @@ -1,4 +1,12 @@ #!/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/ + # mount_chroot function mount_chroot() { if [[ "x${LOG_SECTION}x" == "xx" ]]; then diff --git a/lib/functions/general/cleaning.sh b/lib/functions/general/cleaning.sh index dde8d7a4c..5726f0312 100644 --- a/lib/functions/general/cleaning.sh +++ b/lib/functions/general/cleaning.sh @@ -1,3 +1,12 @@ +#!/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/ + # general_cleaning # target: what to clean diff --git a/lib/functions/general/countdown.sh b/lib/functions/general/countdown.sh index 690d45494..e77f6937a 100644 --- a/lib/functions/general/countdown.sh +++ b/lib/functions/general/countdown.sh @@ -1,3 +1,12 @@ +#!/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/ + # This exits, unless user presses ENTER. If not interactive, user will be unable to comply and the script will exit. function exit_if_countdown_not_aborted() { # parse diff --git a/lib/functions/general/downloads.sh b/lib/functions/general/downloads.sh index 4cd5b8a74..882834544 100644 --- a/lib/functions/general/downloads.sh +++ b/lib/functions/general/downloads.sh @@ -1,4 +1,12 @@ #!/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/ + function get_urls() { local catalog=$1 local filename=$2 diff --git a/lib/functions/general/extensions.sh b/lib/functions/general/extensions.sh index 61ffcb4bd..9a8208f49 100644 --- a/lib/functions/general/extensions.sh +++ b/lib/functions/general/extensions.sh @@ -1,3 +1,12 @@ +#!/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/ + #!/usr/bin/env bash # The whole of this is Copyright (c) 2020-2023 Ricardo Pardini diff --git a/lib/functions/general/git-ref2info.sh b/lib/functions/general/git-ref2info.sh index f805bc759..158a43d79 100644 --- a/lib/functions/general/git-ref2info.sh +++ b/lib/functions/general/git-ref2info.sh @@ -1,3 +1,12 @@ +#!/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/ + # This works under memoize-cached.sh::run_memoized() -- which is full of tricks. # Nested functions are used because the source of the momoized function is used as part of the cache hash. function memoized_git_ref_to_info() { diff --git a/lib/functions/general/git.sh b/lib/functions/general/git.sh index 9cfa07f57..8a28eef2b 100644 --- a/lib/functions/general/git.sh +++ b/lib/functions/general/git.sh @@ -1,4 +1,12 @@ #!/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/ + # defines the format for KERNELBRANCH, BOOTBRANCH, and arguments to fetch_from_repo. # branch:xxx, tag:yyyy, commit:zzzz, head. # sets: ref_type=branch|tag|commit, ref_name=xxx|yyyy|zzzz|HEAD diff --git a/lib/functions/general/github-actions.sh b/lib/functions/general/github-actions.sh index bc532432b..36673e1b3 100644 --- a/lib/functions/general/github-actions.sh +++ b/lib/functions/general/github-actions.sh @@ -1,3 +1,12 @@ +#!/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/ + function github_actions_add_output() { # if CI is not GitHub Actions, do nothing if [[ "${CI}" != "true" ]] && [[ "${GITHUB_ACTIONS}" != "true" ]]; then diff --git a/lib/functions/general/hash-files.sh b/lib/functions/general/hash-files.sh index 58511d47f..43c5c7d05 100644 --- a/lib/functions/general/hash-files.sh +++ b/lib/functions/general/hash-files.sh @@ -1,3 +1,12 @@ +#!/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/ + function calculate_hash_for_all_files_in_dirs() { declare -a dirs_to_hash=("$@") declare -a files_to_hash=() diff --git a/lib/functions/general/memoize-cached.sh b/lib/functions/general/memoize-cached.sh index 0e2deb2c5..871a7008d 100644 --- a/lib/functions/general/memoize-cached.sh +++ b/lib/functions/general/memoize-cached.sh @@ -1,3 +1,12 @@ +#!/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/ + # This does many tricks. Beware. # Also, 'memoize' is a misnomer. It's more like 'cache'. # It works with bash dictionaries (associative arrays) and references to functions diff --git a/lib/functions/general/oci-oras.sh b/lib/functions/general/oci-oras.sh index b5e54684c..1090644dc 100644 --- a/lib/functions/general/oci-oras.sh +++ b/lib/functions/general/oci-oras.sh @@ -1,3 +1,12 @@ +#!/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/ + function run_tool_oras() { # Default version ORAS_VERSION=${ORAS_VERSION:-0.16.0} # https://github.com/oras-project/oras/releases diff --git a/lib/functions/general/python-tools.sh b/lib/functions/general/python-tools.sh index a905e9574..5d1152a8b 100644 --- a/lib/functions/general/python-tools.sh +++ b/lib/functions/general/python-tools.sh @@ -1,3 +1,12 @@ +#!/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/ + # This whole thing is a big "I refuse to use venv in a simple bash script" delusion. # If you know to tame it, teach me. I'd rather not know about PYTHONUSERBASE and such. # --rpardini diff --git a/lib/functions/general/retry.sh b/lib/functions/general/retry.sh index 0c3154d52..e9eb35a71 100644 --- a/lib/functions/general/retry.sh +++ b/lib/functions/general/retry.sh @@ -1,3 +1,12 @@ +#!/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/ + # Auto retries the number of times passed on first argument to run all the other arguments. function do_with_retries() { local retries="${1}" diff --git a/lib/functions/general/shellcheck.sh b/lib/functions/general/shellcheck.sh index ab2175eaf..13709b73d 100644 --- a/lib/functions/general/shellcheck.sh +++ b/lib/functions/general/shellcheck.sh @@ -1,3 +1,12 @@ +#!/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/ + function shellcheck_debian_control_scripts() { declare SEVERITY="${SEVERITY:-"critical"}" declare -a params=(--check-sourced --color=always --external-sources --format=tty --shell=bash --wiki-link-count=0) diff --git a/lib/functions/host/apt-cacher-ng.sh b/lib/functions/host/apt-cacher-ng.sh index 003daba49..b86366084 100644 --- a/lib/functions/host/apt-cacher-ng.sh +++ b/lib/functions/host/apt-cacher-ng.sh @@ -1,3 +1,12 @@ +#!/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/ + # Management of apt-cacher-ng aka acng function acng_configure_and_restart_acng() { diff --git a/lib/functions/host/basic-deps.sh b/lib/functions/host/basic-deps.sh index 21994e513..e0d3825c5 100644 --- a/lib/functions/host/basic-deps.sh +++ b/lib/functions/host/basic-deps.sh @@ -1,4 +1,12 @@ #!/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/ + # prepare_host_basic # # * installs only basic packages diff --git a/lib/functions/host/docker.sh b/lib/functions/host/docker.sh index e05a7f0a6..00dea0770 100755 --- a/lib/functions/host/docker.sh +++ b/lib/functions/host/docker.sh @@ -1,3 +1,12 @@ +#!/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/ + ############################################################################################################# # @TODO: called by no-one, yet. function check_and_install_docker_daemon() { diff --git a/lib/functions/host/external-toolchains.sh b/lib/functions/host/external-toolchains.sh index af57a1ee0..2dc838d26 100644 --- a/lib/functions/host/external-toolchains.sh +++ b/lib/functions/host/external-toolchains.sh @@ -1,3 +1,12 @@ +#!/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/ + # This is mostly deprecated, since SKIP_EXTERNAL_TOOLCHAINS=yes by default. function download_external_toolchains() { diff --git a/lib/functions/host/host-release.sh b/lib/functions/host/host-release.sh index bb02eaeb6..4300087d2 100644 --- a/lib/functions/host/host-release.sh +++ b/lib/functions/host/host-release.sh @@ -1,3 +1,12 @@ +#!/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/ + function obtain_and_check_host_release_and_arch() { # obtain the host release either from os-release or debian_version declare -g HOSTRELEASE diff --git a/lib/functions/host/host-utils.sh b/lib/functions/host/host-utils.sh index 1345ac27b..16e9acb83 100644 --- a/lib/functions/host/host-utils.sh +++ b/lib/functions/host/host-utils.sh @@ -1,4 +1,11 @@ #!/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/ function fetch_and_build_host_tools() { call_extension_method "fetch_sources_tools" <<- 'FETCH_SOURCES_TOOLS' diff --git a/lib/functions/host/mktemp-utils.sh b/lib/functions/host/mktemp-utils.sh index c4c84db6c..9513d9e58 100644 --- a/lib/functions/host/mktemp-utils.sh +++ b/lib/functions/host/mktemp-utils.sh @@ -1,3 +1,12 @@ +#!/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/ + # Those are convenience helpers for creating sub-dirs, for each usage, in WORKDIR. # They also setup a cleanup trap, and allow early calling of the cleanup handler. # Usage: diff --git a/lib/functions/host/mountpoints.sh b/lib/functions/host/mountpoints.sh index e414698fc..0e50d3de7 100644 --- a/lib/functions/host/mountpoints.sh +++ b/lib/functions/host/mountpoints.sh @@ -1,3 +1,12 @@ +#!/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/ + function prepare_armbian_mountpoints_description_dict() { # array for the generic armbian 'volumes' and their paths. # bash dicts do NOT keep their insertion order, instead "hash order", which is a bit better than random for our purposes. diff --git a/lib/functions/host/prepare-host.sh b/lib/functions/host/prepare-host.sh index 32afc71fe..ff6970e6b 100644 --- a/lib/functions/host/prepare-host.sh +++ b/lib/functions/host/prepare-host.sh @@ -1,4 +1,12 @@ #!/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/ + # prepare_host # # * checks and installs necessary packages diff --git a/lib/functions/host/tmpfs-utils.sh b/lib/functions/host/tmpfs-utils.sh index a88236cb9..9e71b2fca 100644 --- a/lib/functions/host/tmpfs-utils.sh +++ b/lib/functions/host/tmpfs-utils.sh @@ -1,3 +1,12 @@ +#!/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/ + # Call: prepare_tmpfs_for "NAME_OF_TMPFS_DIR" "${PATH_TO_DIR}" # this adds its own cleanup handler function prepare_tmpfs_for() { declare tmpfs_name="${1}" diff --git a/lib/functions/host/wsl2.sh b/lib/functions/host/wsl2.sh index 06efd2678..55a71b69f 100644 --- a/lib/functions/host/wsl2.sh +++ b/lib/functions/host/wsl2.sh @@ -1,3 +1,12 @@ +#!/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/ + function check_windows_wsl2() { declare wsl2_type wsl2_detect_type diff --git a/lib/functions/image/compress-checksum.sh b/lib/functions/image/compress-checksum.sh index 0066e7e42..c82a48f0e 100644 --- a/lib/functions/image/compress-checksum.sh +++ b/lib/functions/image/compress-checksum.sh @@ -1,3 +1,12 @@ +#!/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/ + function output_images_compress_and_checksum() { [[ -n $SEND_TO_SERVER ]] && return 0 diff --git a/lib/functions/image/fingerprint.sh b/lib/functions/image/fingerprint.sh index 4720dc498..cd1c41653 100644 --- a/lib/functions/image/fingerprint.sh +++ b/lib/functions/image/fingerprint.sh @@ -1,4 +1,12 @@ #!/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/ + #-------------------------------------------------------------------------------------------------------------------------------- # fingerprint_image [image_filename] # Saving build summary to the image diff --git a/lib/functions/image/initrd.sh b/lib/functions/image/initrd.sh index 37946cf66..18a1c8889 100644 --- a/lib/functions/image/initrd.sh +++ b/lib/functions/image/initrd.sh @@ -1,4 +1,12 @@ #!/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/ + # update_initramfs # # this should be invoked as late as possible for any modifications by diff --git a/lib/functions/image/loop.sh b/lib/functions/image/loop.sh index 0b0af435b..1c6c1da4e 100644 --- a/lib/functions/image/loop.sh +++ b/lib/functions/image/loop.sh @@ -1,3 +1,12 @@ +#!/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/ + #!/usr/bin/env bash # check_loop_device # diff --git a/lib/functions/image/partitioning.sh b/lib/functions/image/partitioning.sh index 77eaf3e92..dc693ce33 100644 --- a/lib/functions/image/partitioning.sh +++ b/lib/functions/image/partitioning.sh @@ -1,4 +1,12 @@ #!/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/ + # prepare_partitions # # creates image file, partitions and fs diff --git a/lib/functions/image/rootfs-to-image.sh b/lib/functions/image/rootfs-to-image.sh index 12a4e5498..4d2271f93 100644 --- a/lib/functions/image/rootfs-to-image.sh +++ b/lib/functions/image/rootfs-to-image.sh @@ -1,4 +1,12 @@ #!/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/ + # create_image # # finishes creation of image from cached rootfs diff --git a/lib/functions/image/write-device.sh b/lib/functions/image/write-device.sh index 6982a4f43..e749c2d7c 100644 --- a/lib/functions/image/write-device.sh +++ b/lib/functions/image/write-device.sh @@ -1,3 +1,12 @@ +#!/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/ + # @TODO: make usable as a separate tool as well function write_image_to_device() { local image_file="${1}" diff --git a/lib/functions/logging/capture.sh b/lib/functions/logging/capture.sh index 775923419..880eda6e9 100644 --- a/lib/functions/logging/capture.sh +++ b/lib/functions/logging/capture.sh @@ -1,3 +1,12 @@ +#!/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/ + function do_capturing_defs() { # make sure to local with a value, otherwise they will appear in the list... local pre_exec_vars="" post_exec_vars="" new_vars_list="" onevar="" all_vars_array=() diff --git a/lib/functions/logging/debug-dump.sh b/lib/functions/logging/debug-dump.sh index 60ae54130..e0170f95b 100644 --- a/lib/functions/logging/debug-dump.sh +++ b/lib/functions/logging/debug-dump.sh @@ -1,3 +1,12 @@ +#!/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/ + function debug_dict() { if [[ "${SHOW_DEBUG}" != "yes" ]]; then return 0 diff --git a/lib/functions/logging/display-alert.sh b/lib/functions/logging/display-alert.sh index e8ec855b5..89bc7db07 100644 --- a/lib/functions/logging/display-alert.sh +++ b/lib/functions/logging/display-alert.sh @@ -1,3 +1,12 @@ +#!/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/ + function display_alert() { # If asked, avoid any fancy ANSI escapes completely. For python-driven log collection. Formatting could be improved. # If used, also does not write to logfile even if it exists. diff --git a/lib/functions/logging/export-logs.sh b/lib/functions/logging/export-logs.sh index 385750d74..0a6b8f9ef 100644 --- a/lib/functions/logging/export-logs.sh +++ b/lib/functions/logging/export-logs.sh @@ -1,3 +1,12 @@ +#!/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/ + function prepare_ansi_git_info_log_header() { # writes to stdout, ANSI format diff --git a/lib/functions/logging/logging.sh b/lib/functions/logging/logging.sh index 86ca0eae0..26e756224 100644 --- a/lib/functions/logging/logging.sh +++ b/lib/functions/logging/logging.sh @@ -1,4 +1,11 @@ #!/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/ # This is called both early in compile.sh, but also after processing cmdline params in the cli entrypoint.sh function logging_init() { diff --git a/lib/functions/logging/runners.sh b/lib/functions/logging/runners.sh index 86ba17ed7..116c41ce3 100644 --- a/lib/functions/logging/runners.sh +++ b/lib/functions/logging/runners.sh @@ -1,4 +1,11 @@ #!/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/ # All those runner helper functions have a particular non-quoting style. # callers might need to force quote with bash's @Q modifier. diff --git a/lib/functions/logging/section-logging.sh b/lib/functions/logging/section-logging.sh index edf94c937..3e868ce79 100644 --- a/lib/functions/logging/section-logging.sh +++ b/lib/functions/logging/section-logging.sh @@ -1,3 +1,12 @@ +#!/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/ + function start_logging_section() { # Sanity check: if this is called, but CURRENT_LOGGING_SECTION is not empty, then something is wrong. if [[ -n "${CURRENT_LOGGING_SECTION}" && "${CURRENT_LOGGING_SECTION}" != "entrypoint" ]]; then diff --git a/lib/functions/logging/stacktraces.sh b/lib/functions/logging/stacktraces.sh index 651fbf748..d15bd7338 100644 --- a/lib/functions/logging/stacktraces.sh +++ b/lib/functions/logging/stacktraces.sh @@ -1,3 +1,12 @@ +#!/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/ + # Helper function, to get clean "stack traces" that do not include the hook/extension infrastructure code. # @TODO this in practice is only used... ? function get_extension_hook_stracktrace() { diff --git a/lib/functions/logging/trap-logging.sh b/lib/functions/logging/trap-logging.sh index ac6754296..a4960a712 100644 --- a/lib/functions/logging/trap-logging.sh +++ b/lib/functions/logging/trap-logging.sh @@ -1,3 +1,12 @@ +#!/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/ + # Cleanup for logging. function trap_handler_cleanup_logging() { [[ "x${LOGDIR}x" == "xx" ]] && return 0 diff --git a/lib/functions/logging/traps.sh b/lib/functions/logging/traps.sh index 5826dd3b7..35d1d2f48 100644 --- a/lib/functions/logging/traps.sh +++ b/lib/functions/logging/traps.sh @@ -1,4 +1,11 @@ #!/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/ # Initialize and prepare the trap managers, one for each of ERR, INT, TERM and EXIT traps. # Bash goes insane regarding line numbers and other stuff if we try to overwrite the traps. diff --git a/lib/functions/main/build-packages.sh b/lib/functions/main/build-packages.sh index b07d85f39..807cba6a5 100644 --- a/lib/functions/main/build-packages.sh +++ b/lib/functions/main/build-packages.sh @@ -1,3 +1,12 @@ +#!/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/ + function main_default_build_packages() { # early cleaning for sources, since fetch_and_build_host_tools() uses it. if [[ "${CLEAN_LEVEL}" == *sources* ]]; then diff --git a/lib/functions/main/config-interactive.sh b/lib/functions/main/config-interactive.sh index 39301d225..ddfb03922 100644 --- a/lib/functions/main/config-interactive.sh +++ b/lib/functions/main/config-interactive.sh @@ -1,3 +1,12 @@ +#!/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/ + function config_possibly_interactive_kernel_board() { # if KERNEL_ONLY, KERNEL_CONFIGURE, BOARD, BRANCH or RELEASE are not set, display selection menu diff --git a/lib/functions/main/config-prepare.sh b/lib/functions/main/config-prepare.sh index e99287694..b89462d44 100644 --- a/lib/functions/main/config-prepare.sh +++ b/lib/functions/main/config-prepare.sh @@ -1,4 +1,11 @@ #!/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/ # Full version, for building a full image (with BOARD); possibly interactive. function prep_conf_main_build_single() { diff --git a/lib/functions/main/default-build.sh b/lib/functions/main/default-build.sh index a787a6318..453e3c33c 100644 --- a/lib/functions/main/default-build.sh +++ b/lib/functions/main/default-build.sh @@ -1,3 +1,12 @@ +#!/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/ + # This does NOT run under the logging manager. function full_build_packages_rootfs_and_image() { diff --git a/lib/functions/main/rootfs-image.sh b/lib/functions/main/rootfs-image.sh index 4699c80b9..f40c74e70 100644 --- a/lib/functions/main/rootfs-image.sh +++ b/lib/functions/main/rootfs-image.sh @@ -1,4 +1,11 @@ #!/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/ function build_rootfs_and_image() { display_alert "Checking for rootfs cache" "$(echo "${BRANCH} ${BOARD} ${RELEASE} ${DESKTOP_APPGROUPS_SELECTED} ${DESKTOP_ENVIRONMENT} ${BUILD_MINIMAL}" | tr -s " ")" "info" diff --git a/lib/functions/main/start-end.sh b/lib/functions/main/start-end.sh index 04462755e..880f71375 100644 --- a/lib/functions/main/start-end.sh +++ b/lib/functions/main/start-end.sh @@ -1,3 +1,12 @@ +#!/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/ + # Common start/end build functions. Used by the default build and others function main_default_start_build() { diff --git a/lib/functions/rootfs/apt-install.sh b/lib/functions/rootfs/apt-install.sh index 5daddc283..6bc3ca439 100644 --- a/lib/functions/rootfs/apt-install.sh +++ b/lib/functions/rootfs/apt-install.sh @@ -1,4 +1,11 @@ #!/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/ function apt_purge_unneeded_packages() { # remove packages that are no longer needed. rootfs cache + uninstall might have leftovers. diff --git a/lib/functions/rootfs/apt-sources.sh b/lib/functions/rootfs/apt-sources.sh index 96d8f2687..05d883de6 100644 --- a/lib/functions/rootfs/apt-sources.sh +++ b/lib/functions/rootfs/apt-sources.sh @@ -1,4 +1,11 @@ #!/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/ add_apt_sources() { # AGGREGATED_APT_SOURCES and AGGREGATED_APT_SOURCES_DICT are pre-resolved by aggregation.py diff --git a/lib/functions/rootfs/boot_logo.sh b/lib/functions/rootfs/boot_logo.sh index 81e9294ac..05ffcf8d7 100644 --- a/lib/functions/rootfs/boot_logo.sh +++ b/lib/functions/rootfs/boot_logo.sh @@ -1,4 +1,12 @@ #!/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/ + #-------------------------------------------------------------------------------------------------------------------------------- # Create kernel boot logo from packages/blobs/splash/logo.png and packages/blobs/splash/spinner.gif (animated) # and place to the file /lib/firmware/bootsplash diff --git a/lib/functions/rootfs/create-cache.sh b/lib/functions/rootfs/create-cache.sh index 812bb6213..7c358d1af 100644 --- a/lib/functions/rootfs/create-cache.sh +++ b/lib/functions/rootfs/create-cache.sh @@ -1,4 +1,11 @@ #!/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/ # called by artifact-rootfs::artifact_rootfs_prepare_version() function calculate_rootfs_cache_id() { diff --git a/lib/functions/rootfs/customize.sh b/lib/functions/rootfs/customize.sh index d3a9070c1..d758f808d 100644 --- a/lib/functions/rootfs/customize.sh +++ b/lib/functions/rootfs/customize.sh @@ -1,4 +1,12 @@ #!/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/ + customize_image() { # for users that need to prepare files at host diff --git a/lib/functions/rootfs/distro-agnostic.sh b/lib/functions/rootfs/distro-agnostic.sh index 3ff5f9cad..91b9d2ce9 100644 --- a/lib/functions/rootfs/distro-agnostic.sh +++ b/lib/functions/rootfs/distro-agnostic.sh @@ -1,4 +1,11 @@ #!/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/ function install_distribution_agnostic() { display_alert "Installing distro-agnostic part of rootfs" "install_distribution_agnostic" "debug" diff --git a/lib/functions/rootfs/distro-specific.sh b/lib/functions/rootfs/distro-specific.sh index 7ee320cf9..3394301bd 100644 --- a/lib/functions/rootfs/distro-specific.sh +++ b/lib/functions/rootfs/distro-specific.sh @@ -1,4 +1,11 @@ #!/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/ function install_distribution_specific() { display_alert "Applying distribution specific tweaks for" "${RELEASE:-}" "info" diff --git a/lib/functions/rootfs/post-tweaks.sh b/lib/functions/rootfs/post-tweaks.sh index 741b4300e..c14ba29cb 100644 --- a/lib/functions/rootfs/post-tweaks.sh +++ b/lib/functions/rootfs/post-tweaks.sh @@ -1,4 +1,11 @@ #!/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/ function post_debootstrap_tweaks() { display_alert "Applying post-tweaks" "post_debootstrap_tweaks" "debug" diff --git a/lib/functions/rootfs/qemu-static.sh b/lib/functions/rootfs/qemu-static.sh index 91569cbe1..a2a8babab 100644 --- a/lib/functions/rootfs/qemu-static.sh +++ b/lib/functions/rootfs/qemu-static.sh @@ -1,3 +1,12 @@ +#!/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/ + function deploy_qemu_binary_to_chroot() { local chroot_target="${1}" diff --git a/lib/functions/rootfs/rootfs-create.sh b/lib/functions/rootfs/rootfs-create.sh index ee09e2230..d363a0f9f 100644 --- a/lib/functions/rootfs/rootfs-create.sh +++ b/lib/functions/rootfs/rootfs-create.sh @@ -1,4 +1,11 @@ #!/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/ function create_new_rootfs_cache_tarball() { # validate cache_fname is set diff --git a/lib/functions/rootfs/rootfs-desktop.sh b/lib/functions/rootfs/rootfs-desktop.sh index adcb574e3..9e8cdbf6e 100644 --- a/lib/functions/rootfs/rootfs-desktop.sh +++ b/lib/functions/rootfs/rootfs-desktop.sh @@ -1,4 +1,11 @@ #!/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/ # a-kind-of-hook, called by install_distribution_agnostic() if it's a desktop build function desktop_postinstall() { diff --git a/lib/functions/rootfs/systemd-utils.sh b/lib/functions/rootfs/systemd-utils.sh index 7a21c1f2e..a3f5bc4fc 100644 --- a/lib/functions/rootfs/systemd-utils.sh +++ b/lib/functions/rootfs/systemd-utils.sh @@ -1,3 +1,12 @@ +#!/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/ + function disable_systemd_service_sdcard() { display_alert "Disabling systemd service(s) on target" "${*}" "debug" declare service diff --git a/lib/functions/rootfs/trap-rootfs.sh b/lib/functions/rootfs/trap-rootfs.sh index 20bc90b90..ae157eee2 100644 --- a/lib/functions/rootfs/trap-rootfs.sh +++ b/lib/functions/rootfs/trap-rootfs.sh @@ -1,3 +1,12 @@ +#!/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/ + ## Prepare/cleanup pair @TODO needs to be split between SDCARD and MOUNT, no sense doing both in rootfs trap anymore # called by artifact-rootfs::artifact_rootfs_prepare_version() function prepare_rootfs_build_params_and_trap() { diff --git a/lib/single.sh b/lib/single.sh index 2f9e7cfaf..5e32d473e 100644 --- a/lib/single.sh +++ b/lib/single.sh @@ -1,12 +1,10 @@ -#!/bin/bash +#!/usr/bin/env bash # -# Copyright (c) 2013-2021 Igor Pecovnik, igor.pecovnik@gma**.com +# SPDX-License-Identifier: GPL-2.0 # -# This file is licensed under the terms of the GNU General Public -# License version 2. This program is licensed "as is" without any -# warranty of any kind, whether express or implied. +# Copyright (c) 2013-2023 Igor Pecovnik, igor@armbian.com # -# This file is a part of the Armbian build script +# This file is a part of the Armbian Build Framework # https://github.com/armbian/build/ # The Armbian functions require Bash 5.x. diff --git a/lib/tools/gen-library.sh b/lib/tools/gen-library.sh index 11de9946f..741babf1f 100755 --- a/lib/tools/gen-library.sh +++ b/lib/tools/gen-library.sh @@ -1,4 +1,12 @@ #!/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/ + set -e SRC="$( diff --git a/lib/tools/oras.sh b/lib/tools/oras.sh index 7a706178c..a5a4f4ff4 100755 --- a/lib/tools/oras.sh +++ b/lib/tools/oras.sh @@ -1,4 +1,11 @@ #!/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/ set -e diff --git a/lib/tools/shellcheck.sh b/lib/tools/shellcheck.sh index 57c51820e..9701f594e 100755 --- a/lib/tools/shellcheck.sh +++ b/lib/tools/shellcheck.sh @@ -1,4 +1,11 @@ #!/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/ SHELLCHECK_VERSION=${SHELLCHECK_VERSION:-0.9.0} # https://github.com/koalaman/shellcheck/releases diff --git a/lib/tools/shellfmt.sh b/lib/tools/shellfmt.sh index c6cc089c0..9a2e14568 100755 --- a/lib/tools/shellfmt.sh +++ b/lib/tools/shellfmt.sh @@ -1,4 +1,11 @@ #!/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/ SHELLFMT_VERSION=${SHELLFMT_VERSION:-3.6.0} # https://github.com/mvdan/sh/releases/