Ricardo Pardini
61d85648ea
cleaning: stop lying about CLEAN_LEVEL=debs -- now it simply deletes every .deb in the folder (same as =alldebs)
2023-03-31 09:12:44 +02:00
Ricardo Pardini
55af87be8b
lib: update library-functions.sh (via bash lib/tools/gen-library.sh)
2023-03-31 09:12:44 +02:00
Ricardo Pardini
f969a5e30f
lib: completely remove CHOSEN_xxx, BSP_xxx_NAME, BSPFREEZE=yes
2023-03-31 09:12:44 +02:00
Ricardo Pardini
ed0b406265
lib: fix: replace undue export statements with declare -g
2023-03-31 09:12:44 +02:00
Ricardo Pardini
77921725fb
lib: run shellfmt; remove commented-out; no actual changes
2023-03-31 09:12:44 +02:00
Ricardo Pardini
f75b9c110f
aggregation: fix: don't eat value if empty during bash_string_multiline(); write end-of-file comment; show aggregation bash results if debugging
2023-03-31 09:12:44 +02:00
Ricardo Pardini
fe7a24885b
docker: introduce DOCKER_SKIP_UPDATE=yes to skip updating prebuilt Docker image, only when using
2023-03-31 09:12:44 +02:00
Ricardo Pardini
40c5df55ab
docker: introduce ${DOCKER_ARMBIAN_BASE_COORDINATE_PREFIX:-"ghcr.io/armbian/docker-armbian-build:armbian-"} for easy override
2023-03-31 09:12:44 +02:00
Ricardo Pardini
7d90b10f79
configdump: better logging; insert (still unsupported) array/dict raw value and 2do markers into produced dump JSON
2023-03-31 09:12:44 +02:00
Ricardo Pardini
f12015954a
distro-agnostic: emit 'info' message before setting root password, otherwise logs are confusing
2023-03-31 09:12:44 +02:00
Ricardo Pardini
d868d76182
artifacts: bsp-cli, bsp-desktop, desktop: rework, with @igorpec
...
- bsp-cli: does not require aggregation
- bsp-desktop / desktop: requires aggregation
- 'desktop' packaged moved out of 'bsp' folder, it is NOT a bsp
- make consistent naming/folders
- extract .sh generation workflow into 'declare -f' magic functions
- `SHOW_DEBIAN=yes` to bump most of `DEBIAN/xxx` stuff to screen
- artifact armbian-bsp-desktop: use aggregation, require certain vars, CLI forces `BUILD_DESKTOP=yes`; requires BOARD
- artifact armbian-desktop: use aggregation, require certain vars, CLI forces `BUILD_DESKTOP=yes`, not require `BOARD` anymore
- cli: commands: fix artifact aliases, reorder
- desktop/bsp-desktop: add `config_dump` method; fix `artifact_map_debs` ref subdir and name
- artifact bsps: require aggregation to build, not to list what needs to be built
- distro-agnostic: fix install of `armbian-bsp-cli` (not `armbian-bsp`)
- armbian-bsp-cli: add `_config_dump` method, use configuration with aggregation, add required vars check
- distro-specific: fix installation of `fake-ubuntu-advantage-tools`
2023-03-31 09:12:44 +02:00
Ricardo Pardini
55ba084acc
configdump: include rudimentary artifact dependency information for config-dump-json (artifact implementations)
...
- include rudimentary artifact dependency information for config-dump-json: fixes/refactor/cleanup
- artifact-rootfs.sh: include rudimentary artifact dependency information for config-dump-json
- artifact-armbian-(config/plymouth-theme/zsh).sh: include rudimentary artifact dependency information for config-dump-json
- artifact-fake-ubuntu-advantage-tools.sh: include rudimentary artifact dependency information for config-dump-json
2023-03-31 09:12:44 +02:00
Ricardo Pardini
42fc56697b
configdump/json-info-boards: revamp, all-JSON now; use_board=yes skip_kernel=no for config; refactor & use new Python bash-declare-to-JSON utility
...
- use new capture'd vars scheme
- so `./compile.sh BOARD=xxx BRANCH=yyyy config-dump-json | jq .` now works and is consistent/newline tolerant
- introduce internal `skip_host_config=yes` for `prep_conf_main_minimal_ni()` to skip calling `check_basic_host()`
2023-03-31 09:12:44 +02:00
Ricardo Pardini
fc14d62c52
capture: set globals CAPTURED_VARS_NAMES and CAPTURED_VARS_ARRAY (instead of CAPTURED_VARS_ARRAY that was space-delimited); filter and sort last-minute
2023-03-31 09:12:44 +02:00
Ricardo Pardini
fb4477afb8
oras: add --insecure to further retries if we get a failure on first try, to workaround GitHub's March/2023 mess with certificates
2023-03-31 09:12:44 +02:00
Ricardo Pardini
9a74b838ce
runners: introduce internal skip_error_info=yes for run_host_command_logged()
...
- doesn't show nor clear vars `if_error_find_files_sdcard` and `if_error_detail_message`
- used by `chroot_sdcard_apt_get()` which uses `run_host_command_logged()` multiple times, and the first would clear the important/last one
2023-03-31 09:12:44 +02:00
Ricardo Pardini
a77d5f3c70
fix: declare some variables that were leaking into global namespace for no reason
...
- especially `for VAR in ...` and VAR leaks sans the declare
- rename `fragment_manager_cleanup_file` to `extension_manager_cleanup_file`
2023-03-31 09:12:44 +02:00
Ricardo Pardini
02c561ce0e
bat-cat: introduce tooling support for bat (colorized/smart cat), including DEBIAN/xxx syntaxes; cached in Docker image
2023-03-31 09:12:44 +02:00
Ricardo Pardini
b820a4d68f
tools: oci-oras/shellcheck: fix, test if binary already in place before considering copying it, but only after BIN is actually defined
2023-03-31 09:12:44 +02:00
Ricardo Pardini
b59447c96e
apt-install: install_deb_chroot(): useful logging, when trying to install invalid stuff
2023-03-31 09:12:44 +02:00
Igor
00f849ac71
[AR-1620 + AR-1639 squashed]:: @igorpec's armbian-config/zsh/bsp/desktop/ubuntu-advantage artifacts
2023-03-31 09:12:44 +02:00
hzy
76ce4c3a3d
Fix uImage build
2023-03-30 03:41:28 +08:00
hzy
26b8642804
Bugfix: Allow to set empty cmdline params
...
Fix the following error:
[🌱 ] Skip cmdline param [ 'DESKTOP_APPGROUPS_SELECTED': already set to '(empty)' early ]
2023-03-26 20:54:39 +02:00
Igor
a01f764195
If OCI_TARGET_BASE is not set, then this override doesn't work
2023-03-22 10:35:36 +01:00
Markus Hoffrogge
cca7fe1ff3
Log build runtime in minutes with seconds
2023-03-22 07:44:06 +01:00
Ricardo Pardini
a13383143c
lib/tools/shellcheck.sh: add (very low-bar "error") checks to config/sources and config/boards (keeping lib/ code in custom "critical" level)
2023-03-20 17:54:25 -03:00
Igor
7a6dca2f90
Add switch
2023-03-20 13:50:33 +01:00
Ricardo Pardini
c146fdf28b
kernel-headers: don't try to build objtool if not amd64 target (for real this time)
2023-03-18 21:45:49 +01:00
Igor
d4a7a1c816
Revert "Update export-logs.sh to use primary Armbian paste server ( #4936 )"
...
This reverts commit bc62c8cd42 .
2023-03-18 21:39:02 +01:00
Ricardo Pardini
994b80a1a1
kernel: postinst: use --nofsroot option to findmnt when finding /boot's filesystem type
...
- otherwise we might get `/dev/mmcblk2p1[/boot]` when `/boot` is bind-mounted
- `--nofsroot: don't print [/dir] for bind or btrfs mounts`
2023-03-18 07:09:40 -03:00
Ricardo Pardini
4509e3fcf2
kernel-headers: don't try to build objtool if not amd64 target
2023-03-17 08:32:11 +01:00
Ricardo Pardini
8493d91b61
check early (before running any CLI command) for old LIB_TAG usage
2023-03-17 08:32:11 +01:00
Ricardo Pardini
2f4f117000
prepare ORAS tooling early, so we don't get spurious failures "only on first build"
2023-03-17 08:32:11 +01:00
Ricardo Pardini
4e6fd3a507
warn about KERNEL_CONFIGURE=yes being deprecated during image build; instructions on how to do it properly
2023-03-17 08:32:11 +01:00
Ricardo Pardini
630ee512cb
stop the build if LIB_TAG is set at all; some users expect it to work while it doesn't
2023-03-17 08:32:11 +01:00
Ricardo Pardini
6b965c605c
completely remove any traces of KERNEL_ONLY and exit with error if set
2023-03-17 08:32:11 +01:00
Ricardo Pardini
6d1c5fb8b7
artifact: kernel: use C999999 for .config hash is KERNEL_CONFIGURE=yes; force ignore cache if so
2023-03-17 08:32:11 +01:00
Ricardo Pardini
c8412c8791
compress-checksum: don't compress files ending in .txt, thanks
2023-03-17 08:32:11 +01:00
Ricardo Pardini
91b7b35fa3
rootfs-to-image/distro-agnostic: introduce IMAGE_VERSION, can be used to override VERSION file ($REVISION) just for image filename/issue/os-release
2023-03-17 08:32:11 +01:00
Ricardo Pardini
bf325a4565
artifact: kernel: introduce KERNEL_SKIP_MAKEFILE_VERSION=yes -- for families that patch their kernel's Makefile version; in that case only SHA1 is present in version
...
- better to withold the info, than to offer wrong info
- eg: `odroidxu4`/`current`
2023-03-17 08:32:11 +01:00
Ricardo Pardini
ff657fcf90
artifacts (all): require prefixing of artifact_version with artifact_prefix_version (which is ${REVISION}--)
2023-03-17 08:32:11 +01:00
Ricardo Pardini
9931350483
docker: fix: pass down OCI_TARGET_BASE to Docker instance automatically
2023-03-17 08:32:11 +01:00
Ricardo Pardini
736fe7ecf4
don't use "bright black" ANSI for logging unless we're running under a known-good terminal (eg, iTerm2)
...
- giving up on the "bright black" == "gray" thing. There's enough bad default themes out there, and not the first time people (rightfully) complained...
2023-03-17 08:32:11 +01:00
Igor Pečovnik
669d00a6ab
Repository was removed. Lets pin to new one with new commit id. ( #4944 )
...
Signed-off-by: Igor <igor@armbian.com>
2023-03-13 21:38:29 +01:00
Ricardo Pardini
ee11f5dbd9
chroot_sdcard_apt_get: don't use -qq for all apt operations on chroot if SHOW_DEBUG=yes (or DEBUG=yes)
...
- helps debugging crazy upgrades happening due to @rpardini's stupid `Version: ` insanity
2023-03-12 18:40:20 -03:00
TheLinuxBug
bc62c8cd42
Update export-logs.sh to use primary Armbian paste server ( #4936 )
...
Changing export-logs.sh script from posting to armbian.next.armbian.com to posting to the primary paste server which has now been upgraded at paste.armbian.com.
2023-03-11 22:03:40 +01:00
Ricardo Pardini
bdec7c7c23
compilation: uboot: manage shopt nullglob same way as IFS, so UBOOT_TARGET_MAP's with * somewhere are not skipped [fixed]
...
- add some debugs
- don't fail for no good reason (shopt -p has some crazy exit code logic)
2023-03-10 10:49:45 -03:00
Igor Pečovnik
d59fa58875
Add (c) also to python scripts ( #4926 )
2023-03-09 20:52:06 +01:00
Michael Beck
1223b22ffd
WSL2: Ensure the Windows Terminal is detected under WSL2 docker build. ( #4915 )
...
- by passing the WT_SESSION environment variable into the docker container if it is set
2023-03-09 19:19:30 +01:00
Igor Pečovnik
b7b8eb7b72
Add / modify (c) in bash scripts ( #4922 )
...
* Add / modify (c) in bash scripts
Signed-off-by: Igor <igor@armbian.com>
* Add (c) to the source config files
---------
Signed-off-by: Igor <igor@armbian.com>
2023-03-09 18:30:40 +01:00