blob: d63a4dc3f08aa83265bb572e4fe9d084e2cb390f [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001#Basic Configuration
2DESCRIPTION = "Web server"
3SECTION = "base"
4LICENSE = "MediaTekProprietary"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
6DEPENDS = "libsncfg libsessmgr libmwkal libcmapi"
7MTK_SRC = "${BACH_SRC}/mini_httpd"
8
9WORKONSRC = "${MTK_SRC}"
10BB_INCLUDE_ADD = "--sysroot=${STAGING_DIR_HOST}"
11BB_LDFLAGS_ADD = "--sysroot=${STAGING_DIR_HOST} -L${S}/libhttpd"
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 ${base_bindir}\
30 ${base_sbindir}\
31 /mnt\
32 /tmp\
33 /etc\
34 /etc/init.d \
35 /etc/rc.d \
36 /mnt/conf \
37 /usr/trans \
38 /test"
39
40FILES_${PN}-dev = "${includedir}"
41
42FILES_${PN}-staticdev = "${base_libdir}/*.a"
43
44FILES_${PN}-doc = "/doc"
45
46FILES_${PN}-dbg = "/usr/src/debug \
47 ${base_bindir}/.debug \
48 ${base_libdir}/.debug \
49 ${base_sbindir}/.debug"
50
51#Skip strip check in QA test.
52INSANE_SKIP_${PN} += "already-stripped"
53
54
55do_compile () {
56 unset LDFLAGS
57 oe_runmake all ROOT=${STAGING_DIR_HOST}
58}
59
60do_install () {
61 install -d ${D}${base_bindir}
62 oe_runmake install ROOT=${D}
63
64 if [ -d "${D}/include" ]; then
65 install -d ${D}${includedir}
66 cp -af ${D}/include/* ${D}${includedir}
67 rm -rf ${D}/include
68 fi
69}
70
71addtask bachclean
72do_bachclean () {
73 oe_runmake clean
74}