From 8f73724b4a0fd46398c6a1a4e554e3371e97809b Mon Sep 17 00:00:00 2001 From: Alexandre Bard Date: Wed, 7 Nov 2018 13:17:59 +0100 Subject: [PATCH] conf: Add local.conf and bblayer.conf sample files --- conf/bblayers.conf.sample | 25 +++++++++++++++++++ conf/conf-notes.txt | 13 ++++++++++ conf/local.conf.sample | 52 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 90 insertions(+) create mode 100644 conf/bblayers.conf.sample create mode 100644 conf/conf-notes.txt create mode 100644 conf/local.conf.sample diff --git a/conf/bblayers.conf.sample b/conf/bblayers.conf.sample new file mode 100644 index 0000000..d81e43b --- /dev/null +++ b/conf/bblayers.conf.sample @@ -0,0 +1,25 @@ +# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf +# changes incompatibly +LCONF_VERSION = "7" + +BBPATH = "${TOPDIR}" +BBFILES ?= "" + +YOCTOROOT = "${@os.path.abspath(os.path.join("${TOPDIR}", os.pardir))}" + +BBLAYERS ?= " \ + ${YOCTOROOT}/meta \ + ${YOCTOROOT}/meta-poky \ + ${YOCTOROOT}/meta-yocto-bsp \ + ${YOCTOROOT}/meta-netmodule-bsp \ + ${YOCTOROOT}/meta-netmodule-distro \ + ${YOCTOROOT}/meta-openembedded/meta-python \ + ${YOCTOROOT}/meta-openembedded/meta-oe \ + ${YOCTOROOT}/meta-openembedded/meta-networking \ + ${YOCTOROOT}/meta-openembedded/meta-filesystems \ + ${YOCTOROOT}/meta-updater \ + " +BBLAYERS_NON_REMOVABLE ?= " \ + ${YOCTOROOT}/meta \ + ${YOCTOROOT}/meta-yocto \ + " diff --git a/conf/conf-notes.txt b/conf/conf-notes.txt new file mode 100644 index 0000000..89830e9 --- /dev/null +++ b/conf/conf-notes.txt @@ -0,0 +1,13 @@ + +### Shell environment set up for builds. ### + +You can now run 'bitbake ' + +Common targets are: + netmodule-linux-image-minimal + netmodule-linux-image + netmodule-linux-image-dev + meta-toolchain + meta-ide-support + +You can also run generated qemu images with a command like 'runqemu qemux86' diff --git a/conf/local.conf.sample b/conf/local.conf.sample new file mode 100644 index 0000000..36c6b37 --- /dev/null +++ b/conf/local.conf.sample @@ -0,0 +1,52 @@ +BB_NUMBER_THREADS ?= "4" +PARALLEL_MAKE ?= "-j 4" +PACKAGE_CLASSES ?= "package_rpm" +USER_CLASSES ?= "buildstats" +PATCHRESOLVE = "noop" +BB_DISKMON_DIRS = "\ + STOPTASKS,${TMPDIR},1G,100K \ + STOPTASKS,${DL_DIR},1G,100K \ + STOPTASKS,${SSTATE_DIR},1G,100K \ + STOPTASKS,/tmp,100M,100K \ + ABORT,${TMPDIR},100M,1K \ + ABORT,${DL_DIR},100M,1K \ + ABORT,${SSTATE_DIR},100M,1K \ + ABORT,/tmp,10M,1K" +ASSUME_PROVIDED += "libsdl-native" +CONF_VERSION = "1" +IMAGE_FEATURES_append = " debug-tweaks" + +INHERIT += "rm_work" + +ERROR_QA_remove += "version-going-backwards" +WARN_QA_append += "version-going-backwards" + +INHERIT += "buildhistory" +BUILDHISTORY_COMMIT = "1" +BUILDHISTORY_COMMIT_AUTHOR = "Mr Jenkins " + +# Mirror GIT repo in download folders +BB_GENERATE_MIRROR_TARBALLS = "1" + +# Add licences file to the rootfs +COPY_LIC_MANIFEST = "1" +COPY_LIC_DIRS = "1" +LICENSE_CREATE_PACKAGE = "1" + +INHERIT += "buildstats-summary" + + +YOCTOROOT = "${@os.path.abspath(os.path.join("${TOPDIR}", os.pardir))}" + +SSTATE_DIR ?= "${HOME}/yocto-share/sstate-cache" +DL_DIR ?= "${HOME}/yocto-share/downloads" +BUILDHISTORY_DIR = "${HOME}/yocto-share/buildhistory" + +TMPDIR = "${YOCTOROOT}/shared-build/tmp" + + +### Environment variables needed to build +#MACHINE = "am335x-nmhw21" +#DISTRO = "netmodule-linux" / "netmodule-linux-ostree" +#OSTREE_BRANCHNAME = "${MACHINE}-vcu" +#OSTREE_OSNAME = "hancock-os"