Lines 4-10
Link Here
|
4 |
|
4 |
|
5 |
EAPI=4 |
5 |
EAPI=4 |
6 |
|
6 |
|
7 |
inherit versionator eutils toolchain-funcs linux-info |
7 |
inherit versionator eutils toolchain-funcs linux-info autotools |
8 |
|
8 |
|
9 |
DESCRIPTION="Misc tools bundled with kernel sources" |
9 |
DESCRIPTION="Misc tools bundled with kernel sources" |
10 |
HOMEPAGE="http://kernel.org/" |
10 |
HOMEPAGE="http://kernel.org/" |
Lines 37-43
Link Here
|
37 |
LINUX_SOURCES=linux-${LINUX_VER}.tar.bz2 |
37 |
LINUX_SOURCES=linux-${LINUX_VER}.tar.bz2 |
38 |
SRC_URI="${SRC_URI} mirror://kernel/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}" |
38 |
SRC_URI="${SRC_URI} mirror://kernel/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}" |
39 |
|
39 |
|
40 |
RDEPEND="sys-apps/pciutils" # pciutils for cpupower |
40 |
RDEPEND="sys-apps/pciutils |
|
|
41 |
sys-fs/sysfsutils |
42 |
dev-libs/glib" # pciutils for cpupower, sysfsutils and glib for usbip |
41 |
DEPEND="${RDEPEND}" |
43 |
DEPEND="${RDEPEND}" |
42 |
|
44 |
|
43 |
S="${WORKDIR}/linux-${LINUX_VER}" |
45 |
S="${WORKDIR}/linux-${LINUX_VER}" |
Lines 53-65
Link Here
|
53 |
Documentation/virtual/lguest/lguest.c |
55 |
Documentation/virtual/lguest/lguest.c |
54 |
Documentation/vm/page-types.c |
56 |
Documentation/vm/page-types.c |
55 |
Documentation/watchdog/src/watchdog-simple.c |
57 |
Documentation/watchdog/src/watchdog-simple.c |
56 |
drivers/staging/hv/tools/hv_kvp_daemon.c |
|
|
57 |
tools/slub/slabinfo.c |
58 |
tools/slub/slabinfo.c |
58 |
usr/gen_init_cpio.c |
59 |
usr/gen_init_cpio.c |
59 |
) |
60 |
) |
60 |
# Documentation/networking/ifenslave.c - obsolete |
61 |
# Documentation/networking/ifenslave.c - obsolete |
61 |
# Documentation/ptp/testptp.c - pending linux-headers-3.0 |
62 |
# Documentation/ptp/testptp.c - pending linux-headers-3.0 |
62 |
# tools/hv/hv_kvp_daemon.c - pending linux-3.2 |
|
|
63 |
|
63 |
|
64 |
# These have a broken make install, no DESTDIR |
64 |
# These have a broken make install, no DESTDIR |
65 |
TARGET_MAKE_SIMPLE=( |
65 |
TARGET_MAKE_SIMPLE=( |
Lines 88-93
Link Here
|
88 |
if [[ -n ${LINUX_PATCH} ]]; then |
88 |
if [[ -n ${LINUX_PATCH} ]]; then |
89 |
epatch "${DISTDIR}"/${LINUX_PATCH} |
89 |
epatch "${DISTDIR}"/${LINUX_PATCH} |
90 |
fi |
90 |
fi |
|
|
91 |
|
92 |
cd drivers/staging/usbip/userspace && |
93 |
eautoreconf -i -f -v && |
94 |
cd - || die "usbip" |
95 |
|
91 |
libs="-lcpupower -lrt -lpci" |
96 |
libs="-lcpupower -lrt -lpci" |
92 |
sed -i \ |
97 |
sed -i \ |
93 |
-e "/$libs/{ s,${libs},,g; s,\$, ${libs},g;}" \ |
98 |
-e "/$libs/{ s,${libs},,g; s,\$, ${libs},g;}" \ |
Lines 120-125
Link Here
|
120 |
esac |
125 |
esac |
121 |
} |
126 |
} |
122 |
|
127 |
|
|
|
128 |
src_configure() { |
129 |
cd drivers/staging/usbip/userspace && econf |
130 |
} |
131 |
|
123 |
src_compile() { |
132 |
src_compile() { |
124 |
local karch=$(kernel_asm_arch "${ARCH}") |
133 |
local karch=$(kernel_asm_arch "${ARCH}") |
125 |
# This is the minimal amount needed to start building host binaries. |
134 |
# This is the minimal amount needed to start building host binaries. |
Lines 140-145
Link Here
|
140 |
emake -C $dir ARCH=${karch} $target || die |
149 |
emake -C $dir ARCH=${karch} $target || die |
141 |
done |
150 |
done |
142 |
|
151 |
|
|
|
152 |
emake -C drivers/staging/usbip/userspace |
153 |
|
143 |
# cpupower is special |
154 |
# cpupower is special |
144 |
einfo "Buildling cpupower" |
155 |
einfo "Buildling cpupower" |
145 |
cd "${S}"/tools/power/cpupower |
156 |
cd "${S}"/tools/power/cpupower |
Lines 158-163
Link Here
|
158 |
dosbin ${dir}/${target} || die |
169 |
dosbin ${dir}/${target} || die |
159 |
done |
170 |
done |
160 |
|
171 |
|
|
|
172 |
emake -C drivers/staging/usbip/userspace DESTDIR="${D}" install |
173 |
|
161 |
local karch=$(kernel_asm_arch "${ARCH}") |
174 |
local karch=$(kernel_asm_arch "${ARCH}") |
162 |
cd "${S}"/tools/power/cpupower |
175 |
cd "${S}"/tools/power/cpupower |
163 |
cpupower_make ARCH=${karch} DESTDIR="${D}" install || die |
176 |
cpupower_make ARCH=${karch} DESTDIR="${D}" install || die |