28291 Commits

Author SHA1 Message Date
Stéphane Marchesin
3ff3c8fbf4 Unmask vaapi ebuild.
This is needed for video acceleration on sandy bridge.

Change-Id: I48bed0e7e95e6dafd71c12a68d47806ba6f61170
Reviewed-on: http://gerrit.chromium.org/gerrit/7969
Commit-Ready: Stéphane Marchesin <marcheu@chromium.org>
Tested-by: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-by: Antoine Labour <piman@chromium.org>
2011-09-19 19:40:54 -07:00
Mike Frysinger
acc4c9b3fc cros_sdk: optimize fuse loading
Running `sudo` at all is a bit poky, so let's avoid modprobing fuse when
we know it already exists because it's listed in /proc/filesystems.

The relative speed:
 time sudo modprobe fuse -> 0.164s
 time grep -q fuse /proc/filesystems -> 0.002s

BUG=None
TEST=enable `set -x`; run `sudo modprobe fuse`; run `cros_sdk true`; see modprobe skipped

Change-Id: I07213e7b0607ca65df2a8a3ae22eb4a49c8bb888
Reviewed-on: http://gerrit.chromium.org/gerrit/7824
Commit-Ready: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
2011-09-19 10:20:00 -07:00
Mike Frysinger
da7be781c0 cros_sdk: optimize gconftool interaction
It doesn't make much sense to run gconftool when the default automount
value is what we already want: false.  So in this common case, skip the
save/restore logic altogether since we aren't actually changing things.

Further, we can merge the `which` check in by checking the exit status
of the `gconftool` run.  If it fails, the tool doesn't exist.

BUG=None
TEST=enable `set -x`; run `cros_sdk true`; see gconftool run once in common case

Change-Id: I1c6aee945218a8a9df533d9ef207c750f909c252
Reviewed-on: http://gerrit.chromium.org/gerrit/7823
Commit-Ready: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
2011-09-19 09:57:26 -07:00
Hung-Te Lin
d2631cd952 crosutils: add 'archive_factory' to create factory bundles
To generate a bundle with mini-omaha and all utility scripts, we need a new
archive script.

BUG=chrome-os-partner:5979
TEST=./archive_factory --factory_test factory_test \
       --factory_install factory_install --script . --dev ../platform/dev/ \
       --bin ../../chroot/usr/bin
  # output:
  [   0/2.4G]   adding: bin/cgpt  (stored 0%)
  [633K/2.4G]   adding: dev/autoupdate.py  (stored 0%)
  [658K/2.4G]   adding: dev/buildutil.py  (stored 0%)
  [660K/2.4G]   adding: dev/devserver.py  (stored 0%)
  [671K/2.4G]   adding: dev/static/ (stored 0%)
  [671K/2.4G]   adding: factory_test/chromiumos_factory_image.bin
  [1.9G/506M]   adding: factory_test/pack_partitions.sh  (stored 0%)
  [1.9G/506M]   adding: factory_test/unpack_partitions.sh  (stored 0%)
  [1.9G/506M]   adding: hwid/hwid_bundle_zgb_all.sh  (stored 0%)
  [1.9G/502M]   adding: install_shim/factory_install_shim.bin
  [2.4G/119K]   adding: install_shim/pack_partitions.sh  (stored 0%)
  [2.4G/115K]   adding: install_shim/unpack_partitions.sh  (stored 0%)
  [2.4G/112K]   adding: scripts/lib/cros_image_common.sh  (stored 0%)
  [2.4G/102K]   adding: scripts/lib/shflags/shflags  (stored 0%)
  [2.4G/ 71K]   adding: scripts/common.sh  (stored 0%)
  [2.4G/ 49K]   adding: scripts/chromeos-common.sh  (stored 0%)
  [2.4G/ 33K]   adding: scripts/make_factory_package.sh  (stored 0%)
  [2.4G/ 11K]   adding: scripts/make_universal_factory_shim.sh  (stored 0%)
  [2.4G/4.0K]   adding: scripts/mk_memento_images.sh  (stored 0%)

Change-Id: Idd645c908c4fed70408406278163309037c285dd
Reviewed-on: http://gerrit.chromium.org/gerrit/7906
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Nick Sanders <nsanders@chromium.org>
2011-09-19 02:01:41 -07:00
Hung-Te Lin
17eeff6fcb crosutils: add boilerplate comments for factory scripts
Adding boilerplate comments for factory scripts that may be executed inside
CrOS source tree or a limited factory bundle extraction.

