mmmm... weird it compiles ok here after the removal of the CFLAGS line.
i even added it to an installation script which is intended for some fujitsu laptops...
relevant part of the script:
<code>
if [ ! -e acerhk-current.tgz ]; then
if ! wget -q http://freshmeat.net/redir/acerhk/30497/url_tgz/acerhk-current.tgz; then printMessage "Error: Unable to download acerhk source code"
exit 1
fi printMessage "AcerHK source code downloaded successfully"
fi
tar xzf acerhk-current.tgz
if ! cd acerhk-0.5.35; then printMessage "Error: Something wrong with downloaded AcerHK, try manual download of acerhk 0.5.35 and place it under /usr/src/fsca16xx/"
exit 1
fi
#if ! wget -q http://fscamiloa16xx.googlecode.com/files/acerhk-0.5.35-FSC-AMILO_A16xx.patch; then
# printMessage "Error: Unable to retrieve acerhk patch"
#fi #printMessage "Patching AcerHK"
#patch -i acerhk-0.5.35-FSC-AMILO_A16xx.patch acerhk.c printMessage "Installing required kernel module building tools - this may take a while..."
if ! installPackagesIfNeeded build-essential linux-headers-generic ; then
return 1
fi printMessage "Compiling AcerHK"
if [ "Hardy" = $LINUX_VER ]; then
#in kernel 2.6.24 - CFLAGS will fail the compilation
grep -v "CFLAGS+=" Makefile > Makefile.fsc
mv Makefile.fsc Makefile
fi
if make > ../compile.log ; then printMessage "Compile ended successfully!"
mv acerhk.ko ../
cd ..
else cd .. printMessage "Error: AcerHK compile failed, compile log can be found at $(pwd)/compile.log"
fi
</code>
mmmm... weird it compiles ok here after the removal of the CFLAGS line.
i even added it to an installation script which is intended for some fujitsu laptops...
relevant part of the script: freshmeat. net/redir/ acerhk/ 30497/url_ tgz/acerhk- current. tgz; then
printMess age "Error: Unable to download acerhk source code"
printMessa ge "AcerHK source code downloaded successfully"
printMessa ge "Error: Something wrong with downloaded AcerHK, try manual download of acerhk 0.5.35 and place it under /usr/src/fsca16xx/" fscamiloa16xx. googlecode. com/files/ acerhk- 0.5.35- FSC-AMILO_ A16xx.patch; then
#printMessa ge "Patching AcerHK" 0.5.35- FSC-AMILO_ A16xx.patch acerhk.c
printMessag e "Installing required kernel module building tools - this may take a while..." IfNeeded build-essential linux-headers- generic ; then
printMessag e "Compiling AcerHK"
printMessag e "Compile ended successfully!"
cd ..
printMessa ge "Error: AcerHK compile failed, compile log can be found at $(pwd)/compile.log"
<code>
if [ ! -e acerhk-current.tgz ]; then
if ! wget -q http://
exit 1
fi
fi
tar xzf acerhk-current.tgz
if ! cd acerhk-0.5.35; then
exit 1
fi
#if ! wget -q http://
# printMessage "Error: Unable to retrieve acerhk patch"
#fi
#patch -i acerhk-
if ! installPackages
return 1
fi
if [ "Hardy" = $LINUX_VER ]; then
#in kernel 2.6.24 - CFLAGS will fail the compilation
grep -v "CFLAGS+=" Makefile > Makefile.fsc
mv Makefile.fsc Makefile
fi
if make > ../compile.log ; then
mv acerhk.ko ../
cd ..
else
fi
</code>