Lines 16-22
Link Here
|
16 |
|
16 |
|
17 |
unpack ${A} |
17 |
unpack ${A} |
18 |
cd ${WORKDIR} |
18 |
cd ${WORKDIR} |
19 |
mv ${A/.tar.gz/} ${P} |
19 |
mv ${A/.tar.gz/}/modules ${P} |
|
|
20 |
mv ${A/.tar.gz/}/include/linux/em8300.h ${P} |
20 |
|
21 |
|
21 |
# Portage should determine the version of the kernel sources |
22 |
# Portage should determine the version of the kernel sources |
22 |
if [ x"${KV}" = x ] |
23 |
if [ x"${KV}" = x ] |
Lines 28-34
Link Here
|
28 |
die |
29 |
die |
29 |
fi |
30 |
fi |
30 |
|
31 |
|
31 |
cd ${S}/modules |
32 |
cd ${S} |
32 |
#Make the em8300 makefile cooperate with our kernel version |
33 |
#Make the em8300 makefile cooperate with our kernel version |
33 |
sed -e 's/PAL/NTSC/g' \ |
34 |
sed -e 's/PAL/NTSC/g' \ |
34 |
-e "s/..shell.uname.-r./${KV}/" \ |
35 |
-e "s/..shell.uname.-r./${KV}/" \ |
Lines 39-45
Link Here
|
39 |
|
40 |
|
40 |
src_compile () { |
41 |
src_compile () { |
41 |
|
42 |
|
42 |
cd ${S}/modules |
|
|
43 |
make clean all || die |
43 |
make clean all || die |
44 |
|
44 |
|
45 |
} |
45 |
} |
Lines 47-62
Link Here
|
47 |
src_install () { |
47 |
src_install () { |
48 |
|
48 |
|
49 |
insinto "/usr/src/linux/include/linux" |
49 |
insinto "/usr/src/linux/include/linux" |
50 |
doins include/linux/em8300.h |
50 |
doins em8300.h |
51 |
|
51 |
|
52 |
# The driver goes into the standard modules location |
52 |
# The driver goes into the standard modules location |
53 |
insinto "/lib/modules/${KV}/kernel/drivers/video" |
53 |
insinto "/lib/modules/${KV}/kernel/drivers/video" |
54 |
doins modules/em8300.o modules/bt865.o modules/adv717x.o |
54 |
doins em8300.o bt865.o adv717x.o |
55 |
|
55 |
|
56 |
# Docs |
56 |
# Docs |
57 |
dodoc modules/README-modoptions \ |
57 |
dodoc README-modoptions \ |
58 |
modules/README-modules.conf \ |
58 |
README-modules.conf \ |
59 |
modules/devfs_symlinks |
59 |
devfs_symlinks |
60 |
|
60 |
|
61 |
insinto /etc/modules.d |
61 |
insinto /etc/modules.d |
62 |
newins ${FILESDIR}/modules.em8300 em8300 |
62 |
newins ${FILESDIR}/modules.em8300 em8300 |