Skip to content

Commit

Permalink
kernel-dtb: copy also the dtb binary for the board to output
Browse files Browse the repository at this point in the history
  • Loading branch information
rpardini authored and igorpecovnik committed Sep 3, 2024
1 parent 02eec74 commit b834256
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/functions/compilation/kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,12 @@ function kernel_dtb_only_build() {
exit_with_error "Failed to parse BOOT_FDT_FILE: ${BOOT_FDT_FILE}"
fi

# Copy the bin dtb for convenience
display_alert "Kernel DTB-only for development" "Copying binary ${BOOT_FDT_FILE}" "warn"
declare binary_dtb="${kernel_work_dir}/arch/${ARCH}/boot/dts/${fdt_dir}/${fdt_file}"
declare binary_dtb_dest="${SRC}/output/${fdt_dir}-${fdt_file}--${KERNEL_MAJOR_MINOR}-${BRANCH}.dtb"
run_host_command_logged cp -v "${binary_dtb}" "${binary_dtb_dest}"

# Kernel build should produce a preprocessed version of all DTS files built into DTBs at arch/arm64/boot/dts/${fdt_dir}/.${fdt_file}.dts.tmp
declare preprocessed_fdt_source="${kernel_work_dir}/arch/${ARCH}/boot/dts/${fdt_dir}/.${fdt_file}.dts.tmp"

Expand Down

0 comments on commit b834256

Please sign in to comment.