#!/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 |