xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-bsp/v86d/v86d_0.1.10.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "User support binary for the uvesafb kernel module"
2*4882a593SmuzhiyunHOMEPAGE = "https://tracker.debian.org/pkg/v86d"
3*4882a593SmuzhiyunDESCRIPTION = "v86d provides a backend for kernel drivers that need to execute x86 BIOS code. The code is executed in a controlled environment and the results are passed back to the kernel via the netlink interface."
4*4882a593Smuzhiyun
5*4882a593Smuzhiyun# the copyright info is at the bottom of README, expect break
6*4882a593SmuzhiyunLICENSE = "GPL-2.0-only"
7*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://README;md5=94ac1971e4f2309dc322d598e7b1f7dd"
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunDEPENDS = "virtual/kernel"
10*4882a593SmuzhiyunRRECOMMENDS:${PN} = "kernel-module-uvesafb"
11*4882a593SmuzhiyunPR = "r2"
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunSRC_URI = "http://snapshot.debian.org/archive/debian/20110427T035506Z/pool/main/v/${BPN}/${BPN}_${PV}.orig.tar.gz \
14*4882a593Smuzhiyun           file://Update-x86emu-from-X.org.patch \
15*4882a593Smuzhiyun           file://ar-from-env.patch \
16*4882a593Smuzhiyun           file://Support-for-cross-compilation.patch \
17*4882a593Smuzhiyun"
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunSRC_URI[md5sum] = "889686ec8424468fe0d205742e77a4c2"
20*4882a593SmuzhiyunSRC_URI[sha256sum] = "93575c82e4307d8c4c370ec6b767f5cf87e527b2378146d652a6d8e25d5bdbc5"
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunPACKAGE_ARCH = "${MACHINE_ARCH}"
23*4882a593SmuzhiyunCOMPATIBLE_HOST = '(i.86|x86_64).*-linux'
24*4882a593Smuzhiyun
25*4882a593Smuzhiyundo_configure () {
26*4882a593Smuzhiyun	TARGET_ARCH="${TARGET_ARCH}" ./configure --with-x86emu
27*4882a593Smuzhiyun}
28*4882a593Smuzhiyun
29*4882a593Smuzhiyundo_compile () {
30*4882a593Smuzhiyun	KDIR="${STAGING_DIR_HOST}/usr" make
31*4882a593Smuzhiyun}
32*4882a593Smuzhiyun
33*4882a593Smuzhiyundo_install () {
34*4882a593Smuzhiyun	install -d ${D}${base_sbindir}
35*4882a593Smuzhiyun	install v86d ${D}${base_sbindir}/
36*4882a593Smuzhiyun}
37