mirror of
https://github.com/pygos/build.git
synced 2024-11-22 02:59:47 +01:00
Fix missing LAYERCONF in check_update script
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
5b17bc9526
commit
b4824a9f29
2 changed files with 13 additions and 0 deletions
|
@ -6,6 +6,7 @@ SCRIPTDIR=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
|
|||
|
||||
# dummy toolchain variables
|
||||
export LINUXPKG="linux"
|
||||
export LAYERCONF=""
|
||||
|
||||
# utilities
|
||||
source "$SCRIPTDIR/util/depends.sh"
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
file_path_override() {
|
||||
local layer
|
||||
|
||||
if [ -z "$LAYERCONF" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
tac "$LAYERCONF" | while read layer; do
|
||||
if [ -e "$SCRIPTDIR/layer/$layer/$1" ]; then
|
||||
echo "$SCRIPTDIR/layer/$layer/$1"
|
||||
|
@ -20,6 +24,10 @@ cat_file_override() {
|
|||
cat_file_merge() {
|
||||
local layer
|
||||
|
||||
if [ -z "$LAYERCONF" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
while read layer; do
|
||||
if [ -e "$SCRIPTDIR/layer/$layer/$1" ]; then
|
||||
cat "$SCRIPTDIR/layer/$layer/$1"
|
||||
|
@ -38,6 +46,10 @@ include_override() {
|
|||
include_merge() {
|
||||
local layer
|
||||
|
||||
if [ -z "$LAYERCONF" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
while read layer; do
|
||||
if [ -e "$SCRIPTDIR/layer/$layer/$1" ]; then
|
||||
source "$SCRIPTDIR/layer/$layer/$1"
|
||||
|
|
Loading…
Reference in a new issue