9 echo "-- generating header files --"
12 mkdir -p ${HDR_DIR}/aversive/parts
17 ../gen_regs.py $i > ../${HDR_DIR}/aversive/parts/${i%.xml}.h
21 cd ${HDR_DIR}/aversive/parts
24 cat <<EOF > ../parts.h
26 * Copyright Droids Corporation, Microb Technology, Eirbot (2009)
28 * This program is free software; you can redistribute it and/or modify
29 * it under the terms of the GNU General Public License as published by
30 * the Free Software Foundation; either version 2 of the License, or
31 * (at your option) any later version.
33 * This program is distributed in the hope that it will be useful,
34 * but WITHOUT ANY WARRANTY; without even the implied warranty of
35 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36 * GNU General Public License for more details.
38 * You should have received a copy of the GNU General Public License
39 * along with this program; if not, write to the Free Software
40 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
46 /* WARNING : this file is automatically generated by scripts.
47 * You should not edit it. If you find something wrong in it,
48 * write to zer0@droids-corp.org */
50 #ifndef _AVERSIVE_PARTS_H_
51 #define _AVERSIVE_PARTS_H_
57 part=${part#aversive_}
58 if [ "$part" = "parts" ]; then
61 echo "#${EL}if defined (__AVR_${part}__)" >> ../parts.h
62 echo "#include <aversive/parts/$i>" >> ../parts.h
65 echo "#else" >> ../parts.h
66 echo "#error \"This arch is not implemented yet\"" >> ../parts.h
67 echo "#endif" >> ../parts.h
69 echo "#endif /* _AVERSIVE_PARTS_H_ */" >> ../parts.h