OpenSDE Framework (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

49 lines
1.8 KiB

# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: target/generic/build.sh
# Copyright (C) 2007 - 2008 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
# This is the shortest possible target build.sh script. Some targets will
# add code after calling pkgloop() or modify pkgloop's behavior by defining
# a new pkgloop_action() function.
pkgloop
echo_header "Finishing build."
rm -f $build_toolchain/isofs*.txt 2> /dev/null
echo_status "Creating package database ..."
admdir="build/${SDECFG_ID}/var/adm"
./bin/sde-create-pkgdb -c "$config"
if [ "$SDECFG_IMAGE" -a -e target/share/$SDECFG_IMAGE/build.sh ]; then
echo_status "Creating output image ..."
. target/share/$SDECFG_IMAGE/build.sh
fi
echo_status "Creating isofs.txt file ..."
cat << EOT > $build_toolchain/isofs.txt
DISK1 $admdir/cache/ ${SDECFG_SHORTID}/info/cache/
DISK1 $admdir/cksums/ ${SDECFG_SHORTID}/info/cksums/
DISK1 $admdir/dependencies/ ${SDECFG_SHORTID}/info/dependencies/
DISK1 $admdir/descs/ ${SDECFG_SHORTID}/info/descs/
DISK1 $admdir/flists/ ${SDECFG_SHORTID}/info/flists/
DISK1 $admdir/md5sums/ ${SDECFG_SHORTID}/info/md5sums/
DISK1 $admdir/packages/ ${SDECFG_SHORTID}/info/packages/
EVERY $build_toolchain/pkgs/packages.db ${SDECFG_SHORTID}/pkgs/packages.db
SPLIT $build_toolchain/pkgs/ ${SDECFG_SHORTID}/pkgs/
$( cat $build_toolchain/isofs_*.txt 2>/dev/null )
EOT
echo_status "Done."