summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--conf/bblayers.conf2
-rw-r--r--multitech/contrib/user-layer.conf5
-rwxr-xr-xsetup.sh15
4 files changed, 22 insertions, 1 deletions
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
@@ -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