blob: e34dd3fd40a8803cd7521ec7b48198216c1a1c1f [file] [log] [blame] [raw]
#!/bin/sh
CPUNUM=`uname -m | sed -e 's/IP//'`
sed \
-e 's/\!empty//' \
-e 's/"//g' \
-e 's/\$(\([_A-Z]*\)) == /\1 == /' \
-e 's/== *IP/== /g' -e 's/)=/) =/g' -e 's/#[^ie].*//' \
-e 's/\$(CPUBOARD)/CPUBOARD/g' \
-e 's/^#$//' /var/sysgen/Makefile.kernio | \
/usr/lib/cpp -DCPUBOARD=${CPUNUM} | \
egrep -v '^$|^#.*|^$|^ROOT=|^include' | \
sed -e 's/CFLAGS *[+]*[=]*//' -e 's/\\//' -e 's/-fullwarn//'
exit 0