From 0c78ba367a86d057117ea7ee6f2ffee733869bd1 Mon Sep 17 00:00:00 2001 From: itsmanjeet Date: Mon, 19 Aug 2024 08:49:17 +0200 Subject: [PATCH] fixed required library --- board/x86_64/post-build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/board/x86_64/post-build.sh b/board/x86_64/post-build.sh index bfa8f82c..71b667cd 100755 --- a/board/x86_64/post-build.sh +++ b/board/x86_64/post-build.sh @@ -36,6 +36,11 @@ for i in ata_id scsi_id cdrom_id mtd_probe v4l_id libinput-device-group dmi_memo objdump -p $INITRAMFS_DIR/lib/udev/$i | grep NEEDED | awk '{print $2}' >> $UNSORTED done +req=$(cat $UNSORTED | sort | uniq) +for lib in $req ; do + objdump -p $TARGET_DIR/lib/$lib | grep NEEDED | awk '{print $2}' >> $UNSORTED +done + for i in $TARGET_DIR/lib/udev/rules.d/*.rules ; do install -vDm0644 $i -t $INITRAMFS_DIR/lib/udev/rules.d/ done