Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3508)

Unified Diff: build_image

Issue 6901047: Use initramfs on x86 but not on arm for factory install image. (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build_image
diff --git a/build_image b/build_image
index 306c753135e4ef46eef2565f79e85a3a4615e8c9..8fbc2d8043d765e695c541188b2292a3bfe3c708 100755
--- a/build_image
+++ b/build_image
@@ -190,10 +190,16 @@ OVERLAY_CHROMEOS_DIR="${SRC_ROOT}/third_party/chromiumos-overlay/chromeos/"
# Configure extra USE or packages for this type of build.
EXTRA_PACKAGES=""
if [ ${FLAGS_factory_install} -eq ${FLAGS_TRUE} ] ; then
- # Factory install needs to have the kernel initrmafs enabled,
- # and the factory installer added.
+ # Factory install needs to have the factory installer added.
EXTRA_PACKAGES="${EXTRA_PACKAGES} chromeos-base/chromeos-factoryinstall"
- export USE="${USE} fbconsole initramfs"
+ # On x86, booting factory install shim on SD card needs to have the kernel
+ # initrmafs enabled. On ARM, booting factory install image on network does
+ # not needs initramfs. Force to enable fbconsole to fix a display driver bug.
+ if [ ${ARCH} -eq "arm" ] ; then
+ export USE="${USE} fbconsole"
+ else
+ export USE="${USE} initramfs"
+ fi
fi
emerge_to_image() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698