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:

[EMAIL PROTECTED] 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
--
To unsubscribe from this list: send the line "unsubscribe linux-embedded" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to