xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/devel-config/distcc-config.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1SUMMARY = "Sets up distcc for compilation on the target device"
2DESCRIPTION = "${SUMMARY}"
3
4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
6
7SRC_URI = "file://distcc.sh"
8
9S = "${WORKDIR}"
10
11# Default to the host machine for a running qemu session
12DISTCC_HOSTS ?= "192.168.7.1"
13
14do_configure() {
15	sed -i "s%@DISTCC_HOSTS@%${DISTCC_HOSTS}%" distcc.sh
16}
17
18do_install() {
19	install -d ${D}${sysconfdir}/profile.d
20	install -m 0755 distcc.sh ${D}${sysconfdir}/profile.d/
21}
22
23RDEPENDS:${PN} = "distcc"
24