* updated ktouch (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / target / generic / build.sh
blob8c53ed2695d2b2f87d75f7b50471a23fc16d155e
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: target/generic/build.sh
5 # Copyright (C) 2004 - 2005 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; version 2 of the License. A copy of the
12 # GNU General Public License can be found in the file COPYING.
13 # --- T2-COPYRIGHT-NOTE-END ---
15 # This is the shortest possible target build.sh script. Some targets will
16 # add code after calling pkgloop() or modify pkgloop's behavior by defining
17 # a new pkgloop_action() function.
19 pkgloop
21 echo_header "Finishing build."
23 rm -f $build_toolchain/isofs*.txt 2> /dev/null
25 if [ "$SDECFG_PKGFILE_TYPE" != "none" ]; then
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
32 if [ "$SDECFG_IMAGE" -a -e target/share/$SDECFG_IMAGE/build.sh ]; then
33 echo_status "Creating output image ..."
34 . target/share/$SDECFG_IMAGE/build.sh
37 echo_status "Creating isofs.txt file .."
39 if [ "$SDECFG_PKGFILE_TYPE" != "none" ]; then
40 cat <<-EOT
41 DISK1 $admdir/cache/ ${SDECFG_SHORTID}/info/cache/
42 DISK1 $admdir/dependencies/ ${SDECFG_SHORTID}/info/dependencies/
43 DISK1 $admdir/descs/ ${SDECFG_SHORTID}/info/descs/
44 DISK1 $admdir/flists/ ${SDECFG_SHORTID}/info/flists/
45 DISK1 $admdir/md5sums/ ${SDECFG_SHORTID}/info/md5sums/
46 DISK1 $admdir/packages/ ${SDECFG_SHORTID}/info/packages/
47 EVERY $build_toolchain/pkgs/packages.db ${SDECFG_SHORTID}/pkgs/packages.db
48 SPLIT $build_toolchain/pkgs/ ${SDECFG_SHORTID}/pkgs/
49 EOT
51 cat $build_toolchain/isofs_*.txt 2>/dev/null
52 ) > $build_toolchain/isofs.txt