Commit Graph

3708 Commits

Author SHA1 Message Date
Michael Marineau
8be325f406 Merge pull request #317 from marineam/sudo
toolchain_util: fix bash syntax when running as root
2014-08-18 14:48:58 -07:00
Michael Marineau
b3ecb2c550 toolchain_util: fix bash syntax when running as root
Apparently expanding an empty string before a variable assignment forces
that assignment to be interpreted as a command instead. Instead of an
empty string use env as our sudo alternative when running as root.
2014-08-18 14:41:53 -07:00
Michael Marineau
9f79898507 Merge pull request #315 from marineam/gdb
Setup GDB in the SDK
2014-08-18 13:00:39 -07:00
Michael Marineau
38e9489e1e Merge pull request #316 from marineam/git
make_chroot: don't enable git-prompt via bashcomp
2014-08-18 12:00:36 -07:00
Michael Marineau
c8a62a12ee make_chroot: don't enable git-prompt via bashcomp
Newer git ebuilds have decided that the "git-prompt" script isn't really
bash completion so stopped installing it via that mechanism. Instead it
installed it started installing it in /usr/share/docs which gets
compressed by default and the path is based on ebuild version. The path
changed again in 1.9.3 to /usr/share/git and didn't compress it so that
makes it actually possibly usable but 1.9.3 or later isn't stable yet.

We can re-enable it the next time git gets updated but not worth fussing
over the current brokenness right now.
2014-08-16 13:36:57 -07:00
Michael Marineau
03e8d451bf setup_board: setup gdb wrapper and debug symbol path 2014-08-15 16:36:35 -07:00
Michael Marineau
319879609e toolchain_util: build stable cross gdb, misc cleanups 2014-08-15 16:17:04 -07:00
Alex Crawford
47982596b5 Merge pull request #314 from crawford/timeout
onmetal: Up the TOTALTIMEOUT setting
2014-08-06 19:26:49 -07:00
Alex Crawford
5d13999fbb onmetal: Up the TOTALTIMEOUT setting
Bump TOTALTIMEOUT to 5 minutes
2014-08-06 19:22:15 -07:00
Alex Crawford
891c47819b Merge pull request #313 from crawford/timeout
onmetal: Up the TIMEOUT and TOTALTIMEOUT settings
2014-08-06 18:56:27 -07:00
Alex Crawford
3740cc0504 onmetal: Up the TIMEOUT and TOTALTIMEOUT settings
Bump TIMEOUT to 15 seconds and TOTALTIMEOUT to 2 minutes
2014-08-06 18:45:05 -07:00
Michael Marineau
a3a94689f3 Merge pull request #312 from marineam/fix
amis: update publish script for new block device mapping
2014-08-01 15:38:52 -07:00
Michael Marineau
d5969d1a23 amis: update publish script for new block device mapping 2014-07-31 16:06:08 -07:00
Michael Marineau
569ad7ff31 Merge pull request #311 from marineam/ami
amis: switch back to sda for root PV volume, add publish wrapper
2014-07-31 13:45:47 -07:00
Michael Marineau
f72d744a7a amis: switch back to sda for root PV volume, add publish wrapper
If additional EBS volumes are mapped to a PV instance using a "sd*" name
they will always be ordered by the hypervisor before "xvd*" devices,
again ignoring the root device definition. This applies to all PV
instance types so we cannot get away with just poo-pooing m1.small.

We will need to call attention to this since it requires users who set
the volume size via APIs to use the name "/dev/sda" again.
2014-07-30 14:06:44 -07:00
Michael Marineau
7c594a1706 Merge pull request #310 from marineam/ami
AMI build updates
2014-07-28 13:27:00 -07:00
Michael Marineau
a53ff2a03b amis: run build script as normal user
This reduces the awkwardness of passing credentials to the build job.

Replace run.sh with assorted example scripts for prod, master, etc.
2014-07-28 13:14:36 -07:00
Michael Marineau
f6801e6b21 amis: split build/copy and publishing publicly into different steps
For a long time these scripts have always set images as public
regardless of whether the image was a working production image or not.
This may lead users to boot random development images if they happen to
pop up to the top of Amazon's terrible AMI search page.
2014-07-28 13:14:36 -07:00
Michael Marineau
ee1840fe04 Merge pull request #309 from marineam/cloudstack
feat(vm_image_util): CloudStack support
2014-07-24 17:50:09 -07:00
Petr Hosek
95e5912b14 feat(vm_image_util): CloudStack support
Provide initial support for CloudStack.
2014-07-24 17:47:57 -07:00
Michael Marineau
9b18163577 Merge pull request #308 from marineam/hack
onmetal: Replace boot_kernel's args
2014-07-24 12:01:35 -07:00
Michael Marineau
3ee48fac14 onmetal: Replace boot_kernel's args
The console should be on ttyS4 and just in case blacklist mei.
2014-07-24 11:57:57 -07:00
Michael Marineau
4c88c69412 Merge pull request #307 from marineam/fix-loop
build_package: fix loop between two loop breaking steps
2014-07-23 15:46:15 -07:00
Michael Marineau
a518dc8df1 build_package: fix loop between two loop breaking steps
If util-linux has a binary package it will be used, but if that binary
package has +udev it will pull in systemd. systemd has a loop that needs
to be broken too so if the util-linux loop breaker doesn't also handle
the systemd one it all falls apart.