BUG=chrome-os-partner:5979
TEST=none, only comment update

Change-Id: Ifd5b07e9d44f4ce74073e5e32370040d2d6728d8
Reviewed-on: http://gerrit.chromium.org/gerrit/7908
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
2011-09-19 00:44:48 -07:00
Hung-Te Lin
ab4c4e1c69 crosutils: Revert "crosutils: refine make_factory_package"
This partially reverts commit cfc4720c28a17a04ea833809178bda540d44dfa4
( http://gerrit.chromium.org/gerrit/7904 )

Currently we store the hash generated by compress_and_hash_memento_image in a
shell variable, and sub shell "(cmd)" can't export the variables. It would
require more rewriting of scripts to fix this issue, so let's first revert it.

BUG=chrome-os-partner:5979
TEST=./make_factory_package --config config/mp_factory.config
     cd ../platform/dev; python deverserver.py --factory_config mini_omaha.conf
     # then start whole factory installation process on DUT, and passed.

Change-Id: I1c7d8de61427733b1dff61dcd7e1c01fea7c4de6
Reviewed-on: http://gerrit.chromium.org/gerrit/7916
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Tammo Spalink <tammo@chromium.org>
2011-09-19 00:32:12 -07:00
Hung-Te Lin
545dc57e97 crosutils: allow factory scripts to be executed in a limited bundle environment
This CL allows factory related scripts to be executed in a prepared and limited
environment which can be made by extracting a factory bundle:
 - always load scripts from $SCRIPT_ROOT
 - allow running bundled binary programs from $SCRIPT_ROOT/../bin
 - override GCLIENT_ROOT for the layout of a bundle

BUG=chrome-os-partner:5979
TEST=(outside cros environment)
     ./make_factory_package --config mp_factory.conf  # test omaha
     ./make_factory_package --config rma.conf  # test --usbimg
     ./make_factory_package --config mp_ssd.conf  # test --diskimg

Change-Id: Ibf85fa267f6fe53ae88e41fd7f62ef7110b2b0bf
Reviewed-on: http://gerrit.chromium.org/gerrit/7905
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Nick Sanders <nsanders@chromium.org>
2011-09-18 21:24:11 -07:00
Hung-Te Lin
cfc4720c28 crosutils: refine make_factory_package
Change non-posix pushd and popd into posix sub commands.
Added a check of --board to be non-zero for omaha setup.

BUG=chrome-os-partner:5979
TEST=./make_factory_package.sh --config bundle/mp_factory.conf

Change-Id: I1aa847ae2df28460319ca0b574ca4921993e41e1
Reviewed-on: http://gerrit.chromium.org/gerrit/7904
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Nick Sanders <nsanders@chromium.org>
2011-09-18 21:02:13 -07:00
Mike Frysinger
1aa6124f1d cros_sdk: speed up unmounting when tearing down env
The teardown_env is a little slow when unmounting things because it runs
`sudo umount` once per mount point.  This is so that when things go wrong,
it can easily recover.  However, this slows down the common case at the
expense of the uncommon.

Refactor the code so that in the common case, we run one `sudo umount`.
When things do fail, we're a bit slower as we reparse the entire mount,
list, but that's fine as it's an error case.

BUG=None
TEST=enable `set -x`; run `cros_sdk true`; see all mount points unmounted in one shot

Change-Id: Iec98a7b9f51a77e90c30e6f6acae26e528b8c50d
Reviewed-on: http://gerrit.chromium.org/gerrit/7822
Tested-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
2011-09-16 18:58:17 -07:00
Hung-Te Lin
882cae5df4 crosutils: Revert "Cache sudo in make_factory_package"
This reverts commit 0126898d23afb00b04e05b51ea8b83c37aa49b0f.

When "sudo -v" is executed inside chroot, it prompts for password; however the
user account inside chroot may be using a different password (ex, "chronos")
from the same account outside chroot.  The /etc/sudoers file inside chroot has
explicitly specified "userid ALL=NOPASSWD: ALL" for the account, so we should
keep doing nothing inside chroot.

BUG=chrome-os-partner:2827
TEST=(inside chroot) ./make_factory_package --release ...... # success

Change-Id: Ibadd5d539df83d70aba0daabc40bb9edba842f07
Reviewed-on: http://gerrit.chromium.org/gerrit/7847
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Nick Sanders <nsanders@chromium.org>
2011-09-16 06:14:51 -07:00
ttuttle
de99e8b59a cros_run_cell_tests: Explicitly accept remote, add args workaround
BUG=chromium-os:20349
TEST=runs cellular_Dummy

Change-Id: I8dbe7a99c02d22d68303e71aa2f4df514d800c95
Reviewed-on: http://gerrit.chromium.org/gerrit/7732
Reviewed-by: David Rochberg <rochberg@chromium.org>
Tested-by: ttuttle <ttuttle@chromium.org>
2011-09-15 10:20:14 -07:00
Chinyue Chen
af9c1d9463 Make the path and folder of config file available when parsing config.
The path and folder of config file is available as env variables and can
be used to reference images and updater scripts in config file.

BUG=chrome-os-partner:5850
TEST=1. Create a config file (mp_factory.conf) under src/mp_bundle with
        the following content:

        [x86-zgb]
        --factory ${MFP_CONFIG_DIR}/../build/images/${BOARD}/latest/chromiumos_factory_image.bin
        --release ${MFP_CONFIG_DIR}/../build/images/${BOARD}/latest/[Cc]hromiumos_image.bin
        --hwid_updater ${MFP_CONFIG_DIR}/../platform/[Cc]hromeos-hwid/hwid_bundle_zgb.sh
        --firmware_updater none
        --detect_release_image  # Comment.

        # More comments.
        [x86-zgb-he]
        --subfolder x86-zgb-he
        --factory ${MFP_CONFIG_DIR}/../build/images/${BOARD}/latest/chromiumos_factory_image.bin
        --release ${MFP_CONFIG_DIR}/../build/images/${BOARD}/latest/chromiumos_image.bin
        --hwid_updater ${MFP_CONFIG_DIR}/../platform/chromeos-hwid/hwid_bundle_zgb.sh
        --firmware_updater none
        --detect_release_image

     2. Under src, execute
        BOARD=x86-zgb scripts/make_factory_package.sh --config mp_bundle/mp_factory.conf

Change-Id: I3c9693febe1f7f1efc92ab845d63226911114031
Reviewed-on: http://gerrit.chromium.org/gerrit/7764
Tested-by: Chinyue Chen <chinyue@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
2011-09-15 08:21:09 -07:00
David Rochberg
503e8f6dca Remove v flag for untarring of libc. Reduces volume of log output
BUG=none
TEST=./build_image  --board=x86-alex

Change-Id: I0112165e499fe0aa2dd3ff65c7f1d14406b3534b
Reviewed-on: http://gerrit.chromium.org/gerrit/7648
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: David Rochberg <rochberg@chromium.org>
Reviewed-by: Richard Barnette <jrbarnette@chromium.org>
Reviewed-by: Raymes Khoury <raymes@chromium.org>
2011-09-14 10:28:02 -07:00
Chinyue Chen
8e6b452f4e Fix config file section header regex.
Fix section header regex so that bracket expansion syntax won't be
recognized as section header. The only requirement is that section
header must start at the beginning of a line.

BUG=chrome-os-partner:5850
TEST=1. Create a config file (mp_factory.conf) with the following
        content:
        [x86-zgb]
        --factory ~/trunk/src/build/images/${BOARD}/latest/chromiumos_factory_image.bin
        --release ~/trunk/src/build/images/${BOARD}/latest/[Cc]hromiumos_image.bin
        --hwid_updater ~/trunk/src/platform/[Cc]hromeos-hwid/hwid_bundle_zgb.sh
        --firmware_updater none
        --detect_release_image  # Comment.

        # More comments.
        [x86-zgb-he]
        --subfolder x86-zgb-he
        --factory ~/trunk/src/build/images/${BOARD}/latest/chromiumos_factory_image.bin
        --release ~/trunk/src/build/images/${BOARD}/latest/chromiumos_image.bin
        --hwid_updater ~/trunk/src/platform/chromeos-hwid/hwid_bundle_zgb.sh
        --firmware_updater none
        --detect_release_image

     2. BOARD=x86-zgb ./make_factory_package.sh --config mp_factory.conf

Change-Id: I4d1475a5e513e7e0e06a5c3c6d46d13e2120668c
Reviewed-on: http://gerrit.chromium.org/gerrit/7698
Tested-by: Chinyue Chen <chinyue@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
2011-09-14 05:59:32 -07:00
Matt Tennant
feb896d363 Upgrade script to insert BOARD_USE into existing make.conf.board_setup files.
The setup_board script now inserts a BOARD_USE value into
/build/<board>/etc/make.conf.board_setup.  This only happens the first
time the board is setup, so this upgrade script inserts that value
for boards that were previously set up.

BUG=chromium-os:20341
TEST=Ran run_chroot_version_hooks in chroot, inspected make.conf.board_setup
files for boards that did and did not have BOARD_USE already set.

Change-Id: I333198a0434076a5e8e50db6affc81ea2076d301
Reviewed-on: http://gerrit.chromium.org/gerrit/7653
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: Matt Tennant <mtennant@chromium.org>
2011-09-13 18:03:48 -07:00
Raymes Khoury
4460ea782f Disable locale-gen temporarily to workaround bug
Works around:
http://code.google.com/p/chromium-os/issues/detail?id=20378

which is breaking the tree.

BUG=chromium-os:20378
TEST=cros_sdk --enter

Change-Id: I0d5dc2dd6466efe9baafcc404648d2c53309a3b7
Reviewed-on: http://gerrit.chromium.org/gerrit/7679
Reviewed-by: David James <davidjames@chromium.org>
Reviewed-by: Thieu Le <thieule@chromium.org>
Tested-by: David James <davidjames@chromium.org>
2011-09-13 17:10:30 -07:00
ttuttle
4b7838e54d Add cros_run_cell_tests.sh
BUG=chromium-os:20349
TEST=working on it

Change-Id: I04d86a270dc33abeec67f797a7612218e585a917
Reviewed-on: http://gerrit.chromium.org/gerrit/7626
Tested-by: ttuttle <ttuttle@chromium.org>
Reviewed-by: ttuttle <ttuttle@chromium.org>
Reviewed-by: David Rochberg <rochberg@chromium.org>
2011-09-13 14:11:09 -07:00
Elly Jones
f4e4833a9e build_kernel_image: use a salt for verity.
BUG=chromium-os:12138
TEST=Adhoc
TESTED_ON=Kaen
Build an image. Look for "Generating root fs hash tree (salt <foo>)." in the
output. Boot the image, grep for 'salt=' in dmesg. All should be well.

Change-Id: Ia7d8504033ff1e62ba451129be5796702809cc7c
Signed-off-by: Elly Jones <ellyjones@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/7335
2011-09-13 12:14:54 -07:00
Nick Sanders
0126898d23 Cache sudo in make_factory_package
BUG=chrome-os-partner:2827
TEST=observe sudo cache

Change-Id: Idf0d63ab07ee2e60f028e44ace4cd9707c2e4d6c
Reviewed-on: http://gerrit.chromium.org/gerrit/7580
Tested-by: Nick Sanders <nsanders@chromium.org>
Reviewed-by: Chinyue Chen <chinyue@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
2011-09-12 22:43:12 -07:00
David James
83848ede89 Remove old versions of dev-libs/gmp to ease chroot upgrades.
BUG=none
TEST=Run it, make sure old versions are unmerged.

Change-Id: I2a281284fc17e221985c9c2b184a5a23ba90d773
2011-09-12 10:45:18 -07:00
Mike Frysinger
f49a9333a5 mpfr: import current stable from upstream Gentoo
This changes ABI of the mpfr library, but the ebuild itself takes care
of preserving the old SONAME so that existing binaries don't break.
Newly linked programs will use the new ABI SONAME automatically.

BUG=None
TEST=tested upgrade path (build_packages/build_image); ran `cbuildbot chromiumos-sdk`

Change-Id: Id35f8369f9d245de12f5c491db61d8dbac7ddc56
Reviewed-on: http://gerrit.chromium.org/gerrit/7442
Reviewed-by: Ken Mixter <kmixter@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
Commit-Ready: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
2011-09-12 09:19:56 -07:00
Mike Frysinger
a60d15ca11 gmp: import current stable from upstream Gentoo
This changes ABI of the gmp library, but the ebuild itself takes care
of preserving the old SONAME so that existing binaries don't break.
Newly linked programs will use the new ABI SONAME automatically.

BUG=None
TEST=tested upgrade path (build_packages/build_image); rebuilt strongswan; ran `cbuildbot chromiumos-sdk`

Change-Id: I0e51efecd59a9f2127e2d299a4da7e23df5eefd2
Reviewed-on: http://gerrit.chromium.org/gerrit/7441
Reviewed-by: Ken Mixter <kmixter@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
Commit-Ready: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
2011-09-12 09:19:49 -07:00
Mike Frysinger
8df2a8453b sandbox: import current stable from upstream Gentoo
BUG=None
TEST=ran `cbuildbot chromiumos-sdk` to rebuild all pkgs

Change-Id: Ic98d07cb801b6e8e1b12a5879354723aeaa61b7d
Reviewed-on: http://gerrit.chromium.org/gerrit/7308
Reviewed-by: David James <davidjames@chromium.org>
Reviewed-by: Brian Harring <ferringb@chromium.org>
Commit-Ready: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
2011-09-12 09:18:00 -07:00
Raymes Khoury
cadce8c005 Revert "Added virtual libc ebuild from upstream gentoo."
This reverts commit 8cca16afdc0b722136723a0bd4213d70e73b9e9f which broke the tree

Change-Id: Icf3c1b0ac71452b012d4199c7408c0157d3202b6
Reviewed-on: http://gerrit.chromium.org/gerrit/7485
Reviewed-by: Raymes Khoury <raymes@chromium.org>
Tested-by: Raymes Khoury <raymes@chromium.org>
2011-09-09 10:26:36 -07:00
Chinyue Chen
67594116c0 Read script parameters from config file.
make_factory_package.sh needs many parameters and to support multi-board
installation it has to be run twice (without and with --subfolder). This
change adds the functionality to read sections of parameters from a
config file and executes them in order.

BUG=chrome-os-partner:5850
TEST=1. Create a config file (mp_factory.conf) with the following
        content:
       [x86-zgb]
        --factory ~/trunk/src/build/images/${BOARD}/latest/chromiumos_factory_image.bin
        --release ~/trunk/src/build/images/${BOARD}/latest/chromiumos_image.bin
        --hwid_updater ~/trunk/src/platform/chromeos-hwid/hwid_bundle_zgb.sh
        --firmware_updater none
        --detect_release_image

       [x86-zgb-he]
        --subfolder x86-zgb-he
        --factory ~/trunk/src/build/images/${BOARD}/latest/chromiumos_factory_image.bin
        --release ~/trunk/src/build/images/${BOARD}/latest/chromiumos_image.bin
        --hwid_updater ~/trunk/src/platform/chromeos-hwid/hwid_bundle_zgb.sh
        --firmware_updater none
        --detect_release_image

     2. BOARD=x86-zgb ./make_factory_package.sh --config mp_factory.conf

Change-Id: I3435f3afbf40ec3b8bd02a3514f599a7a535510e
Reviewed-on: http://gerrit.chromium.org/gerrit/7473
Tested-by: Chinyue Chen <chinyue@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
2011-09-09 09:23:26 -07:00
Raymes Khoury
ea1acb1c90 Added virtual libc ebuild from upstream gentoo.
BUG=chromium-os:19436
TEST=none

Change-Id: I6a52a5ddabbef57a10ec49f8cd38fabb5b764f00
Reviewed-on: http://gerrit.chromium.org/gerrit/6922
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: Raymes Khoury <raymes@chromium.org>
2011-09-09 09:19:16 -07:00
Stefan Reinauer
b392153c54 rename /u-boot --> /firmware
Also drop find_*_component, because it is not used anywhere anymore.

BUG=chrome-os-partner:5459
TEST=none

Change-Id: Iea49a81538c22fee4b91c8b3e5582b5174282151
Reviewed-on: http://gerrit.chromium.org/gerrit/7425
Tested-by: Stefan Reinauer <reinauer@chromium.org>
Reviewed-by: Anton Staaf <robotboy@chromium.org>
2011-09-08 17:05:10 -07:00
Daniel Kurtz
80b23f9313 x11-libs/libXi: import current stable from upstream gentoo
Upstream has added a few minor improvements, and released 1.4.3.

BUG=chromium-os:19940
TEST=For an x86- and a tegra2- board:
  build_packages --board=${B}
  Test keyboard, USB mouse and touchpad function as expected.

Change-Id: I54b668c682f11c4b97d19824a1264f086016e61a
Reviewed-on: http://gerrit.chromium.org/gerrit/7087
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Tested-by: Daniel Kurtz <djkurtz@chromium.org>
2011-09-07 21:31:48 -07:00
Hung-Te Lin
920482f7f4 crosutils: add HWID folder when building factory test image
To always have HWID bundles in build output, this CL copies the HWID bundle
files from board temporary space into build output folder.

The HWID folder in make_netboot is also removed.

BUG=chrome-os-partner:5796
TEST=./build_image --factory
     # see "hwid" folder in build output

Change-Id: I8c2cd32c257b117261fba3654b52929c71310c82
Reviewed-on: http://gerrit.chromium.org/gerrit/7331
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
2011-09-07 21:11:41 -07:00
Raymes Khoury
d37eb67163 Print friendly error message if the libc tarball is missing.
Advises the user to try running setup_board.

BUG=chromium-os:18934
TEST=Ran with missing tarball and checked message.

Change-Id: Ice444139188756932734f5f89ef22de4cd12ab41
Reviewed-on: http://gerrit.chromium.org/gerrit/6709
Tested-by: Raymes Khoury <raymes@chromium.org>
Reviewed-by: Raymes Khoury <raymes@chromium.org>
2011-09-07 18:19:30 -07:00
David James
d1679ab864 Don't hardcode output directories in boot.desc.
Right now, output directories are hardcoded in boot.desc. This means that
cros_make_image_bootable will still write to the directories mentioned in
build_image, even if it's working on a different directory. This can
mess with the buildbot, because it can cause cros_make_image_bootable
to mess with the files created for existing images.

This change fixes flaky failures where the buildbot fails with warnings
stating that vmlinuz_hd.vblock does not exist. See bug 19956.

BUG=chromium-os:19956
TEST=Run full canary trybot run and verify cros_make_image_bootable uses
     files from the right directory now.

Change-Id: Ib390aa84570b077cbc8b69b757998056acc091ea
Reviewed-on: http://gerrit.chromium.org/gerrit/7282
Reviewed-by: Will Drewry <wad@chromium.org>
Tested-by: David James <davidjames@chromium.org>
2011-09-06 13:50:40 -07:00
Mike Frysinger
e9bee13546 rpcbind: import current stable from upstream Gentoo
The upstream version contains all of our fixes, so import the upstream
version so we can drop the cros one.

BUG=None
TEST=emerged it for x86-alex and arm-generic boards

Change-Id: I903782f27932a2cd6bae503e89e4ac77d1e0fd6a
Reviewed-on: http://gerrit.chromium.org/gerrit/7194
Reviewed-by: David James <davidjames@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
2011-09-03 10:57:56 -07:00
Zdenek Behan
9a995bb37c gcc-update-hook: regenerate latest gcc prior to calling gcc-config
BUG=chromium-os:19613
TEST=below
1) Manually create a chroot with old gcc
2) Let the script update&select new one, unmerge old

