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.

50 lines
1.9 KiB

  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 ---
  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.
  18. pkgloop
  19. echo_header "Finishing build."
  20. rm -f $build_toolchain/isofs*.txt 2> /dev/null
  21. echo_status "Creating package database ..."
  22. admdir="build/${SDECFG_ID}/var/adm"
  23. create_package_db $admdir $build_toolchain/pkgs \
  24. $build_toolchain/pkgs/packages.db
  25. if [ "$SDECFG_IMAGE" -a -e target/share/$SDECFG_IMAGE/build.sh ]; then
  26. echo_status "Creating output image ..."
  27. . target/share/$SDECFG_IMAGE/build.sh
  28. fi
  29. echo_status "Creating isofs.txt file ..."
  30. cat << EOT > $build_toolchain/isofs.txt
  31. DISK1 $admdir/cache/ ${SDECFG_SHORTID}/info/cache/
  32. DISK1 $admdir/cksums/ ${SDECFG_SHORTID}/info/cksums/
  33. DISK1 $admdir/dependencies/ ${SDECFG_SHORTID}/info/dependencies/
  34. DISK1 $admdir/descs/ ${SDECFG_SHORTID}/info/descs/
  35. DISK1 $admdir/flists/ ${SDECFG_SHORTID}/info/flists/
  36. DISK1 $admdir/md5sums/ ${SDECFG_SHORTID}/info/md5sums/
  37. DISK1 $admdir/packages/ ${SDECFG_SHORTID}/info/packages/
  38. EVERY $build_toolchain/pkgs/packages.db ${SDECFG_SHORTID}/pkgs/packages.db
  39. SPLIT $build_toolchain/pkgs/ ${SDECFG_SHORTID}/pkgs/
  40. $( cat $build_toolchain/isofs_*.txt 2>/dev/null )
  41. EOT
  42. echo_status "Done."