]> code.ossystems Code Review - openembedded-core.git/commit
scripts/install-buildtools: add helper script to install buildtools
authorTim Orling <timothy.t.orling@linux.intel.com>
Thu, 26 Mar 2020 04:26:55 +0000 (21:26 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 28 Mar 2020 10:24:40 +0000 (10:24 +0000)
commit2d0aea6a73c427ce6aa17dc71e0783977a52bb2b
tree81c0f290ca532cc0cbafc6b07e610f0165709e95
parente6c73ed8d3c5d45f387cab619ca73c21e850582f
scripts/install-buildtools: add helper script to install buildtools

For distros such as CentOS-7 where the default buildtools are too
old we need to make it easy for users to install a pre-built SDK
with all of "build-essentials" included.

Other uses may include building older Yocto Project releases with
a distro where buildtools are too new.

For convenience, the standard buildtools installation is also
supported.

NOTE: extended buildtools is the default, e.g.
      --with-extended-buildtools is on by default

Example usage (extended buildtools from milestone):
  (1) using --url and --filename
      $ install-buildtools \
        --url http://downloads.yoctoproject.org/releases/yocto/milestones/yocto-3.1_M2/buildtools \
        --filename x86_64-buildtools-extended-nativesdk-standalone-3.0+snapshot-20200122.sh
  (2) using --base-url, --release, --installer-version and --build-date
      $ install-buildtools \
        --base-url http://downloads.yoctoproject.org/releases/yocto \
        --release yocto-3.1_M2 \
        --install-version 3.0+snapshot
        --build-date 202000122

Example usage (standard buildtools from release):
  (3) using --url and --filename
      $ install-buildtools --without-extended-buildtools \
        --url http://downloads.yoctoproject.org/releases/yocto/yocto-3.0.2/buildtools \
        --filename x86_64-buildtools-nativesdk-standalone-3.0.2.sh
  (4) using --base-url, --release and --installer-version
      $ install-buildtools --without-extended-buildtools \
        --base-url http://downloads.yoctoproject.org/releases/yocto \
        --release yocto-3.0.2 \
        --install-version 3.0.2

[YOCTO #13832]

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/install-buildtools [new file with mode: 0755]