Change-Id: I71732da315ed4effc6df48afab797718e44d7a06
Reviewed-on: http://gerrit.chromium.org/gerrit/7117
Tested-by: Zdenek Behan <zbehan@chromium.org>
Reviewed-by: Zdenek Behan <zbehan@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
2011-09-02 16:30:23 -07:00
Luigi Semenzato
5f0342b55c sys-fs/ecryptfs-utils: import version 91 from Gentoo's main tree
This version includes upstream the pkg-config NSS check, and two more
security-sensitive issues.

This reverts commit 4ca8da3aecfc66f90389c9d59825d5fdf89d87de

BUG=none
TEST=emerge-{x86,arm}-generic ecryptfs-utils

Change-Id: I46c50989206a0a50b0d3c08e9c635232f2d30f96
Reviewed-on: http://gerrit.chromium.org/gerrit/7210
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: Luigi Semenzato <semenzato@chromium.org>
2011-09-02 16:22:30 -07:00
Benson Leung
70a22d535a app-benchmarks/i7z : Import i7z utility from gentoo
Import i7z-0.27-r1 from gentoo.
Also pull in qt4-r2 eclass from gentoo, which i7z
ebuild inherits.

BUG=chromium-os:19663
TEST=gmerge i7z. Ensure the utility runs
from /usr/sbin/i7z on a Sandy Bridge system.

