functions: changed pkginstalled() to use $* instead of "$@" when generating the pattern
[opensde-nopast.git] / target / generic / build.sh
blobcf4b9cc4824259cab9838945c447785747a0813d
1 # --- SDE-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # Filename: target/generic/build.sh
5 # Copyright (C) 2007 The OpenSDE Project
6 # Copyright (C) 2004 - 2006 The T2 SDE Project
7 #
8 # More information can be found in the files COPYING and README.
9 #
10 # This program is free software; you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; version 2 of the License. A copy of the
13 # GNU General Public License can be found in the file COPYING.
14 # --- SDE-COPYRIGHT-NOTE-END ---
16 # This is the shortest possible target build.sh script. Some targets will
17 # add code after calling pkgloop() or modify pkgloop's behavior by defining
18 # a new pkgloop_action() function.
20 pkgloop
22 echo_header "Finishing build."
24 rm -f $build_toolchain/isofs*.txt 2> /dev/null
26 echo_status "Creating package database ..."
27 admdir="build/${SDECFG_ID}/var/adm"
28 create_package_db $admdir $build_toolchain/pkgs \
29 $build_toolchain/pkgs/packages.db
31 if [ "$SDECFG_IMAGE" -a -e target/share/$SDECFG_IMAGE/build.sh ]; then
32 echo_status "Creating output image ..."
33 . target/share/$SDECFG_IMAGE/build.sh
36 echo_status "Creating isofs.txt file ..."
37 cat << EOT > $build_toolchain/isofs.txt
38 DISK1 $admdir/cache/ ${SDECFG_SHORTID}/info/cache/
39 DISK1 $admdir/cksums/ ${SDECFG_SHORTID}/info/cksums/
40 DISK1 $admdir/dependencies/ ${SDECFG_SHORTID}/info/dependencies/
41 DISK1 $admdir/descs/ ${SDECFG_SHORTID}/info/descs/
42 DISK1 $admdir/flists/ ${SDECFG_SHORTID}/info/flists/
43 DISK1 $admdir/md5sums/ ${SDECFG_SHORTID}/info/md5sums/
44 DISK1 $admdir/packages/ ${SDECFG_SHORTID}/info/packages/
45 EVERY $build_toolchain/pkgs/packages.db ${SDECFG_SHORTID}/pkgs/packages.db
46 SPLIT $build_toolchain/pkgs/ ${SDECFG_SHORTID}/pkgs/
47 $( cat $build_toolchain/isofs_*.txt 2>/dev/null )
48 EOT
50 echo_status "Done."