From: Magnus Fromreide <magfr at lysator.liu.se>
To: powertop@lists.01.org
Subject: Re: [Powertop] csstoh shell-script for cross-compiling PowerTOP
Date: Wed, 11 Jul 2012 08:56:04 +0200 [thread overview]
Message-ID: <1341989764.2654.2.camel@sara> (raw)
In-Reply-To: 4FFD1A7B.2000105@samsung.com
[-- Attachment #1: Type: text/plain, Size: 796 bytes --]
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
next reply other threads:[~2012-07-11 6:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-11 6:56 Magnus Fromreide [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-07-11 11:46 [Powertop] csstoh shell-script for cross-compiling PowerTOP Paul Menzel
2012-07-11 8:47 Igor Zhbanov
2012-07-11 7:54 Paul Menzel
2012-07-11 7:36 Sergey Senozhatsky
2012-07-11 7:15 Igor Zhbanov
2012-07-11 6:17 Igor Zhbanov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1341989764.2654.2.camel@sara \
--to=powertop@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.