Change-Id: I51e31e1015790dedb1ad5dbd7ac3734476af05dd
Signed-off-by: Benson Leung <bleung@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/7196
Reviewed-by: Mike Frysinger <vapier@chromium.org>
2011-09-02 14:27:18 -07:00
Darin Petkov
4b964ca646 Revert "build_kernel_image: use a salt for verity."
Seems to break internal PFQ.

This reverts commit e13e4d94753a585234189f0f34c1723cdbdb36a4

Change-Id: Ia232dc7a50feb87b2af8e945c6940eaa71390525
Reviewed-on: http://gerrit.chromium.org/gerrit/7195
Tested-by: Elly Jones <ellyjones@chromium.org>
Reviewed-by: Elly Jones <ellyjones@chromium.org>
Reviewed-by: Darin Petkov <petkov@chromium.org>
Tested-by: Darin Petkov <petkov@chromium.org>
2011-09-02 13:39:34 -07:00
Elly Jones
6f568e6a94 build_kernel_image: use a salt for verity.
BUG=chromium-os:12138
TEST=Adhoc
TESTED_ON=Kaen
Build an image. Look for "Generating root fs hash tree (salt <foo>)." in the
output. Boot the image, grep for 'salt=' in dmesg. All should be well.

Change-Id: If9dbefbd8a875d06ff45cd54704f166c2511c3b7
Signed-off-by: Elly Jones <ellyjones@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/7174
2011-09-02 12:06:27 -07:00
Mike Frysinger
95c3c7b783 libpcap: import current stable from upstream Gentoo
BUG=None
TEST=rebuilt x86-alex/amd64-generic; booted x86-alex

