File tree Expand file tree Collapse file tree 8 files changed +48
-16
lines changed Expand file tree Collapse file tree 8 files changed +48
-16
lines changed Original file line number Diff line number Diff line change @@ -582,9 +582,13 @@ _package-headers() {
582582 echo " Installing KConfig files..."
583583 find . -name ' Kconfig*' -exec install -Dm644 {} " $builddir /{}" \;
584584
585- if ! _is_lto_kernel ; then
586- echo " Installing Rust files... "
585+ # Install .rmeta files if they exist
586+ if compgen -G " rust/*.rmeta " 1> /dev/null ; then
587587 install -Dt " $builddir /rust" -m644 rust/* .rmeta
588+ fi
589+
590+ # Install .so files if they exist
591+ if compgen -G " rust/*.so" 1> /dev/null; then
588592 install -Dt " $builddir /rust" rust/* .so
589593 fi
590594
Original file line number Diff line number Diff line change @@ -582,9 +582,13 @@ _package-headers() {
582582 echo " Installing KConfig files..."
583583 find . -name ' Kconfig*' -exec install -Dm644 {} " $builddir /{}" \;
584584
585- if ! _is_lto_kernel ; then
586- echo " Installing Rust files... "
585+ # Install .rmeta files if they exist
586+ if compgen -G " rust/*.rmeta " 1> /dev/null ; then
587587 install -Dt " $builddir /rust" -m644 rust/* .rmeta
588+ fi
589+
590+ # Install .so files if they exist
591+ if compgen -G " rust/*.so" 1> /dev/null; then
588592 install -Dt " $builddir /rust" rust/* .so
589593 fi
590594
Original file line number Diff line number Diff line change @@ -583,9 +583,13 @@ _package-headers() {
583583 echo " Installing KConfig files..."
584584 find . -name ' Kconfig*' -exec install -Dm644 {} " $builddir /{}" \;
585585
586- if ! _is_lto_kernel ; then
587- echo " Installing Rust files... "
586+ # Install .rmeta files if they exist
587+ if compgen -G " rust/*.rmeta " 1> /dev/null ; then
588588 install -Dt " $builddir /rust" -m644 rust/* .rmeta
589+ fi
590+
591+ # Install .so files if they exist
592+ if compgen -G " rust/*.so" 1> /dev/null; then
589593 install -Dt " $builddir /rust" rust/* .so
590594 fi
591595
Original file line number Diff line number Diff line change @@ -582,9 +582,13 @@ _package-headers() {
582582 echo " Installing KConfig files..."
583583 find . -name ' Kconfig*' -exec install -Dm644 {} " $builddir /{}" \;
584584
585- if ! _is_lto_kernel ; then
586- echo " Installing Rust files... "
585+ # Install .rmeta files if they exist
586+ if compgen -G " rust/*.rmeta " 1> /dev/null ; then
587587 install -Dt " $builddir /rust" -m644 rust/* .rmeta
588+ fi
589+
590+ # Install .so files if they exist
591+ if compgen -G " rust/*.so" 1> /dev/null; then
588592 install -Dt " $builddir /rust" rust/* .so
589593 fi
590594
Original file line number Diff line number Diff line change @@ -652,9 +652,13 @@ _package-headers() {
652652 echo " Installing KConfig files..."
653653 find . -name ' Kconfig*' -exec install -Dm644 {} " $builddir /{}" \;
654654
655- if ! _is_lto_kernel ; then
656- echo " Installing Rust files... "
655+ # Install .rmeta files if they exist
656+ if compgen -G " rust/*.rmeta " 1> /dev/null ; then
657657 install -Dt " $builddir /rust" -m644 rust/* .rmeta
658+ fi
659+
660+ # Install .so files if they exist
661+ if compgen -G " rust/*.so" 1> /dev/null; then
658662 install -Dt " $builddir /rust" rust/* .so
659663 fi
660664
Original file line number Diff line number Diff line change @@ -582,9 +582,13 @@ _package-headers() {
582582 echo " Installing KConfig files..."
583583 find . -name ' Kconfig*' -exec install -Dm644 {} " $builddir /{}" \;
584584
585- if ! _is_lto_kernel ; then
586- echo " Installing Rust files... "
585+ # Install .rmeta files if they exist
586+ if compgen -G " rust/*.rmeta " 1> /dev/null ; then
587587 install -Dt " $builddir /rust" -m644 rust/* .rmeta
588+ fi
589+
590+ # Install .so files if they exist
591+ if compgen -G " rust/*.so" 1> /dev/null; then
588592 install -Dt " $builddir /rust" rust/* .so
589593 fi
590594
Original file line number Diff line number Diff line change @@ -578,9 +578,13 @@ _package-headers() {
578578 echo " Installing KConfig files..."
579579 find . -name ' Kconfig*' -exec install -Dm644 {} " $builddir /{}" \;
580580
581- if ! _is_lto_kernel ; then
582- echo " Installing Rust files... "
581+ # Install .rmeta files if they exist
582+ if compgen -G " rust/*.rmeta " 1> /dev/null ; then
583583 install -Dt " $builddir /rust" -m644 rust/* .rmeta
584+ fi
585+
586+ # Install .so files if they exist
587+ if compgen -G " rust/*.so" 1> /dev/null; then
584588 install -Dt " $builddir /rust" rust/* .so
585589 fi
586590
Original file line number Diff line number Diff line change @@ -648,9 +648,13 @@ _package-headers() {
648648 echo " Installing KConfig files..."
649649 find . -name ' Kconfig*' -exec install -Dm644 {} " $builddir /{}" \;
650650
651- if ! _is_lto_kernel ; then
652- echo " Installing Rust files... "
651+ # Install .rmeta files if they exist
652+ if compgen -G " rust/*.rmeta " 1> /dev/null ; then
653653 install -Dt " $builddir /rust" -m644 rust/* .rmeta
654+ fi
655+
656+ # Install .so files if they exist
657+ if compgen -G " rust/*.so" 1> /dev/null; then
654658 install -Dt " $builddir /rust" rust/* .so
655659 fi
656660
You can’t perform that action at this time.
0 commit comments