On Wed, 2012-07-11 at 10:17 +0400, Igor Zhbanov wrote:
Hello!
I have tried to build PowerTOP for ARM with a cross-compiler. But PowerTOP
uses internal csstoh utility that converts powertop.css to powertoh.h
for inclusion in *.cpp source files.
When you use the cross-compiler (without making complicated rules
in the Makefile) this utility will be compiled for ARM platform too.
And you cannot run it on x86 build host.
To solve this issue (and because of simplicity of the utility)
I have rewritten it in a shell script.
Why /bin/bash?
The script doesn't depend on any bashisms so /bin/sh should be enough,
right?
Why all the games with chmod?
$(SHELL) csstoh.sh powertop.css css.h
should also run the script correctly, shouldn't it?
/MF