summaryrefslogtreecommitdiff
path: root/meta/packages/exmap-console/exmap-console.bb
blob: e4af4c1be46b161b150c740b58866fd5f181e7c9 (plain)
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
40
41
42
DESCRIPTION = "console-based exmap"
HOMEPAGE = "http://www.o-hand.com"
SECTION = "devel"
LICENSE = "GPL"
PR = "r3"
PV = "0.9"

SRCDATE="20061026"

SRC_URI = \
    "svn://svn.o-hand.com/repos/misc/trunk;module=exmap-console;proto=http"

inherit module-base

S = "${WORKDIR}/exmap-console"

export KERNEL_PATH=${STAGING_KERNEL_DIR}

do_compile() {
	cd ${S}/src
	make

	cd ${S}/kernel
	unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
	oe_runmake KERNEL_PATH=${STAGING_KERNEL_DIR}   \
		   KERNEL_SRC=${STAGING_KERNEL_DIR}    \
		   KERNEL_VERSION=${KERNEL_VERSION}    \
		   CC="${KERNEL_CC}" LD="${KERNEL_LD}" \
		   ${MAKE_TARGETS}
}

sbindir="/usr/sbin"

do_install() {
	install -d ${D}${sbindir}
	install -m 710 ${S}/src/exmap ${D}${sbindir}/exmap

	install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/misc
	install -m 644 ${S}/kernel/exmap${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/misc/
}

FILES_${PN}="${sbindir} ${base_libdir}"