Skip to content

Commit

Permalink
kernel-devsrc: use the common NI kernel-devsrc.inc
Browse files Browse the repository at this point in the history
The kernel-devsrc.bbappend currently uses its own implementation of the
NI-specific postinst methods. There already exists a
kernel-devsrc-nilrt.inc file which includes a more modern version of the
same function, and which is sourced by the alternative kernel-devsrc
packages.

Use the kernel-devsrc-nilrt.inc file which is common to all NILRT
kernel-devsrc implementations, in the primary version of the package,
for easier maintenance.

Signed-off-by: Alex Stewart <[email protected]>
  • Loading branch information
amstewart committed Sep 14, 2021
1 parent 97b60f0 commit 623d332
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions recipes-kernel/linux/kernel-devsrc.bbappend
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
pkg_postinst_ontarget_kernel-devsrc () {
cd /lib/modules/${KERNEL_VERSION}/build
make prepare
make modules_prepare
}
require kernel-devsrc-nilrt.inc

# "make prepare" skips building objtool if elfutils-dev is not installed at
# postinst time; however if you install elfutils-dev later, then when dkms
Expand Down

0 comments on commit 623d332

Please sign in to comment.