Change-Id: Ifb904eaf4c0a0f931444d204233c499da3bfbbd3
Reviewed-on: http://gerrit.chromium.org/gerrit/7098
Reviewed-by: Nathan J. Williams <njw@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
2011-09-02 08:51:09 -07:00
Chris Sosa
c2a60e2e03 Another copyright fix to test the Commit Queue.
BUG=None
TEST=Visual inspection

Change-Id: I5e3911fca26386a8eea4cc77dd6603b3631a02a4
Reviewed-on: http://gerrit.chromium.org/gerrit/7143
Reviewed-by: Chris Sosa <sosa@chromium.org>
Tested-by: Chris Sosa <sosa@chromium.org>
2011-09-02 03:24:51 -07:00
Daniel Kurtz
691e29dfa4 x11-proto/inputproto: import current stable from upstream gentoo
Upstream has added a few minor improvements, and released 2.0.2.

BUG=chromium-os:13270
TEST=For an x86- and a tegra2- board:
  build_packages --board=${B}
  Test keyboard, USB mouse and touchpad function as expected.

Change-Id: I75ce14981275c2aaedd8bcf56330a5b7741cf493
Reviewed-on: http://gerrit.chromium.org/gerrit/7086
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Tested-by: Daniel Kurtz <djkurtz@chromium.org>
2011-09-01 23:06:28 -07:00
Chris Sosa
2eb73c0be1 Quick test.
BUG=None
TEST=Change of copyright.

