summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/devel-config/distcc-config.bb
blob: cb7830b999eab5ad72836a81a457673521891708 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
SUMMARY = "Sets up distcc for compilation on the target device"

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
                    file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

SRC_URI = "file://distcc.sh"

S = "${WORKDIR}"

# Default to the host machine for a running qemu session
DISTCC_HOSTS ?= "192.168.7.1"

do_configure() {
	sed -i "s%@DISTCC_HOSTS@%${DISTCC_HOSTS}%" distcc.sh
}

do_install() {
	install -d ${D}${sysconfdir}/profile.d
	install -m 0755 distcc.sh ${D}${sysconfdir}/profile.d/
}

RDEPENDS_${PN} = "distcc"