mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-13 16:06:59 +02:00
sys-apps/kmod: apply flatcar patches
this revert: eb13455af7
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
This commit is contained in:
parent
7eb38b6a93
commit
9cf712bbdf
@ -18,7 +18,7 @@ fi
|
|||||||
|
|
||||||
LICENSE="LGPL-2"
|
LICENSE="LGPL-2"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
IUSE="debug doc +lzma pkcs7 static-libs +tools +zlib +zstd"
|
IUSE="debug doc +lzma pkcs7 split-usr static-libs +tools +zlib +zstd"
|
||||||
|
|
||||||
# Upstream does not support running the test suite with custom configure flags.
|
# Upstream does not support running the test suite with custom configure flags.
|
||||||
# I was also told that the test suite is intended for kmod developers.
|
# I was also told that the test suite is intended for kmod developers.
|
||||||
@ -79,8 +79,6 @@ src_prepare() {
|
|||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
local myeconfargs=(
|
local myeconfargs=(
|
||||||
--bindir="${EPREFIX}/bin"
|
|
||||||
--sbindir="${EPREFIX}/sbin"
|
|
||||||
--enable-shared
|
--enable-shared
|
||||||
--with-bashcompletiondir="$(get_bashcompdir)"
|
--with-bashcompletiondir="$(get_bashcompdir)"
|
||||||
$(use_enable debug)
|
$(use_enable debug)
|
||||||
@ -101,12 +99,10 @@ src_install() {
|
|||||||
|
|
||||||
find "${ED}" -type f -name "*.la" -delete || die
|
find "${ED}" -type f -name "*.la" -delete || die
|
||||||
|
|
||||||
if use tools; then
|
if use tools && use split-usr; then
|
||||||
local cmd
|
# Move modprobe to /sbin to match CONFIG_MODPROBE_PATH from kernel
|
||||||
for cmd in depmod insmod modprobe rmmod; do
|
rm "${ED}/usr/bin/modprobe" || die
|
||||||
rm "${ED}"/bin/${cmd} || die
|
dosym ../usr/bin/kmod /sbin/modprobe
|
||||||
dosym ../bin/kmod /sbin/${cmd}
|
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat <<-EOF > "${T}"/usb-load-ehci-first.conf
|
cat <<-EOF > "${T}"/usb-load-ehci-first.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user