1169689Skan#!/bin/sh 2169689Skan# Generate arm-tune.md, a file containing the tune attribute from the list of 3169689Skan# CPUs in arm-cores.def 4169689Skan 5169689Skanecho ";; -*- buffer-read-only: t -*-" 6169689Skanecho ";; Generated automatically by gentune.sh from arm-cores.def" 7169689Skan 8169689Skanallcores=`awk -F'[(, ]+' '/^ARM_CORE/ { cores = cores$3"," } END { print cores } ' $1` 9169689Skan 10169689Skanecho "(define_attr \"tune\"" 11169689Skanecho " \"$allcores\"" | sed -e 's/,"$/"/' 12169689Skanecho " (const (symbol_ref \"arm_tune\")))" 13