1#!/bin/sh 2 3EFIPROGS="acpidump" 4 5EFIDIR=`(cd \`dirname $0\`; pwd)` 6TOPDIR=`(cd ${EFIDIR}/../..; pwd)` 7 8usage() { 9 echo "Usage: `basename $0` [-c]" 10 echo "Where:" 11 echo " -c: Use EDK standard C-library - StdLib." 12 exit 1 13} 14 15while getopts "c" opt 16do 17 case $opt in 18 c) EDKSTDLIB=yes;; 19 ?) echo "Invalid option: $1" 20 usage;; 21 esac 22done 23 24if [ -z ${EDKSTDLIB} ]; then 25 EFISUFFIX=nostdlib 26else 27 EFISUFFIX=stdlib 28fi 29 30echo "Copying AcpiPkg package files..." 31cp -f ${EFIDIR}/AcpiPkg.dec ${TOPDIR}/AcpiPkg.dec 32cp -f ${EFIDIR}/AcpiPkg_${EFISUFFIX}.dsc ${TOPDIR}/AcpiPkg.dsc 33 34for p in ${EFIPROGS}; do 35 EFIINF=${p}_${EFISUFFIX}.inf 36 echo "Copying $p build file: ${EFIINF}..." 37 if [ ! -f ${EFIDIR}/$p/${EFIINF} ]; then 38 echo "Invalid build file: ${EFIINF}" 39 exit 1 40 else 41 cp -f ${EFIDIR}/$p/${EFIINF} ${TOPDIR}/source/${p}.inf 42 fi 43done 44