Commit Graph

130 Commits

Author SHA1 Message Date
David Michael
2467923d56 Remove arm64 from supported board operations 2018-10-25 16:00:09 +00:00
David Michael
ce2e7e8a17 setup_board: Drop needless SYSROOT when installing binpkgs
For the less common case where binpkgs are not used, restructure
this so that it builds binpkgs in /usr/${CHOST} without installing
them, use those binpkgs to initialize /build/${BOARD}.
2018-08-29 21:40:21 +00:00
Andrew Jeddeloh
935466b68d *: remove restart_in_chroot_if_needed
Replace calls to restart_in_chroot_if_needed with assert_inside_chroot.
This removes a dependency on chromite.
2018-05-30 13:07:58 -07:00
Benjamin Gilbert
1ef4609ef2 scripts: Drop unused BOARD_USE assignments 2017-06-16 19:22:51 -07:00
Matthew Garrett
9e64bef513 setup_board: create a glsa-check wrapper
We want to be able to verify that we don't have any vulnerabilities in the
build root, so install a wrapper for glsa-check
2016-05-17 16:39:40 -07:00
Michael Marineau
6c7c063474 setup_board: fix running build_image with an empty board root 2016-05-04 17:13:29 -07:00
Michael Marineau
da27e7e51b setup_board: remove bad pkg-config wrapper
See https://github.com/coreos/coreos-overlay/pull/1883

Builds should be usring /usr/bin/$CHOST-pkg-config instead.
2016-04-11 12:07:27 -07:00
Michael Marineau
61672f7f75 setup_board: always create tmp directories 2016-02-20 14:05:50 -08:00
Michael Marineau
a714804ca6 setup_board: check regen flags before calling update_chroot
Abort early if applicable, skip update_chroot if regen only is enabled.
2016-02-19 13:24:44 -08:00
Michael Marineau
7979650cde setup_board: move arm64 grub recompile to update_chroot 2016-02-19 13:21:16 -08:00
Michael Marineau
89e31f1e57 setup_board: add --regen_configs_only flag 2016-02-19 13:08:57 -08:00
Michael Marineau
3216a22078 Merge pull request #493 from glevand/for-merge-grub
setup_board: Build grub platform modules
2016-02-16 10:56:27 -08:00
Michael Marineau
9b00ea5495 *: disable reinstalling rebuilt binaries with --usepkgonly
When --usepkgonly is mixed with the right update flags it will
re-install any binary packages that have a newer build. Since the full
set of SDK and board packages are rebuilt quite often this leads to
excessive reinstalling.
2016-02-04 11:50:36 -08:00
Michael Marineau
5411bf574e setup_board: fix passing --usepkgonly state through to update_chroot 2016-02-04 11:42:07 -08:00
Michael Marineau
d327840ce8 *: add --usepkgonly flag to avoid building from source 2016-02-03 18:29:16 -08:00
Michael Marineau
5a42bd8565 setup_board: cleanup flags section
Move most flags into the usage message and use a more consistent style.
2016-02-03 17:22:15 -08:00
Geoff Levand
d82ef18ed0 setup_board: Build grub platform modules
Run the emerge of the SDK sys-boot/grub again to pick up any config
changes that were made in setup_board.  This late emerge is needed
to build grub modules for architectures that are different from the
host.

Signed-off-by: Geoff Levand <geoff@infradead.org>
2016-01-20 09:49:15 -08:00
Geoff Levand
57c129acfd setup_board: Call setup_qemu_static
setup_qemu_static only needs to be called once, and can
be done early so that it is available.  Move the call
of setup_qemu_static from build_packages to setup_board.

Signed-off-by: Geoff Levand <geoff@infradead.org>
2015-11-19 15:08:00 -08:00
Geoff Levand
63679ebbe1 setup_board: Set grub use flags to build arm64
Set the host grub use flags to build arm64 grub support when BOARD is
equal to arm64-usr.

