diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | conf/bblayers.conf | 2 | ||||
-rw-r--r-- | multitech/contrib/user-layer.conf | 5 | ||||
-rwxr-xr-x | setup.sh | 15 |
4 files changed, 22 insertions, 1 deletions
@@ -1,3 +1,4 @@ sources build env-oe.sh +user-layer diff --git a/conf/bblayers.conf b/conf/bblayers.conf index be77226..d32d034 100644 --- a/conf/bblayers.conf +++ b/conf/bblayers.conf @@ -1,4 +1,4 @@ LCONF_VERSION = "1" BBFILES ?= "" BBPATH = "${OETREE}" -BBLAYERS = "${OETREE}/openembedded ${OETREE}/multitech" +BBLAYERS = "${OETREE}/openembedded ${OETREE}/multitech ${OETREE}/user-layer" diff --git a/multitech/contrib/user-layer.conf b/multitech/contrib/user-layer.conf new file mode 100644 index 0000000..5ca83e6 --- /dev/null +++ b/multitech/contrib/user-layer.conf @@ -0,0 +1,5 @@ +BBFILES += "${LAYERDIR}/recipes/*/*.bb ${LAYERDIR}/recipes/*/*.bbappend" +BBPATH .= ":${LAYERDIR}" +BBFILE_COLLECTIONS += "user" +BBFILE_PRIORITY_user = "10" +BBFILE_PATTERN_user = "${LAYERDIR}" @@ -22,6 +22,21 @@ else fi echo "" +echo "Creating user-layer..." +mkdir -p user-layer/conf +mkdir -p user-layer/recipes + +echo "" +response=y +test -f user-layer/conf/layer.conf && read -p "Overwrite user-layer/conf/layer.conf with defaults? (y/N) " response +if [[ $response =~ ^y$ || $response =~ ^yes$ ]]; then + echo "Creating default user-layer configuration..." + cp multitech/contrib/user-layer.conf user-layer/conf/layer.conf +else + echo "Leaving existing user-layer/conf/layer.conf alone." +fi + +echo "" echo "Creating directory structure..." mkdir -p sources mkdir -p build |