summaryrefslogtreecommitdiffstats
path: root/meta-pipewire
diff options
context:
space:
mode:
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>2020-08-28 16:55:59 +0200
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2020-08-31 00:45:20 +0000
commit2dec1c0c7839353e2c9643511fe836c26d630094 (patch)
treefcf4e5c08dfd5fb95913f68342a48bb4570b8efa /meta-pipewire
parenteadebf9545c33880af1a99b7a8b8fe3ec1146310 (diff)
Remove old components around joule board
Remove scripts that supported the EOL Joule board. Bug-AGL: SPEC-3555 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org> Change-Id: I2a50ed2631ff1bc961717e7cff27b861f6c43d5b Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25159 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
Diffstat (limited to 'meta-pipewire')
0 files changed, 0 insertions, 0 deletions
id='n144' href='#n144'>144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221
#!/bin/bash
# (c) 2016 Jan-Simon Moeller dl9pf(at)gmx.de
# License GPLv2
#
# debugging purposes
set -e

# VARIABLES
OPTIND=1
export DLHOST="http://download.automotivelinux.org/"
export NOGFX=false
export VERBOSE=false
export DEBUG=false
function vprint() {
    :
}
function dprint() {
    :
}

# defaults for project, branch, refspec
export TARGETPROJECT="AGL/AGL-repo"
export TARGETBRANCH="master"
export TARGETREFSPEC="refs/heads/master"

export TARGETFEATURESnogfx="agl-appfw-smack agl-netboot agl-sota agl-devel"
export TARGETFEATURES="agl-demo ${TARGETFEATURESnogfx}"

export TARGETQA=""
export TARGETIMAGE="agl-demo-platform\${TARGETQA}"
export TARGETIMAGEnogfx="core-image-minimal"

export TARGETRELEASEVERSION=""
export TARGETRELEASEBRANCH=""

# apply GERRIT_*
if test -n "${GERRIT_PROJECT}"; then
export TARGETPROJECT="${GERRIT_PROJECT}"
fi
if test -n "${GERRIT_BRANCH}"; then
    export TARGETBRANCH="${GERRIT_BRANCH}"
fi
if test -n "${GERRIT_REFSPEC}"; then
export TARGETREFSPEC="${GERRIT_REFSPEC}"
fi

if test -n "${RELEASE_VERSION}"; then
export TARGETRELEASEVERSION="${RELEASE_VERSION}"
fi

if test -n "${RELEASE_BRANCH}"; then
export TARGETRELEASEBRANCH="${RELEASE_BRANCH}"
export TARGETBRANCH="${RELEASE_BRANCH}"
export TARGETREFSPEC="refs/heads/${RELEASE_BRANCH}"
fi

if test x"" = x"${MACHINE}"; then
    export MACHINE="qemux86-64"
fi

# finally cmdline arguments
while getopts ":b:i:p:r:dnqvx" opt; do
    case "$opt" in
	b)
	    export TARGETBRANCH="$OPTARG"
	    ;;
	d)
	    DEBUG=true
	    function dprint() {
		echo "DEBUG: $@"
	    }
	    ;;
	i)
	    export TARGETIMAGE="$OPTARG"
	    ;;
	n)
	    export NOGFX=true
	    ;;
	p)
	    export TARGETPROJECT="$OPTARG"
	    ;;
	q)
	    export TARGETQA="-qa"
	    ;;
	r)
	    export TARGETREFSPEC="$OPTARG"
	    ;;
	v)
	    VERBOSE=true
	    function vprint() {
		echo "VERBOSE: \"$@\""
	    }
	    ;;
	x)
	    set -x
	    ;;
	h|\?)
	    echo "$0 [-h/-?] -bdinpqrvx"
	    echo "--------------------------------------------------------------------------------"
	    echo "  -b <branch>  - name of the branch to use          (default=master)"
	    echo "  -d           - debug"
	    echo "  -i <image>   - name of the image to build         (default=agl-demo-platform)"
	    echo "  -n           - no graphics (no wayland, aka no drivers)"
	    echo "  -p <project> - project to use                     (default=AGL/AGL-repo)"
	    echo "  -q           - build '*-qa' images                (default='')"
	    echo "  -r <refspec> - refspec to use                     (default=refs/heads/master)"
	    echo "  -v           - verbose"
	    echo "  -x           - set -x"
	    echo "--------------------------------------------------------------------------------"
	    echo "  GERRIT_PROJECT, GERRIT_BRANCH, GERRIT_REFSPEC are used if present,"
	    echo "  but cmdline arguments take precedence."
	    echo "--------------------------------------------------------------------------------"
	    exit 1
	    ;;
	:)
	    echo "Option -$OPTARG required an argument."
	    exit 1
	    ;;
    esac
