blob: 028d538ee4e0d2a419cf69ba7ba659a9f24be742 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001#Basic Configuration
2DESCRIPTION = "Webpages"
3SECTION = "base"
4LICENSE = "MediaTekProprietary"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
6DEPENDS = "libmwkal libsncfg netmngrprofile libwebrpcplugin libcmapi smsd libcm libcmcust minihttpd"
7MTK_SRC = "${BACH_SRC}/webpages"
8
9WORKONSRC = "${MTK_SRC}"
10BB_INCLUDE_ADD = "--sysroot=${STAGING_DIR_HOST}"
11BB_LDFLAGS_ADD = "--sysroot=${STAGING_DIR_HOST} -Wl,--hash-style=gnu"
12
13inherit deploy workonsrc
14
15#Parameters passed to do_compile()
16EXTRA_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
28FILES_${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
42FILES_${PN}-dev = "${includedir}"
43
44FILES_${PN}-staticdev = "${base_libdir}/*.a"
45
46FILES_${PN}-doc = "/doc"
47
48FILES_${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.
55INSANE_SKIP_${PN} += "already-stripped"
56
57
58do_compile () {
59 unset LDFLAGS
60 oe_runmake all ROOT=${STAGING_DIR_HOST}
61}
62
63do_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
74addtask bachclean
75do_bachclean () {
76 oe_runmake clean
77}