Change-Id: I9254f9456960a417e8584376d98388d3d8fd4467
Reviewed-on: http://gerrit.chromium.org/gerrit/7140
Reviewed-by: Chris Sosa <sosa@chromium.org>
Tested-by: Chris Sosa <sosa@chromium.org>
2011-09-01 19:03:39 -07:00
Chris Sosa
c1bd111ef0 Trivial change to test the commit queue by cleaning up Copyright date in bash_history.
BUG=None
TEST=Visual

Change-Id: I6ceb84e47983ac38ba0df7c6176b42c2613f9c58
Reviewed-on: http://gerrit.chromium.org/gerrit/6790
Tested-by: Chris Sosa <sosa@chromium.org>
Reviewed-by: Darin Petkov <petkov@chromium.org>
Reviewed-by: Chris Sosa <sosa@chromium.org>
2011-09-01 18:48:39 -07:00
Thieu Le
73293cd578 New script to generate stack traces from BVT test failures.
BUG=chromium-os:19565
TEST=Manually ran script

Change-Id: I7f565ddd2e06f4b25aa5d47614cedf7bec786580
Reviewed-on: http://gerrit.chromium.org/gerrit/7093
Reviewed-by: Daniel Erat <derat@chromium.org>
Reviewed-by: Chris Sosa <sosa@chromium.org>
Tested-by: Thieu Le <thieule@chromium.org>
2011-09-01 17:18:12 -07:00
Mike Frysinger
ca2b2968a3 busybox: import current stable from upstream Gentoo
BUG=None
TEST=updated busybox, created a recovery image, booted it, recovered system, booted recovered system

