linux-embedded.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Incompatible CFLAGS for kernel module
@ 2008-07-04 17:34 Shaz
  2008-07-04 20:32 ` Sam Ravnborg
  0 siblings, 1 reply; 6+ messages in thread
From: Shaz @ 2008-07-04 17:34 UTC (permalink / raw)
  To: linux-embedded
  Cc: ray.sunjae.lee, tpm-emulator-user, tpm-emulator-devel,
	Security Engineering Archive

Hi,

I am porting tpm emulator to versatilepb, which is an arm platform. I
have some problem with CFLAGS from /arch/arm/Makefile when building
the kernel module for this software. I cannot figure out what to do in
this case. Following is the error:

[root@develbox tpm_emulator-0.5]# make
Making all in tpmd
make[1]: Entering directory `/embedded/tpm_emulator-0.5/tpmd'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/embedded/tpm_emulator-0.5/tpmd'
Making all in tpmd_dev
make[1]: Entering directory `/embedded/tpm_emulator-0.5/tpmd_dev'
  CC [M]  /embedded/tpm_emulator-0.5/tpmd_dev/tpmd_dev.o
cc1: error: unrecognized command line option "-mlittle-endian"
cc1: error: unrecognized command line option "-mapcs"
cc1: error: unrecognized command line option "-mno-sched-prolog"
cc1: error: unrecognized command line option "-mabi=aapcs-linux"
cc1: error: unrecognized command line option "-mno-thumb-interwork"
/embedded/tpm_emulator-0.5/tpmd_dev/tpmd_dev.c:1: error: bad value
(armv4t) for -march= switch
/embedded/tpm_emulator-0.5/tpmd_dev/tpmd_dev.c:1: error: bad value
(arm9tdmi) for -mtune= switch
make[3]: *** [/embedded/tpm_emulator-0.5/tpmd_dev/tpmd_dev.o] Error 1
make[2]: *** [_module_/embedded/tpm_emulator-0.5/tpmd_dev] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/embedded/tpm_emulator-0.5/tpmd_dev'
make: *** [all-recursive] Error 255

kindly help me understand the core issue here and point out some solutions.

-- 
Shaz

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-07-06 20:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-04 17:34 Incompatible CFLAGS for kernel module Shaz
2008-07-04 20:32 ` Sam Ravnborg
2008-07-05  5:33   ` Shaz
2008-07-05  6:33     ` Sam Ravnborg
     [not found]       ` <7b740b700807052234p49a50c22g290d9a76e04d373f@mail.gmail.com>
2008-07-06  7:35         ` Shaz
2008-07-06 20:00           ` Sam Ravnborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).