done

# expand
eval TARGETIMAGE="$TARGETIMAGE"
eval TARGETIMAGEnogfx="$TARGETIMAGEnogfx"

if $NOGFX; then
    export TARGETIMAGE="${TARGETIMAGEnogfx}"
    export TARGETFEATURES="${TARGETFEATURESnogfx}"
fi
if test x"porter-nogfx" = x"$MACHINE"; then
    export TARGETIMAGE="${TARGETIMAGEnogfx}"
    export TARGETFEATURES="${TARGETFEATURESnogfx}"
fi

if test ! x"" = x"$TARGETRELEASEVERSION"; then
MANIFESTMOD="-m ${TARGETRELEASEBRANCH}_${TARGETRELEASEVERSION}.xml"
else
MANIFESTMOD=""
fi

if $DEBUG; then
set | grep ^TARGET || true
set | grep ^GERRIT || true
set | grep ^MACHINE || true
fi


# create shared downloads and sstate-cache directory
mkdir -p downloads
mkdir -p sstate-cache

# remove old files, we want to test a fresh clone
export XTMP="$$"
mv repoclone repoclone$XTMP || true
( rm -rf repoclone$XTMP & ) || true
mkdir -p repoclone
cd repoclone

repo init  --repo-branch=repo-1 --reference=/opt/AGL/preclone -q -b $TARGETBRANCH $MANIFESTMOD -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo

# next: repo sync and dump manifest
repo sync --force-sync --detach --no-clone-bundle

# fix up this branch
MYPROJECT=`echo $TARGETPROJECT | sed -e "s#AGL/##g"`


if test -n "${GERRIT_CHANGE_NUMBER}" -a -n "${GERRIT_PATCHSET_NUMBER}"  ; then
    repo download $MYPROJECT ${GERRIT_CHANGE_NUMBER}/${GERRIT_PATCHSET_NUMBER}
else
    if test x"AGL-repo" = x"$MYPROJECT" ; then
	cd .repo/manifests
        MYREMOTE=`git remote | head -1`
        git fetch ${MYREMOTE} ${TARGETREFSPEC}
        git reset --hard FETCH_HEAD
	cd ../../
	repo sync --force-sync -d
    else
	cd $MYPROJECT
	MYREMOTE=`git remote | head -1`
	git fetch ${MYREMOTE} ${TARGETREFSPEC}
	git reset --hard FETCH_HEAD
	cd ..
    fi
fi

repo manifest -r
repo manifest -r > ../current_default.xml

# source the env
source meta-agl/scripts/aglsetup.sh -m ${MACHINE} -b output ${TARGETFEATURES}

# link the shared downloads and sstate-cache
ln -sf ../../downloads
ln -sf ../../sstate-cache

echo "" >> conf/local.conf

#limit parallel number of bitbake jobs and parallel jobs in make
cat << EOF > conf/auto.conf
PREMIRRORS = "\
git://.*/.* ${DLHOST}/AGL/mirror/   \n \
ftp://.*/.* ${DLHOST}/AGL/mirror/   \n \
http://.*/.* ${DLHOST}/AGL/mirror/  \n \
https://.*/.* ${DLHOST}/AGL/mirror/ \n \
             "

SSTATE_MIRRORS = "\
file://.* file:///opt/AGL/sstate-mirror/\${MACHINE}/PATH    \n \
file://.* ${DLHOST}/sstate-mirror/${GERRIT_BRANCH}/\${DEFAULTTUNE}/PATH \n \
                 "

SSTATE_DIR = "\${TOPDIR}/sstate-cache/\${MACHINE}/"
EOF

cat conf/auto.conf

# finally, build the agl-demo-platform
bitbake $TARGETIMAGE

du -hs tmp/deploy/*