Change-Id: I7f7a5389ed0ec63f807cbd0d4aee4f0fbde192ee
Reviewed-on: http://gerrit.chromium.org/gerrit/6736
Tested-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Anush Elangovan <anush@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
Reviewed-by: Nick Sanders <nsanders@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Richard Barnette <jrbarnette@chromium.org>
2011-09-01 12:00:35 -07:00
Luigi Semenzato
b149f19a2d Revert "sys-fs/ecryptfs-utils: import version 91 from Gentoo's main tree"
This reverts commit 624e24a4cb429b039345733a1973170e44eefa30

Change-Id: I4ca8da3aecfc66f90389c9d59825d5fdf89d87de
Reviewed-on: http://gerrit.chromium.org/gerrit/7079
Tested-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
2011-09-01 09:41:44 -07:00
J. Richard Barnette
8e48095cb3 Delete some unused options from build_image and mod_image_for_recovery.sh
BUG=None
TEST=run both scripts, boot the images

Change-Id: I7209421d3b438d6daf37f210d5e73c0b9f91eb1d
Reviewed-on: http://gerrit.chromium.org/gerrit/6941
Tested-by: Richard Barnette <jrbarnette@chromium.org>
Reviewed-by: Richard Barnette <jrbarnette@chromium.org>
2011-09-01 09:18:26 -07:00
Diego Elio Pettenò
75b49e5f77 sys-fs/ecryptfs-utils: import version 91 from Gentoo's main tree
This version includes upstream the pkg-config NSS check, and two more
security-sensitive issues.

