Skip to content

Commit

Permalink
kernel-debs: fix: don't try to package linux-libc-dev if only packagi…
Browse files Browse the repository at this point in the history
…ng dtb

Fixes: 22511b3
  • Loading branch information
rpardini committed Apr 3, 2024
1 parent d263949 commit e83d1a0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/functions/compilation/kernel-debs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,12 @@ function prepare_kernel_packaging_debs() {
else
display_alert "Skipping linux-headers package" "for ${KERNEL_MAJOR_MINOR} kernel version" "info"
fi

display_alert "Packaging linux-libc-dev" "${LINUXFAMILY} ${LINUXCONFIG}" "info"
create_kernel_deb "linux-libc-dev-${BRANCH}-${LINUXFAMILY}" "${debs_target_dir}" kernel_package_callback_linux_libc_dev "linux-libc-dev"
fi

display_alert "Packaging linux-libc-dev" "${LINUXFAMILY} ${LINUXCONFIG}" "info"
create_kernel_deb "linux-libc-dev-${BRANCH}-${LINUXFAMILY}" "${debs_target_dir}" kernel_package_callback_linux_libc_dev "linux-libc-dev"
return 0
}

function create_kernel_deb() {
Expand Down Expand Up @@ -535,7 +537,6 @@ function kernel_package_callback_linux_headers() {
)
}


function kernel_package_callback_linux_libc_dev() {
display_alert "linux-libc-dev packaging" "${package_directory}" "debug"

Expand All @@ -545,7 +546,7 @@ function kernel_package_callback_linux_libc_dev() {
run_host_command_logged mkdir "${package_directory}/usr/include/${HOST_ARCH}"
run_host_command_logged mv "${package_directory}/usr/include/asm" "${package_directory}/usr/include/${HOST_ARCH}"

# Generate a control file
# Generate a control file
cat <<- CONTROL_FILE > "${package_DEBIAN_dir}/control"
Version: ${artifact_version}
Maintainer: ${MAINTAINER} <${MAINTAINERMAIL}>
Expand Down

0 comments on commit e83d1a0

Please sign in to comment.