diff options
author | Jan-Simon Möller <jsmoeller@linuxfoundation.org> | 2019-06-05 16:06:59 +0200 |
---|---|---|
committer | Jan-Simon Möller <jsmoeller@linuxfoundation.org> | 2019-06-10 21:21:05 +0200 |
commit | d04f0793f5e06e23268a6025632bfd7abd113fb5 (patch) | |
tree | 0271634336d34195475d326451bd3e0db2201533 | |
parent | a039cce0977ca33e4532de87fd4a1867cc7b21a7 (diff) |
Changes to support the repo clone rework
To be merged together with:
https://gerrit.automotivelinux.org/gerrit/#/c/AGL/AGL-repo/+/21389/
v2: fix the aglsetup script
v3: fix scripts to extract m3ulcb
v4: use single folder for BSPs
Bug-AGL: SPEC-2450
Change-Id: I3227896c68ec1413f55cf67ad8f15a7adfe87a52
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
21 files changed, 51 insertions, 49 deletions
diff --git a/meta-agl-bsp/meta-rcar-gen3-adas/conf/layer.conf b/meta-agl-bsp/meta-rcar-gen3-adas/conf/layer.conf index 277186f29..45fef2c73 100644 --- a/meta-agl-bsp/meta-rcar-gen3-adas/conf/layer.conf +++ b/meta-agl-bsp/meta-rcar-gen3-adas/conf/layer.conf @@ -3,8 +3,8 @@ BBPATH .= ":${LAYERDIR}" # We have a recipes directory, add to BBFILES BBFILES += " \ - ${LAYERDIR}/../../../meta-rcar/meta-rcar-gen3-adas/recipes-*/*/*.bb \ - ${LAYERDIR}/../../../meta-rcar/meta-rcar-gen3-adas/recipes-*/*/*.bbappend \ + ${LAYERDIR}/../../../bsp/meta-rcar/meta-rcar-gen3-adas/recipes-*/*/*.bb \ + ${LAYERDIR}/../../../bsp/meta-rcar/meta-rcar-gen3-adas/recipes-*/*/*.bbappend \ ${LAYERDIR}/recipes-*/*/*.bb \ ${LAYERDIR}/recipes-*/*/*.bbappend \ " diff --git a/meta-agl-bsp/meta-rcar-gen3/scripts/setup_mm_packages.sh b/meta-agl-bsp/meta-rcar-gen3/scripts/setup_mm_packages.sh index 739a5c6d9..798ebfb8a 100644 --- a/meta-agl-bsp/meta-rcar-gen3/scripts/setup_mm_packages.sh +++ b/meta-agl-bsp/meta-rcar-gen3/scripts/setup_mm_packages.sh @@ -8,7 +8,7 @@ ARCHIVE_PREFIX_NAME="R-Car_Gen3_Series_Evaluation_Software_Package_for_Linux" ZIP_BUGFIX=$ARCHIVE_PREFIX_NAME"-weston5-20190516.zip" TAR_BUGFIX=$ARCHIVE_PREFIX_NAME"-20190516.tar.gz" -COPY_SCRIPT="$METADIR/meta-renesas-rcar-gen3/meta-rcar-gen3/docs/sample/copyscript/copy_evaproprietary_softwares.sh" +COPY_SCRIPT="$METADIR/bsp/meta-renesas-rcar-gen3/meta-rcar-gen3/docs/sample/copyscript/copy_evaproprietary_softwares.sh" test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs DOWNLOAD_DIR=${XDG_DOWNLOAD_DIR:-$HOME/Downloads} @@ -63,7 +63,7 @@ function copy_mm_packages() { fi if [ -f $COPY_SCRIPT ]; then - cd $METADIR/meta-renesas-rcar-gen3/ + cd $METADIR/bsp/meta-renesas-rcar-gen3/ $COPY_SCRIPT -d -f $EXTRACT_DIR cd .. else @@ -105,7 +105,7 @@ function copy_mm_packages() { find $EXTRACT_DIR -name "$GFX_BINARIES_NAME" -exec mv -t $EXTRACT_DIR {} \; for f in `find $EXTRACT_DIR -name "$GFX_BINARIES_NAME" -exec basename {} \;` do - mv $EXTRACT_DIR/${f} "$METADIR/meta-renesas-rcar-gen3/meta-rcar-gen3/recipes-graphics/gles-module/gles-user-module"/${f:4} + mv $EXTRACT_DIR/${f} "$METADIR/bsp/meta-renesas-rcar-gen3/meta-rcar-gen3/recipes-graphics/gles-module/gles-user-module"/${f:4} done; #Clean diff --git a/scripts/.aglsetup_genconfig.bash b/scripts/.aglsetup_genconfig.bash index e95605a65..c4dde423d 100755 --- a/scripts/.aglsetup_genconfig.bash +++ b/scripts/.aglsetup_genconfig.bash @@ -51,11 +51,11 @@ function debug() { [[ $DEBUG == 1 ]] && echo "DEBUG: $@" >&2; return 0;} info "------------ $SCRIPT: Starting" #compute AGL_REPOSITORIES -AGL_REPOSITORIES=$(for x in $(ls -d $METADIR/*/templates/{machine,feature}); do echo $(basename $(dirname $(dirname $x))); done | sort -u) +AGL_REPOSITORIES=$(for x in $(ls -d $METADIR/meta-ag*/templates/{machine,feature} $METADIR/bsp/*/templates/machine); do echo $(basename $(dirname $(dirname $x))); done | sort -u) function list_machines() { - for x in $@; do - for y in $(ls -d $METADIR/$x/templates/machine/* 2>/dev/null); do + for a in $@; do + for y in $(ls -d $METADIR/{.,bsp}/$a/templates/machine/* 2>/dev/null); do echo $(basename $y) done done @@ -78,7 +78,7 @@ function validate_machines() { list_all_machines | sort | uniq -c | while read cnt machine; do [[ $cnt == 1 ]] && continue info "Machine $machine found in the following repositories:" - for x in $(ls -d $METADIR/*/templates/machine/$machine); do + for x in $(ls -d $METADIR/*/templates/machine/$machine $METADIR/bsp/*/templates/machine/$machine ); do info " - $x" done error "Multiple machine templates are not allowed" @@ -104,7 +104,7 @@ function validate_features() { list_all_features | sort | uniq -c | while read cnt feature; do [[ $cnt == 1 ]] && continue; info "Feature $feature found in the following repositories:" - for x in $(ls -d $METADIR/*/templates/feature/$feature); do + for x in $(ls -d $METADIR/*/templates/feature/$feature ); do info " - $x" done error "Multiple feature templates are not allowed" @@ -115,8 +115,10 @@ function validate_features() { function find_machine_dir() { machine=$1 for x in $AGL_REPOSITORIES; do - dir=$METADIR/$x/templates/machine/$machine - [[ -d $dir ]] && { echo $dir; return 0; } + dirs=$(ls -d $METADIR/{.,bsp}/$x/templates/machine/$machine) + for dir in $dirs; do + [[ -d $dir ]] && { echo $dir; return 0; } + done done return 1 } @@ -373,11 +375,11 @@ function genconfig() { # step 1: run usual OE setup to generate conf dir export TEMPLATECONF=$(cd $SCRIPTDIR/../templates/base && pwd -P) debug "running oe-init-build-env with TEMPLATECONF=$TEMPLATECONF" - info " Running $METADIR/poky/oe-init-build-env" + info " Running $METADIR/external/poky/oe-init-build-env" info " Templates dir: $TEMPLATECONF" CURDIR=$(pwd -P) - . $METADIR/poky/oe-init-build-env $BUILDDIR >/dev/null + . $METADIR/external/poky/oe-init-build-env $BUILDDIR >/dev/null cd $CURDIR # step 2: concatenate other remaining fragments coming from base @@ -517,7 +519,7 @@ info "OK" infon "Generating setup file: $BUILDDIR/agl-init-build-env ... " cat <<EOF >$BUILDDIR/agl-init-build-env -. $METADIR/poky/oe-init-build-env $BUILDDIR +. $METADIR/external/poky/oe-init-build-env $BUILDDIR if [ -n "\$DL_DIR" ]; then BB_ENV_EXTRAWHITE="\$BB_ENV_EXTRAWHITE DL_DIR" fi diff --git a/templates/base/bblayers.conf.sample b/templates/base/bblayers.conf.sample index 97537f490..653f6dbe8 100644 --- a/templates/base/bblayers.conf.sample +++ b/templates/base/bblayers.conf.sample @@ -8,16 +8,16 @@ BBFILES ?= "" # Convenience variables usable in various configuration fragments #---------------------------------- BCONFDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)))}" -METADIR := "${@os.path.abspath('##OEROOT##/..')}" +METADIR := "${@os.path.abspath('##OEROOT##/../..')}" # These are the core OE + YP Layers #---------------------------------- YOCTO_LAYERS = " \ - ${METADIR}/poky/meta \ - ${METADIR}/poky/meta-poky \ + ${METADIR}/external/poky/meta \ + ${METADIR}/external/poky/meta-poky \ " # this is added for the boards where necessary, not globally -# ${METADIR}/poky/meta-yocto-bsp \ +# ${METADIR}/external/poky/meta-yocto-bsp \ # # These are the AGL CORE Layers that make up the basis # - they create a minimal bootable filesystem @@ -30,8 +30,8 @@ AGL_CORE_LAYERS = " \ " AGL_APPFW_LAYERS = " \ - ${METADIR}/meta-security \ - ${METADIR}/meta-openembedded/meta-perl \ + ${METADIR}/external/meta-security \ + ${METADIR}/external/meta-openembedded/meta-perl \ ${METADIR}/meta-agl/meta-security \ ${METADIR}/meta-agl/meta-app-framework \ " @@ -40,11 +40,11 @@ AGL_APPFW_LAYERS = " \ # These are the direct dependencies of the AGL CORE Layers #--------------------------------------------------------- AGL_CORE_DEPENDENCY_LAYERS = " \ - ${METADIR}/meta-openembedded/meta-oe \ - ${METADIR}/meta-openembedded/meta-multimedia \ - ${METADIR}/meta-openembedded/meta-networking \ - ${METADIR}/meta-openembedded/meta-python \ - ${METADIR}/meta-openembedded/meta-filesystems \ + ${METADIR}/external/meta-openembedded/meta-oe \ + ${METADIR}/external/meta-openembedded/meta-multimedia \ + ${METADIR}/external/meta-openembedded/meta-networking \ + ${METADIR}/external/meta-openembedded/meta-python \ + ${METADIR}/external/meta-openembedded/meta-filesystems \ " #################### @@ -57,8 +57,8 @@ BBLAYERS ?= " \ " BBLAYERS_NON_REMOVABLE ?= " \ - ${METADIR}/poky/meta \ - ${METADIR}/poky/meta-poky \ + ${METADIR}/external/poky/meta \ + ${METADIR}/external/poky/meta-poky \ ${METADIR}/meta-agl/meta-agl-profile-core \ ${METADIR}/meta-agl/meta-agl-distro \ " diff --git a/templates/feature/agl-fossdriver/50_bblayers.conf.inc b/templates/feature/agl-fossdriver/50_bblayers.conf.inc index f429f3961..eea04c4e8 100644 --- a/templates/feature/agl-fossdriver/50_bblayers.conf.inc +++ b/templates/feature/agl-fossdriver/50_bblayers.conf.inc @@ -1 +1 @@ -BBLAYERS =+ "${METADIR}/meta-spdxscanner" +BBLAYERS =+ "${METADIR}/external/meta-spdxscanner" diff --git a/templates/feature/agl-gplv2/50_bblayers.conf.inc b/templates/feature/agl-gplv2/50_bblayers.conf.inc index 4c31c45c5..a0f26980d 100644 --- a/templates/feature/agl-gplv2/50_bblayers.conf.inc +++ b/templates/feature/agl-gplv2/50_bblayers.conf.inc @@ -1 +1 @@ -BBLAYERS =+ "${METADIR}/meta-gplv2" +BBLAYERS =+ "${METADIR}/external/meta-gplv2" diff --git a/templates/feature/agl-profile-graphical-qt5/50_bblayers.conf.inc b/templates/feature/agl-profile-graphical-qt5/50_bblayers.conf.inc index b0ac5bf14..960267908 100644 --- a/templates/feature/agl-profile-graphical-qt5/50_bblayers.conf.inc +++ b/templates/feature/agl-profile-graphical-qt5/50_bblayers.conf.inc @@ -5,5 +5,5 @@ BBLAYERS =+ " \ # These are the dependencies #--------------------------- BBLAYERS =+ " \ - ${METADIR}/meta-qt5 \ + ${METADIR}/external/meta-qt5 \ " diff --git a/templates/feature/agl-sota/50_bblayers.conf.inc b/templates/feature/agl-sota/50_bblayers.conf.inc index 7510b45be..67c41d230 100644 --- a/templates/feature/agl-sota/50_bblayers.conf.inc +++ b/templates/feature/agl-sota/50_bblayers.conf.inc @@ -1,7 +1,7 @@ BBLAYERS =+ " \ - ${METADIR}/meta-updater \ - ${METADIR}/meta-updater-qemux86-64 \ - ${METADIR}/meta-openembedded/meta-filesystems \ - ${METADIR}/meta-openembedded/meta-python \ + ${METADIR}/external/meta-updater \ + ${METADIR}/external/meta-updater-qemux86-64 \ + ${METADIR}/external/meta-openembedded/meta-filesystems \ + ${METADIR}/external/meta-openembedded/meta-python \ " diff --git a/templates/machine/beaglebone/50_bblayers.conf.inc b/templates/machine/beaglebone/50_bblayers.conf.inc index c62a1bbb3..f116ca28b 100644 --- a/templates/machine/beaglebone/50_bblayers.conf.inc +++ b/templates/machine/beaglebone/50_bblayers.conf.inc @@ -1 +1 @@ -BBLAYERS =+ "${METADIR}/meta-ti" +BBLAYERS =+ "${METADIR}/bsp/meta-ti" diff --git a/templates/machine/cyclone5/50_bblayers.conf.inc b/templates/machine/cyclone5/50_bblayers.conf.inc index fe60a267f..857d9f1d4 100644 --- a/templates/machine/cyclone5/50_bblayers.conf.inc +++ b/templates/machine/cyclone5/50_bblayers.conf.inc @@ -1 +1 @@ -BBLAYERS =+ "${METADIR}/meta-altera" +BBLAYERS =+ "${METADIR}/bsp/meta-altera" diff --git a/templates/machine/dra7xx-evm/50_bblayers.conf.inc b/templates/machine/dra7xx-evm/50_bblayers.conf.inc index c62a1bbb3..f116ca28b 100644 --- a/templates/machine/dra7xx-evm/50_bblayers.conf.inc +++ b/templates/machine/dra7xx-evm/50_bblayers.conf.inc @@ -1 +1 @@ -BBLAYERS =+ "${METADIR}/meta-ti" +BBLAYERS =+ "${METADIR}/bsp/meta-ti" diff --git a/templates/machine/dragonboard-410c/50_bblayers.conf.inc b/templates/machine/dragonboard-410c/50_bblayers.conf.inc index 62d02070a..4a3cae0f3 100644 --- a/templates/machine/dragonboard-410c/50_bblayers.conf.inc +++ b/templates/machine/dragonboard-410c/50_bblayers.conf.inc @@ -1,2 +1,2 @@ -BBLAYERS =+ "${METADIR}/meta-qcom" -BBMASK .= "|meta-qcom/openembedded-layer/recipes-navigation/gpsd" +BBLAYERS =+ "${METADIR}/bsp/meta-qcom" +BBMASK .= "|bsp/meta-qcom/openembedded-layer/recipes-navigation/gpsd" diff --git a/templates/machine/dragonboard-820c/50_bblayers.conf.inc b/templates/machine/dragonboard-820c/50_bblayers.conf.inc index 01ffb7f17..f3b96cbb6 100644 --- a/templates/machine/dragonboard-820c/50_bblayers.conf.inc +++ b/templates/machine/dragonboard-820c/50_bblayers.conf.inc @@ -1 +1 @@ -BBLAYERS =+ "${METADIR}/meta-qcom" +BBLAYERS =+ "${METADIR}/bsp/meta-qcom" diff --git a/templates/machine/h3-salvator-x/50_bblayers.conf.inc b/templates/machine/h3-salvator-x/50_bblayers.conf.inc index b58989c6f..7b0db440a 100644 --- a/templates/machine/h3-salvator-x/50_bblayers.conf.inc +++ b/templates/machine/h3-salvator-x/50_bblayers.conf.inc @@ -1,3 +1,3 @@ BBLAYERS =+ "\ - ${METADIR}/meta-renesas-rcar-gen3/meta-rcar-gen3 \ + ${METADIR}/bsp/meta-renesas-rcar-gen3/meta-rcar-gen3 \ " diff --git a/templates/machine/h3ulcb/50_bblayers.conf.inc b/templates/machine/h3ulcb/50_bblayers.conf.inc index ad672c999..5f410f0ff 100644 --- a/templates/machine/h3ulcb/50_bblayers.conf.inc +++ b/templates/machine/h3ulcb/50_bblayers.conf.inc @@ -1,4 +1,4 @@ BBLAYERS =+ "\ - ${METADIR}/meta-renesas-rcar-gen3/meta-rcar-gen3 \ + ${METADIR}/bsp/meta-renesas-rcar-gen3/meta-rcar-gen3 \ ${METADIR}/meta-agl/meta-agl-bsp/meta-rcar-gen3-adas \ " diff --git a/templates/machine/hsdk/40_bblayers.conf.inc b/templates/machine/hsdk/40_bblayers.conf.inc index 8c02e8f61..e3954fef3 100644 --- a/templates/machine/hsdk/40_bblayers.conf.inc +++ b/templates/machine/hsdk/40_bblayers.conf.inc @@ -1,2 +1,2 @@ # Use meta-synopsys layer for ARC HSDK board -BBLAYERS =+ "${METADIR}/meta-synopsys" +BBLAYERS =+ "${METADIR}/bsp/meta-synopsys" diff --git a/templates/machine/imx6qdlsabreauto/40_bblayers.conf.inc b/templates/machine/imx6qdlsabreauto/40_bblayers.conf.inc index 779006506..edcb6a3a2 100644 --- a/templates/machine/imx6qdlsabreauto/40_bblayers.conf.inc +++ b/templates/machine/imx6qdlsabreauto/40_bblayers.conf.inc @@ -1,5 +1,5 @@ # This must be parsed after qt5, etc. layers so that they are correctly # recognized by meta-freescale/dynamic-layers BBLAYERS =+ "\ - ${METADIR}/meta-freescale \ + ${METADIR}/bsp/meta-freescale \ " diff --git a/templates/machine/intel-corei7-64/50_bblayers.conf.inc b/templates/machine/intel-corei7-64/50_bblayers.conf.inc index d50ccc922..8fd7af533 100644 --- a/templates/machine/intel-corei7-64/50_bblayers.conf.inc +++ b/templates/machine/intel-corei7-64/50_bblayers.conf.inc @@ -1 +1 @@ -BBLAYERS =+ "${METADIR}/meta-intel" +BBLAYERS =+ "${METADIR}/bsp/meta-intel" diff --git a/templates/machine/m3ulcb-nogfx/50_bblayers.conf.inc b/templates/machine/m3ulcb-nogfx/50_bblayers.conf.inc index ad672c999..5f410f0ff 100644 --- a/templates/machine/m3ulcb-nogfx/50_bblayers.conf.inc +++ b/templates/machine/m3ulcb-nogfx/50_bblayers.conf.inc @@ -1,4 +1,4 @@ BBLAYERS =+ "\ - ${METADIR}/meta-renesas-rcar-gen3/meta-rcar-gen3 \ + ${METADIR}/bsp/meta-renesas-rcar-gen3/meta-rcar-gen3 \ ${METADIR}/meta-agl/meta-agl-bsp/meta-rcar-gen3-adas \ " diff --git a/templates/machine/m3ulcb/50_bblayers.conf.inc b/templates/machine/m3ulcb/50_bblayers.conf.inc index ad672c999..5f410f0ff 100644 --- a/templates/machine/m3ulcb/50_bblayers.conf.inc +++ b/templates/machine/m3ulcb/50_bblayers.conf.inc @@ -1,4 +1,4 @@ BBLAYERS =+ "\ - ${METADIR}/meta-renesas-rcar-gen3/meta-rcar-gen3 \ + ${METADIR}/bsp/meta-renesas-rcar-gen3/meta-rcar-gen3 \ ${METADIR}/meta-agl/meta-agl-bsp/meta-rcar-gen3-adas \ " diff --git a/templates/machine/raspberrypi3/50_bblayers.conf.inc b/templates/machine/raspberrypi3/50_bblayers.conf.inc index 1250b359f..2e677dd8a 100644 --- a/templates/machine/raspberrypi3/50_bblayers.conf.inc +++ b/templates/machine/raspberrypi3/50_bblayers.conf.inc @@ -1 +1 @@ -BBLAYERS =+ "${METADIR}/meta-raspberrypi" +BBLAYERS =+ "${METADIR}/bsp/meta-raspberrypi" |