BUG=none
TEST=emerge-{x86,arm}-generic ecryptfs-utils

Change-Id: I0401838ad1bb59393c6fd7a3e4b161b6dca4e449
Reviewed-on: http://gerrit.chromium.org/gerrit/6965
Reviewed-by: Luigi Semenzato <semenzato@chromium.org>
Tested-by: Diego Elio Pettenò <flameeyes@chromium.org>
2011-09-01 08:23:19 -07:00
Hung-Te Lin
d7a3503914 crosutils/make_universal_factory_shim.sh: allow creating images in arbitrary layout
We need more flexible image creation tool for various layout, like "RMA with
multiple release images" which needs 4 images (install, test, release A,
release B).

To make the creation of image more flexible, this CL changes
make_universal_factory_shim to using a "layout file" that can describe any disk
image format we want.

Image creation speed is also improved by aligning partition offsets and
restricting oflag=dsync applied only when being used for block devices so that
make_universal_factory_shim (outputs to a normal temporary file) becomes faster
by utilizing system cache.

For a system with every images already cached:
 - Time for building 3 in 1 factory instal shim:
   Before = 8 seconds, After = 5 seconds.
 - Time for full RMA shim creation:
   Before = 1m25s, After = 40-50 seconds.

BUG=chrome-os-partner:4108
TEST=./make_universal_factory_shim.sh image1 image2 image3 image4
     # boots correctly after being imaged to SD card.
     ./make_factory_package.sh --usbimg RMA ....
     # RMA image can install images and works correctly

Change-Id: I645196d6d6e0a24d3dfa4c413a338279df4c0d5b
Reviewed-on: http://gerrit.chromium.org/gerrit/6893
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Nick Sanders <nsanders@chromium.org>
2011-08-31 23:37:55 -07:00
Hung-Te Lin
662588686a crosutils: clean up factory test image modification scripts
This is the counterpart of http://gerrit.chromium.org/gerrit/6992 ,
which moves init modification from scripts folder into ebuild file.
The 'customizeRelease' is also already deprecated.

BUG=chromium-os:9596
TEST=build_images --factory # pass

Change-Id: I8087f627f4b13d9f6b1d4bf6003630298a87c627
Reviewed-on: http://gerrit.chromium.org/gerrit/7040
Reviewed-by: Nick Sanders <nsanders@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
2011-08-31 23:37:12 -07:00
Diego Elio Pettenò
ecc75c9454 Restore original meaning of portage-stable: unmodified ebuilds.
Avoid playing with keywords i the ebuilds, instead use package.keywords
on chromiumos-overlay to set the keywords, and USE flags as well.

This actually includes some ebuild commit-revision updates, which actually
update said keywords.

BUG=none
TEST=./build_packages --nousepkg --board={x86,arm}-generic

Change-Id: I1e2acab0527b8cfd1ceb97c9fd578c5087d1eb50
Reviewed-on: http://gerrit.chromium.org/gerrit/6889
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: Diego Elio Pettenò <flameeyes@chromium.org>
2011-08-31 15:16:05 -07:00