mirror of
https://github.com/armbian/build.git
synced 2025-08-11 21:56:58 +02:00
- artifacts: introduce `ARTIFACT_IGNORE_CACHE=yes` - artifacts: introduce `DONT_BUILD_ARTIFACTS`, list of artifacts that if not found cached, fail the build - kernel_package_source() is no more - a long dissertation about kernels, families, and the universe - artifacts: actually use rootfs artifact for image build - artifacts: detangle via artifact_base_dir - artifacts: rootfs: use folders in artifact_name; include cache_type - artifacts: some cleanups / validations - rootfs artifact; drop old rootfs cli - artifacts: new CLI shortcuts; remove old firmware CLI - artifacts: full firmware & usage - use firmware artifacts in image build and install its debs - kernel artifact sans legacy; use tmpdir for .deb target for all packages - legacy artifact versions is no more; pack/unpack now in common obtain; - artifacts: uboot: cleanup legacy renaming, use artifact version directly - artifacts: add firmware (small) artifact - deploy uboot to loop from artifact; allow tty to artifact; todos for cleaning - fixes, kernel dtb/headers conditional; remove `.git` from Makefile url; use mapfile for finding files to hash - completely remove KERNEL_HAS_WORKING_HEADERS_FULL_SOURCE and `kernel_package_callback_linux_headers_full_source()` - don't use realpath for artifact_file_relative - curb some warnings - fix: only install headers & dtbs if such exist - kernel .config hook modification hash versioning - OCI_TARGET_BASE vs per-artifact defaults; only deploy to remote from CLI with OTB - artifact revolver & installing into image - add artifact_map_packages and artifact_map_debs dicts - revolver accumulates all info - REPOSITORY_INSTALL is no more (for uboot/kernel, later others) - rename `VER` to `IMAGE_INSTALLED_KERNEL_VERSION`
27 lines
1.3 KiB
Bash
27 lines
1.3 KiB
Bash
function extension_prepare_config__prepare_localmodconfig() {
|
|
# If defined, ${LSMOD} can contain a lsmod to apply to the kernel configuration.
|
|
# to get a file for this run 'lsmod > my_machine.lsmod' and then put it in userpatches/lsmod/
|
|
declare -g -r LSMOD="${LSMOD:-"${BOARD}"}" # default to the board name
|
|
display_alert "${EXTENSION}: lsmod enabled" "${LSMOD}" "warn"
|
|
|
|
# If there, make sure it exists
|
|
declare -g -r lsmod_file="${SRC}/userpatches/lsmod/${LSMOD}.lsmod"
|
|
if [[ ! -f "${lsmod_file}" ]]; then
|
|
exit_with_error "Can't find lsmod file ${lsmod_file}, create it by running lsmod on target HW or configure with LSMOD=xxx"
|
|
fi
|
|
}
|
|
|
|
# This needs much more love than this. can be used to make "light" versions of kernels, that compile 3x-5x faster or more
|
|
function custom_kernel_config__apply_localmodconfig() {
|
|
if [[ -f "${lsmod_file}" ]]; then
|
|
kernel_config_modifying_hashes+=("$(cat "${lsmod_file}")")
|
|
if [[ -f .config ]]; then
|
|
display_alert "${EXTENSION}: running localmodconfig on Kernel tree" "${LSMOD}" "warn"
|
|
run_kernel_make "LSMOD=${lsmod_file}" localmodconfig "> /dev/null" # quoted redirect to hide output even from logfile, it's way too long. stderr still shows
|
|
fi
|
|
else
|
|
display_alert "${EXTENSION}: lsmod file disappeared?" "${lsmod_file}" "err"
|
|
return 1 # exit with an error; this is not what the user expected
|
|
fi
|
|
}
|