From: Andrej Rosano <andrej@inversepath.com>
[Move to case statement]
Signed-off-by: Geoff Levand <geoff@infradead.org>
2015-11-19 15:08:00 -08:00
Michael Marineau
d30fa4054a setup_board: remove old kernel vars
These are properly detected now.
2015-08-04 18:06:03 -07:00
Michael Marineau
2eec99130b setup_board: simplify PORTAGE_USERNAME handling 2015-07-05 18:01:50 -07:00
Michael Marineau
174a847e36 update_chroot: remove dependence on /usr/local/portage/* symlinks
A step in reducing the amount of initialization code required: drop
needless symlinks under /usr/local/portage to the portage trees. Just
configure portage to point directly at the source instead. Only crossdev
remains in that location because it is a locally managed overlay.
2015-07-05 16:57:05 -07:00
Michael Marineau
d1ec00c932 setup_board: explicitly perform all package moves
For some reason package moves are not handled automatically in the board
build roots. Add explicit calls to emaint to update cached binary
packages, installed packages, and the world file.
2015-04-17 13:40:20 -07:00
Geoff Levand
de00a676a8 setup_board: Remove unused option
setup_board's --latest_toolchain option seems to be a left over from a
removed feature.  It's not used, so remove it.

Signed-off-by: Geoff Levand <geoff@infradead.org>
2015-04-09 09:42:26 -07:00
Geoff Levand
46f5478991 setup_board: Fix hard coded symbol path
commit 03e8d451bf (setup_board: setup
gdb wrapper and debug symbol path) added hard coded paths for the
symbol path.  Change those to use the BOARD_ROOT variable.

Signed-off-by: Geoff Levand <geoff@infradead.org>
2015-04-01 10:58:57 -07:00
Michael Marineau
690da86333 setup_board: export paths to kernel source and build directories
The linux-info eclass may trigger a fatal error if it is unable to check
a package's required kernel options. Even when the error isn't fatal the
warnings add a lot of clutter to our build output.
2014-12-15 17:08:45 -08:00
Michael Marineau
03e8d451bf setup_board: setup gdb wrapper and debug symbol path 2014-08-15 16:36:35 -07:00
Michael Marineau
e19de29cda setup_board: fix fetching binary toolchain packages
Fix 98684560 which in turn tried to fix 0d29e735. This time the option
to download binary packages was lost so building from scratch worked but
not the normal usage of using binary packages. *sigh*
2014-07-22 14:11:18 -07:00
Michael Marineau
986845608a setup_board: fix compiling toolchains from scratch
Commit 0d29e735 broke this by not properly initializing the toolchain
ebuild flags when binary packages were disabled.
2014-07-20 21:32:53 -07:00
Michael Marineau
4d3c198161 tools: remove support for parallel_emerge
Using parallel_emerge has been disabled by default for all commands
except build_image for quite a while now, build_image kept it just
because it was still a bit faster than normal emerge. Keeping
parallel_emerge complicates future changes to build_image so it needs to
drop it entirely. Since that means nothing uses it by default we might
as well just rip out support for it entirely.
2014-07-19 16:38:17 -07:00
Michael Marineau
3d8948d91f setup_board: copy portage's repos.conf files from the chroot 2014-07-19 16:10:34 -07:00
Michael Marineau
dea299312e setup_board: remove extra pkg-config wrapper script
crossdev provides cross-pkg-config which respects $SYSROOT so we do not
need to do anything extra ourselves.
2014-07-19 11:37:03 -07:00
Michael Marineau
99ed29d218 fix(board_setup): Remove old make.conf symlinks
Just use the single auto-generated make.conf, it covers everything now.
2014-06-12 16:53:27 -07:00
Michael Marineau
bb3b7d4fcd fix(setup_board): Got lost in my own if statements :( 2014-06-10 16:00:32 -07:00
Michael Marineau
9a973e4113 fix(setup_board): Migrate packages in existing board roots. 2014-06-10 15:38:36 -04:00
Michael Marineau
0d29e73534 fix(*): Use binary package for baselayout
It is no longer necessary to use the build USE flag or avoid binary
packages when installing baselayout for the first time.
2014-06-10 14:45:56 -04:00
Michael Marineau
09faef6d02 feat(setup_board): Generate a complete make.conf
Add settings that are currently provided by make.conf.common-target in
coreos-overlay. Most of these are better off being derived directly from
the host environment's portage configuration.

The PKGDIR, TMPDIR, and LOGDIR values are changing to be more consistant
with the SDK configuration but these changes won't take effect until the
old make.conf.common-target is removed since its values override these.
2014-06-10 14:45:56 -04:00
Michael Marineau
38fa0f92a8 Merge pull request #252 from marineam/clean
Clean out some old ChromeOS junk
2014-05-15 17:57:53 -07:00
Michael Marineau
2b2576c4ab remove(hooks): Kill off old hook that checked compile flags.
This did things like verify that things were linked with gold (which we
don't do) and other checks. We don't have a need for it kill it.
2014-05-15 15:42:02 -07:00
Michael Marineau
7d6619df8a fix(setup_board): Remove unused option to accept restrictive licenses 2014-05-13 17:42:00 -07:00
Michael Marineau
9482d5cdf4 fix(setup_board): Allow make.conf.user to be per-board
Previously this would symlink to a global make.conf.user making it
impossible to apply changes to a board but not the SDK.
2014-04-09 17:32:28 -07:00
Michael Marineau
e1ee712a16 fix(setup_board): increase load-based threshold to 2xCPUs
My laptop has idle time! This cannot stand...
2014-02-09 21:01:39 -08:00
Michael Marineau
30b72754ff fix(setup_board): Remove note about annoying eselect warning
Silenced in eselect 1.4
2014-02-09 14:48:45 -08:00
Michael Marineau
7a43a07fef feat(setup_board): Configure binary package sources on the fly.
Generate list of board binhosts based on the new $COREOS_DOWNLOAD_ROOT
variable and optionally use packages only from a specific version
2014-02-09 14:24:01 -08:00
Michael Marineau
6d414d275e fix(*): remove lingering broken support for board overlays.
This is a feature from the chromeos sdk that we haven't used and doesn't
work any more. Clean it up...
2013-12-08 16:02:00 -08:00
Michael Marineau
1e7ce95508 fix(setup_board): Depend on --usepkg and --getbinpkg as a pair.
Instead of gating only on --usepkg depend on both flags as a pair. This
keeps setup_board's behavior a little closer to build_packages. The
buildbot is using --nogetbinpkg to avoid pulling in existing packages
built by the SDK but setup_board is causing some to be pulled in anyway.
2013-12-06 14:41:46 -08:00
Michael Marineau
6452857e82 fix(*): Change default for --jobs to $NUM_JOBS
This makes parallelism behavior between parallel_emerge and emerge
consistent. NUM_JOBS is defined as the number of CPUs by common.sh
2013-12-01 16:04:10 -08:00
Michael Marineau
c9c1efd276 fix(build_image): Add --fast to control use of parallel_emerge
This makes it possible to toggle parallel_emerge just as other scripts
do. In other scripts update the help string to be more specific, the
--jobs option can be used to control parallelism.
2013-12-01 16:04:10 -08:00
Michael Marineau
37267cfce4 fix(setup_board): Install board build root toolchains via emerge! 2013-11-29 18:19:15 -08:00
Michael Marineau
9dfad070c9 fix(setup_board): Hide --getbinpkg, it isn't useful for setup_board.
A new board build root always starts with an empty package cache so if
binary packages are enabled downloading is required. The distinction can
be useful for passing to update_chroot since its cache isn't impacted so
the flag remains, just among the less used hidden ones.
2013-11-29 17:56:58 -08:00