全部博文(90)
分类: LINUX
2008-10-19 08:48:10
DESCRIPTION = "DMI (Desktop Management Interface) table related utilities"
HOMEPAGE = ""
LICENSE = "GPLv2"
PR = "r0"
SRC_URI = "{P}.tar.bz2"
do_unpack_extra() {
sed -i \
-e '/^prefix/s:/usr/local:/usr:' \
Makefile
}
addtask unpack_extra after do_unpack before do_patch
do_install() {
oe_runmake DESTDIR="${D}" install
}
我提交的ESCRIPTION="DMI (Desktop Management Interface) table related utilities"
HOMEPAGE=""
LICENSE="GPLv2"
PR = "r0"
SRC_URI="{PN}-${PV}.tar.bz2"
S = ${WORKDIR}/${PN}-${PV}
python __anonymous () {
import re
host = bb.data.getVar('HOST_SYS', d, 1)
if not re.match('i.86.*-linux', host):
raise bb.parse.SkipPackage("incompatible with host %s" % host)
}
do_compile () {
sed -i \
-e '/^prefix/s:/usr/local:/usr:' \
-e "/^docdir/s:dmidecode:${PN}-${PV}:" \
Makefile
oe_runmake
}
do_install() {
oe_runmake DESTDIR="${D}" install
}