36 lines
761 B
BlitzBasic
36 lines
761 B
BlitzBasic
|
DESCRIPTION = "ppc"
|
||
|
LICENSE = "MediaTekProprietary"
|
||
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173ff"
|
||
|
DEPENDS += "tzapp"
|
||
|
RDEPENDS_${PN} += "tzapp"
|
||
|
|
||
|
#判断项目类型
|
||
|
python __anonymous () {
|
||
|
name = d.getVar("MTK_PROJECT", "")
|
||
|
if name == "aud8516p1v2-consys-slc-falcon":
|
||
|
srcDir="ppc-falcon"
|
||
|
else:
|
||
|
srcDir="ppc"
|
||
|
d.setVar("PPC_SRC_DIR", srcDir)
|
||
|
}
|
||
|
|
||
|
PPC_SRC = "${TOPDIR}/../src/multimedia/audio-misc/${PPC_SRC_DIR}"
|
||
|
|
||
|
inherit workonsrc
|
||
|
|
||
|
WORKONSRC = "${PPC_SRC}"
|
||
|
|
||
|
do_compile() {
|
||
|
make
|
||
|
}
|
||
|
|
||
|
do_install() {
|
||
|
oe_runmake \
|
||
|
PREFIX="${prefix}" DESTDIR="${D}" PACKAGE_ARCH="${PACKAGE_ARCH}" install
|
||
|
}
|
||
|
|
||
|
FILES_${PN} += "${libdir}"
|
||
|
FILES_${PN}-dev = ""
|
||
|
FILES_${PN}-dev += "${includedir}"
|
||
|
INSANE_SKIP_${PN} += "ldflags"
|