Commit Graph

28 Commits

Author SHA1 Message Date
87b0a4903c scripts: Build crossgcc with multiple cores
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2022-09-01 16:23:31 -06:00
161895da77 scripts: Install deps without confirmation
This makes `dep.sh` usable from CI. Also update the package lists before
installing on debian/ubuntu.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2022-08-29 12:55:07 -06:00
7160b01929 scripts: Install Rust with stable toolchain
The trick of using `show` to install components requires a default
toolchain be set. Assume users with Rust installed already have one set,
and use stable for new installs.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2022-08-29 10:10:34 -06:00
9754d7d8a9 scripts: Drop some unneeded deps
- coreboot no longer requires Python 2 for the FSP
- nasm is provided by the coreboot toolchain

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2022-08-29 10:10:34 -06:00
f311c8b10f scripts: Build coreboot toolchain as part of deps
Front load building the toolchain binaries when installing deps instead
of during the first board build.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2022-08-29 10:10:34 -06:00
4aa8a81be1 deps: Call EC deps script
Remove EC-specific dependencies and call the EC script to install them
instead.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2022-05-25 13:10:29 -06:00
cf7fc2c540 scripts: Update rustup or inform user of env vars
Ensure rustup is up-to-date to avoid users having a version that is too
old to support the TOML format.

If rustup was just installed, tell the user to source the new env vars
to use the correct version of the toolchain.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2022-02-28 16:00:54 -07:00
de3b0a65fa scripts: Add Python2 to deps
coreboot requires python2 explicitly when using the FSP submodule as the
source for FSP binaries.

    python2 3rdparty/fsp/Tools/SplitFspBin.py ...

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2021-10-04 08:13:40 -06:00
06576f7fc1 scripts: Update pkg for python symlink
Install `python-is-python3` to provide the `/usr/bin/python` symlink.
Fixes installing dependencies on Pop!_OS 21.10.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2021-09-17 14:46:49 -06:00
d7813dae8e Add missing ccache/xxd deps 2021-05-14 12:48:48 -06:00
2f1069d381 Clean up Arch deps
- Sort deps
- Remove duplicates
- Replace libgudev with systemd-libs for `libudev.so`
2021-05-14 12:48:48 -06:00
bc684170d0 Drop qt5 as a dep
It is only needed for building UEFITool/UEFIExtract, but cmake can just
be used by itself for that.
2021-05-14 12:48:48 -06:00
dd78a6ce5c Update deps.sh to support Arch 2021-03-27 10:38:42 -06:00
c6ea487b77 Add Python script to produce the dt values 2021-03-18 08:01:52 -06:00
7d6a15e63c Convert toolchain file to TOML syntax
rustup 1.23.0 (2020-11-27) introduced support for TOML syntax for the
toolchain file. Use this and specify required compoenents.

To ensure you are using a new enough rustup, run:

    rustup self update
2021-03-15 10:10:03 -06:00
541f4f3f13 deps: Skip installing Rust if rustup is available
Saves time and prevents errors with trying to install rustup twice or
potentially overriding the user's default toolchain.
2021-02-22 15:43:29 -07:00
07dfef8cb9 scripts: Fix installing deps
- Remove extra `then` to fix running this script
- Update messages for system dependencies
- Add `--progress` for submodule clones, which can get slow
2021-02-22 15:16:03 -07:00
7a7bc80b8f scripts/deps.sh: Use os-release(5) to select correct package manager
Fedora has apt packaged, which causes this script to do the wrong
thing if it is installed. Instead of checking for the package manager
binary, use os-release(5) data to select the correct package manager
to use.
2021-02-22 08:30:22 -07:00
aeb83e33f6 Add deps for building UEFITool
Include qt5 and CMake for building UEFITool/UEFIExtract.
2021-01-26 10:21:07 -07:00
3df8580f37 adding systemd-devel (which provides libudev-devel) for Fedora/RedHat 2020-10-19 13:32:32 -06:00
e00d08af3b Added libudev-dev for Pop!_OS
My build failed on a Pop!_OS-Live-Stick until I installed `libudev-dev`. I don't remember if it was the firmware-open or the ec build that failed, but ec references deps.sh.
2020-10-19 13:32:32 -06:00
f7d4ab2908 scripts: Update deps.sh
- Clone submodules when installing deps
- Install coreboot commit hook with deps
- Add some missing dependencies
  - AVR tools are required for EC development
  - flashrom for external flashing of SPI flash ROM
  - ncurses is used for coreboot menuconfig
  - parted is used by firmware apps for creating a bootable image
2020-08-31 11:19:27 -06:00
0140b65c53 scripts: Remove cargo-xbuild from deps 2020-07-14 11:40:21 -06:00
1c34fb14f4 scripts: Add deps for Fedora/CentOS 2020-06-18 16:37:00 -06:00
4dc59fee82 Add addw2, gaze15, and oryp6 2020-06-11 13:05:11 -06:00
6d66adc7f5 Pin cargo-xbuild to 0.5.29
The new handling of LTO options in 0.5.30+ breaks building on older
toolchains.
2020-05-20 13:48:51 -06:00
0e1245e728 Update minplatform 2019-10-10 21:15:03 -06:00
6d84ca030a Move readme commands to scripts/deps.sh 2019-09-11 17:43:59 -06:00