setup-environment: Do not restrict meta-freescale's distros usage.
PATCH 1/3 setup-environment: Do not restrict meta-freescale's distros usage.
Allow use any distro with setup-environment script.
Signed-off-by Fabio Berton <[email protected]>
--- setup-environment | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-)
setup-environment +1 -11
@@ -112,20 +112,10 @@ if [ -z "$SDKMACHINE" ]; then fi if [ -z "$DISTRO" ]; then - echo "You must set DISTRO before setting up the environment." -fi -# Check the machine type specified -LIST_DISTROS=`ls -1 $CWD/sources/meta-freescale-distro/conf/distro` -VALID_DISTRO=`echo -e "$LIST_DISTROS" | grep ${DISTRO}.conf$ | wc -l` -if [ "x$DISTRO" = "x" ] || [ "$VALID_DISTRO" = "0" ]; then usage - echo -e "The \$DISTRO you have specified ($DISTRO) is not supported by this build setup\n" + echo -e "\nYou must set \$DISTRO before setting up the environment." clean_up return 1 -else - if [ ! -e $1/conf/local.conf.sample ]; then - echo "Configuring for ${DISTRO}" - fi fi OEROOT=$PWD/sources/poky
Signature · 1 line
2.1.4
PATCH 2/3 setup-environment: Do not restrict machine usage
Allow use any machine with setup-environment script.
Signed-off-by Fabio Berton <[email protected]>
--- setup-environment | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-)
setup-environment +1 -12
@@ -90,21 +90,10 @@ if [ "$(whoami)" = "root" ]; then fi if [ -z "$MACHINE" ]; then - MACHINE='imx6qsabresd' -fi - -# Check the machine type specified -LIST_MACHINES=`ls -1 $CWD/sources/*/conf/machine` -VALID_MACHINE=`echo -e "$LIST_MACHINES" | grep ${MACHINE}.conf$ | wc -l` -if [ "x$MACHINE" = "x" ] || [ "$VALID_MACHINE" = "0" ]; then usage - echo -e "\nThe \$MACHINE you have specified ($MACHINE) is not supported by this build setup" + echo -e "\nYou must set \$MACHINE before setting up the environment." clean_up return 1 -else - if [ ! -e $1/conf/local.conf.sample ]; then - echo "Configuring for ${MACHINE}" - fi fi if [ -z "$SDKMACHINE" ]; then
Signature · 1 line
2.1.4
PATCH 3/3 setup-environment: Change usage to show machine and distro requirement
In reply to Fabio BertonSigned-off-by Fabio Berton <[email protected]>
--- setup-environment | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
setup-environment +6 -6
@@ -25,12 +25,12 @@ PROGNAME="setup-environment" usage() { - echo -e "\nUsage: source $PROGNAME <build-dir> + echo -e "\nUsage:MACHINE=<machine> DISTRO=<distro> source $PROGNAME <build-dir> <build-dir>: specifies the build directory location (required) - <distro>: specifies the distro name + <machine>: specifies the machine name (required) + <distro>: specifies the distro name (required) -If undefined, this script will set \$MACHINE to 'imx6qsabresd'. -You need to set DISTRO to use this environment. +You must set \$MACHINE and \$DISTRO before setting up the environment. " ls sources/*/conf/machine/*.conf > /dev/null 2>&1
@@ -40,10 +40,10 @@ You need to set DISTRO to use this environment. Supported machines: `echo; ls sources/*/conf/machine/*.conf \ | sed s/\.conf//g | sed -r 's/^.+\///' | xargs -I% echo -e "\t%"` -Supported distros: `echo; ls sources/meta-freescale-distro/conf/distro/fslc-*.conf \ +Supported Freescale's distros: `echo; ls sources/meta-freescale-distro/conf/distro/fslc-*.conf \ | sed s/\.conf//g | sed -r 's/^.+\///' | xargs -I% echo -e "\t%"` -To build for a distro and machine listed above, run this script as: +To build for a machine and distro listed above, run this script as: MACHINE=<machine> DISTRO=<distro> source $PROGNAME <build-dir> Ex: MACHINE=imx6qsabresd DISTRO=fslc-framebuffer source $PROGNAME build" fi
Signature · 1 line
2.1.4