opendreambox.conf: remove PREFERRED_VERSION_udev for obsolete kernel
[opendreambox.git] / meta-opendreambox / classes / opendreambox-precompiled-binary.bbclass
1 LICENSE = "CLOSED"
2 PRECOMPILED_URI ?= "http://dreamboxupdate.com/download/${DISTRO}/${DISTRO_VERSION}/${@precompiledPath(d)};name=${PACKAGE_ARCH}"
3
4 SRC_URI += "${PRECOMPILED_URI}"
5
6 S = "${WORKDIR}/${PN}_${PV}_${PACKAGE_ARCH}"
7
8 PACKAGES = "${PN}"
9
10 def precompiledPath(d):
11     pn = d.getVar('PN', True)
12     pv = d.getVar('PV', True)
13     package_arch = d.getVar('PACKAGE_ARCH', True)
14     md5sum = d.getVarFlag('SRC_URI', '%s.md5sum' % package_arch)
15     return '%s/%s/%s/%s/%s_%s_%s.tar.xz' % (pn, pv, package_arch, md5sum, pn, pv, package_arch)
16
17 do_install() {
18     cp -r * ${D}
19 }
20
21 INHIBIT_PACKAGE_STRIP = "1"