Ricardo Pardini
90c5a2743a
kernel: introduce new hook pre_package_kernel_image
; show vmlinuz file magic before/after hook; add -HK
hook hash to kernel artifact version
2023-04-08 14:33:39 +02:00
Ricardo Pardini
871415b7b3
arch configs (all): default, but do not overwrite, KERNEL_IMAGE_TYPE
/KERNEL_INSTALL_TYPE
/etc: allow board/family to set
2023-04-08 14:33:39 +02:00
Igor
7505671c80
Bugfix: storing revision and not artefact cache version in release file
2023-04-07 19:26:45 +02:00
Ricardo Pardini
369e69a553
artifact-armbian-bsp-cli: hash more variables included in /etc/armbian-release
2023-04-04 09:12:48 +02:00
Ricardo Pardini
6b1055dc9d
uboot: WiP: introduce UBOOT_CONFIGURE=yes
-- saves defconfig to output/
folder, nothing else (no patches, etc)
2023-04-03 21:21:03 +02:00
Ricardo Pardini
9b229f25ad
artifact-uboot: add hashes for extension and old-timey -H
ooks and -V
ariables hash (BOOTDELAY
et al)
...
- helper for hashing old-timey hooks: `calculate_hash_for_function_bodies()` in `hash-files.sh` cos I'm lazy
2023-04-03 21:21:03 +02:00
Igor
b2be0e5a45
Enable non-free-firmware repository for Debian Sid
...
Addressing:
[🐳 |💥 ] Error context msg [ Installation of Armbian main packages for sid 3dsupport xfce no failed ]
Error: Error context msg Installation of Armbian main packages for sid 3dsupport xfce no failed
[🐳 |🔨 ] Reading package lists...
[🐳 |🔨 ] Building dependency tree...
[🐳 |🔨 ] E: Unable to locate package firmware-sof-signed
2023-03-31 13:21:35 +02:00
Ricardo Pardini
fbc324ec06
artifact-kernel: fix: add -V
ariables version hashing, including KERNEL_INSTALL_TYPE
, KERNEL_IMAGE_TYPE
and SRC_LOADADDR
amongst others
2023-03-31 12:29:53 +02:00
Igor Pečovnik
f51a99f1fa
distro-agnostic.sh: fix, install armbian-zsh
correctly (not armbian-config
twice)
2023-03-31 09:12:44 +02:00
Igor Pecovnik
bf801d194b
distro-agnostic.sh: bring back BSPFREEZE=yes
which now works (somewhat)
2023-03-31 09:12:44 +02:00
Ricardo Pardini
ad56df54ba
artifact-armbian-bsp-cli: correctly hash the *sources* of family_tweaks_bsp
old-timey hook and post_family_tweaks_bsp
extension hooks
2023-03-31 09:12:44 +02:00
Ricardo Pardini
d2bb1f893a
extensions: many fixes; allow for dumping the source of hooks, via dump_extension_method_sources_functions()
and dump_extension_method_sources_body()
...
- fix: indent of generated sources
- fix: no reason to source the generated file in a loop. do it once. 20x faster?
- `dump_extension_method_sources_functions "name_of_hook"`: get function definitions (inside braces)
- `dump_extension_method_sources_body "name_of_hook"`: get the function bodies (sans-braces)
2023-03-31 09:12:44 +02:00
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
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
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 bc62c8cd42530f5ec7418775fb7cdc6e2fae5832.
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