Remove old build related scripts that are no longer needed.

Review URL: http://codereview.chromium.org/651062
This commit is contained in:
tedbo 2010-03-03 11:53:04 -08:00
parent fe6426c692
commit 32303a95a1
2 changed files with 0 additions and 82 deletions

View File

@ -1,32 +0,0 @@
#!/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.
# Runs our own version of extlinux, which is in the third_party directory.
# Our version is quieter and faster. extlinux will be compiled if it's not
# already.
set -e
SCRIPTS_ROOT=`dirname "$0"`
THIRD_PARTY="${SCRIPTS_ROOT}/../third_party"
BUILD_ROOT=${BUILD_ROOT:-${SCRIPTS_ROOT}/../build}
EXTLINUX_BIN="$BUILD_ROOT"/x86/obj/src/third_party/syslinux/syslinux-*/extlinux/extlinux
echo bin is "$EXTLINUX_BIN"
if [ ! -e $EXTLINUX_BIN ]
then
# compile extlinux
(cd "$SCRIPTS_ROOT/../third_party/syslinux/files/" && make)
if [ ! -e $EXTLINUX_BIN ]
then
echo "Can't find or compile extlinux. Sorry."
exit 1
fi
fi
# we don't want ""s around $* b/c that will group all args into a single arg
$EXTLINUX_BIN $*

View File

@ -1,50 +0,0 @@
#!/bin/bash
# Copyright (c) 2010 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"
assert_inside_chroot
assert_not_root_user
# Flags
DEFINE_string architecture armel "The architecture to fetch." a
# Parse command line
FLAGS "$@" || exit 1
eval set -- "${FLAGS_ARGV}"
# Die on error
set -e
LOCAL_PKG_DIR="${DEFAULT_BUILD_ROOT}/${FLAGS_architecture}/local_packages"
mkdir -p "${LOCAL_PKG_DIR}"
cd "${LOCAL_PKG_DIR}"
DEB_BUILD_ARCH="$(dpkg-architecture -qDEB_BUILD_ARCH)"
DEBS=
for SRC; do
SRCCACHE="$(apt-cache showsrc "$SRC")"
BINS="$(echo "$SRCCACHE" | grep -m1 ^Binary: | cut -d' ' -f2- | sed 's/,//g')"
VER="$(echo "$SRCCACHE" | grep -m1 ^Version: | cut -d' ' -f2)"
for BIN in $BINS; do
BINCACHE="$(apt-cache show "$BIN")" || continue # might be a udeb
DEB="$(echo "$BINCACHE" | grep -m1 ^Filename: | cut -d' ' -f2 | sed "s/_${DEB_BUILD_ARCH}\.deb/_${FLAGS_architecture}.deb/")"
wget -N "http://ports.ubuntu.com/ubuntu-ports/${DEB}"
DEBS="$DEBS ${DEB##*/}"
done
cat >"${SRC}_${VER#*:}_${FLAGS_architecture}.changes" <<EOF
Version: $VER
Fake: yes
EOF
done
if [ "$DEBS" ]; then
chromiumos-build --convert -a "${FLAGS_architecture}" $DEBS
fi