Re: [Powertop] csstoh shell-script for cross-compiling PowerTOP
Magnus Fromreide <magfr at lysator.liu.se> Wed, 11 Jul 2012 08:56:04 +0200
| Newsgroups | dev.linux.lists.powertop |
|---|---|
| Message-ID | <1341989764.2654.2.camel@sara> |
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