Hallo zusammen,
ich bräuchte mal wieder Hilfe bei einem ebuild:
Ich habe ein Tuxedo Notebook und um den Flight-Modus benutzen zu können, bietet Tuxedo ein kleines Kernel-Modul an: "tuxedo-wmi". Dieses kann ich problemlos runterladen, entpacken, übersetzen und installieren.
Ich will das aber nun gerne als ebuild in meinem lokale Overlay haben. Ich habs so weit mal versucht und auch ein anders ähnliches ebuild (
clevo-wmi ) gefunden und mich daran ein wenig orientiert. Allerdings gibts ne Fehlermeldung (findet das Makefile nicht, das in src ist.).
Kann mir jemand bitte helfen, was ich falsch mache? Im Tarball ist nur ein Ordner 'src' da müsste man rein wechseln, 'make all' und 'make install' ausführen und es als Kernelmodul deklarieren, damit es bei einem @module-rebuild mit in einen neueren Kernel gezogen wird.
Mein bisheriges ebuild:
|
Quellcode
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit linux-mod
DESCRIPTION="TUXEDO WMI Treiber - Flugmodus-Taste und Tastaturbeleuchtung"
HOMEPAGE="http://www.linux-onlineshop.de/forum/index.php?page=Thread&threadID=26&"
SRC_URI="http://xyz.de/tuxedo-wmi-1.5.1.src.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND="virtual/linux-sources
sys-kernel/linux-headers"
RDEPEND=""
MODULE_NAMES="tuxedo_wmi(wmi:${S})"
# Kernel config auf ACPI_WMI testen:
pkg_pretend() {
CONFIG_CHECK="ACPI_WMI"
check_extra_config
}
pkg_setup() {
linux-mod_pkg_setup
BUILD_TARGETS="all"
}
src_prepare() {
sed -i -e "s|KDIR :=.*|KDIR := ${KERNEL_DIR}|" \
Makefile || die "Failed to change Makefile"
}
|
Fehlermeldung bzw. log:
|
Quellcode
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
* Package: app-misc/tuxedo-wmi-1.5.1
* Repository: lokal
* USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
* FEATURES: preserve-libs sandbox userpriv usersandbox
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found sources for kernel version:
* 3.18.11-gentoo-archlinux-lts-C
>>> Unpacking source...
>>> Unpacking tuxedo-wmi-1.5.1.src.tar.gz to /home/.portage/tmp/portage/app-misc/tuxedo-wmi-1.5.1/work
>>> Source unpacked in /home/.portage/tmp/portage/app-misc/tuxedo-wmi-1.5.1/work
>>> Preparing source in /home/.portage/tmp/portage/app-misc/tuxedo-wmi-1.5.1/work/tuxedo-wmi-1.5.1 ...
sed: can't read Makefile: No such file or directory
* ERROR: app-misc/tuxedo-wmi-1.5.1::lokal failed (prepare phase):
* Failed to change Makefile
*
* Call stack:
* ebuild.sh, line 93: Called src_prepare
* environment, line 3006: Called die
* The specific snippet of code:
* sed -i -e "s|KDIR :=.*|KDIR := ${KERNEL_DIR}|" Makefile || die "Failed to change Makefile"
*
* If you need support, post the output of `emerge --info '=app-misc/tuxedo-wmi-1.5.1::lokal'`,
* the complete build log and the output of `emerge -pqv '=app-misc/tuxedo-wmi-1.5.1::lokal'`.
* The complete build log is located at '/home/.portage/tmp/portage/app-misc/tuxedo-wmi-1.5.1/temp/build.log'.
* The ebuild environment file is located at '/home/.portage/tmp/portage/app-misc/tuxedo-wmi-1.5.1/temp/environment'.
* Working directory: '/home/.portage/tmp/portage/app-misc/tuxedo-wmi-1.5.1/work/tuxedo-wmi-1.5.1'
* S: '/home/.portage/tmp/portage/app-misc/tuxedo-wmi-1.5.1/work/tuxedo-wmi-1.5.1'
|