From 12af35b76f22b05556da084fd3a6bddd92a67131 Mon Sep 17 00:00:00 2001 From: Jesse Gilles Date: Mon, 7 Nov 2011 11:41:39 -0600 Subject: added user-layer placeholder for custom recipes --- .gitignore | 1 + conf/bblayers.conf | 2 +- multitech/contrib/user-layer.conf | 5 +++++ setup.sh | 15 +++++++++++++++ 4 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 multitech/contrib/user-layer.conf diff --git a/.gitignore b/.gitignore index f5ea178..d97fae9 100644 --- a/.gitignore +++ b/.gitignore @@ -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}" diff --git a/setup.sh b/setup.sh index 4f20a3c..3681c75 100755 --- a/setup.sh +++ b/setup.sh @@ -21,6 +21,21 @@ else echo "Leaving existing conf/local.conf alone." 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 -- cgit v1.2.3