mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 21:49:33 +02:00
exmap-console: Use filename to set PV, remove duplication from svn version, set DEPENDS correctly
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1285 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
@@ -1,4 +0,0 @@
|
|||||||
|
|
||||||
PV="0.4"
|
|
||||||
|
|
||||||
require exmap-console.inc
|
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
DESCRIPTION = "console-based exmap"
|
DESCRIPTION = "Console based version of exmap, a memory usage analysis tool"
|
||||||
HOMEPAGE = "http://www.o-hand.com"
|
HOMEPAGE = "http://projects.o-hand.com/exmap-console"
|
||||||
SECTION = "devel"
|
SECTION = "devel"
|
||||||
LICENSE = "GPL"
|
LICENSE = "GPL"
|
||||||
|
DEPENDS = "virtual/kernel"
|
||||||
|
|
||||||
SRC_URI = \
|
SRC_URI = "http://projects.o-hand.com/sources/exmap-console/exmap-console-${PV}.tgz"
|
||||||
"http://projects.o-hand.com/sources/exmap-console/exmap-console-${PV}.tgz"
|
|
||||||
|
|
||||||
inherit module-base
|
inherit module-base
|
||||||
inherit autotools
|
inherit autotools
|
||||||
@@ -13,7 +13,7 @@ MYPV := "${PV}"
|
|||||||
|
|
||||||
PACKAGES += "exmap-server kernel-module-exmap"
|
PACKAGES += "exmap-server kernel-module-exmap"
|
||||||
|
|
||||||
FILES_${PN}= "${bindir}/exmap ${bindir}/exmapd"
|
FILES_exmap-console = "${bindir}/exmap ${bindir}/exmapd"
|
||||||
PACKAGE_ARCH_exmap-console = "${TARGET_ARCH}"
|
PACKAGE_ARCH_exmap-console = "${TARGET_ARCH}"
|
||||||
RDEPENDS_exmap-console += "kernel-module-exmap"
|
RDEPENDS_exmap-console += "kernel-module-exmap"
|
||||||
|
|
||||||
@@ -25,7 +25,6 @@ FILES_kernel-module-exmap = "${base_libdir}"
|
|||||||
PACKAGE_ARCH_kernel-module-exmap = "${MACHINE_ARCH}"
|
PACKAGE_ARCH_kernel-module-exmap = "${MACHINE_ARCH}"
|
||||||
PV_kernel-module-exmap = "${MYPV}-${KERNEL_VERSION}"
|
PV_kernel-module-exmap = "${MYPV}-${KERNEL_VERSION}"
|
||||||
RDEPENDS_kernel-module-exmap += "kernel (${KERNEL_VERSION})"
|
RDEPENDS_kernel-module-exmap += "kernel (${KERNEL_VERSION})"
|
||||||
DEPENDS_kernel-module-exmap += "virtual/kernel"
|
|
||||||
|
|
||||||
S = "${WORKDIR}/exmap-console-${PV}"
|
S = "${WORKDIR}/exmap-console-${PV}"
|
||||||
|
|
||||||
|
|||||||
1
meta/packages/exmap-console/exmap-console_0.4.bb
Normal file
1
meta/packages/exmap-console/exmap-console_0.4.bb
Normal file
@@ -0,0 +1 @@
|
|||||||
|
require exmap-console.inc
|
||||||
@@ -1,59 +1,11 @@
|
|||||||
DESCRIPTION = "console-based exmap"
|
require exmap-console.inc
|
||||||
HOMEPAGE = "http://www.o-hand.com"
|
|
||||||
SECTION = "devel"
|
|
||||||
LICENSE = "GPL"
|
|
||||||
PR = "r10"
|
PR = "r10"
|
||||||
|
|
||||||
PV = "0.4+svn${SRCDATE}"
|
PV = "0.4+svn${SRCDATE}"
|
||||||
MYPV := "${PV}"
|
|
||||||
|
|
||||||
SRC_URI = \
|
SRC_URI = "svn://svn.o-hand.com/repos/misc/trunk;module=exmap-console;proto=http"
|
||||||
"svn://svn.o-hand.com/repos/misc/trunk;module=exmap-console;proto=http"
|
|
||||||
|
|
||||||
inherit module-base
|
|
||||||
inherit autotools
|
|
||||||
|
|
||||||
PACKAGES += "exmap-server kernel-module-exmap"
|
|
||||||
|
|
||||||
FILES_${PN}= "${bindir}/exmap ${bindir}/exmapd"
|
|
||||||
PACKAGE_ARCH_exmap-console = "${TARGET_ARCH}"
|
|
||||||
RDEPENDS_exmap-console += "kernel-module-exmap"
|
|
||||||
|
|
||||||
FILES_exmap-server = "${bindir}/exmapserver"
|
|
||||||
PACKAGE_ARCH_exmap-server = "${TARGET_ARCH}"
|
|
||||||
RDEPENDS_exmap-server += "kernel-module-exmap"
|
|
||||||
|
|
||||||
FILES_kernel-module-exmap = "${base_libdir}"
|
|
||||||
PACKAGE_ARCH_kernel-module-exmap = "${MACHINE_ARCH}"
|
|
||||||
PV_kernel-module-exmap = "${MYPV}-${KERNEL_VERSION}"
|
|
||||||
RDEPENDS_kernel-module-exmap += "kernel (${KERNEL_VERSION})"
|
|
||||||
DEPENDS_kernel-module-exmap += "virtual/kernel"
|
|
||||||
|
|
||||||
S = "${WORKDIR}/exmap-console"
|
S = "${WORKDIR}/exmap-console"
|
||||||
|
|
||||||
export MODULE_PATH="${D}${base_libdir}/modules/${KERNEL_VERSION}"
|
MYPV := "${PV}"
|
||||||
|
PV_kernel-module-exmap = "${MYPV}-${KERNEL_VERSION}"
|
||||||
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}
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst_append_kernel-module-exmap () {
|
|
||||||
if [ -n "$D" ]; then
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
depmod -a
|
|
||||||
update-modules || true
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm_append_kernel-module-exmap () {
|
|
||||||
update-modules || true
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user