rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | #Basic Configuration |
| 2 | DESCRIPTION = "Webpages" |
| 3 | SECTION = "base" |
| 4 | LICENSE = "MediaTekProprietary" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff" |
| 6 | DEPENDS = "libmwkal libsncfg netmngrprofile libwebrpcplugin libcmapi smsd libcm libcmcust minihttpd" |
| 7 | MTK_SRC = "${BACH_SRC}/webpages" |
| 8 | |
| 9 | WORKONSRC = "${MTK_SRC}" |
| 10 | BB_INCLUDE_ADD = "--sysroot=${STAGING_DIR_HOST}" |
| 11 | BB_LDFLAGS_ADD = "--sysroot=${STAGING_DIR_HOST} -Wl,--hash-style=gnu" |
| 12 | |
| 13 | inherit deploy workonsrc |
| 14 | |
| 15 | #Parameters passed to do_compile() |
| 16 | EXTRA_OEMAKE = "'CROSS=${TARGET_PREFIX}'\ |
| 17 | 'PROJECT=${PROJ}'\ |
| 18 | 'PREFIX=${BACH_PREFIX}'\ |
| 19 | 'HAS_YOCTO_DEMO=${YOCTO_DEMO}'\ |
| 20 | 'PACKAGE_ARCH=${PACKAGE_ARCH}'\ |
| 21 | 'PLATFORM_CHIP=${PLATFORM_CHIP}'\ |
| 22 | 'PRODUCT_MODE=${PRODUCT_MODE}'\ |
| 23 | 'ARCH_SUPER_DONGLE=TRUE'\ |
| 24 | 'OFLAGS=${BB_INCLUDE_ADD}'\ |
| 25 | 'BB_INCLUDE_ADD=${BB_INCLUDE_ADD}'\ |
| 26 | 'BB_LDFLAGS_ADD=${BB_LDFLAGS_ADD}'" |
| 27 | |
| 28 | FILES_${PN} = "${base_libdir}/*.so\ |
| 29 | /usr/web/mtk_open_cm_api/lib/*.so\ |
| 30 | ${base_bindir}\ |
| 31 | ${base_sbindir}\ |
| 32 | /usr/web \ |
| 33 | /usr/www \ |
| 34 | /usr/web/mtk_open_cm_api \ |
| 35 | /mnt\ |
| 36 | /tmp\ |
| 37 | /etc\ |
| 38 | /etc/rc.d \ |
| 39 | /etc/init.d \ |
| 40 | /test" |
| 41 | |
| 42 | FILES_${PN}-dev = "${includedir}" |
| 43 | |
| 44 | FILES_${PN}-staticdev = "${base_libdir}/*.a" |
| 45 | |
| 46 | FILES_${PN}-doc = "/doc" |
| 47 | |
| 48 | FILES_${PN}-dbg = "/usr/src/debug \ |
| 49 | ${base_libdir}/.debug \ |
| 50 | /usr/web/mtk_open_cm_api/lib/.debug \ |
| 51 | ${base_bindir}/.debug \ |
| 52 | ${base_sbindir}/.debug" |
| 53 | |
| 54 | #Skip strip check in QA test. |
| 55 | INSANE_SKIP_${PN} += "already-stripped" |
| 56 | |
| 57 | |
| 58 | do_compile () { |
| 59 | unset LDFLAGS |
| 60 | oe_runmake all ROOT=${STAGING_DIR_HOST} |
| 61 | } |
| 62 | |
| 63 | do_install () { |
| 64 | install -d ${D}${base_bindir} |
| 65 | oe_runmake install ROOT=${D} |
| 66 | |
| 67 | if [ -d "${D}/include" ]; then |
| 68 | install -d ${D}${includedir} |
| 69 | cp -af ${D}/include/* ${D}${includedir} |
| 70 | rm -rf ${D}/include |
| 71 | fi |
| 72 | } |
| 73 | |
| 74 | addtask bachclean |
| 75 | do_bachclean () { |
| 76 | oe_runmake clean |
| 77 | } |