Files
tegra-demo-distro/layers/meta-tegrademo/scripts/layer-setup-env
Matt Madison b27bbfb61a Initial population
Content imported from the old test distro, with the
following modifications:

* Removed most custom configuration files
* All open-source layers fully included under layers/
* Secureboot support removed
* Layout reworked to eliminate extra subdirectory for
  core layer
* Added meta-tegra-support layer for holding common
  metadata for use by all distro layers
* Reworked setup-env script to be usable for multiple
  distros sharing the repository
* Added demo image recipes and packagegroups

Signed-off-by: Matt Madison <matt@madison.systems>
2020-09-13 09:01:02 -07:00

18 lines
432 B
Bash

#!/bin/sh
if ! $(return >/dev/null 2>&1); then
echo "This script must be sourced" >&2
exit 1
fi
if [ ! -d "$BUILDDIR/.local/bin" ]; then
# No local bin dir, see if we need it
buildenv-host-gcc-check
if [ -d "$BUILDDIR/.local/bin" ]; then
PATH="$BUILDDIR/.local/bin:$PATH"
fi
else
# We have local bin dir, re-check the symlinks there
PATH="$BUILDDIR/.local/bin:$PATH"
buildenv-host-gcc-check
fi