DESCRIPTION = "sc_shm_test" | |
DEPENDS = "libnvram libsclog" | |
SECTION = "app" | |
LICENSE = "zte" | |
PV = "1.0.0" | |
PR = "r0" | |
FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}/test:" | |
SRC_URI = " \ | |
file://sc_shm_test \ | |
" | |
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/zte;md5=c075689d1d1e06d4ab5bbe53623a6808" | |
S = "${WORKDIR}" | |
include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc | |
include ${BSPDIR}/sources/meta-zxic/conf/pub.inc | |
CFLAGS_append = "${ZXIC_EXTRA_CFLAGS}" | |
do_compile() { | |
make -C sc_shm_test | |
} | |
do_install() { | |
install -d ${D}${bindir}/ | |
install -m 0777 ${S}/sc_shm_test/sc_shm_test ${D}${bindir}/ | |
install -m 0777 ${S}/sc_shm_test/sc_shm_read ${D}${bindir}/ | |
install -m 0777 ${S}/sc_shm_test/sc_shm_write ${D}${bindir}/ | |
install -m 0777 ${S}/sc_shm_test/sc_shm_posix ${D}${bindir}/ | |
install -m 0777 ${S}/sc_shm_test/sc_posix_read ${D}${bindir}/ | |
install -m 0777 ${S}/sc_shm_test/sc_posix_write ${D}${bindir}/ | |
#install elfs | |
install -d ${ELFS-PATH}/ | |
install -m 0755 ${S}/sc_shm_test/sc_shm_test ${ELFS-PATH}/ | |
install -m 0755 ${S}/sc_shm_test/sc_shm_read ${ELFS-PATH}/ | |
install -m 0755 ${S}/sc_shm_test/sc_shm_write ${ELFS-PATH}/ | |
install -m 0777 ${S}/sc_shm_test/sc_shm_posix ${ELFS-PATH}/ | |
install -m 0777 ${S}/sc_shm_test/sc_posix_read ${ELFS-PATH}/ | |
install -m 0777 ${S}/sc_shm_test/sc_posix_write ${ELFS-PATH}/ | |
} | |
do_cleanlibs () { | |
rm -fr ${ELFS-PATH}/sc_shm_test | |
} | |
addtask cleanlibs after do_clean before do_cleansstate | |
FILES_${PN} = "\ | |
${bindir}/ \ | |
" |