diff --git a/CREDITS.md b/CREDITS.md new file mode 100644 index 0000000000..c1fec70bc3 --- /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 b17fd70140..f5628091e2 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 7f24830052..cb1963b1bd 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 e474c0395e..d7b087418b 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 22f50215c6..ea818feef7 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 bc62633917..a2acea1986 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 02bb8a3ab4..453e1d1ff5 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 a33e6cbe3f..34196874fc 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 8f78735723..ac6573498a 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 2256660153..e2cb9729ea 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 072d53eccb..6d99014fa8 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 42bb0fa150..d90fc20e96 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 4be6650fb7..70bc43fe4a 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 e6c29dceac..e15bc80e98 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 80c3dea9ba..bfa5c7b932 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 500edad7ac..6f9ca81ef8 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 dd5fab619b..8101d3ff88 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 09fb13816d..ffe8227635 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 f62a6c044f..eaa85ca15b 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 f7f71d8472..b976de9b9a 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 0f6128b629..6bce7c8390 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 cc2065da3f..c3f4ef259a 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 33e8ea9c16..f8b2c13826 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 42669592ce..758ad77813 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 a8f9ebb9b3..106afd3b62 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 df58c42ef3..3503c9abb0 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 9e7afe5776..7773dadd31 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 7e8a4c4244..2af87c5730 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 bb039c4629..1365b9cb76 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 f3a2f5a5ac..db806cec75 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 8fbaf3febe..26aa9122e4 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 cc1f3ba711..37ce606f75 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 c20d9b90a6..a38c420594 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 a6e864a02d..7aa1b32f40 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 cbf14333ce..024c09a14e 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 f08bad9584..4622d6cc95 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 7734f69a78..fbf0a1f80c 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 cef23afbab..ce6e93d71c 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 c302e4683b..6c4bea2f13 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 64e9e99feb..e89019ddec 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 f037f67356..798dd450cf 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 0211635786..c754b60351 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 a38be8a52a..b287cb16ad 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 515f4bf66f..d3ef043873 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 6b05a17b93..ce1584cf98 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 985568bbaf..d2a3691604 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 a2803729c9..160debeee3 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 ccdf67284f..bc64133a4f 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 164c10308b..ee0ca5d6fd 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 6faceb65f8..5aa99194fb 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 fe6e4efeab..2958fa491a 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 5a9e427556..2987e0a18c 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 d82459cd89..43227b06fb 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 5104583c5f..0b64c46f3b 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 9ef7f90c7f..468001f054 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 b5be13db86..bf5cc24c3e 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 da228cc0a8..7bd0a14190 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 f090881ab7..88d7dd3a45 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 e7ef489ba4..8f03827cfb 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 7caf1e88e2..7b51b16553 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 de458272f6..6b290aff75 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 d2cae5f1b6..66bcd270e8 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 f839b9ce79..5b5ead3528 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 d59ce8f0de..62a8f4e592 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 84dfb1353d..994652abf6 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 31f28b8c8e..f26bc19232 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 86ca4333ce..a96733f394 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 00cf8b6578..b7854197ec 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 e9d6789d7b..fdc51253a6 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 ee9d5db9ac..b740da3bdf 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 cf7a243465..fb7ccb61d2 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 14460ef13d..72ae5b4196 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 34594123e1..7751c70798 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 25aab8ffb0..459ecb3313 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 c43a5ee70d..baf7e2a5db 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 dc539c5082..1b4bf59a70 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 67b8cc3481..4a40101841 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 38cc533a16..bd79aa1c86 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 94e917bac1..6355c213ad 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 289b1be9ca..6220cfdc5a 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 9db2f425a5..2604bd374a 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 fd9175b784..06ad495643 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 ff83927325..b4babb361a 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 0dbe517952..440792a3b8 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 f10406de19..6dec89ee79 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 e8dc363b20..a606a7c762 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 01eb3ca695..fcdb1eb891 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 10b9252fd3..e52f071849 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 744e3b5d58..d56cb976e1 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 db5df113aa..d8c40b6d87 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 1943b4a294..24dd000ad2 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 e95bf3626c..e4789403d1 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 219fca8246..3586c39096 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 ccf7b86e1c..bc300ccb08 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 0a31987eb1..ba7c52e967 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 120726198a..72597b5b9f 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 bff1f5833a..d5ea52a2cc 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 a43223c285..5731ab0168 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 7fe3c5dc2a..0cdc3d9a9c 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 61789ba225..32108d57e9 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 a0944f6664..af91252460 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 e872c8cab2..07f0bc27db 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 c8464aca7d..c9aa7240a7 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 2a909819f6..4c3adff988 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 94aa4bc43d..fdbb4ac21d 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 18bab5bd64..cafd4d068e 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 45d3cc881c..8f74aa2c42 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 83742e6fb9..f0b2ea5005 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 452a172063..b1c5194a7e 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 225accd477..fd3c19e00f 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 ada505f108..5bfada1f0b 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 dfc927a572..143316921f 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 f36b05ff3b..0edf339622 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 3403256fd5..b1388c312b 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 dde8d7a4c4..5726f0312b 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 690d454943..e77f6937ac 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 4cd5b8a74c..8828345448 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 61ffcb4bd3..9a8208f49d 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 f805bc759f..158a43d79a 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 9cfa07f57e..8a28eef2bf 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 bc532432bc..36673e1b3a 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 58511d47f5..43c5c7d050 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 0e2deb2c5d..871a7008d6 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 b5e54684c1..1090644dca 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 a905e95745..5d1152a8b2 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 0c3154d520..e9eb35a71f 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 ab2175eafe..13709b73d5 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 003daba497..b863660844 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 21994e5135..e0d3825c59 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 e05a7f0a66..00dea07709 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 af57a1ee0f..2dc838d268 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 bb02eaeb6a..4300087d24 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 1345ac27b1..16e9acb83d 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 c4c84db6cc..9513d9e588 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 e414698fc2..0e50d3de7f 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 32afc71fe0..ff6970e6b3 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 a88236cb91..9e71b2fca4 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 06efd2678a..55a71b69f2 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 0066e7e426..c82a48f0e0 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 4720dc498e..cd1c41653f 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 37946cf667..18a1c8889c 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 0b0af435bf..1c6c1da4e9 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 77eaf3e92c..dc693ce33b 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 12a4e5498c..4d2271f931 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 6982a4f438..e749c2d7ca 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 7759234193..880eda6e9c 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 60ae54130c..e0170f95bf 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 e8ec855b5d..89bc7db074 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 385750d74c..0a6b8f9ef0 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 86ca0eae03..26e756224f 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 86ba17ed7c..116c41ce32 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 edf94c9378..3e868ce798 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 651fbf7481..d15bd73388 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 ac6754296c..a4960a7123 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 5826dd3b74..35d1d2f48e 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 b07d85f39d..807cba6a55 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 39301d2252..ddfb039221 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 e99287694a..b89462d44d 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 a787a6318f..453e3c33c0 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 4699c80b98..f40c74e70d 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 04462755e5..880f713750 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 5daddc283b..6bc3ca4398 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 96d8f26874..05d883de69 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 81e9294ac4..05ffcf8d7c 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 812bb62139..7c358d1af5 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 d3a9070c1b..d758f808d4 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 3ff5f9cad8..91b9d2ce9f 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 7ee320cf99..3394301bd8 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 741b4300e8..c14ba29cbb 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 91569cbe1a..a2a8babab8 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 ee09e2230e..d363a0f9f0 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 adcb574e35..9e8cdbf6ed 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 7a21c1f2e9..a3f5bc4fce 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 20bc90b907..ae157eee2f 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 2f9e7cfaf5..5e32d473ea 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 11de9946f7..741babf1f5 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 7a706178c3..a5a4f4ff43 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 57c51820e1..9701f594ed 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 c6cc089c06..9a2e145685 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/