In short the comment above the loop breaker code noting that we can try
this until it gets wonky. Well, it is wonky and we need to re-do how
build_packages works as a result. This is just a temporary workaround
until we figure out a larger restructuring.
2014-07-22 14:49:52 -07:00
Michael Marineau
aac815e449 Merge pull request #306 from marineam/fail
setup_board: fix fetching binary toolchain packages
2014-07-22 14:20:54 -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
4ca4b65dba Merge pull request #303 from marineam/fixes
Toolchain build fixes
2014-07-22 12:44:41 -07:00
Alex Crawford
abf24663a2 Merge pull request #305 from crawford/fillings
Pull teeth. Replace with onmetal.
2014-07-21 20:44:36 -05:00
Alex Crawford
712c1a3d9b Pull teeth. Replace with onmetal. 2014-07-21 18:40:36 -07:00
Michael Marineau
4b359375d7 Merge pull request #304 from marineam/hostname
qemu: set DHCP hostname based on image name and version
2014-07-21 18:32:08 -07:00
Michael Marineau
2a004f0081 qemu: set DHCP hostname based on image name and version
Provides an easy way to test this setting hostname from DHCP, most other
systems rely on it.
2014-07-21 16:43:48 -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
859cea0306 build_library: fix compatibility with latest crossdev version 2014-07-20 21:32:53 -07:00
Michael Marineau
946797f5d9 Merge pull request #302 from marineam/dev
Developing in dev images
2014-07-19 21:00:39 -07:00
Michael Marineau
f9e03a8e6f build_image: add repos.conf and binpkgs url to dev images
Needed for portage 2.2. Sync URIs are included but not very useful yet
because portage only can do `git pull` but not `git clone`. An extra
helper script will be required to do the initial clone it seems.

Binary packages may be useful for re-installing a package with a
different INSTALL_MASK. Can be used to install debug symbols.
2014-07-19 19:20:51 -07:00
Michael Marineau
07cb281d6a build_image: install the complete system package set in dev images
dev images, now with fancy tools like `make`!
2014-07-19 17:29:05 -07:00
Michael Marineau
a28a8966e4 build_image: use dev and prod profile variants
Instead of gluing in a special PROD_INSTALL_MASK for all images use
profiles to configure the differences between the base build root,
production images, and developer images. This offers much more
flexibility and is needed for providing a full dev environment in
developer images.
2014-07-19 17:17:28 -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
5446f7f06a Merge pull request #301 from marineam/dev
Fixes/cleanups for package building
2014-07-19 15:27:43 -07:00
Michael Marineau
097196a6af build_packages: break dependency loop between util-linux and systemd.
This is required to enable the udev use flag.
2014-07-19 15:07:00 -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
29412584a8 Merge pull request #300 from marineam/ami
ami: configure etcd with public addresses
2014-07-15 12:23:44 -07:00
Michael Marineau
d0d41a185f ami: configure etcd with public addresses
When I created the new AMI build host I just accepted the default
'wizard' security group which seems to have placed the host in a VPC.
There doesn't seem to be a way to fix this and as-is the build host
cannot access the private addresses on the test VMs it launches.
Switching to the public ones work fine though. Didn't notice this at
first because it is only a problem when etcd sends a redirect.
2014-07-15 12:12:43 -07:00
Michael Marineau
7025bd734d Merge pull request #299 from marineam/fix
update_chroot: fix transition to new os-release location
2014-07-14 18:25:17 -07:00
Michael Marineau
4b23a26667 update_chroot: fix transition to new os-release location
Previously /etc/os-release was installed both by set_lsb_release and
the baselayout package. Now it is only installed by set_lsb_release but
when baselayout is upgraded it removes /etc/os-release. So the first
update_chroot works but the second detects the chroot's version
incorrectly and tries to apply the one time updates in this directory.
Both of them are very old so we can just delete them. The second run
will now fix up /etc/os-release and we can all move on and be happy.
2014-07-14 17:59:15 -07:00
Michael Marineau
c9b4e1ff35 Merge pull request #298 from marineam/fix
bootstrap_sdk: setup /usr/lib correctly before calling set_lsb_release
2014-07-14 17:47:54 -07:00
Michael Marineau
1016bb323b bootstrap_sdk: setup /usr/lib correctly before calling set_lsb_release
os-release is now written to /usr/lib but that is likely a symlink to
/usr/lib64 so a little extra logic is required to avoid clobbering the
symlink.
2014-07-14 17:41:18 -07:00
Michael Marineau
2fb518615a Merge pull request #297 from marineam/systemd
Fixes for systemd 215
2014-07-14 16:42:21 -07:00
Michael Marineau
19a4ae59d0 build_library: enable remount-usr later in the boot process. 2014-07-14 15:55:03 -07:00