diff options
Diffstat (limited to 'yocto-poky/meta/recipes-devtools/devel-config')
4 files changed, 46 insertions, 0 deletions
diff --git a/yocto-poky/meta/recipes-devtools/devel-config/distcc-config.bb b/yocto-poky/meta/recipes-devtools/devel-config/distcc-config.bb new file mode 100644 index 000000000..cb7830b99 --- /dev/null +++ b/yocto-poky/meta/recipes-devtools/devel-config/distcc-config.bb @@ -0,0 +1,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" diff --git a/yocto-poky/meta/recipes-devtools/devel-config/distcc-config/distcc.sh b/yocto-poky/meta/recipes-devtools/devel-config/distcc-config/distcc.sh new file mode 100644 index 000000000..b4205931d --- /dev/null +++ b/yocto-poky/meta/recipes-devtools/devel-config/distcc-config/distcc.sh @@ -0,0 +1,4 @@ +DISTCC_HOSTS="@DISTCC_HOSTS@" +#DISTCC_VERBOSE="1" + +export DISTCC_HOSTS diff --git a/yocto-poky/meta/recipes-devtools/devel-config/nfs-export-root.bb b/yocto-poky/meta/recipes-devtools/devel-config/nfs-export-root.bb new file mode 100644 index 000000000..169d00581 --- /dev/null +++ b/yocto-poky/meta/recipes-devtools/devel-config/nfs-export-root.bb @@ -0,0 +1,18 @@ +SUMMARY = "Configuration script to export target rootfs filesystem" +DESCRIPTION = "Enables NFS access from any host to the entire filesystem (for development purposes)." +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \ + file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" + +PR = "r1" + +SRC_URI = "file://exports" + +S = "${WORKDIR}" + +do_install() { + install -d ${D}${sysconfdir} + install -m 0644 exports ${D}${sysconfdir}/ +} + +RDEPENDS_${PN} = "packagegroup-core-nfs-server" diff --git a/yocto-poky/meta/recipes-devtools/devel-config/nfs-export-root/exports b/yocto-poky/meta/recipes-devtools/devel-config/nfs-export-root/exports new file mode 100644 index 000000000..1353c5ad8 --- /dev/null +++ b/yocto-poky/meta/recipes-devtools/devel-config/nfs-export-root/exports @@ -0,0 +1 @@ +/ *(rw,no_root_squash,async,no_subtree_check) |