mirror of
https://github.com/flatcar/scripts.git
synced 2026-02-13 19:51:03 +01:00
This removes the acpi stuff from customize_rootfs and should make it easier to do more acpi stuff in the future as needed. We still need to figure out how to handle acpi across different devices. Review URL: http://chromereview.prom.corp.google.com/1186038 git-svn-id: svn://chrome-svn/chromeos/trunk@220 06c00378-0e64-4dae-be16-12b19f9950a1
70 lines
1.7 KiB
Bash
Executable File
70 lines
1.7 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
# Load common constants. This should be the first executable line.
|
|
# The path to common.sh should be relative to your script's location.
|
|
. "$(dirname "$0")/common.sh"
|
|
|
|
# Script must be run inside the chroot
|
|
assert_inside_chroot
|
|
|
|
# Flags
|
|
|
|
# Parse command line
|
|
FLAGS "$@" || exit 1
|
|
eval set -- "${FLAGS_ARGV}"
|
|
|
|
# Die on error
|
|
set -e
|
|
|
|
# Number of jobs for scons calls.
|
|
NUM_JOBS=`cat /proc/cpuinfo | grep processor | awk '{a++} END {print a}'`
|
|
|
|
PLATFORM_DIR="$SRC_ROOT/platform"
|
|
|
|
PLATFORM_DIRS="acpi assets fake_hal init installer login_manager \
|
|
memento_softwareupdate pam_google window_manager \
|
|
cros chrome wifi screenlocker cryptohome \
|
|
monitor_reconfig"
|
|
|
|
THIRD_PARTY_DIR="$SRC_ROOT/third_party"
|
|
THIRD_PARTY_PACKAGES="connman e2fsprogs/files gflags gtest \
|
|
ply-image slim/src synaptics \
|
|
wpa_supplicant xscreensaver/xscreensaver-5.08 \
|
|
xserver-xorg-core xserver-xorg-video-intel"
|
|
|
|
# Build third_party packages first, since packages and libs depend on them.
|
|
for i in $THIRD_PARTY_PACKAGES
|
|
do
|
|
echo "Building package ${i}..."
|
|
cd "$THIRD_PARTY_DIR/$i"
|
|
./make_pkg.sh
|
|
cd -
|
|
done
|
|
|
|
# Build base lib next, since packages depend on it.
|
|
echo "Building base library..."
|
|
cd "$THIRD_PARTY_DIR/chrome"
|
|
scons -j$NUM_JOBS
|
|
cd -
|
|
|
|
#Build common lib next.
|
|
echo "Building common library..."
|
|
cd "$SRC_ROOT/common"
|
|
scons -j$NUM_JOBS
|
|
cd -
|
|
|
|
# Build platform packages
|
|
for i in $PLATFORM_DIRS
|
|
do
|
|
echo "Building package ${i}..."
|
|
cd "$PLATFORM_DIR/$i"
|
|
./make_pkg.sh
|
|
cd -
|
|
done
|
|
|
|
echo "All packages built."
|