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.

48 lines
1.8 KiB

  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 - 2006 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 ---
  14. # This is the shortest possible target build.sh script. Some targets will
  15. # add code after calling pkgloop() or modify pkgloop's behavior by defining
  16. # a new pkgloop_action() function.
  17. pkgloop
  18. echo_header "Finishing build."
  19. rm -f $build_toolchain/isofs*.txt 2> /dev/null
  20. echo_status "Creating package database ..."
  21. admdir="build/${SDECFG_ID}/var/adm"
  22. create_package_db $admdir $build_toolchain/pkgs \
  23. $build_toolchain/pkgs/packages.db
  24. if [ "$SDECFG_IMAGE" -a -e target/share/$SDECFG_IMAGE/build.sh ]; then
  25. echo_status "Creating output image ..."
  26. . target/share/$SDECFG_IMAGE/build.sh
  27. fi
  28. echo_status "Creating isofs.txt file .."
  29. cat << EOT > $build_toolchain/isofs.txt
  30. DISK1 $admdir/cache/ ${SDECFG_SHORTID}/info/cache/
  31. DISK1 $admdir/cksums/ ${SDECFG_SHORTID}/info/cksums/
  32. DISK1 $admdir/dependencies/ ${SDECFG_SHORTID}/info/dependencies/
  33. DISK1 $admdir/descs/ ${SDECFG_SHORTID}/info/descs/
  34. DISK1 $admdir/flists/ ${SDECFG_SHORTID}/info/flists/
  35. DISK1 $admdir/md5sums/ ${SDECFG_SHORTID}/info/md5sums/
  36. DISK1 $admdir/packages/ ${SDECFG_SHORTID}/info/packages/
  37. EVERY $build_toolchain/pkgs/packages.db ${SDECFG_SHORTID}/pkgs/packages.db
  38. SPLIT $build_toolchain/pkgs/ ${SDECFG_SHORTID}/pkgs/
  39. $( cat $build_toolchain/isofs_*.txt 2>/dev/null )
  40. EOT