1*4882a593SmuzhiyunSUMMARY = "Qemu helper scripts" 2*4882a593SmuzhiyunLICENSE = "GPL-2.0-only" 3*4882a593SmuzhiyunRDEPENDS:${PN} = "nativesdk-qemu \ 4*4882a593Smuzhiyun nativesdk-python3-shell nativesdk-python3-fcntl nativesdk-python3-logging \ 5*4882a593Smuzhiyun " 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunPR = "r9" 8*4882a593Smuzhiyun 9*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://${WORKDIR}/tunctl.c;endline=4;md5=ff3a09996bc5fff6bc5d4e0b4c28f999 \ 10*4882a593Smuzhiyun file://${COREBASE}/scripts/runqemu;beginline=5;endline=10;md5=ac2b489a58739c7628a2604698db5e7f" 11*4882a593Smuzhiyun 12*4882a593Smuzhiyun 13*4882a593SmuzhiyunSRC_URI = "file://${COREBASE}/scripts/runqemu \ 14*4882a593Smuzhiyun file://${COREBASE}/scripts/runqemu-addptable2image \ 15*4882a593Smuzhiyun file://${COREBASE}/scripts/runqemu-gen-tapdevs \ 16*4882a593Smuzhiyun file://${COREBASE}/scripts/runqemu-ifup \ 17*4882a593Smuzhiyun file://${COREBASE}/scripts/runqemu-ifdown \ 18*4882a593Smuzhiyun file://${COREBASE}/scripts/oe-find-native-sysroot \ 19*4882a593Smuzhiyun file://${COREBASE}/scripts/runqemu-extract-sdk \ 20*4882a593Smuzhiyun file://${COREBASE}/scripts/runqemu-export-rootfs \ 21*4882a593Smuzhiyun file://tunctl.c \ 22*4882a593Smuzhiyun " 23*4882a593Smuzhiyun 24*4882a593SmuzhiyunS = "${WORKDIR}" 25*4882a593Smuzhiyun 26*4882a593Smuzhiyuninherit nativesdk 27*4882a593Smuzhiyun 28*4882a593Smuzhiyundo_compile() { 29*4882a593Smuzhiyun ${CC} tunctl.c -o tunctl 30*4882a593Smuzhiyun} 31*4882a593Smuzhiyun 32*4882a593Smuzhiyundo_install() { 33*4882a593Smuzhiyun install -d ${D}${bindir} 34*4882a593Smuzhiyun install -m 0755 ${WORKDIR}${COREBASE}/scripts/oe-* ${D}${bindir}/ 35*4882a593Smuzhiyun install -m 0755 ${WORKDIR}${COREBASE}/scripts/runqemu* ${D}${bindir}/ 36*4882a593Smuzhiyun install tunctl ${D}${bindir}/ 37*4882a593Smuzhiyun} 38